wrapper('online_menu/'.$mode);
if(deftrue('BOOTSTRAP'))
{
$ONLINE_TEMPLATE = e107::getTemplate('online', 'online_menu', $mode);
}
else
{
// legacy default ------------------------
global $sc_style;
$sc_style['ONLINE_GUESTS']['pre'] = "
".LAN_ONLINE_1;
$sc_style['ONLINE_GUESTS']['post'] = "";
$sc_style['ONLINE_MEMBERS']['pre'] = "".LAN_ONLINE_2;
$sc_style['ONLINE_MEMBERS']['post'] = "";
$sc_style['ONLINE_MEMBERS_LIST']['pre'] = "";
$sc_style['ONLINE_MEMBERS_LIST']['post'] = "
";
$sc_style['ONLINE_MEMBERS_LIST_EXTENDED']['pre'] = "";
$sc_style['ONLINE_MEMBERS_LIST_EXTENDED']['post'] = "
";
$sc_style['ONLINE_ONPAGE']['pre'] = "".LAN_ONLINE_3;
$sc_style['ONLINE_ONPAGE']['post'] = "";
$sc_style['ONLINE_MEMBER_TOTAL']['pre'] = "".LAN_ONLINE_2;
$sc_style['ONLINE_MEMBER_TOTAL']['post'] = "";
$sc_style['ONLINE_MEMBER_NEWEST']['pre'] = "".LAN_ONLINE_6;
$sc_style['ONLINE_MEMBER_NEWEST']['post'] = "";
$sc_style['ONLINE_MOST']['pre'] = LAN_ONLINE_8;
$sc_style['ONLINE_MOST']['post'] = "
";
$sc_style['ONLINE_MOST_MEMBERS']['pre'] = LAN_ONLINE_2;
$sc_style['ONLINE_MOST_MEMBERS']['post'] = "";
$sc_style['ONLINE_MOST_GUESTS']['pre'] = "".LAN_ONLINE_1;
$sc_style['ONLINE_MOST_GUESTS']['post'] = ", ";
$sc_style['ONLINE_MOST_DATESTAMP']['pre'] = "".LAN_ONLINE_9;
$sc_style['ONLINE_MOST_DATESTAMP']['post'] = "";
$ONLINE_TEMPLATE['enabled'] = "
";
//##### ONLINE TRACKING DISABLED ----------------------------------------------
$ONLINE_TEMPLATE['disabled'] = "{ONLINE_TRACKING_DISABLED}";
//##### ONLINE MEMBER LIST EXTENDED -------------------------------------------
$ONLINE_TEMPLATE['online_members_list_extended'] = "{SETIMAGE: w=40}{ONLINE_MEMBER_IMAGE=avatar}{ONLINE_MEMBER_USER} ".LAN_ONLINE_7." {ONLINE_MEMBER_PAGE}";
if (is_readable(THEME.'templates/online/online_menu_template.php'))
{
require(THEME.'templates/online/online_menu_template.php');
}
elseif (is_readable(THEME.'online_menu_template.php'))
{
require(THEME.'online_menu_template.php');
}
else
{
require(e_PLUGIN.'online/templates/online_menu_template.php');
}
}
$online_shortcodes->memberTemplate = $ONLINE_TEMPLATE['online_members_list_extended'];
$online_shortcodes->newestTemplate = $ONLINE_TEMPLATE['online_member_newest'];
//if(!defined('e_TRACKING_DISABLED') && varsettrue($pref['track_online']))
if(!defined('e_TRACKING_DISABLED'))
{
$text = $tp->parseTemplate($ONLINE_TEMPLATE['enabled'], TRUE, $online_shortcodes);
}
else
{
if (ADMIN)
{
$text = $tp->parseTemplate($ONLINE_TEMPLATE['disabled'], TRUE, $online_shortcodes);
}
else
{
return;
}
}
$img = (is_readable(THEME.'images/online_menu.png') ? "
" : '');
$caption = $img.' '.vartrue($menu_pref['online_caption'], LAN_ONLINE_4);
if (getperms('1'))
{
$path = e_PLUGIN_ABS."online/config.php?iframe=1";
$caption .= "";
}
e107::getRender()->tablerender($caption, $text, 'online_extended');