experimental new notifications - needs pconfig experimental_notif set to 1 for your channel to work.

This commit is contained in:
Mario Vavti
2017-10-08 17:19:29 +02:00
parent 71c206fdb9
commit 991db280be
51 changed files with 383 additions and 23 deletions

View File

@@ -62,10 +62,12 @@ EOT;
if($banner === false)
$banner = get_config('system','sitename');
//the notifications template is in hdr.tpl
App::$page['header'] .= replace_macros(get_markup_template('hdr.tpl'), array(
//we could additionally use this to display important system notifications e.g. for updates
));
if(! get_pconfig(local_channel(), 'system', 'experimental_notif')) {
//the notifications template is in hdr.tpl
App::$page['header'] .= replace_macros(get_markup_template('hdr.tpl'), array(
//we could additionally use this to display important system notifications e.g. for updates
));
}
$techlevel = get_account_techlevel();
@@ -269,6 +271,7 @@ EOT;
App::$page['nav'] .= replace_macros($tpl, array(
'$baseurl' => z_root(),
'$experimental_notif' => get_pconfig(local_channel(), 'system', 'experimental_notif'),
'$fulldocs' => t('Help'),
'$sitelocation' => $sitelocation,
'$nav' => $x['nav'],
@@ -287,7 +290,8 @@ EOT;
'$channel_apps' => $channel_apps,
'$addapps' => t('Add Apps'),
'$orderapps' => t('Arrange Apps'),
'$sysapps_toggle' => t('Toggle System Apps')
'$sysapps_toggle' => t('Toggle System Apps'),
'$loc' => $myident
));
if(x($_SESSION, 'reload_avatar') && $observer) {