{extends "../window.tpl"} {block tabs} {windowTab id='Bannery' label="Bannery"} {if {find_module name="products_sections"} && $body.acn == "edit"} {windowTab id='flapRelation' label={'flapRelation'|translate:'parameters'}} {/if} {/block} {block tabsContent}
Bannery
{if isSuperuser()}
{/if}

{if $body.data.size and !$body.data.size_tablet and !$body.data.size_mobile}
{'bannerSizeNote'|translate} {$body.data.size} {'pixels'|translate}
{/if}
{foreach array_merge([[]], $body.images) as $key => $image} {/foreach}
{include "utils/pager.tpl"}
{if empty($body.images)} {/if}
{if {find_module name="products_sections"} && $body.acn == "edit"}
{$positions = KupShop\ContentBundle\Util\SliderUtil::getPositions()}
{'sectionName'|translate:'sliders'}
{foreach $positions as $position => $positionName}
{/foreach}
{'sectionTags'|translate:'sliders'}
{foreach $body.data.slider_sections as $sliderSection} {$sectionId = $sliderSection.id}
{$sliderSection.name}
{if strcasecmp($sliderSection.name, $sliderSection.full_path)}{$sliderSection.full_path}{/if}
{foreach $positions as $position => $_} {$sliderPosition = $sliderSection.positions[$position]} {/foreach}
{foreach $sliderSection.badges as $badge} {$badge.title = $badge.translate_key|translate:'sections'} {/foreach}
{/foreach}
{/if} {/block}