return login();
$notif_tpl = get_markup_template('notifications.tpl');
-
+
$not_tpl = get_markup_template('notify.tpl');
require_once('include/bbcode.php');
$r = q("SELECT * from notify where uid = %d and seen = 0 order by date desc",
intval(local_user())
);
-
+
if (count($r) > 0) {
foreach ($r as $it) {
$notif_content .= replace_macros($not_tpl,array(
} else {
$notif_content .= t('No more system notifications.');
}
-
- $includes = array(
- '$common_tabs' => 'common_tabs.tpl',
- );
- $includes = set_template_includes($a->theme['template_engine'], $includes);
- $o .= replace_macros($notif_tpl,$includes + array(
+ $o .= replace_macros($notif_tpl, array(
'$notif_header' => t('System Notifications'),
- '$tabs_data' => '', // $tabs,
+ '$tabs' => '', // $tabs,
'$notif_content' => $notif_content,
));