72 lines
2.5 KiB
Smarty
72 lines
2.5 KiB
Smarty
{extends "index.tpl"}
|
|
|
|
{block "meta-description"}
|
|
<meta name="description" content="{t sekce=$body.title}Nejnovější články z rubriky {sekce}.{/t}">
|
|
{/block}
|
|
|
|
{block "breadcrumbs"}{/block}
|
|
|
|
{block "content"}
|
|
<div class="row">
|
|
<div class="col-xl-10 col-xl-offset-1 col-xxs-12">
|
|
<div class="articles-page-header">
|
|
<div>
|
|
<p class="lead">{t}Co se právě děje{/t}</p>
|
|
<h1>{if $body.title == "Články"}{t}Napsali jsme{/t}{else}{$body.title}{/if}</h1>
|
|
</div>
|
|
{block "article-sections"}
|
|
{insert_article_sections template="components/block.articles.sections.tpl" id_top_section=$cfg.blog_section_id|default:7 active_id=$body.id}
|
|
{/block}
|
|
</div>
|
|
<div class="news-list">
|
|
{if $body.articles|count}
|
|
<div class="row articles-row">
|
|
{foreach $body.articles as $article}
|
|
{include 'block.articles.large.tpl' article=$article is_large_article=($article@iteration == 1 and $body.pager.number == 1)}
|
|
|
|
{if $article@iteration == 1}
|
|
{include 'components/block.articles-side.tpl'}
|
|
{/if}
|
|
{/foreach}
|
|
</div>
|
|
{else}
|
|
<div class="alert alert-info">
|
|
{t}V sekci se nenacházejí žádné články.{/t}
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
{if $body.pager.count > 1}
|
|
<div class="articles-pager-wrapper">
|
|
{include "components/pager.tpl" pager=$body.pager}
|
|
</div>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
|
|
|
|
{*
|
|
<h1 class="text-center m-b-2">{if $body.title == "Články"}{t}Napsali jsme{/t}{else}{$body.title}{/if}</h1>
|
|
<div class="text-center m-b-2">
|
|
{foreach $body.subCat as $category}
|
|
{if $category@first}
|
|
<h2 class="display-inline p-r-2 hidden-xs-down">{t}Téma{/t}:</h2>
|
|
{/if}
|
|
<a href="{url s='articles' IDb=$category.id}" class="btn-tag btn-tag-lg">
|
|
{$category.title}
|
|
</a>
|
|
{/foreach}
|
|
</div>
|
|
<div class="row news-list">
|
|
{if count($body.articles) > 0}
|
|
{include "block.articles.tpl" articles=$body.articles}
|
|
{else}
|
|
<div class="alert alert-info" role="alert">
|
|
{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}*}
|
|
{/block}
|