1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-08 15:46:44 +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;
}
}