Serveur preprod f0c0c48223 first push
2016-04-14 16:14:31 +02:00

29 lines
941 B
Smarty
Executable File

{if $blog_archives && $blog_archives|@count > 0}
<div class="posts_archives_block block blog_{$block_type}">
<h4>
{if $blog_conf.rss_active}<a href="{$posts_rss_url}" title="RSS"><img src="{$modules_dir}psblog/img/rss.png" alt="RSS" /></a>{/if}
&nbsp; {l s='Blog archives' mod='psblog'}
</h4>
<div class="block_content list-block">
<ul>
{foreach from=$blog_archives key=y item=val name=blog_archive_years}
{if isset($val.months) && $val.months|is_array && $val.months|@count > 0}
{foreach from=$val.months key=m item=month name=blog_archive_months}
<li><a href="{$linkPosts}y={$y}&m={$m}" class="posts_month">{$month.name} ({$month.nb})</a></li>
{/foreach}
{else}
<li><a href="{$linkPosts}y={$y}" class="posts_year">{$y} ({$val.nb})</a>
{/if}
{/foreach}
</ul>
</div>
</div>
{/if}