first commit
This commit is contained in:
30
web/templates/koza/articles.tpl
Normal file
30
web/templates/koza/articles.tpl
Normal file
@@ -0,0 +1,30 @@
|
||||
{extends "index.tpl"}
|
||||
|
||||
{block "body-content"}
|
||||
<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 "block.pager.tpl" pager=$body.pager}
|
||||
{/if}
|
||||
{/block}
|
||||
Reference in New Issue
Block a user