{extends_parent}

{block "css-entry" append}
   {encore_entry_link_tags entry='articles'}
{/block}

{block "breadcrumbs-wrapper"}
   <div class="row">
      <div class="col-xxl-offset-1 col-xxl-10 col-xxs-12 articles-breadcrumbs">
         {include "components/breadcrumbs.tpl" home="{t}Úvodní strana{/t}"}
      </div>
   </div>
{/block}

{block "content"}
   <div class="articles-wrapper" data-filter="wrapper">
      <div class="row">
         <div class="col-xxl-offset-1 col-xxl-10 col-xxs-12">
            <div class="articles-page-header">
               <h1>{$view->getTitle()}</h1>
               {include "articles/block.articles.filter.tpl"}
            </div>
         </div>
      </div>

      <div data-reload="articles">
         {if $body.articles|count}
            {include "block.articles.tpl" articles=$body.articles}
         {else}
            <div class="alert alert-info">
               {t}V sekci se nenacházejí žádné články.{/t}
            </div>
         {/if}

         {if $body.pager.count > 1}
            {include "components/pager.tpl" pager=$body.pager show_arrows=true}
         {/if}
      </div>
   </div>
{/block}

{block "js-entry" append}
   {encore_entry_script_tags entry='articles'}
{/block}
