0byt3m1n1
Path:
/
data
/
applications
/
aps
/
tikiwiki
/
14.1-0
/
standard
/
htdocs
/
templates
/
modules
/
[
Home
]
File: mod-shoutbox.tpl
{* $Id: mod-shoutbox.tpl 55326 2015-05-04 15:14:14Z anbumania $ *} {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} <form action="#" method="post" onsubmit="return verifyForm(this);" id="shout_form"> {if !empty($shout_error)}<div class="highlight">{$shout_error}</div>{/if} <div class="text-center"> <textarea rows="3" class="form-control form-group tshoutbox" id="shout_msg" name="shout_msg"></textarea> {if $prefs.feature_antibot eq 'y' && $user eq ''} <table>{include file="antibot.tpl"}</table> {/if} {if $prefs.feature_socialnetworks eq 'y' && $user neq ''} {if $prefs.socialnetworks_twitter_consumer_key neq '' && $tweet} <div><input type="hidden" name="tweet" value="-1" /><input type="checkbox" name="shout_tweet" value='1' /> {tr}Tweet with Twitter{/tr}</div> {/if} {if $prefs.socialnetworks_facebook_application_id neq '' && $facebook} <div><input type="hidden" name="facebook" value="-1" /><input type="checkbox" name="shout_facebook" value='1' /> {tr}Post on my Facebook wall{/tr}</div> {/if} {/if} <input type="submit" class="btn btn-default btn-sm" id="shout_send" name="shout_send" value="{$buttontext}" /> </div> </form> {/if} {section loop=$shout_msgs name=ix} <div class="shoutboxmodmsg"> {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? *} <b>{strip}{$userlink|replace:"\" href=":"<br /><em>{tr}Shout date:{/tr} $cdate</em>\" href="}{/strip}</b>: {else} <b>{strip}{$userlink}{/strip}</b>, {$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'} [<a onclick="removeShout({$shout_msgs[ix].msgId});return false" href="#" class="linkmodule tips" title="|{tr}Delete this shout{/tr}">x</a>|<a href="tiki-shoutbox.php?msgId={$shout_msgs[ix].msgId}" class="linkmodule tips" title="|{tr}Edit this shout{/tr}">e</a>] {else} [<a href="tiki-shoutbox.php?remove={$shout_msgs[ix].msgId}" class="linkmodule">x</a>|<a href="tiki-shoutbox.php?msgId={$shout_msgs[ix].msgId}" class="linkmodule">e</a>] {/if} {/if} </div> {/section} <div style="text-align: center"> <a href="tiki-shoutbox.php" class="linkmodule more">{tr}Read More{/tr}…</a> </div> {/tikimodule} {/if}