41 lines
1.6 KiB
Smarty
Executable File
41 lines
1.6 KiB
Smarty
Executable File
|
|
<!-- Block psblog module -->
|
|
{if $posts_list && $posts_list|@count > 0}
|
|
<div class="block posts_block blog_{$block_type}">
|
|
<h4>
|
|
|
|
{if $posts_conf.rss_active}<a href="{$posts_rss_url}" title="RSS"><img src="{$modules_dir}psblog/img/rss.png" alt="RSS" /></a>{/if}
|
|
|
|
<a href="{$linkPosts}" title="{$posts_title}">{$posts_title}</a></h4>
|
|
|
|
<div class="block_content list-block">
|
|
|
|
<ul>
|
|
{foreach from=$posts_list item=post name=posts_list}
|
|
|
|
<li {if $smarty.foreach.posts_list.last}class="last_item"{elseif $smarty.foreach.posts_list.first}class="first_item"{/if} >
|
|
|
|
{if $post.default_img && $posts_conf.block_display_img}
|
|
|
|
<a class="post_img" href="{$post.link}"><img src="{$posts_img_path}list/{$post.default_img_name}" width="{$posts_conf.img_block_width}" /></a>
|
|
|
|
{/if}
|
|
|
|
<div class="post_title">
|
|
<h5><a href="{$post.link}">{$post.title}</a></h5>
|
|
{if $posts_conf.block_display_date && $post.date_on != "" && $post.date_on != "0000-00-00"}
|
|
<span>{dateFormat date=$post.date_on|escape:'html':'UTF-8' full=0}</span>
|
|
{/if}
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</li>
|
|
{/foreach}
|
|
</ul>
|
|
|
|
<p><a href="{$linkPosts}" title="{l s='View all posts' mod='psblog'}">{l s='View all posts' mod='psblog'} »</a></p>
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
<!-- /Block psblog module --> |