first commit
This commit is contained in:
38
web/templates/kupkolo/article.tpl
Normal file
38
web/templates/kupkolo/article.tpl
Normal file
@@ -0,0 +1,38 @@
|
||||
{extends "index.tpl"}
|
||||
|
||||
{block "canonical"}
|
||||
{if $header.canonical_url !== false}
|
||||
<link rel="canonical" href="{get_canonical_url}">
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{block content}
|
||||
<h1 class="article-title">{$body.article.title}</h1>
|
||||
{block 'article-date'}
|
||||
{if $body.article.date}<p class="article-date">{$body.article.date|date_format:"%e.%-m.%Y"}</p>{/if}
|
||||
{/block}
|
||||
|
||||
{block 'article-content'}
|
||||
{if $body.article.body}
|
||||
<div class="row article-content">
|
||||
<div class="col-xs-12">
|
||||
{$body.article.body.body nofilter}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
{block 'article-gallery'}
|
||||
{if $body.article.photos|count}
|
||||
<div class="row article-gallery">
|
||||
{foreach $body.article.photos as $photo}
|
||||
<div class="col-lg-2 col-md-3 col-sm-4 col-xs-6">
|
||||
<a href="{get_photo photo=$photo.img size=0}" class="thumbnail" rel="gallery">
|
||||
<img src="{get_photo photo=$photo.img size=4}" alt="{$photo.img.descr}" class="img-responsive">
|
||||
</a>
|
||||
</div>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{/block}
|
||||
Reference in New Issue
Block a user