{* $Id$ *} {if $tiki_p_view_shoutbox eq 'y'} {tikimodule title=$tpl_module_title name="shoutbox" flip=$module_params.flip decorations=$module_params.decorations nobox=$module_params.nobox notitle=$module_params.notitle} {if $tiki_p_post_shoutbox eq 'y'} {js_maxlength textarea=shout_msg maxlength=255}
{if !empty($shout_error)}
{$shout_error}
{/if}
{if $prefs.feature_antibot eq 'y' && $user eq ''} {include file="antibot.tpl"}
{/if} {if $prefs.feature_socialnetworks eq 'y' && $user neq ''} {if $prefs.socialnetworks_twitter_consumer_key neq '' && $tweet}
{tr}Tweet with Twitter{/tr}
{/if} {if $prefs.socialnetworks_facebook_application_id neq '' && $facebook}
{tr}Post on my Facebook wall{/tr}
{/if} {/if}
{/if} {section loop=$shout_msgs name=ix}
{assign var=userlink value=$shout_msgs[ix].user|userlink:"linkmodule"} {capture name=date}{strip} {* Print date *} {$shout_msgs[ix].timestamp|tiki_short_time}, {$shout_msgs[ix].timestamp|tiki_short_date} {/strip}{/capture} {* Show user message in style according to 'tooltip' module parameter *} {assign var=cdate value=$smarty.capture.date} {if $tooltip == 1}{* TODO: Improve $userlink modifier one day to handle other attibutes better? *} {strip}{$userlink|replace:"\" href=":"<br /><em>{tr}Shout date:{/tr} $cdate</em>\" href="}{/strip}: {else} {strip}{$userlink}{/strip}, {$cdate}: {/if} {$shout_msgs[ix].message} {if $tiki_p_admin_shoutbox eq 'y' || $user == $shout_msgs[ix].user} {if 0 and $prefs.feature_ajax eq 'y'} [icon name="delete"} {icon name="edit"} {else} {icon name="delete"} {icon name="edit"} {/if} {/if}
{/section}
{tr}Read More{/tr}…
{/tikimodule} {/if}