mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +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();
|
||||
}
|
||||
|
||||
|
||||
$ns->setStyle('flexpanel');
|
||||
$mainPanel = "<div id='core-infopanel_mye107'>";
|
||||
$mainPanel .= "<div class='left'>";
|
||||
$count = 0;
|
||||
foreach($this->iconlist as $key => $val)
|
||||
{
|
||||
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>";
|
||||
|
@@ -245,12 +245,22 @@ class adminstyle_infopanel
|
||||
";
|
||||
|
||||
$mainPanel .= "<div class='left'>";
|
||||
|
||||
$count = 0;
|
||||
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>";
|
||||
|
||||
e107::getDebug()->log($this->iconlist);
|
||||
// e107::getDebug()->log($this->iconlist);
|
||||
|
||||
$caption = $tp->lanVars(LAN_CONTROL_PANEL, ucwords(USERNAME));
|
||||
|
||||
|
Reference in New Issue
Block a user