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

32 lines
1.4 KiB
Smarty
Executable File

<!-- Block psblog module -->
{if $posts_list && $posts_list|@count > 0}
<div class="clear"></div>
<div id="posts_home" class="block">
<h4>{$posts_title} <span><a href="{$linkPosts}">{l s='All posts' mod='psblog'}</a> &nbsp; {if $posts_conf.rss_active}<a href="{$posts_rss_url}" title="RSS"><img src="{$modules_dir}psblog/img/rss.png" alt="RSS" /></a>{/if}</span></h4>
<div class="block_content">
<ul>
{foreach from=$posts_list item=post name=posts_list}
<li class="{if $smarty.foreach.posts_list.last}last_item{elseif $smarty.foreach.posts_list.first}first_item{/if}">
{if $post.default_img}
<div class="img_default">
<a href="{$post.link}" title="{$post.title}">
<img src="{$posts_img_path}list/{$post.default_img_name}" width="{$posts_conf.img_list_width}" alt="{$post.title}" />
</a>
</div>
{/if}
<div class="{if $post.default_img} detail_left {else} detail_large {/if}">
<h3><a href="{$post.link}" title="{$post.title}">{$post.title}</a></h3>
{if $posts_conf.block_display_date}<span>{dateFormat date=$post.date_on|escape:'html':'UTF-8' full=0}</span>{/if}
<div class="excerpt">{$post.excerpt|strip_tags:'UTF-8'|truncate:152:'...'}</div>
</div>
<div class="clear"></div>
</li>
{/foreach}
</ul>
</div>
</div>
{/if}
<!-- /Block psblog module -->