You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
2.1 KiB

{strip}
{tikimodule error=$module_params.error title=$tpl_module_title name="forums_last_posts" flip=$module_params.flip decorations=$module_params.decorations notitle=$module_params.notitle}
{modules_list list=$modForumsLastPosts nonums=$nonums}
{section name=ix loop=$modForumsLastPosts}
<li>
<a class="linkmodule tips" href="{$modForumsLastPosts[ix].href}" title="{$modForumsLastPosts[ix].name|escape} |
{if $date eq 'n'}
{if empty($module_params.time) or $module_params.time eq 'y'}
{$modForumsLastPosts[ix].date|tiki_short_datetime:'':'n'}
{else}
{$modForumsLastPosts[ix].date|tiki_short_date:'n'}
{/if}
{/if}
{if $author eq 'n'}
{if $date eq 'n'}, {tr}by{/tr} {else}{tr}By{/tr} {/if}
{if $modForumsLastPosts[ix].user ne ''}{$modForumsLastPosts[ix].user}{else}{tr}Anonymous{/tr}{/if}
{/if}
{if !empty($modForumsLastPosts[ix].title) ne ''}
{if $date eq 'n' or $author eq 'n'} - {/if}
{$modForumsLastPosts[ix].title}
{/if}">
{$modForumsLastPosts[ix].name|escape}
</a>
{if $author eq 'y'}<span class="author"> {tr}by{/tr} {$modForumsLastPosts[ix].user|username}</span>{/if}
{if $date eq 'y'}{if $author eq 'y'}<span class="comma">, </span>{/if}
<span class="date">{if empty($module_params.time) or $module_params.time eq 'y'}
{$modForumsLastPosts[ix].date|tiki_short_datetime}
{else}
{$modForumsLastPosts[ix].date|tiki_short_date}
{/if}</span>
{/if}
</li>
{/section}
{/modules_list}
{/tikimodule}
{/strip}