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

Added help toggle button to sidebar and started on main navigation rework for mobile devices.

This commit is contained in:
Cameron
2021-02-05 10:17:51 -08:00
parent 6033f94be7
commit c2c0979b3a
5 changed files with 66 additions and 28 deletions

View File

@@ -184,7 +184,11 @@ class admin_shortcodes extends e_shortcode
if($tmp = e107::getRegistry('core/e107/adminui/help'))
{
return e107::getRender()->tablerender($tmp['caption'],$tmp['text'],'e_help',true);
$text = '<div class="sidebar-toggle-panel">';
$text .= e107::getRender()->tablerender($tmp['caption'],$tmp['text'],'e_help',true);
$text .= '</div>';
$text .= $this->renderHelpIcon();
return $text;
}
return null;
@@ -252,7 +256,10 @@ class admin_shortcodes extends e_shortcode
$help_text .= ob_get_clean();
}
return $help_text;
$text = '<div class="sidebar-toggle-panel">'.$help_text.'</div>';
$text .= $this->renderHelpIcon();
return $text;
}
public function sc_admin_icon()
@@ -2641,6 +2648,26 @@ Inverse 10 <span class="badge badge-inverse">10</span>
}
/**
* @param string $text
* @return string
*/
private function renderHelpIcon()
{
$text = '
<ul class="nav nav-pills nav-stacked" style="position: absolute;bottom: 100px;">
<li>
<a href="#" class="e-toggle-sidebar e-tip" data-placement="right" title="'.LAN_HELP.'">
<span><i class="far fa-question-circle" ><!-- --></i></span>
</a>
</li>
</ul>
';
return $text;
}
}

View File

@@ -53,9 +53,9 @@ $ADMIN_TEMPLATE['nav']['button_enav_home'] = '
<li class="dropdown">
<a class="dropdown-toggle" style="display:inline-block; margin-right:0;" title="'.ADLAN_53.'" href="'.e_HTTP.'" >
{LINK_IMAGE} {LINK_TEXT}
</a><a style="display:inline-block;border-left:0;margin-left:0;padding-left:4px;" class="dropdown-toggle" title="'.ADLAN_53.'" role="button" data-toggle="dropdown" data-target="#" href="{LINK_URL}" >
</a><span class="hidden-xs hidden-sm hidden-md"><a style="display:inline-block;border-left:0;margin-left:0;padding-left:4px;" class="dropdown-toggle" title="'.ADLAN_53.'" role="button" data-toggle="dropdown" data-target="#" href="{LINK_URL}" >
<b class="caret"></b>
</a>
</a></span>
{SUB_MENU}
</li>
';
@@ -85,7 +85,7 @@ $ADMIN_TEMPLATE['nav']['button_enav_language'] = '
// Logout / Settings / Personalize
$ADMIN_TEMPLATE['nav']['button_enav_logout'] = '
<li class="dropdown">
<li class="dropdown admin-nav-logout">
<a class="dropdown-toggle admin-icon-avatar " title="'.$label.'" role="button" data-toggle="dropdown" data-target="#" href="{LINK_URL}" >
{LINK_IMAGE} {LINK_TEXT}
<b class="caret"></b>
@@ -235,14 +235,14 @@ else
{SETSTYLE=admin_menu}
{ADMIN_MENU}
<div class="sidebar-toggle-panel">
{ADMIN_MENUMANAGER}
{SETSTYLE=site_info}
{ADMINUI_HELP}
{ADMIN_HELP}
<div class="sidebar-toggle-panel">
{ADMIN_SITEINFO=creditsonly}