mirror of
https://github.com/e107inc/e107.git
synced 2025-04-20 04:32:01 +02:00
Fix for missing buttons in Admin Panel.
This commit is contained in:
parent
4becf60d28
commit
f727660ed9
@ -198,12 +198,13 @@ class adminstyle_flexpanel extends adminstyle_infopanel
|
||||
$mainPanel .= "<div class='left'>";
|
||||
foreach($this->iconlist as $key => $val)
|
||||
{
|
||||
if(!vartrue($user_pref['core-infopanel-mye107']) || in_array($key, $user_pref['core-infopanel-mye107']))
|
||||
if(empty($myE107) || in_array($key, $user_pref['core-infopanel-mye107']))
|
||||
{
|
||||
$mainPanel .= e107::getNav()->renderAdminButton($val['link'], $val['title'], $val['caption'], $val['perms'], $val['icon_32'], "div");
|
||||
}
|
||||
}
|
||||
$mainPanel .= "</div></div>";
|
||||
|
||||
// Rendering the saved configuration.
|
||||
$ns->setStyle('flexpanel');
|
||||
$caption = $tp->lanVars(LAN_CONTROL_PANEL, ucwords(USERNAME));
|
||||
|
@ -261,34 +261,12 @@ class adminstyle_infopanel
|
||||
$mainPanel = "
|
||||
<div id='core-infopanel_mye107' >
|
||||
";
|
||||
|
||||
/*
|
||||
$mainPanel .= '<span class="pull-right">
|
||||
<span class="options">
|
||||
<div class="btn-group">
|
||||
<a class="dropdown-toggle" data-toggle="dropdown"><i class="icon-cog"></i></a>
|
||||
<ul class="dropdown-menu black-box-dropdown dropdown-right">
|
||||
<li>'.$this->render_infopanel_icons().'</li>
|
||||
</ul>
|
||||
</div>
|
||||
</span>
|
||||
</span>';
|
||||
|
||||
*/
|
||||
|
||||
// print_a($user_pref['core-infopanel-mye107']);
|
||||
|
||||
$mainPanel .= "
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class='left'>";
|
||||
|
||||
$mainPanel .= "<div class='left'>";
|
||||
|
||||
foreach ($this->iconlist as $key=>$val)
|
||||
{
|
||||
if (!vartrue($user_pref['core-infopanel-mye107']) || in_array($key, $user_pref['core-infopanel-mye107']))
|
||||
if (empty($myE107) || in_array($key, $user_pref['core-infopanel-mye107']))
|
||||
{
|
||||
$mainPanel .= e107::getNav()->renderAdminButton($val['link'], $val['title'], $val['caption'], $val['perms'], $val['icon_32'], "div");
|
||||
}
|
||||
@ -299,6 +277,8 @@ class adminstyle_infopanel
|
||||
|
||||
</div>";
|
||||
|
||||
e107::getDebug()->log($this->iconlist);
|
||||
|
||||
$caption = $tp->lanVars(LAN_CONTROL_PANEL, ucwords(USERNAME));
|
||||
|
||||
$text3 = $this->renderAddonDashboards();
|
||||
|
Loading…
x
Reference in New Issue
Block a user