aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2018-11-27 14:41:08 -0500
committerBrian Evans <grknight@gentoo.org>2018-11-27 14:41:08 -0500
commitb9f04897e5cbeadea6f724d1ce7df5a2f038dc8f (patch)
tree51284570a19e474f886ddd0a9890be14d5973e5d /TyrianTemplate.php
parentAdd alternate name for new PageForms (diff)
downloadskin-tyrian-b9f04897e5cbeadea6f724d1ce7df5a2f038dc8f.tar.gz
skin-tyrian-b9f04897e5cbeadea6f724d1ce7df5a2f038dc8f.tar.bz2
skin-tyrian-b9f04897e5cbeadea6f724d1ce7df5a2f038dc8f.zip
Attempt to allow mediawiki to handle the Echo locations dynamically
Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'TyrianTemplate.php')
-rw-r--r--TyrianTemplate.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/TyrianTemplate.php b/TyrianTemplate.php
index 4be0530..6287925 100644
--- a/TyrianTemplate.php
+++ b/TyrianTemplate.php
@@ -334,8 +334,6 @@ class TyrianTemplate extends BaseTemplate {
/*************************************************************************************************/
function personaltools() {
$personal_tools = $this->getPersonalTools();
- $notifications_message_tool = NULL;
- $notifications_alert_tool = NULL;
?>
<li class="dropdown">
@@ -356,6 +354,8 @@ class TyrianTemplate extends BaseTemplate {
$notifications_alert_tool = $item;
} else if ($key === 'notifications-message') {
$notifications_message_tool = $item;
+ } else if ($key === 'notifications-notice') {
+ $notifications_notice_tool = $item;
} else {
echo $this->makeListItem( $key, $item );
}
@@ -365,11 +365,15 @@ class TyrianTemplate extends BaseTemplate {
</li>
<?php
- if (!is_null($notifications_message_tool)) {
+ if (isset($notifications_message_tool)) {
echo $this->makeListItem('notifications-message', $notifications_message_tool);
}
- if (!is_null($notifications_alert_tool)) {
+ if (isset($notifications_notice_tool)) {
+ echo $this->makeListItem('notifications-notice', $notifications_notice_tool);
+ }
+
+ if (isset($notifications_alert_tool)) {
echo $this->makeListItem('notifications-alert', $notifications_alert_tool);
}
}