{ifmodule INDEXED_FILTER}
   <div data-reload="h1">
      {block 'category-h1'}<h1>{$view->getTitle()}</h1>{/block}
      {if getAdminUser()}
      <script>
         var $wpjToolbar_a = $('#adminEditIndexed');
         {$url = $view->getIndexedFilterAdminUrl()}
         {if $url}
            $wpjToolbar_a.attr('href', '{$url nofilter}');
            $wpjToolbar_a.parent().show();
         {else}
            $wpjToolbar_a.attr('href', '');
            $wpjToolbar_a.parent().hide();
         {/if}
      </script>
      {/if}
   </div>
   {block 'category-descr'}
   <div data-reload="category-descr">
      {foreach $body.category.blocks as $block}
         {$block|inline_edit nofilter}
      {/foreach}
   </div>
   {/block}
{/ifmodule}
<div data-reload="products">
   {if $body.productsList|count}
      {get_stats type='free_delivery' assign='free_delivery'}

      {block "products-list"}
         {$isB2BUser = $ctrl->isType('b2b') scope='global'}

         {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-md-4 col-xs-6 col-xxs-12"}
         {/if}

         {if $body.pager.count > 1}
            {include "components/pager.tpl" pager=$body.pager load_button=true}
         {/if}
      {/block}
   {else}
      <div class="alert alert-info" role="alert">
         {t}Žádný produkt{/t}
      </div>
   {/if}
   {include "filter/block.filter.script.ajax.tpl"}
</div>

{include "filter/filter.total.tpl"}

<span data-reload="pagerTotal-focus">{t}Zobrazit{/t}&nbsp;{$body.pager.total}&nbsp;{t plural="produkty" plural5="produktů" count=$body.pager.total}produkt{/t}</span>

{block "ajax-end"}{/block}
