mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 23:42:11 +00:00
put menu items into one global menu
This commit is contained in:
parent
165eaec67e
commit
635c40bd84
|
@ -320,22 +320,19 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
echo "</form>\n";
|
echo "</form>\n";
|
||||||
/* }}} End of search form */
|
/* }}} End of search form */
|
||||||
|
|
||||||
echo " <button class=\"navbar-toggler\" type=\"button\" data-toggle=\"collapse\" data-target=\"#navbarMain\" aria-controls=\"navbarMain\" aria-expanded=\"false\" aria-label=\"Toggle navigation\">\n";
|
echo " <button class=\"navbar-toggler\" type=\"button\" data-toggle=\"collapse\" data-target=\"#navbarMain\" aria-controls=\"navbarMain\" aria-expanded=\"false\" aria-label=\"Toggle navigation\">\n";
|
||||||
echo " <span class=\"navbar-toggler-icon\"></span>\n";
|
echo " <span class=\"navbar-toggler-icon\"></span>\n";
|
||||||
echo " </button>\n";
|
echo " </button>\n";
|
||||||
|
|
||||||
echo " <div class=\"collapse navbar-collapse\" id=\"navbarMain\">\n";
|
echo " <div class=\"collapse navbar-collapse\" id=\"navbarMain\">\n";
|
||||||
echo " <ul class=\"navbar-nav\">\n";
|
echo " <ul class=\"navbar-nav\">\n";
|
||||||
if ($this->params['enablecalendar']) echo " <li class=\"nav-item\"><a class=\"nav-link\" href=\"../out/out.Calendar.php?mode=".$this->params['calendardefaultview']."\">".getMLText("calendar")."</a></li>\n";
|
|
||||||
if ($this->params['user']->isAdmin()) echo " <li class=\"nav-item\"><a class=\"nav-link\" href=\"../out/out.AdminTools.php\">".getMLText("admin_tools")."</a></li>\n";
|
|
||||||
if($this->params['enablehelp']) {
|
|
||||||
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
|
||||||
echo " <li class=\"nav-item\"><a class=\"nav-link\" href=\"../out/out.Help.php?context=".$tmp[1]."\">".getMLText("help")."</a></li>\n";
|
|
||||||
}
|
|
||||||
echo " </ul>\n";
|
|
||||||
|
|
||||||
echo " <ul class=\"navbar-nav\">\n";
|
|
||||||
$menuitems = array();
|
$menuitems = array();
|
||||||
|
if ($this->params['enablecalendar'] && $accessobject->check_view_access('Calendar')) $menuitems['calendar'] = array('link'=>'../out/out.Calendar.php?mode='.$this->params['calendardefaultview'], 'label'=>"calendar");
|
||||||
|
if ($this->params['user']->isAdmin()) $menuitems['admintools'] = array('link'=>'../out/out.AdminTools.php', 'label'=>"admin_tools");
|
||||||
|
if($this->params['enablehelp']) {
|
||||||
|
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||||
|
$menuitems['help'] = array('link'=>'../out/out.Help.php?context='.$tmp[1], 'label'=>"help");
|
||||||
|
}
|
||||||
/* Check if hook exists because otherwise callHook() will override $menuitems */
|
/* Check if hook exists because otherwise callHook() will override $menuitems */
|
||||||
if($this->hasHook('globalNavigationBar'))
|
if($this->hasHook('globalNavigationBar'))
|
||||||
$menuitems = $this->callHook('globalNavigationBar', $menuitems);
|
$menuitems = $this->callHook('globalNavigationBar', $menuitems);
|
||||||
|
@ -1404,7 +1401,7 @@ $(document).ready(function() {
|
||||||
$dateformat = getConvertDateFormat();
|
$dateformat = getConvertDateFormat();
|
||||||
$content = '
|
$content = '
|
||||||
<div class="input-group date" id="'.$varName.'date">
|
<div class="input-group date" id="'.$varName.'date">
|
||||||
<input type="text" class="form-control" name="'.$varName.'" value="'.$defDate. '" data-date="'.$defDate.'" data-selectmenu="presetexpdate" data-date-format="'.$dateformat.'"'.($lang ? 'data-date-language="'.str_replace('_', '-', $lang).'"' : '').($startdate ? ' data-date-start-date="'.$startdate.'"' : '').($enddate ? ' data-date-end-date="'.$enddate.'"' : '').' data-date-autoclose="true" data-provide="datepicker">
|
<input type="text" class="form-control datepicker" name="'.$varName.'" id="'.$varName.'" value="'.$defDate. '" data-date="'.$defDate.'" data-selectmenu="presetexpdate" data-date-format="'.$dateformat.'"'.($lang ? 'data-date-language="'.str_replace('_', '-', $lang).'"' : '').($startdate ? ' data-date-start-date="'.$startdate.'"' : '').($enddate ? ' data-date-end-date="'.$enddate.'"' : '').' data-date-autoclose="true" data-provide="datepicker">
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<span class="input-group-text"><i class="fa fa-calendar"></i></span>
|
<span class="input-group-text"><i class="fa fa-calendar"></i></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user