From 4036ad255497912c4c45560db1ca114a470ed6f7 Mon Sep 17 00:00:00 2001 From: Fabrixxm Date: Wed, 24 Jun 2015 09:49:53 +0200 Subject: [PATCH 1/7] Fix desktop notification use on/off field for enable/disable desktop notification show only new notifications after enable use localstorage to save enabled/disalbed and last notification id hide settings on browsers without desktop notification --- js/main.js | 64 ++++++++++++++++++++---------- mod/settings.php | 4 +- view/templates/settings.tpl | 51 +++++++++++++++++++++++- view/theme/quattro/dark/style.css | 6 +++ view/theme/quattro/green/style.css | 6 +++ view/theme/quattro/lilac/style.css | 6 +++ view/theme/quattro/quattro.less | 2 +- 7 files changed, 113 insertions(+), 26 deletions(-) diff --git a/js/main.js b/js/main.js index 25029c1b05..8a37961a79 100644 --- a/js/main.js +++ b/js/main.js @@ -75,14 +75,14 @@ setupFieldRichtext(); /* popup menus */ - function close_last_popup_menu() { - if(last_popup_menu) { - last_popup_menu.hide(); - last_popup_button.removeClass("selected"); - last_popup_menu = null; - last_popup_button = null; - } - } + function close_last_popup_menu() { + if(last_popup_menu) { + last_popup_menu.hide(); + last_popup_button.removeClass("selected"); + last_popup_menu = null; + last_popup_button = null; + } + } $('a[rel^=#]').click(function(e){ e.preventDefault(); var parent = $(this).parent(); @@ -105,7 +105,7 @@ return false; }); $('html').click(function() { - close_last_popup_menu(); + close_last_popup_menu(); }); // fancyboxes @@ -181,24 +181,33 @@ nnm = $("#nav-notifications-menu"); nnm.html(notifications_all + notifications_mark); //nnm.attr('popup','true'); - eNotif.children("note").each(function(){ + + var notification_lastitem = localStorage.getItem("notification-lastitem"); + var notification_id = 0; + + eNotif.children("note").each(function(){ e = $(this); text = e.text().format(""+e.attr('name')+""); html = notifications_tpl.format(e.attr('href'),e.attr('photo'), text, e.attr('date'), e.attr('seen')); nnm.append(html); - if(e.text().search('→') == 0) { - var notification = new Notification(document.title, { - body: e.text().replace('→ ',''), - icon: e.attr('photo') - }); - - // TODO (yet unsupported by most browsers): - // Implement notification.onclick() - - // notifyMarkAll(); - } + notification_id = e.attr('href').match(/\d+$/)[0]; + + if (notification_lastitem!== null && notification_id>notification_lastitem) { + notification_lastitem = notification_id; + if (getNotificationPermission()==="granted") { + var notification = new Notification(document.title, { + body: e.text().replace('→ ','').format(e.attr('name')), + icon: e.attr('photo') + }); + // TODO (yet unsupported by most browsers): + // Implement notification.onclick() + } + } + }); + if (notification_lastitem===null) notification_lastitem = notification_id; + localStorage.setItem("notification-lastitem", notification_lastitem) $("img[data-src]", nnm).each(function(i, el){ // Add src attribute for images with a data-src attribute @@ -762,3 +771,16 @@ function previewTheme(elm) { }); } + +// notification permission settings in localstorage +// set by settings page +function getNotificationPermission() { + if (window.Notification === undefined) { + return null; + } + if (Notification.permission === 'granted') { + return localStorage.getItem('notification-permissions'); + } else { + return Notification.permission; + } +} diff --git a/mod/settings.php b/mod/settings.php index a003401dff..9d2e287157 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -1207,9 +1207,7 @@ function settings_content(&$a) { '$notify7' => array('notify7', t('You are tagged in a post'), ($notify & NOTIFY_TAGSELF), NOTIFY_TAGSELF, ''), '$notify8' => array('notify8', t('You are poked/prodded/etc. in a post'), ($notify & NOTIFY_POKE), NOTIFY_POKE, ''), - '$desktop_notifications' => t('Activate desktop notifications'), - '$desktop_notifications_note' => t('Note: This is an experimental feature, as being not supported by each browser'), - '$desktop_notifications_success_message' => t('You will now receive desktop notifications!'), + '$desktop_notifications' => array('desktop_notifications', t('Activate desktop notifications') , false, t('Show desktop popup on new notifications')), '$email_textonly' => array('email_textonly', t('Text-only notification emails'), get_pconfig(local_user(),'system','email_textonly'), diff --git a/view/templates/settings.tpl b/view/templates/settings.tpl index 95ee0f6fbc..26c44f91c3 100644 --- a/view/templates/settings.tpl +++ b/view/templates/settings.tpl @@ -133,12 +133,61 @@ {{include file="field_intcheckbox.tpl" field=$notify8}} +{{include file="field_checkbox.tpl" field=$email_textonly}} + + + +{{include file="field_yesno.tpl" field=$desktop_notifications}} + diff --git a/view/theme/quattro/dark/style.css b/view/theme/quattro/dark/style.css index 865e9b5f5e..8160e22816 100644 --- a/view/theme/quattro/dark/style.css +++ b/view/theme/quattro/dark/style.css @@ -514,6 +514,7 @@ header { margin: 0px; padding: 0px; /*width: 100%; height: 12px; */ + z-index: 110; color: #ffffff; } @@ -846,6 +847,7 @@ aside .posted-date-selector-months { overflow: auto; height: auto; /*.contact-block-div { width:60px; height: 60px; }*/ + } #contact-block .contact-block-h4 { float: left; @@ -927,6 +929,7 @@ aside .posted-date-selector-months { margin-bottom: 2em; /*.action .s10 { width: 10px; overflow: hidden; padding: 0px;} .action .s16 { width: 16px; overflow: hidden; padding: 0px;}*/ + } .widget h3 { padding: 0px; @@ -1208,6 +1211,7 @@ section { height: 32px; margin-left: 16px; /*background: url(../../../images/icons/22/user.png) no-repeat center center;*/ + } .comment-edit-preview .contact-photo-menu-button { top: 15px !important; @@ -1848,6 +1852,7 @@ ul.tabs li .active { display: block; margin-left: 200px; color: #999999; + clear: left; } .field .onoff { float: left; @@ -2077,6 +2082,7 @@ ul.tabs li .active { min-height: 22px; padding-top: 6px; /* a { display: block;}*/ + } #photo-caption { display: block; diff --git a/view/theme/quattro/green/style.css b/view/theme/quattro/green/style.css index 7a9326c671..61c49b168a 100644 --- a/view/theme/quattro/green/style.css +++ b/view/theme/quattro/green/style.css @@ -514,6 +514,7 @@ header { margin: 0px; padding: 0px; /*width: 100%; height: 12px; */ + z-index: 110; color: #ffffff; } @@ -846,6 +847,7 @@ aside .posted-date-selector-months { overflow: auto; height: auto; /*.contact-block-div { width:60px; height: 60px; }*/ + } #contact-block .contact-block-h4 { float: left; @@ -927,6 +929,7 @@ aside .posted-date-selector-months { margin-bottom: 2em; /*.action .s10 { width: 10px; overflow: hidden; padding: 0px;} .action .s16 { width: 16px; overflow: hidden; padding: 0px;}*/ + } .widget h3 { padding: 0px; @@ -1208,6 +1211,7 @@ section { height: 32px; margin-left: 16px; /*background: url(../../../images/icons/22/user.png) no-repeat center center;*/ + } .comment-edit-preview .contact-photo-menu-button { top: 15px !important; @@ -1848,6 +1852,7 @@ ul.tabs li .active { display: block; margin-left: 200px; color: #999999; + clear: left; } .field .onoff { float: left; @@ -2077,6 +2082,7 @@ ul.tabs li .active { min-height: 22px; padding-top: 6px; /* a { display: block;}*/ + } #photo-caption { display: block; diff --git a/view/theme/quattro/lilac/style.css b/view/theme/quattro/lilac/style.css index baaa44c0a3..d5821671d7 100644 --- a/view/theme/quattro/lilac/style.css +++ b/view/theme/quattro/lilac/style.css @@ -514,6 +514,7 @@ header { margin: 0px; padding: 0px; /*width: 100%; height: 12px; */ + z-index: 110; color: #ffffff; } @@ -846,6 +847,7 @@ aside .posted-date-selector-months { overflow: auto; height: auto; /*.contact-block-div { width:60px; height: 60px; }*/ + } #contact-block .contact-block-h4 { float: left; @@ -927,6 +929,7 @@ aside .posted-date-selector-months { margin-bottom: 2em; /*.action .s10 { width: 10px; overflow: hidden; padding: 0px;} .action .s16 { width: 16px; overflow: hidden; padding: 0px;}*/ + } .widget h3 { padding: 0px; @@ -1208,6 +1211,7 @@ section { height: 32px; margin-left: 16px; /*background: url(../../../images/icons/22/user.png) no-repeat center center;*/ + } .comment-edit-preview .contact-photo-menu-button { top: 15px !important; @@ -1848,6 +1852,7 @@ ul.tabs li .active { display: block; margin-left: 200px; color: #999999; + clear: left; } .field .onoff { float: left; @@ -2077,6 +2082,7 @@ ul.tabs li .active { min-height: 22px; padding-top: 6px; /* a { display: block;}*/ + } #photo-caption { display: block; diff --git a/view/theme/quattro/quattro.less b/view/theme/quattro/quattro.less index f29e38fb0e..b8f9726038 100644 --- a/view/theme/quattro/quattro.less +++ b/view/theme/quattro/quattro.less @@ -1197,7 +1197,7 @@ ul.tabs { display: block; margin-left: 200px; color: @FieldHelpColor; - + clear: left; } From cc9da2512bf16e95a36cbc64db2d738e4968fe51 Mon Sep 17 00:00:00 2001 From: Fabrixxm Date: Wed, 24 Jun 2015 10:11:11 +0200 Subject: [PATCH 2/7] move field help text css to global.css --- view/global.css | 5 +++++ view/theme/quattro/dark/style.css | 1 - view/theme/quattro/green/style.css | 1 - view/theme/quattro/lilac/style.css | 1 - view/theme/quattro/quattro.less | 1 - 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/view/global.css b/view/global.css index 0ce3855c58..673dbcd457 100644 --- a/view/global.css +++ b/view/global.css @@ -169,3 +169,8 @@ h6 { span.oembed, h4 { margin: 0px 0px 0px 0px; } + +/* fields help text */ +.field .field_help { + clear: left; +} \ No newline at end of file diff --git a/view/theme/quattro/dark/style.css b/view/theme/quattro/dark/style.css index 8160e22816..7a335ff4bc 100644 --- a/view/theme/quattro/dark/style.css +++ b/view/theme/quattro/dark/style.css @@ -1852,7 +1852,6 @@ ul.tabs li .active { display: block; margin-left: 200px; color: #999999; - clear: left; } .field .onoff { float: left; diff --git a/view/theme/quattro/green/style.css b/view/theme/quattro/green/style.css index 61c49b168a..0fdbbbbbd0 100644 --- a/view/theme/quattro/green/style.css +++ b/view/theme/quattro/green/style.css @@ -1852,7 +1852,6 @@ ul.tabs li .active { display: block; margin-left: 200px; color: #999999; - clear: left; } .field .onoff { float: left; diff --git a/view/theme/quattro/lilac/style.css b/view/theme/quattro/lilac/style.css index d5821671d7..7a0f7e537e 100644 --- a/view/theme/quattro/lilac/style.css +++ b/view/theme/quattro/lilac/style.css @@ -1852,7 +1852,6 @@ ul.tabs li .active { display: block; margin-left: 200px; color: #999999; - clear: left; } .field .onoff { float: left; diff --git a/view/theme/quattro/quattro.less b/view/theme/quattro/quattro.less index b8f9726038..142bdc190a 100644 --- a/view/theme/quattro/quattro.less +++ b/view/theme/quattro/quattro.less @@ -1197,7 +1197,6 @@ ul.tabs { display: block; margin-left: 200px; color: @FieldHelpColor; - clear: left; } From 45497733893ec2f664be414d64ffe32512224bff Mon Sep 17 00:00:00 2001 From: Fabrixxm Date: Wed, 24 Jun 2015 10:56:10 +0200 Subject: [PATCH 3/7] fix desktop notification logic, add onclick handler --- js/main.js | 42 +++++++++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/js/main.js b/js/main.js index 8a37961a79..8de49def03 100644 --- a/js/main.js +++ b/js/main.js @@ -181,33 +181,45 @@ nnm = $("#nav-notifications-menu"); nnm.html(notifications_all + notifications_mark); //nnm.attr('popup','true'); - - var notification_lastitem = localStorage.getItem("notification-lastitem"); - var notification_id = 0; + + var notification_lastitem = localStorage.getItem("notification-lastitem"); + var notification_first_id = 0; - eNotif.children("note").each(function(){ + eNotif.children("note").each(function(){ e = $(this); text = e.text().format(""+e.attr('name')+""); html = notifications_tpl.format(e.attr('href'),e.attr('photo'), text, e.attr('date'), e.attr('seen')); nnm.append(html); - notification_id = e.attr('href').match(/\d+$/)[0]; - - if (notification_lastitem!== null && notification_id>notification_lastitem) { - notification_lastitem = notification_id; + var notification_id = e.attr('href').match(/\d+$/)[0]; + console.log(notification_lastitem, notification_id); + if (notification_lastitem!== null && notification_id!=notification_lastitem) { + console.log( "eh!",getNotificationPermission() ); + if (notification_first_id===0) notification_first_id = notification_id; if (getNotificationPermission()==="granted") { var notification = new Notification(document.title, { body: e.text().replace('→ ','').format(e.attr('name')), - icon: e.attr('photo') + icon: e.attr('photo'), }); - // TODO (yet unsupported by most browsers): - // Implement notification.onclick() + // close notification after 5 secs. + // see https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API/Using_the_Notifications_API#Closing_notifications + setTimeout(notification.close.bind(notification), 5000); + + notification.addEventListener("click", function(ev){ + window.location = ev.target.data; + }); } - } - + } + if (notification_id == notification_lastitem) { + if (notification_first_id===0) notification_first_id = notification_id; + notification_lastitem = null; + } + + }); - if (notification_lastitem===null) notification_lastitem = notification_id; - localStorage.setItem("notification-lastitem", notification_lastitem) + if (notification_first_id!==0) notification_lastitem = notification_first_id; + console.log("end:", notification_lastitem, notification_first_id); + localStorage.setItem("notification-lastitem", notification_lastitem) $("img[data-src]", nnm).each(function(i, el){ // Add src attribute for images with a data-src attribute From d8f69737ab01ad49eeaac253f88fa9c7990bf81a Mon Sep 17 00:00:00 2001 From: Fabrixxm Date: Wed, 24 Jun 2015 11:04:38 +0200 Subject: [PATCH 4/7] remove debug logs --- js/main.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/js/main.js b/js/main.js index 8de49def03..455df9bb09 100644 --- a/js/main.js +++ b/js/main.js @@ -192,9 +192,7 @@ nnm.append(html); var notification_id = e.attr('href').match(/\d+$/)[0]; - console.log(notification_lastitem, notification_id); if (notification_lastitem!== null && notification_id!=notification_lastitem) { - console.log( "eh!",getNotificationPermission() ); if (notification_first_id===0) notification_first_id = notification_id; if (getNotificationPermission()==="granted") { var notification = new Notification(document.title, { @@ -218,7 +216,6 @@ }); if (notification_first_id!==0) notification_lastitem = notification_first_id; - console.log("end:", notification_lastitem, notification_first_id); localStorage.setItem("notification-lastitem", notification_lastitem) $("img[data-src]", nnm).each(function(i, el){ @@ -787,7 +784,7 @@ function previewTheme(elm) { // notification permission settings in localstorage // set by settings page function getNotificationPermission() { - if (window.Notification === undefined) { + if (window["Notification"] === undefined) { return null; } if (Notification.permission === 'granted') { From bd3f29f266958b20d460dd8d63485e69ab844b2e Mon Sep 17 00:00:00 2001 From: Fabrixxm Date: Wed, 24 Jun 2015 11:15:35 +0200 Subject: [PATCH 5/7] remove close timeout --- js/main.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/js/main.js b/js/main.js index 455df9bb09..23e759ef3a 100644 --- a/js/main.js +++ b/js/main.js @@ -184,24 +184,26 @@ var notification_lastitem = localStorage.getItem("notification-lastitem"); var notification_first_id = 0; - + var notification_id; eNotif.children("note").each(function(){ e = $(this); text = e.text().format(""+e.attr('name')+""); html = notifications_tpl.format(e.attr('href'),e.attr('photo'), text, e.attr('date'), e.attr('seen')); nnm.append(html); - var notification_id = e.attr('href').match(/\d+$/)[0]; + notification_id = e.attr('href').match(/\d+$/)[0]; if (notification_lastitem!== null && notification_id!=notification_lastitem) { if (notification_first_id===0) notification_first_id = notification_id; if (getNotificationPermission()==="granted") { + console.log("notification", e.text().replace('→ ','').format(e.attr('name'))); var notification = new Notification(document.title, { body: e.text().replace('→ ','').format(e.attr('name')), icon: e.attr('photo'), + data: e.attr('href') }); // close notification after 5 secs. // see https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API/Using_the_Notifications_API#Closing_notifications - setTimeout(notification.close.bind(notification), 5000); + //setTimeout(notification.close.bind(notification), 5000); notification.addEventListener("click", function(ev){ window.location = ev.target.data; @@ -788,7 +790,9 @@ function getNotificationPermission() { return null; } if (Notification.permission === 'granted') { - return localStorage.getItem('notification-permissions'); + var val = localStorage.getItem('notification-permissions'); + if (val === null) return 'denied'; + return val; } else { return Notification.permission; } From e29d05ce4a2d33d03a72ac190aeab727bb0bc409 Mon Sep 17 00:00:00 2001 From: Fabrixxm Date: Wed, 24 Jun 2015 16:10:06 +0200 Subject: [PATCH 6/7] notifications order, unseen css class ping return notfications ordered by notification id notifications list get seen/unseen class from ping xml global.css define 'notify-unseen' --- js/main.js | 30 ++++++++++------------------ mod/ping.php | 26 ++++++++++++++++-------- view/global.css | 5 ++++- view/theme/quattro/templates/nav.tpl | 2 +- view/theme/vier/templates/nav.tpl | 2 +- 5 files changed, 34 insertions(+), 31 deletions(-) diff --git a/js/main.js b/js/main.js index 23e759ef3a..b812e25089 100644 --- a/js/main.js +++ b/js/main.js @@ -182,42 +182,32 @@ nnm.html(notifications_all + notifications_mark); //nnm.attr('popup','true'); - var notification_lastitem = localStorage.getItem("notification-lastitem"); - var notification_first_id = 0; - var notification_id; + var notification_lastitem = parseInt(localStorage.getItem("notification-lastitem")); + var notification_id = 0; eNotif.children("note").each(function(){ e = $(this); text = e.text().format(""+e.attr('name')+""); html = notifications_tpl.format(e.attr('href'),e.attr('photo'), text, e.attr('date'), e.attr('seen')); nnm.append(html); - - notification_id = e.attr('href').match(/\d+$/)[0]; - if (notification_lastitem!== null && notification_id!=notification_lastitem) { - if (notification_first_id===0) notification_first_id = notification_id; + }); + $(eNotif.children("note").get().reverse()).each(function(){ + e = $(this); + notification_id = parseInt(e.attr('href').match(/\d+$/)[0]); + if (notification_lastitem!== null && notification_id > notification_lastitem) { if (getNotificationPermission()==="granted") { - console.log("notification", e.text().replace('→ ','').format(e.attr('name'))); var notification = new Notification(document.title, { body: e.text().replace('→ ','').format(e.attr('name')), icon: e.attr('photo'), - data: e.attr('href') }); - // close notification after 5 secs. - // see https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API/Using_the_Notifications_API#Closing_notifications - //setTimeout(notification.close.bind(notification), 5000); - + notification['url'] = e.attr('href'); notification.addEventListener("click", function(ev){ - window.location = ev.target.data; + window.location = ev.target.url; }); } } - if (notification_id == notification_lastitem) { - if (notification_first_id===0) notification_first_id = notification_id; - notification_lastitem = null; - } - }); - if (notification_first_id!==0) notification_lastitem = notification_first_id; + notification_lastitem = notification_id; localStorage.setItem("notification-lastitem", notification_lastitem) $("img[data-src]", nnm).each(function(i, el){ diff --git a/mod/ping.php b/mod/ping.php index 97a3070d84..a5f23e1eb9 100644 --- a/mod/ping.php +++ b/mod/ping.php @@ -1,7 +1,7 @@ 0){ foreach ($intros as $i) { - echo xmlize($a->get_baseurl().'/notifications/intros/'.$i['id'], $i['name'], $i['url'], $i['photo'], relative_date($i['datetime']), 'notify-unseen', "→ ".t("{0} wants to be your friend")); + echo xmlize($a->get_baseurl().'/notifications/intros/'.$i['id'], $i['name'], $i['url'], $i['photo'], relative_date($i['datetime']), 'notify-unseen', t("{0} wants to be your friend")); }; } if ($mail>0){ foreach ($mails as $i) { - echo xmlize($a->get_baseurl().'/message/'.$i['id'], $i['from-name'], $i['from-url'], $i['from-photo'], relative_date($i['created']), 'notify-unseen',"→ ".t("{0} sent you a message")); + echo xmlize($a->get_baseurl().'/message/'.$i['id'], $i['from-name'], $i['from-url'], $i['from-photo'], relative_date($i['created']), 'notify-unseen', t("{0} sent you a message")); }; } if ($register>0){ foreach ($regs as $i) { - echo xmlize($a->get_baseurl().'/admin/users/', $i['name'], $i['url'], $i['micro'], relative_date($i['created']), 'notify-unseen', "→ ".t("{0} requested registration")); + echo xmlize($a->get_baseurl().'/admin/users/', $i['name'], $i['url'], $i['micro'], relative_date($i['created']), 'notify-unseen', t("{0} requested registration")); }; } if(count($z)) { foreach($z as $zz) { - echo xmlize($a->get_baseurl() . '/notify/view/' . $zz['id'], $zz['name'],$zz['url'],$zz['photo'],relative_date($zz['date']), ($zz['seen'] ? 'notify-seen' : 'notify-unseen'), ($zz['seen'] ? '' : '→ ') .strip_tags(bbcode($zz['msg']))); + echo xmlize($a->get_baseurl() . '/notify/view/' . $zz['id'], $zz['name'],$zz['url'],$zz['photo'],relative_date($zz['date']), ($zz['seen'] ? 'notify-seen' : 'notify-unseen'), strip_tags(bbcode($zz['msg']))); } } } @@ -322,7 +321,7 @@ function ping_get_notifications($uid) { $offset = 0; $seen = false; $seensql = "NOT"; - $order = ""; + $order = "DESC"; $quit = false; $a = get_app(); @@ -348,6 +347,7 @@ function ping_get_notifications($uid) { $quit = true; else $offset += 50; + foreach ($r AS $notification) { if (is_null($notification["visible"])) @@ -370,11 +370,21 @@ function ping_get_notifications($uid) { $notification["msg"] = substr_replace($notification["msg"],"{0}",$pos,strlen($notification["name"])); if ($notification["visible"] AND !$notification["spam"] AND - !$notification["deleted"] AND !is_array($result[$notification["parent"]])) + !$notification["deleted"] AND !is_array($result[$notification["parent"]])) { $result[$notification["parent"]] = $notification; + } } } while ((count($result) < 50) AND !$quit); + // sort result by $[]['id'], inversed + $sort_function = function($a, $b) { + if ($a['id'] == $b['id']) { + return 0; + } + return ($a['id'] < $b['id']) ? 1 : -1; + }; + usort($result, $sort_function); + return($result); } diff --git a/view/global.css b/view/global.css index 673dbcd457..9bcd302296 100644 --- a/view/global.css +++ b/view/global.css @@ -173,4 +173,7 @@ span.oembed, h4 { /* fields help text */ .field .field_help { clear: left; -} \ No newline at end of file +} + +/* notifications unseen */ +.notify-unseen { background-color: #cceeFF; } \ No newline at end of file diff --git a/view/theme/quattro/templates/nav.tpl b/view/theme/quattro/templates/nav.tpl index 2c646306ad..c77ed99e45 100644 --- a/view/theme/quattro/templates/nav.tpl +++ b/view/theme/quattro/templates/nav.tpl @@ -109,7 +109,7 @@
{{$langselector}}
diff --git a/view/theme/vier/templates/nav.tpl b/view/theme/vier/templates/nav.tpl index ec1be842c6..4ef6400809 100644 --- a/view/theme/vier/templates/nav.tpl +++ b/view/theme/vier/templates/nav.tpl @@ -97,7 +97,7 @@ -{{* - -{{if $nav.logout}}{{$nav.logout.1}} {{/if}} -{{if $nav.login}} {{/if}} - - - -{{if $nav.register}}{{$nav.register.1}}{{/if}} - -{{$nav.help.1}} - -{{if $nav.apps}}{{$nav.apps.1}}{{/if}} - -{{$nav.search.1}} -{{$nav.directory.1}} - -{{if $nav.admin}}{{$nav.admin.1}}{{/if}} - -{{if $nav.notifications}} -{{$nav.notifications.1}} - -{{/if}} -{{if $nav.messages}} -{{$nav.messages.1}} - -{{/if}} - -{{if $nav.manage}}{{$nav.manage.1}}{{/if}} -{{if $nav.settings}}{{$nav.settings.1}}{{/if}} -{{if $nav.profiles}}{{$nav.profiles.1}}{{/if}} - - - - - -*}}