{extends_parent}

{block 'category-descr'}
   <div data-reload="category-descr">
      <div class="category-description">
          {$body.category.blocks[0]|inline_edit nofilter}

          {if $body.category.blocks[1] and $body.category.blocks[1].content|strip_tags|count_characters}
             <a href="#category-description" class="read-more-link" data-scrollto>{t}Číst více{/t}</a>
          {/if}
      </div>
   </div>
   <div data-reload="producer-descr">
      <div class="category-description">
          {$body.producer.blocks['descr']|inline_edit nofilter}

          {if $body.producer.blocks['long_descr'] and $body.producer.blocks['long_descr'].content|strip_tags|count_characters}
             <a href="#category-description" class="read-more-link" data-scrollto>{t}Číst více{/t}</a>
          {/if}
      </div>
   </div>
{/block}

{block 'products-list'}
   {$isB2BUser = ({is_znz_b2b_shop} and $ctrl.dealer == 'Y')}
   {if $body.listShow == '2' and $isB2BUser}
      {include "block-products/block.products.b2b-list.tpl" products=$body.productsList}
   {else}
      {include "block.products.tpl" products=$body.productsList catalog_class="col-xl-3 col-md-4 col-xxs-6"}
   {/if}
   {if $body.pager.count > 1}
      {$loader_text = "{t}Zobrazit další produkty{/t}"}
      {include "components/pager.tpl" pager=$body.pager load_button=true show_arrows=true}
   {/if}
{/block}

{block "ajax-end"}
    {if $body.pager.count > 1}
        {include "components/pager.top.tpl" pager=$body.pager}
    {/if}
{/block}
