mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
Fix for Admin Panel buttons.
This commit is contained in:
@@ -177,15 +177,25 @@ class adminstyle_flexpanel extends adminstyle_infopanel
|
|||||||
$user_pref['core-infopanel-mye107'] = e107::getNav()->getDefaultAdminPanelArray();
|
$user_pref['core-infopanel-mye107'] = e107::getNav()->getDefaultAdminPanelArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$ns->setStyle('flexpanel');
|
$ns->setStyle('flexpanel');
|
||||||
$mainPanel = "<div id='core-infopanel_mye107'>";
|
$mainPanel = "<div id='core-infopanel_mye107'>";
|
||||||
$mainPanel .= "<div class='left'>";
|
$mainPanel .= "<div class='left'>";
|
||||||
|
$count = 0;
|
||||||
foreach($this->iconlist as $key => $val)
|
foreach($this->iconlist as $key => $val)
|
||||||
{
|
{
|
||||||
if(in_array($key, $user_pref['core-infopanel-mye107']))
|
if(in_array($key, $user_pref['core-infopanel-mye107']))
|
||||||
{
|
{
|
||||||
$mainPanel .= e107::getNav()->renderAdminButton($val['link'], $val['title'], $val['caption'], $val['perms'], $val['icon_32'], "div");
|
if($tmp = e107::getNav()->renderAdminButton($val['link'], $val['title'], $val['caption'], $val['perms'], $val['icon_32'], "div"))
|
||||||
|
{
|
||||||
|
$mainPanel .= $tmp;
|
||||||
|
$count++;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if($count == 20)
|
||||||
|
{
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$mainPanel .= "</div></div>";
|
$mainPanel .= "</div></div>";
|
||||||
|
@@ -245,12 +245,22 @@ class adminstyle_infopanel
|
|||||||
";
|
";
|
||||||
|
|
||||||
$mainPanel .= "<div class='left'>";
|
$mainPanel .= "<div class='left'>";
|
||||||
|
$count = 0;
|
||||||
foreach ($this->iconlist as $key=>$val)
|
foreach ($this->iconlist as $key=>$val)
|
||||||
{
|
{
|
||||||
if (in_array($key, $user_pref['core-infopanel-mye107']))
|
if(in_array($key, $user_pref['core-infopanel-mye107']))
|
||||||
{
|
{
|
||||||
$mainPanel .= e107::getNav()->renderAdminButton($val['link'], $val['title'], $val['caption'], $val['perms'], $val['icon_32'], "div");
|
if($tmp = e107::getNav()->renderAdminButton($val['link'], $val['title'], $val['caption'], $val['perms'], $val['icon_32'], "div"))
|
||||||
|
{
|
||||||
|
$mainPanel .= $tmp;
|
||||||
|
$count++;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if($count == 20)
|
||||||
|
{
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -259,7 +269,7 @@ class adminstyle_infopanel
|
|||||||
|
|
||||||
</div>";
|
</div>";
|
||||||
|
|
||||||
e107::getDebug()->log($this->iconlist);
|
// e107::getDebug()->log($this->iconlist);
|
||||||
|
|
||||||
$caption = $tp->lanVars(LAN_CONTROL_PANEL, ucwords(USERNAME));
|
$caption = $tp->lanVars(LAN_CONTROL_PANEL, ucwords(USERNAME));
|
||||||
|
|
||||||
|
@@ -978,19 +978,11 @@ i.e-cat_users-32{ background-position: -555px 0; width: 32px; height: 32px; }
|
|||||||
'e-eurl'
|
'e-eurl'
|
||||||
);
|
);
|
||||||
|
|
||||||
$count = 0;
|
|
||||||
|
|
||||||
foreach($iconlist as $k=>$v)
|
foreach($iconlist as $k=>$v)
|
||||||
{
|
{
|
||||||
if($count === 20)
|
|
||||||
{
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!in_array($k,$exclude))
|
if(!in_array($k,$exclude))
|
||||||
{
|
{
|
||||||
$defArray[] = $k;
|
$defArray[] = $k;
|
||||||
$count++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user