{extends "index.tpl"}

{block "content"}
   {block "tpl-vars"}
      {$tpl_vars.articles_v = $cfg.tpl.articles.version}
   {/block}

   {if $tpl_vars.articles_v == 2}
      {include "articles/articles.v2.tpl"}
   {else}
      <h1>{$view->getTitle()}</h1>
      <div class="row news-list">
         {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}
      </div>
      {if $body.pager.count > 1}
         {include "components/pager.tpl" pager=$body.pager}
      {/if}
   {/if}
{/block}
