{% if editmode %}
{{ include('includes/backend-kopf.html.twig') }}
{% set tabContentArray = {1: 'Optional', 2: 'Content'} %}
{% set tab = 1 %}
<div id="content">
{% if tabContentArray is defined and tab in tabContentArray|keys %}
{{ admin_tabs(tab, tabContentArray) | raw }}
{% endif %}
<section class="tabContent">
<p class="hl">Optionale Einstellung:</p>
{% set element = 'artikel' %}
<div id="{{ element }} ">
{{ pimcore_multiselect(element, {
'width': 200,
'height': 100,
'store': [
['abstand-top', 'Abstand nach oben'],
['abstand-bottom', 'Abstand nach unten']
]
}) }}
</div>
</section>
{% if tabContentArray is defined and 2 in tabContentArray|keys %}
{{ admin_tabs(2, tabContentArray) | raw }}
<section class="tabContent">
<strong style="display:block;padding-left:37px;margin-bottom:6px;">Headline (H1)</strong>
<div class="schreiben"><span class="parentbox" style="background-color:#fff">
{{ pimcore_textarea("title_h1", {"width":520 }) }}
</span>
</div>
<br /><br />
<strong style="display:block;padding-left:37px;margin-bottom:6px;">Text unter Headline ()</strong>
<div class="schreiben"><span class="parentbox" style="background-color:#fff">
{{ pimcore_wysiwyg("text-wysiwyg", {
"height": 100,
"width": 735,
"customConfig": "/bundles/app/static/backend/js/ckeditor/documents/text-wysiwyg.js"
})
}}
</span></div>
<br /><br />
</section>
{% endif %}
</div>
{{ include('includes/backend-fuss.html.twig') }}
{% else %}
{% set abstand_top_class = (checkMultiselect(pimcore_multiselect("artikel"),'abstand-top') == true)? ' abstand-top' : '' %}
{% set abstand_bottom_class = (checkMultiselect(pimcore_multiselect("artikel"),'abstand-bottom') == true)? ' abstand-bottom' : '' %}
{% set abstandClasses = abstand_top_class ~ abstand_bottom_class %}
<div class="page-title {{ abstandClasses }}">
{% set h1 = changeTextarea(pimcore_textarea("title_h1")) %}
{% set h1 = h1 | replace({"|": "­"}) %}
{% if pimcore_textarea("title_h1") is not empty %}
<h1 class="font-bold title">{{ h1 | raw }}</h1>
{# <div class="title-container">#}
{# #}
{# <hr class="deco-underline"/>#}
{# </div>#}
{% endif %}
{% if pimcore_wysiwyg("text-wysiwyg").getData() is not empty %}
<div class="text-justify copy font-size-large font-light constrainer-inner edgepadding">
{{ pimcore_wysiwyg("text-wysiwyg").getData() | raw }}
</div>
{% endif %}
</div>
{% endif %}
{#
<?php
if (!$this->editmode)
{
/* Not Editmode +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */
/*
************************************************
* M O D U L : C O N T E N T - T I T L E
************************************************
*
*/
$abstand_top_class = ($this->frontendHelper()->checkMultiselect($this->input("artikel"),'abstand-top') === true)? ' abstand-top' : '';
$abstand_bottom_class = ($this->frontendHelper()->checkMultiselect($this->input("artikel"),'abstand-bottom') === true)? ' abstand-bottom' : '';
$abstandClasses = $abstand_top_class.$abstand_bottom_class;
?>
<div class="page-title<?=$abstandClasses?>">
<?php $h1 = $this->frontendHelper()->changeTextarea($this->textarea("title_h1")); $h1 = str_replace('|','­',$h1); ?>
<?php if(!$this->textarea("title_h1")->isEmpty()){?><?php echo PHP_EOL . "\t\t\t\t"?><h1 class="font-bold"><?=$h1?></h1>
<hr class="deco-underline"/><?php }?>
<?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;}?>
</div>
<?php } else {
/* ############################################################ Editmode ############################################################ */
echo $this->template("AppBundle::Includes/backend-kopf.html.php");
$tabContentArray = array(
1 => 'Optional',
2 => 'Content'
);
?>
<div id="content">
<?php
/*******************************************************************************************/
/* (1) */
/*******************************************************************************************/
$tab = 1;
if(array_key_exists($tab , $tabContentArray)){ echo tc($tab,$tabContentArray);
/*----------------------------------------------------------------------------------------*/?>
<section class="tabContent">
<p class="hl">Optionale Einstellung:</p>
<?php $element = 'artikel'; ?>
<div id="<?= $element ?>">
<?php
echo $this->backendHelper()->createMultiselect($this, $element, array(
'abstand-top' => 'Abstand nach oben',
'abstand-bottom' => 'Abstand nach unten'
), 'none');
?>
</div>
</section>
<?php } /*--------------------------------------------------------------------------------*/?>
<?php
/*******************************************************************************************/
/* (2) */
/*******************************************************************************************/
$tab = 2;
if(array_key_exists($tab , $tabContentArray)){ echo tc($tab,$tabContentArray);
/*----------------------------------------------------------------------------------------*/?>
<section class="tabContent">
<strong style="display:block;padding-left:37px;margin-bottom:6px;">Headline (H1)</strong>
<div class="schreiben"><span class="parentbox" style="background-color:#fff"><?php echo $this->textarea("title_h1", array("width" => 520)) ?></span></div>
<br /><br />
<strong style="display:block;padding-left:37px;margin-bottom:6px;">Text unter Headline ()</strong>
<div class="schreiben"><span class="parentbox" style="background-color:#fff">
<?=$this->wysiwyg('text-wysiwyg', array(
"height" => 100,
"width" => 735,
"customConfig" => "/bundles/app/static/backend/js/ckeditor/documents/text-wysiwyg.js"
//"contentsCss" => "/plugins/Progfb_Project/static/css/editmode/editmode-wysiwyg.css"
));?>
</span></div>
<br /><br />
</section>
<?php } /*--------------------------------------------------------------------------------*/?>
</div>
<?php echo $this->template("AppBundle::Includes/backend-fuss.html.php");
}
?>
#}