Added notification messages on menu

This commit is contained in:
fermin831 2016-06-09 18:54:59 +02:00
parent 4990d43d18
commit 26c34bf3cd
4 changed files with 35 additions and 0 deletions

View File

@ -426,6 +426,13 @@ foreach ($rows as $row) {
$menu_godmode["links"]["sub"] = $sub;
if (license_free() && check_acl ($config['id_user'], 0, "PM")) {
$menu_godmode["messages"]["text"] = __('Update manager');
$menu_godmode["messages"]["sec2"] = "";
$menu_godmode["messages"]["id"] = "god-um_messages";
$menu_godmode["messages"]["notification"] = 6;
}
if (!$config['pure']) {
menu_print_menu ($menu_godmode);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 474 B

View File

@ -403,6 +403,10 @@ function menu_print_menu (&$menu) {
$padding_top = ( $length >= 18) ? 6 : 12;
$output .= '<div id="title_menu" style="color:#FFF; padding-top:'. $padding_top . 'px; display:none;">' . $main["text"] . '</div>';
// Add the notification ball if defined
if (isset($main["notification"])) {
$output .= '<div class="notification_ball">' . $main["notification"] . '</div>';
}
$padding_top = 0;
$length = 0;
//$output .= html_print_image("include/styles/images/toggle.png", true, array("class" => "toggle", "alt" => "toogle"));

View File

@ -196,6 +196,10 @@ li:hover ul { display: block; }
border-color: #777;
background: url(../../images/links.menu.png) no-repeat 50% 50%;
}
#icon_god-um_messages {
border-color: #777;
background: url(../../images/um_messages.menu.png) no-repeat 50% 50%;
}
#subicon_god-setup {
top: -140px;
@ -215,6 +219,10 @@ li:hover ul { display: block; }
top: -130px;
}
#subicon_god-um_messages {
top: -300px;
}
#menu_container {
z-index: 3;
position: absolute;
@ -222,6 +230,22 @@ li:hover ul { display: block; }
background-color: #AAA;
}
.notification_ball {
margin-top: 2px;
margin-left: 29px;
font-size: 6pt;
font-weight: 900;
background: red;
height: 12px;
width: 12px;
border-radius: 50px;
position: absolute;
text-align: center;
color: white;
padding-top: 1px;
font-family: sans-serif;
}
ul {
margin: 0;
padding: 0;