Newer
Older
{assign var=rightSideBar value=$BricksManager->getBricksByArea('rightSidebar', $Site)}
{assign var=prefixContentBricks value=$BricksManager->getBricksByArea('contentPrefix', $Site)}
{assign var=suffixContentBricks value=$BricksManager->getBricksByArea('contentSuffix', $Site)}

Michael Danielczok
committed
{assign var=pageTitle value=$Template->getAttribute('pageTitle')}
{assign var=pageShort value=$Template->getAttribute('settings.pageShortDesc')}
<div class="main-right-sidebar">
<div class="page-multiple-left template-column" role="main">
{if !empty( $prefixContentBricks )}
{foreach from=$prefixContentBricks item=Brick}
{assign var=classes value=QUI\TemplateCologne\Utils::convertBrickCSSClass($Brick->getAttribute('classes'))}
<section class="template-brick-container template-brick-contentPrefix brick-id-{$Brick->getAttribute('id')} {$classes}">
<div class="template-grid-row">
{if $Brick->getAttribute('frontendTitle')}
<h2 class="brick-title">{$Brick->getAttribute('frontendTitle')}</h2>
{/if}
{assign var=showTitle value=$Brick->setSetting('showTitle', false)}
{$Brick->create()}
</div>
</section>

Michael Danielczok
committed
{* $productPage manages header, page title and desc by itself *}
{* $productPage means "quiqqer/products:types/category" or "quiqqer/productsearch:types/search" *}
{* Template Cologne overrides this 2 site types *}
{if !$productPage && ($header == 'beforeContent' || $header == 'hide')}

Michael Danielczok
committed
{if $Site->getAttribute('image_emotion') && $header == 'beforeContent' }
<header class="page-content-header page-content-header-emotion"
style="background-image: url('{image src=$Site->getAttribute('image_emotion') width=1160 onlysrc=1 rewrited=1}')"
>
<div class="page-content-header-emotion-container">
{if $pageTitle == 'header' || $pageTitle == 'both'}

Michael Danielczok
committed
<h1>{$Site->getAttribute('title')|nl2br}</h1>
{/if}
{if $pageShort}
<div class="page-content-emotion-short">
{$Site->getAttribute('short')|nl2br}
</div>

Michael Danielczok
committed
{elseif ($pageTitle == 'header' || $pageTitle == 'both') || $pageShort}
{if $pageTitle == 'header' || $pageTitle == 'both'}

Michael Danielczok
committed
<h1>{$Site->getAttribute('title')|nl2br}</h1>
{/if}
{if $pageShort}
<div class="page-content-emotion-short">
{$Site->getAttribute('short')|nl2br}
</div>
{if !empty( $suffixContentBricks )}
{foreach from=$suffixContentBricks item=Brick}
{assign var=classes value=QUI\TemplateCologne\Utils::convertBrickCSSClass($Brick->getAttribute('classes'))}
<section class="template-brick-container template-brick-contentSuffix brick-id-{$Brick->getAttribute('id')} {$classes}">
<div class="template-grid-row">
{if $Brick->getAttribute('frontendTitle')}
<h2 class="brick-title">{$Brick->getAttribute('frontendTitle')}</h2>
{/if}
{assign var=showTitle value=$Brick->setSetting('showTitle', false)}
{$Brick->create()}
</div>
</section>
<div class="page-multiple-right template-column">
{foreach from=$rightSideBar item=Brick}

Michael Danielczok
committed
<section class="template-brick-container template-brick-rightSidebar brick-id-{$Brick->getAttribute('id')}">
<div class="template-grid-row">
{if $Brick->getAttribute('frontendTitle') &&
$Brick->getType() != 'QUI\Bricks\Controls\Children\Listing'
}
<h2 class="brick-title">{$Brick->getAttribute('frontendTitle')}</h2>
{/if}
{if $Brick->getType() != 'QUI\Bricks\Controls\Children\Listing'}
{assign var=showTitle value=$Brick->setSetting('showTitle', false)}
{/if}
{$Brick->create()}
</div>
</section>