mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 11:50:30 +02:00
Fix for large amount of submenu items in admin menu.
This commit is contained in:
@@ -1347,7 +1347,9 @@ i.e-cat_users-32{ background-position: -555px 0; width: 32px; height: 32px; }
|
||||
$search[7] = '/\{LINK_CLASS\}(.*?)/si';
|
||||
$search[8] = '/\{SUB_CLASS\}(.*?)/si';
|
||||
$search[9] = '/\{LINK_IMAGE\}(.*?)/si';
|
||||
$search[10] = '/\{LINK_DATA\}/si';
|
||||
$search[10] = '/\{LINK_SUB_OVERSIZED\}/si';
|
||||
$search[11] = '/\{LINK_DATA\}/si';
|
||||
|
||||
|
||||
foreach (array_keys($e107_vars) as $act)
|
||||
{
|
||||
@@ -1446,6 +1448,8 @@ i.e-cat_users-32{ background-position: -555px 0; width: 32px; height: 32px; }
|
||||
$replace[9] = varset($e107_vars[$act]['image']);
|
||||
}
|
||||
|
||||
$replace[10] = count($e107_vars[$act]['sub']) > 20 ? 'oversized' : '';
|
||||
|
||||
if(!empty($e107_vars[$act]['link_data']))
|
||||
{
|
||||
|
||||
@@ -1455,10 +1459,12 @@ i.e-cat_users-32{ background-position: -555px 0; width: 32px; height: 32px; }
|
||||
$dataTmp[] = $k.'="'.$v.'"';
|
||||
}
|
||||
|
||||
$replace[10] = implode(" ", $dataTmp); // $e107_vars[$act]['link_data']
|
||||
$replace[11] = implode(" ", $dataTmp); // $e107_vars[$act]['link_data']
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if($rid == 'logout' || $rid == 'home' || $rid == 'language')
|
||||
{
|
||||
@@ -2011,6 +2017,20 @@ class navigation_shortcodes extends e_shortcode
|
||||
return $url;
|
||||
}
|
||||
|
||||
/*
|
||||
function sc_link_sub_oversized($parm='')
|
||||
{
|
||||
$count = count($this->var['link_sub']);
|
||||
|
||||
if(!empty($parm) && $count > $parm)
|
||||
{
|
||||
return 'oversized';
|
||||
}
|
||||
|
||||
return $count;
|
||||
|
||||
}
|
||||
*/
|
||||
|
||||
/**
|
||||
* Returns only the anchor target in the URL if one is found.
|
||||
|
@@ -128,7 +128,7 @@ $E_ADMIN_NAVIGATION['button_other'] = '
|
||||
';
|
||||
|
||||
$E_ADMIN_NAVIGATION['start_sub'] = '
|
||||
<ul class="dropdown-menu" role="menu" >
|
||||
<ul class="dropdown-menu {LINK_SUB_OVERSIZED}" role="menu" >
|
||||
';
|
||||
|
||||
$E_ADMIN_NAVIGATION['start_other_sub'] = '
|
||||
|
@@ -14384,8 +14384,9 @@ ul.chats li.out .message {
|
||||
|
||||
|
||||
/**************** Custom *************************/
|
||||
|
||||
body { padding-top: 51px !important }
|
||||
html { height: auto !important; }
|
||||
body { margin-top: 51px;
|
||||
padding: 0 !important; }
|
||||
|
||||
.navbar-fixed-top { background-color: #1e1e1e; color: #ffffff; border:0; margin:0!important }
|
||||
.navbar-fixed-top a { color: #ffffff }
|
||||
@@ -14468,6 +14469,11 @@ margin-bottom: 15px;
|
||||
.popover { }
|
||||
.popover .popover-title { background-color: #d9534f; color:white; font-weight:bold }
|
||||
|
||||
.dropdown-menu.oversized { width: 380px; }
|
||||
.dropdown-menu.oversized li { width: 190px; height:38px; float:left; display:inline-block; overflow:hidden; }
|
||||
|
||||
|
||||
|
||||
|
||||
@media only screen and (min-width : 768px) {
|
||||
.is-table-row {
|
||||
|
Reference in New Issue
Block a user