1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Fix for missing buttons in Admin Panel.

This commit is contained in:
Cameron
2019-01-14 17:40:12 -08:00
parent 4becf60d28
commit f727660ed9
2 changed files with 7 additions and 26 deletions

View File

@@ -198,12 +198,13 @@ class adminstyle_flexpanel extends adminstyle_infopanel
$mainPanel .= "<div class='left'>"; $mainPanel .= "<div class='left'>";
foreach($this->iconlist as $key => $val) 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 .= e107::getNav()->renderAdminButton($val['link'], $val['title'], $val['caption'], $val['perms'], $val['icon_32'], "div");
} }
} }
$mainPanel .= "</div></div>"; $mainPanel .= "</div></div>";
// Rendering the saved configuration. // Rendering the saved configuration.
$ns->setStyle('flexpanel'); $ns->setStyle('flexpanel');
$caption = $tp->lanVars(LAN_CONTROL_PANEL, ucwords(USERNAME)); $caption = $tp->lanVars(LAN_CONTROL_PANEL, ucwords(USERNAME));

View File

@@ -261,34 +261,12 @@ class adminstyle_infopanel
$mainPanel = " $mainPanel = "
<div id='core-infopanel_mye107' > <div id='core-infopanel_mye107' >
"; ";
/* $mainPanel .= "<div class='left'>";
$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'>";
foreach ($this->iconlist as $key=>$val) 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 .= e107::getNav()->renderAdminButton($val['link'], $val['title'], $val['caption'], $val['perms'], $val['icon_32'], "div");
} }
@@ -299,6 +277,8 @@ class adminstyle_infopanel
</div>"; </div>";
e107::getDebug()->log($this->iconlist);
$caption = $tp->lanVars(LAN_CONTROL_PANEL, ucwords(USERNAME)); $caption = $tp->lanVars(LAN_CONTROL_PANEL, ucwords(USERNAME));
$text3 = $this->renderAddonDashboards(); $text3 = $this->renderAddonDashboards();