aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2016-01-06 20:51:29 +0100
committerAlex Legler <alex@a3li.li>2016-01-06 20:51:29 +0100
commit5999034c0ab9262cd59921e1e84200999e757664 (patch)
tree98304d33f0fefdcdb450b69aa84ece972b3d8aa9 /TyrianTemplate.php
parentAdapt to MediaWiki 1.26 (diff)
downloadskin-tyrian-5999034c0ab9262cd59921e1e84200999e757664.tar.gz
skin-tyrian-5999034c0ab9262cd59921e1e84200999e757664.tar.bz2
skin-tyrian-5999034c0ab9262cd59921e1e84200999e757664.zip
Adapt to changes in Echo
Diffstat (limited to 'TyrianTemplate.php')
-rw-r--r--TyrianTemplate.php18
1 files changed, 13 insertions, 5 deletions
diff --git a/TyrianTemplate.php b/TyrianTemplate.php
index d35ddcf..c698a87 100644
--- a/TyrianTemplate.php
+++ b/TyrianTemplate.php
@@ -333,7 +333,8 @@ class TyrianTemplate extends BaseTemplate {
/*************************************************************************************************/
function personaltools() {
$personal_tools = $this->getPersonalTools();
- $notification_tool = NULL;
+ $notifications_message_tool = NULL;
+ $notifications_alert_tool = NULL;
?>
<li class="dropdown">
@@ -350,8 +351,11 @@ class TyrianTemplate extends BaseTemplate {
<ul class="dropdown-menu" role="menu">
<?php
foreach ( $personal_tools as $key => $item ) {
- if ($key === 'notifications') {
- $notification_tool = $item;
+ echo $key;
+ if ($key === 'notifications-alert') {
+ $notifications_alert_tool = $item;
+ } else if ($key === 'notifications-message') {
+ $notifications_message_tool = $item;
} else {
echo $this->makeListItem( $key, $item );
}
@@ -361,8 +365,12 @@ class TyrianTemplate extends BaseTemplate {
</li>
<?php
- if (!is_null($notification_tool)) {
- echo $this->makeListItem('notifications', $notification_tool);
+ if (!is_null($notifications_message_tool)) {
+ echo $this->makeListItem('notifications-message', $notifications_message_tool);
+ }
+
+ if (!is_null($notifications_alert_tool)) {
+ echo $this->makeListItem('notifications-alert', $notifications_alert_tool);
}
}