mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Added notification messages on menu
This commit is contained in:
parent
cf157c70c1
commit
9fbeab4975
@ -404,6 +404,13 @@ foreach ($rows as $row) {
|
|||||||
|
|
||||||
$menu_godmode["links"]["sub"] = $sub;
|
$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']) {
|
if (!$config['pure']) {
|
||||||
menu_print_menu ($menu_godmode);
|
menu_print_menu ($menu_godmode);
|
||||||
}
|
}
|
||||||
|
BIN
pandora_console/images/um_messages.menu.png
Normal file
BIN
pandora_console/images/um_messages.menu.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 474 B |
@ -403,6 +403,10 @@ function menu_print_menu (&$menu) {
|
|||||||
$padding_top = ( $length >= 18) ? 6 : 12;
|
$padding_top = ( $length >= 18) ? 6 : 12;
|
||||||
|
|
||||||
$output .= '<div id="title_menu" style="color:#FFF; padding-top:'. $padding_top . 'px; display:none;">' . $main["text"] . '</div>';
|
$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;
|
$padding_top = 0;
|
||||||
$length = 0;
|
$length = 0;
|
||||||
//$output .= html_print_image("include/styles/images/toggle.png", true, array("class" => "toggle", "alt" => "toogle"));
|
//$output .= html_print_image("include/styles/images/toggle.png", true, array("class" => "toggle", "alt" => "toogle"));
|
||||||
|
@ -196,6 +196,10 @@ li:hover ul { display: block; }
|
|||||||
border-color: #777;
|
border-color: #777;
|
||||||
background: url(../../images/links.menu.png) no-repeat 50% 50%;
|
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 {
|
#subicon_god-setup {
|
||||||
top: -140px;
|
top: -140px;
|
||||||
@ -215,6 +219,10 @@ li:hover ul { display: block; }
|
|||||||
top: -130px;
|
top: -130px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#subicon_god-um_messages {
|
||||||
|
top: -300px;
|
||||||
|
}
|
||||||
|
|
||||||
#menu_container {
|
#menu_container {
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@ -222,6 +230,22 @@ li:hover ul { display: block; }
|
|||||||
background-color: #AAA;
|
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 {
|
ul {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user