1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 00:54:49 +02:00

Fix for Admin Panel buttons.

This commit is contained in:
Cameron
2019-01-17 11:49:26 -08:00
parent 4e5dacf4d2
commit bce677757c
3 changed files with 26 additions and 14 deletions

View File

@@ -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>";