diff --git a/e107_core/shortcodes/batch/admin_shortcodes.php b/e107_core/shortcodes/batch/admin_shortcodes.php index 7ea91d7e4..58f1c0b42 100644 --- a/e107_core/shortcodes/batch/admin_shortcodes.php +++ b/e107_core/shortcodes/batch/admin_shortcodes.php @@ -1955,6 +1955,7 @@ Inverse 10 10 // MAIN LINK + /* if($parm != 'no-main') { $menu_vars = array(); @@ -1963,7 +1964,7 @@ Inverse 10 10 $menu_vars['adminhome']['image'] = "".ADLAN_151.""; $menu_vars['adminhome']['image_src'] = ADLAN_151; $menu_vars['adminhome']['perm'] = ''; - } + }*/ //ALL OTHER ROOT LINKS - temporary data transformation - data structure will be changed in the future and this block will be removed diff --git a/e107_handlers/sitelinks_class.php b/e107_handlers/sitelinks_class.php index 3dbef143b..62f7ee45b 100644 --- a/e107_handlers/sitelinks_class.php +++ b/e107_handlers/sitelinks_class.php @@ -1392,7 +1392,7 @@ i.e-cat_users-32{ background-position: -555px 0; width: 32px; height: 32px; } { $text = $tmpl['start']; } - + //FIXME - e_parse::array2sc() /* $search = array(); $search[0] = '/\{LINK_TEXT\}(.*?)/si'; @@ -1450,7 +1450,10 @@ i.e-cat_users-32{ background-position: -555px 0; width: 32px; height: 32px; } $rid = str_replace(array(' ', '_'), '-', $act).($id ? "-{$id}" : ''); //XXX && !is_numeric($act) ??? - if (($active_page == (string) $act)|| (str_replace("?", "", e_PAGE.e_QUERY) == str_replace("?", "", $act))) + if (($active_page == (string) $act) + || (str_replace("?", "", e_PAGE.e_QUERY) == str_replace("?", "", $act)) + || e_REQUEST_HTTP === $e107_vars[$act]['link'] + ) { $temp = $tmpl['button_active'.$kpost]; } @@ -1458,7 +1461,9 @@ i.e-cat_users-32{ background-position: -555px 0; width: 32px; height: 32px; } { $temp = $tmpl['button'.$kpost]; } - + + // e107::getDebug()->log($e107_vars[$act]['link']); + // $temp = $tmpl['button'.$kpost]; // echo "ap = ".$active_page; // echo " act = ".$act."

"; @@ -1883,7 +1888,8 @@ i.e-cat_users-32{ background-position: -555px 0; width: 32px; height: 32px; } { if($removeOnly) { - $data['link_url'] = array_shift(explode('#?', $data['link_url'], 2)); + $arr = explode('#?', $data['link_url'], 2); + $data['link_url'] = array_shift($arr); return null; } @@ -2233,6 +2239,7 @@ class navigation_shortcodes extends e_shortcode foreach($this->var['link_sub'] as $val) { $active = (e107::getNav()->isActive($val, $this->activeSubFound, true)) ? "_active" : ""; + $this->setVars($val); // isActive is allowed to alter data $tmpl = !empty($val['link_sub']) ? varset($this->template['submenu_loweritem'.$active]) : varset($this->template['submenu_item'.$active]); $text .= e107::getParser()->parseTemplate($tmpl, TRUE, $this); diff --git a/e107_themes/bootstrap3/admin_style.css b/e107_themes/bootstrap3/admin_style.css index 8b7a1beca..58bf7f88c 100644 --- a/e107_themes/bootstrap3/admin_style.css +++ b/e107_themes/bootstrap3/admin_style.css @@ -457,8 +457,11 @@ ul#e-status i { -o-filter: grayscale(100%); filter: grayscale(100%); filter: gray; /* IE 6-9 */ + opacity: 0.6 } +ul.navbar-nav li ul.dropdown-menu > li.active a img, +ul.navbar-nav li ul.dropdown-menu > li.active a i, ul.navbar-nav li ul.dropdown-menu a:hover i, ul.navbar-nav li ul.dropdown-menu a:hover img, ul#e-latest a:hover img, @@ -471,6 +474,7 @@ ul#e-status a:hover i -moz-filter: none; -ms-filter: none; -o-filter: none; + opacity: 1; } td.options { }