templates/module/Content/__content-titel.html.twig line 1

Open in your IDE?
  1. {% if editmode %}
  2.     {{ include('includes/backend-kopf.html.twig') }}
  3.     {% set tabContentArray = {1: 'Optional', 2: 'Content'} %}
  4.     {% set tab = 1 %}
  5.     <div id="content">        
  6.             {% if tabContentArray is defined and tab in tabContentArray|keys %}
  7.                 {{ admin_tabs(tab, tabContentArray) | raw }}
  8.             {% endif %} 
  9.             <section class="tabContent">
  10.                 <p class="hl">Optionale Einstellung:</p>
  11.                 {% set element = 'artikel' %}
  12.                 <div id="{{ element }} ">
  13.                     {{ pimcore_multiselect(element, {
  14.                             'width': 200,
  15.                             'height': 100,
  16.                             'store': [
  17.                                 ['abstand-top', 'Abstand nach oben'],
  18.                                 ['abstand-bottom', 'Abstand nach unten']
  19.                             ]
  20.                         }) }}
  21.                 </div>
  22.             </section>
  23.             {% if tabContentArray is defined and 2 in tabContentArray|keys %}
  24.                 {{ admin_tabs(2, tabContentArray) | raw }}
  25.                 <section class="tabContent">
  26.                     <strong style="display:block;padding-left:37px;margin-bottom:6px;">Headline (H1)</strong>
  27.                     <div class="schreiben"><span class="parentbox" style="background-color:#fff">
  28.                         {{ pimcore_textarea("title_h1", {"width":520 }) }}
  29.                         </span>
  30.                     </div>
  31.                     <br /><br />
  32.                     <strong style="display:block;padding-left:37px;margin-bottom:6px;">Text unter Headline ()</strong>
  33.                     <div class="schreiben"><span class="parentbox" style="background-color:#fff">
  34.                         {{  pimcore_wysiwyg("text-wysiwyg", {
  35.                                 "height": 100,
  36.                                 "width": 735,
  37.                                 "customConfig": "/bundles/app/static/backend/js/ckeditor/documents/text-wysiwyg.js"
  38.                             }) 
  39.                         }}
  40.                         </span></div>
  41.                     <br /><br />
  42.                 </section>
  43.             {% endif %}
  44.     </div>
  45.     {{ include('includes/backend-fuss.html.twig') }}
  46. {% else %}
  47.     {% set abstand_top_class = (checkMultiselect(pimcore_multiselect("artikel"),'abstand-top') == true)? ' abstand-top' : '' %}
  48.     {% set abstand_bottom_class = (checkMultiselect(pimcore_multiselect("artikel"),'abstand-bottom') == true)? ' abstand-bottom' : '' %}
  49.     {% set abstandClasses = abstand_top_class ~ abstand_bottom_class %}
  50.     <div class="page-title {{ abstandClasses }}">
  51.         {% set h1 = changeTextarea(pimcore_textarea("title_h1")) %}
  52.             {% set h1 = h1 | replace({"|": "&shy;"}) %}
  53.               
  54.                 {% if pimcore_textarea("title_h1") is not empty %}
  55.                     <h1 class="font-bold title">{{ h1 | raw }}</h1>
  56.                     {#                    <div class="title-container">#}
  57. {#                        #}
  58. {#                        <hr class="deco-underline"/>#}
  59. {#                    </div>#}
  60.                 {% endif %}
  61.                 {% if pimcore_wysiwyg("text-wysiwyg").getData() is not empty %}
  62.                     <div class="text-justify copy font-size-large font-light constrainer-inner edgepadding">
  63.                         {{ pimcore_wysiwyg("text-wysiwyg").getData() | raw }}
  64.                     </div>
  65.                 {% endif %}
  66.     </div>
  67. {% endif %}
  68. {#
  69. <?php
  70. if (!$this->editmode)
  71. {
  72.     /* Not Editmode  +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
  73.     /*
  74.      ************************************************
  75.      * M O D U L :  C O N T E N T   -   T I T L E
  76.      ************************************************
  77.      *
  78.      */
  79.     $abstand_top_class = ($this->frontendHelper()->checkMultiselect($this->input("artikel"),'abstand-top') === true)? ' abstand-top' '';
  80.     $abstand_bottom_class = ($this->frontendHelper()->checkMultiselect($this->input("artikel"),'abstand-bottom') === true)? ' abstand-bottom' '';
  81.     $abstandClasses $abstand_top_class.$abstand_bottom_class;
  82.     ?>
  83.             <div class="page-title<?=$abstandClasses?>">
  84.                 <?php  $h1 $this->frontendHelper()->changeTextarea($this->textarea("title_h1")); $h1 str_replace('|','&shy;',$h1); ?>
  85.                 <?php if(!$this->textarea("title_h1")->isEmpty()){?><?php echo PHP_EOL "\t\t\t\t"?><h1 class="font-bold"><?=$h1?></h1>
  86.                 <hr class="deco-underline"/><?php }?>
  87.                 <?php if(!$this->wysiwyg('text-wysiwyg')->isEmpty()){?><div class="text-justify copy font-size-large font-light constrainer-inner edgepadding"><?=$this->wysiwyg('text-wysiwyg')?></div><?php echo PHP_EOL;}?>
  88.             </div>
  89. <?php } else {
  90.     /* ############################################################ Editmode ############################################################ */
  91.     echo $this->template("AppBundle::Includes/backend-kopf.html.php");
  92.     $tabContentArray = array(
  93.         1         => 'Optional',
  94.         2         => 'Content'
  95.     );
  96.     ?>
  97.     <div id="content">
  98.         <?php
  99.         /*******************************************************************************************/
  100.         /*  (1)  */
  101.         /*******************************************************************************************/
  102.         $tab 1;
  103.         if(array_key_exists($tab $tabContentArray)){ echo tc($tab,$tabContentArray);
  104.             /*----------------------------------------------------------------------------------------*/?>
  105.             <section class="tabContent">
  106.                 <p class="hl">Optionale Einstellung:</p>
  107.                 <?php $element 'artikel'?>
  108.                 <div id="<?= $element ?>">
  109.                     <?php
  110.                     echo $this->backendHelper()->createMultiselect($this$element, array(
  111.                         'abstand-top' => 'Abstand nach oben',
  112.                         'abstand-bottom' => 'Abstand nach unten'
  113.                     ), 'none');
  114.                     ?>
  115.                 </div>
  116.             </section>
  117.         <?php /*--------------------------------------------------------------------------------*/?>
  118.         <?php
  119.         /*******************************************************************************************/
  120.         /*  (2)  */
  121.         /*******************************************************************************************/
  122.         $tab 2;
  123.         if(array_key_exists($tab $tabContentArray)){ echo tc($tab,$tabContentArray);
  124.             /*----------------------------------------------------------------------------------------*/?>
  125.             <section class="tabContent">
  126.                 <strong style="display:block;padding-left:37px;margin-bottom:6px;">Headline (H1)</strong>
  127.                 <div class="schreiben"><span class="parentbox" style="background-color:#fff"><?php echo $this->textarea("title_h1", array("width" => 520)) ?></span></div>
  128.                 <br /><br />
  129.                 <strong style="display:block;padding-left:37px;margin-bottom:6px;">Text unter Headline ()</strong>
  130.                 <div class="schreiben"><span class="parentbox" style="background-color:#fff">
  131.                     <?=$this->wysiwyg('text-wysiwyg', array(
  132.                         "height" => 100,
  133.                         "width" => 735,
  134.                         "customConfig" => "/bundles/app/static/backend/js/ckeditor/documents/text-wysiwyg.js"
  135.                         //"contentsCss" => "/plugins/Progfb_Project/static/css/editmode/editmode-wysiwyg.css"
  136.                     ));?>
  137.                     </span></div>
  138.                 <br /><br />
  139.             </section>
  140.         <?php /*--------------------------------------------------------------------------------*/?>
  141.     </div>
  142.     <?php echo $this->template("AppBundle::Includes/backend-fuss.html.php"); 
  143.     
  144.     }
  145.     ?>
  146. #}