{extends "../window.tpl"} {block js} {$smarty.block.parent} {/block} {block tabs} {windowTab id='flapSection'} {windowTab id='flapBlocks'} {if findModule('sections_lead')} {windowTab id='flapLead'} {/if} {if findModule("products_parameters") && !findModule('components')} {windowTab id='flapSearch'} {/if} {windowTab id='flapSeo' label='flapSeo'|translate:'seo'} {if findModule('feeds')} {windowTab id='flapXML'} {/if} {if $body.acn == 'edit' && $body.data.id > 0} {windowTab id='flapProducts'} {/if} {if $body.acn == 'edit' && findModule("photos")} {windowTab id='flapPhotos' label="{'flapPhotos'|translate}"} {/if} {/block} {block tabsContent}
{if $module.PRODUCTS_SECTIONS__ANNOTATION}
{/if}
{* todo new autocomplete *}
{$figures = ['Y' => {'figureY'|translate}, 'N' => {'figureN'|translate}, 'O' => {'figureO'|translate}]} {print_select name="data[figure]" var=$figures selected=$body.data.figure}
{print_select name="data[priority]" selected=$body.data.priority|default:0 var=[-1 => {'priority_minor'|translate}, 0 => {'priority_normal'|translate}, 1 => {'priority_major'|translate}]}
{print_toggle value=$body.data.show_in_search name="show_in_search"}
{print_toggle name="behaviour"}
{if $body.acn =="edit" && !empty($body.data.photo)} {else}
{'sectionPhotoNote'|translate}
{/if}
{block "custom-data"}{/block} {ifmodule SLIDERS} {$positions = KupShop\ContentBundle\Util\SliderUtil::getPositions()}

{'sliderTitle'|translate}

{foreach $positions as $position => $positionName}
{/foreach}
{/ifmodule}

{'orderby_default'|translate}

{print_toggle nameRaw="data[data][enable_sort_by_in_store]" value=$body.data.data.enable_sort_by_in_store|default:$dbcfg.sort_in_cat_by_in_store}
{print_toggle nameRaw="data[data][enable_sort_by_product_position]" value=$body.data.data.enable_sort_by_product_position|default:'Y'}
{ifmodule PRODUCTS_SECTIONS__TOP_PRODUCT}
{print_toggle nameRaw="data[data][first_top_as_double_tile]" value=$body.data.data.first_top_as_double_tile}
{/ifmodule} {if $cfg.Sections.Flags}
{foreach $cfg.Sections.Flags as $key => $flag}
{/foreach}
{/if} {if $cfg.tpl.submenu_product} {if !$body.sections[0]} {* produkt v menu u root sekce *}
{/if} {/if} {if isSuperuser()}

Šablona

{else} {/if} {block 'sections-own-fields'} {/block}
{include "utils/blocks.tpl" identifiers=$cfg.Blocks.identifiers blocks=$body.data.blocks photos=$body.data.photos acn=$body.acn editLink=$body.sectionURL} {include "utils/blocksHistory.tpl"}
{if findModule('sections_lead')}

{'sectionLead'|translate}

{'sectionLeadDescr'|translate}

{insert_wysiwyg target="data[lead_text]"}
{/if} {if {find_module name="products_parameters"} && !{find_module name="components"}}

{'sectionSearchDescr'|translate}

{block "sections-filter-own-fields"}{/block}
{ifmodule PRODUCERS}
{print_toggle name="producers_filter"}
{ifmodule INDEXED_FILTER}
{/ifmodule} {/ifmodule}
{ifmodule LABELS}
{print_toggle name="labels_filter"}
{/ifmodule}
{'filterParamName'|translate}
{'filterEnable'|translate}
{foreach from=$body.parameters item=parameter key=key}
{$parameter.name} {$unit = $parameter.unit|replace:'|':', '} {if $unit != ""} [{$unit}] {/if}
{if $parameter.checked} {$value = 'Y'} {else} {$value = 'N'} {/if} {print_toggle nameRaw="data[param][`$key`][use]" value=$value}
{ifmodule INDEXED_FILTER}
{/ifmodule}
{/foreach}
{if {find_module name="products_variations"}}
{'filterVariationName'|translate}
{'filterEnable'|translate}
{ifmodule INDEXED_FILTER}
{/ifmodule} {ifmodule CONVERTORS}
{'filterVariationConvertor'|translate}
{/ifmodule}
{foreach from=$body.variants item=variant key=key}
{$variant.label}
{* todo toggle *} {*{print_toggle nameRaw="{"data[variants][{$key}][use]"}" onOff=1 value={$variant.checked|default:0}}*}
{ifmodule INDEXED_FILTER}
{/ifmodule} {ifmodule CONVERTORS}
{/ifmodule}
{/foreach}
{/if}
{/if} {* ifmodule PRODUCTS_PARAMETERS *}

{'flapSeo'|translate:'seo'}

{'maxLength70'|translate:'seo'}
{if findModule('products_sections', 'custom_url')}
{/if}
{assign var="metaDescriptionLength" value=160} {if $body.data.meta_description|count_characters:true > 160} {assign var="metaDescriptionLength" value=250} {/if} {"maxLength$metaDescriptionLength"|translate:"seo"}
{block 'seo-own-fields'}{/block}
{ifmodule INDEXED_FILTER}

{'Filtering'|translate:'filters'}

{/ifmodule}
{if findModule('feeds')}

{'flapXML'|translate}

{/if} {if {find_module name="photos"}}
{if $body.acn == "edit"} {else}
{'saveToAddImg'|translate:'base'}
{/if}
{/if} {if $body.acn =="edit"}
{/if} {/block} {block buttonsRight append} {/block}