first commit
This commit is contained in:
25
web/templates/x/articles.tpl
Normal file
25
web/templates/x/articles.tpl
Normal file
@@ -0,0 +1,25 @@
|
||||
{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}
|
||||
Reference in New Issue
Block a user