81 lines
4.6 KiB
Smarty
81 lines
4.6 KiB
Smarty
{* SHOW PUBLIC VERSION OF ACTIVITY LIST *}
|
|
|
|
{* ACTIVITY FEED PREFERENCES *}
|
|
<div class="header">{lang_print id=737}<span class="activityspan">{if $setting.setting_actions_preference == 1} <div class="styled-select floatleft ninetywide"><select onchange="document.location.href='home-ajax.php?show='+this.options[this.selectedIndex].value+'&membersonline={$smarty.get.membersonline}'">
|
|
<option value="5" {if $show==5}selected="selected"{/if}>Everyone</option>
|
|
<option value="4" {if $show==4}selected="selected"{/if}>Friends</option>
|
|
|
|
</select></div> <a href='javascript:actionprefs();' style='color:#fff;'>{lang_print id=1070}</a>{/if}</span></div>
|
|
{if $actions|@count == 0}
|
|
<table class="activityfeedempty"><tr><td>Activity Feed is Empty</td></tr></table><br />
|
|
{/if}
|
|
|
|
{if $setting.setting_actions_preference == 1}
|
|
{* DIV FOR SPECIFYING ACTION PREFERENCES *}
|
|
<div style='display: none;' id='actionprefs'>
|
|
<div style='margin-top: 10px;'>{lang_print id=1069}</div>
|
|
<br />
|
|
<form action='actionsettings_home_js.php' method='post' target='ajaxframe'>
|
|
<table cellpadding='0' cellspacing='0'>
|
|
{section name=actiontypes_loop loop=$actiontypes}
|
|
|
|
{if $actiontypes[actiontypes_loop].actiontype_id!=28}
|
|
<tr>
|
|
<td>
|
|
<input type='checkbox' name='actiontype[]' id='actiontype_id_{$actiontypes[actiontypes_loop].actiontype_id}' value='{$actiontypes[actiontypes_loop].actiontype_id}'{if $actiontypes[actiontypes_loop].actiontype_selected == 1} checked='checked'{/if} />
|
|
<label for='actiontype_id_{$actiontypes[actiontypes_loop].actiontype_id}'>{lang_print id=$actiontypes[actiontypes_loop].actiontype_desc}</label>
|
|
</td>
|
|
</tr>
|
|
{/if}
|
|
{/section}
|
|
</table>
|
|
<br />
|
|
<input type='submit' class='button' value='{lang_print id=173}' />
|
|
<input type='button' class='button' value='{lang_print id=39}' onClick='parent.TB_remove();' />
|
|
<input type='hidden' name='task' value='save_actionprefs' />
|
|
</form>
|
|
</div>
|
|
|
|
|
|
|
|
{/if}
|
|
{* JAVACRIPT FOR SPECIFYING ACTION PREFERENCES *}
|
|
{literal}
|
|
<script type="text/javascript">
|
|
<!--
|
|
function actionprefs()
|
|
{
|
|
TB_show('{/literal}{lang_print id=1068}{literal}', '#TB_inline?height=250&width=300&inlineId=actionprefs', '', '../images/trans.gif');
|
|
}
|
|
//-->
|
|
</script>
|
|
{/literal}
|
|
{if $actions|@count > 0}
|
|
<div class='portal_whatsnew'>
|
|
{* RECENT ACTIVITY ADVERTISEMENT BANNERS *}
|
|
{if $ads->ad_feed != ""}
|
|
<div class='portal_action' style='display: block; visibility: visible; padding-bottom: 10px;'>{$ads->ad_feed}</div>
|
|
{/if}
|
|
{* SHOW ACTIONS *}
|
|
{section name=actions_loop loop=$actions max=40}
|
|
<div id='action_{$actions[actions_loop].action_id}' class='portal_action{if $smarty.section.actions_loop.first}_top{/if}'>
|
|
<table cellpadding='0' cellspacing='0'>
|
|
<tr>
|
|
<td valign='top'><!--<img src='./images/icons/{$actions[actions_loop].action_icon}' border='0' class='icon' alt='' />--></td>
|
|
<td valign='top' width='100%'>
|
|
{assign var='action_date' value=$datetime->time_since($actions[actions_loop].action_date)}
|
|
<div class='portal_action_date'>{lang_sprintf id=$action_date[0] 1=$action_date[1]}</div>
|
|
{assign var='action_media' value=''}
|
|
{if $actions[actions_loop].action_media !== FALSE}{capture assign='action_media'}{section name=action_media_loop loop=$actions[actions_loop].action_media}<a href='{$actions[actions_loop].action_media[action_media_loop].actionmedia_link}'><img src='{$actions[actions_loop].action_media[action_media_loop].actionmedia_path}' border='0' width='{$actions[actions_loop].action_media[action_media_loop].actionmedia_width}' class='recentaction_media' alt='' /></a>{/section}{/capture}{/if}
|
|
{if $actions[actions_loop].action_actiontype_id==26}{$actions[actions_loop].actionmedia_id}{/if}
|
|
{if $actions[actions_loop].action_actiontype_id==13}{$actions[actions_loop].actionmedia_id}{/if}
|
|
{lang_sprintf assign=action_text id=$actions[actions_loop].action_text args=$actions[actions_loop].action_vars}
|
|
{$action_text|replace:"[media]":$action_media|choptext:150:"<br>"}
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
{/section}
|
|
</div>
|
|
<div class='portal_spacer'></div>
|
|
{/if} |