mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
Fix for admin navigation active sublink.
This commit is contained in:
@@ -1955,6 +1955,7 @@ Inverse 10 <span class="badge badge-inverse">10</span>
|
||||
|
||||
|
||||
// MAIN LINK
|
||||
/*
|
||||
if($parm != 'no-main')
|
||||
{
|
||||
$menu_vars = array();
|
||||
@@ -1963,7 +1964,7 @@ Inverse 10 <span class="badge badge-inverse">10</span>
|
||||
$menu_vars['adminhome']['image'] = "<img src='".E_16_NAV_MAIN."' alt='".ADLAN_151."' class='icon S16' />";
|
||||
$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
|
||||
|
||||
|
@@ -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."<br /><br />";
|
||||
@@ -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);
|
||||
|
@@ -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 { }
|
||||
|
Reference in New Issue
Block a user