Move links submenu and add image and style. tiquet: #2960

(cherry picked from commit 25a3e09895)
This commit is contained in:
m-lopez-f 2015-11-17 12:20:34 +01:00
parent f49ab98890
commit 58b6373592
4 changed files with 26 additions and 14 deletions

View File

@ -384,6 +384,23 @@ if (check_acl ($config['id_user'], 0, "PM")) {
}
}
$menu_godmode["links"]["text"] = __('Links');
$menu_godmode["links"]["sec2"] = "";
$menu_godmode["links"]["id"] = "god-links";
$sub = array ();
$rows = db_get_all_rows_in_table('tlink', 'name');
foreach ($rows as $row) {
// Audit //meter en extensiones
$sub[$row['link']]["text"] = $row['name'];
$sub[$row['link']]["id"] = $row['name'];
$sub[$row['link']]["type"] = 'direct';
$sub[$row['link']]["subtype"] = 'new_blank';
}
$menu_godmode["links"]["sub"] = $sub;
if (!$config['pure']) {
menu_print_menu ($menu_godmode);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -190,7 +190,11 @@ li:hover ul { display: block; }
}
#icon_god-extensions {
background: url(../../images/builder.menu.png) no-repeat 50% 50%;
}
#icon_god-links {
border-top: 4px solid !important;
border-color: #777;
background: #333 url(../../images/links.menu.png) no-repeat 50% 50%;
}
#subicon_god-setup {
@ -207,6 +211,10 @@ li:hover ul { display: block; }
top: -72px;
}
#subicon_god-links {
top: -130px;
}
#menu_container {
z-index: 3;
position: absolute;

View File

@ -410,18 +410,6 @@ if (check_acl ($config['id_user'], 0, "AR")) {
$sub["operation/servers/recon_view"]["refr"] = 0;
}
$sub['link']["text"] = __("Links");
$sub['link']["id"] = "Links";
$rows = db_get_all_rows_in_table('tlink', 'name');
foreach ($rows as $row) {
// Audit //meter en extensiones
$sub2[$row['link']]["text"] = $row['name'];
$sub2[$row['link']]["type"] = 'direct';
$sub2[$row['link']]["subtype"] = 'new_blank';
}
$sub["link"]["sub2"] = $sub2;
foreach ($config["extensions"] as $extension) {
//If no operation_menu is a godmode extension
if ($extension["operation_menu"] == '') {
@ -488,7 +476,6 @@ if (check_acl ($config['id_user'], 0, "AR")) {
$operation_menu_array = $menu_operation;
if(!$config['pure']) {
menu_print_menu ($menu_operation, true);
}