Update to Bootstrap v4.3.1, jQuery 3.4.1. Adjustments to support updates.
This commit is contained in:
@@ -1578,7 +1578,7 @@
|
||||
$apps[$x]['default_settings'][$y]['default_setting_category'] = "theme";
|
||||
$apps[$x]['default_settings'][$y]['default_setting_subcategory'] = "menu_side_width_contracted";
|
||||
$apps[$x]['default_settings'][$y]['default_setting_name'] = "text";
|
||||
$apps[$x]['default_settings'][$y]['default_setting_value'] = "55";
|
||||
$apps[$x]['default_settings'][$y]['default_setting_value'] = "60";
|
||||
$apps[$x]['default_settings'][$y]['default_setting_enabled'] = "false";
|
||||
$apps[$x]['default_settings'][$y]['default_setting_description'] = "Set the contracted pixel width of the side menu.";
|
||||
$y++;
|
||||
|
||||
@@ -72,6 +72,23 @@
|
||||
$prep_statement->execute();
|
||||
}
|
||||
unset($prep_statement, $sql);
|
||||
|
||||
//replace glyphicon icon with fontawesome icon for default main menu items
|
||||
$queries[] = "update v_menu_items set menu_item_icon = 'fa-home' where menu_item_icon = 'glyphicon-home' ";
|
||||
$queries[] = "update v_menu_items set menu_item_icon = 'fa-user' where menu_item_icon = 'glyphicon-user' ";
|
||||
$queries[] = "update v_menu_items set menu_item_icon = 'fa-exchange-alt' where menu_item_icon = 'glyphicon-transfer' ";
|
||||
$queries[] = "update v_menu_items set menu_item_icon = 'fa-paper-plane' where menu_item_icon = 'glyphicon-send' ";
|
||||
$queries[] = "update v_menu_items set menu_item_icon = 'fa-chart-bar' where menu_item_icon = 'glyphicon-equalizer' ";
|
||||
$queries[] = "update v_menu_items set menu_item_icon = 'fa-cog' where menu_item_icon = 'glyphicon-cog' ";
|
||||
$queries[] = "update v_menu_items set menu_item_icon = 'fa-sign-out-alt' where menu_item_icon = 'glyphicon-log-out' ";
|
||||
$queries[] = "update v_menu_items set menu_item_icon = 'fa-sign-in-alt' where menu_item_icon = 'glyphicon-log-in' ";
|
||||
$queries[] = "update v_menu_items set menu_item_icon = 'fa-external-link-alt' where menu_item_icon = 'glyphicon-new-window' ";
|
||||
$database = new database;
|
||||
foreach ($queries as $sql) {
|
||||
$database->execute($sql);
|
||||
}
|
||||
unset($queries, $sql);
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<?php
|
||||
|
||||
//define the link labels
|
||||
$v_link_label_edit = "<button type='button' class='btn btn-default list_control_icon'><span class='glyphicon glyphicon-pencil'></span></button>";
|
||||
$v_link_label_add = "<button type='button' class='btn btn-default list_control_icon'><span class='glyphicon glyphicon-plus'></span></button>";
|
||||
$v_link_label_delete = "<button type='button' class='btn btn-default list_control_icon'><span class='glyphicon glyphicon-remove'></span></button>";
|
||||
$v_link_label_view = "<button type='button' class='btn btn-default list_control_icon'><span class='glyphicon glyphicon-eye-open'></span></button>";
|
||||
$v_link_label_play = "<button type='button' class='btn btn-default list_control_icon'><span class='glyphicon glyphicon-play'></span></button>";
|
||||
$v_link_label_pause = "<button type='button' class='btn btn-default list_control_icon'><span class='glyphicon glyphicon-pause'></span></button>";
|
||||
$v_link_label_stop = "<button type='button' class='btn btn-default list_control_icon'><span class='glyphicon glyphicon-stop'></span></button>";
|
||||
$v_link_label_download = "<button type='button' class='btn btn-default list_control_icon'><span class='glyphicon glyphicon-cloud-download'></span></button>";
|
||||
$v_link_label_edit = "<button type='button' class='btn btn-default list_control_icon'><span class='fas fa-pencil-alt'></span></button>";
|
||||
$v_link_label_add = "<button type='button' class='btn btn-default list_control_icon'><span class='fas fa-plus'></span></button>";
|
||||
$v_link_label_delete = "<button type='button' class='btn btn-default list_control_icon'><span class='fas fa-minus'></span></button>";
|
||||
$v_link_label_view = "<button type='button' class='btn btn-default list_control_icon'><span class='fas fa-eye'></span></button>";
|
||||
$v_link_label_play = "<button type='button' class='btn btn-default list_control_icon'><span class='fas fa-play'></span></button>";
|
||||
$v_link_label_pause = "<button type='button' class='btn btn-default list_control_icon'><span class='fas fa-pause'></span></button>";
|
||||
$v_link_label_stop = "<button type='button' class='btn btn-default list_control_icon'><span class='fas fa-stop'></span></button>";
|
||||
$v_link_label_download = "<button type='button' class='btn btn-default list_control_icon'><span class='fas fa-cloud-download-alt'></span></button>";
|
||||
|
||||
?>
|
||||
|
||||
+53
-56
@@ -247,8 +247,16 @@ $default_login = ($_REQUEST['login'] == 'default') ? true : false;
|
||||
|
||||
/* MENU: BEGIN ******************************************************************/
|
||||
|
||||
/* help bootstrap v4 menu be scrollable on mobile */
|
||||
@media screen and (max-width: 1000px) {
|
||||
.navbar-collapse {
|
||||
max-height: calc(100vh - 60px);
|
||||
overflow-y: auto;
|
||||
}
|
||||
}
|
||||
|
||||
/* main menu container */
|
||||
.navbar {
|
||||
nav.navbar {
|
||||
<?php if ($_SESSION['theme']['menu_main_background_image']['text'] != '') { ?>
|
||||
background-image: url("<?php echo $_SESSION['theme']['menu_main_background_image']['text']; ?>");
|
||||
background-position: 0px 0px;
|
||||
@@ -273,38 +281,38 @@ $default_login = ($_REQUEST['login'] == 'default') ? true : false;
|
||||
-webkit-border-radius: <?php echo ($_SESSION['theme']['menu_main_border_radius']['text'] != '') ? $_SESSION['theme']['menu_main_border_radius']['text'] : $default_radius; ?>;
|
||||
-khtml-border-radius: <?php echo ($_SESSION['theme']['menu_main_border_radius']['text'] != '') ? $_SESSION['theme']['menu_main_border_radius']['text'] : $default_radius; ?>;
|
||||
border-radius: <?php echo ($_SESSION['theme']['menu_main_border_radius']['text'] != '') ? $_SESSION['theme']['menu_main_border_radius']['text'] : $default_radius; ?>;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* main menu logo */
|
||||
.navbar-logo {
|
||||
img.navbar-logo {
|
||||
border: none;
|
||||
height: 27px;
|
||||
width: auto;
|
||||
margin: 11px 0 0 7px;
|
||||
padding-right: 13px;
|
||||
padding: 0 10px 0 7px;
|
||||
margin-top: -2px;
|
||||
cursor: pointer;
|
||||
float: left;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
/* menu brand text */
|
||||
.navbar-header > div > a.navbar-brand {
|
||||
div.navbar-brand > a.navbar-brand-text {
|
||||
color: <?php echo ($_SESSION['theme']['menu_brand_text_color']['text'] != '') ? $_SESSION['theme']['menu_brand_text_color']['text'] : 'rgba(255,255,255,0.80)'; ?>;
|
||||
font-size: <?php echo ($_SESSION['theme']['menu_brand_text_size']['text'] != '') ? $_SESSION['theme']['menu_brand_text_size']['text'] : '13pt'; ?>;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.navbar-header > div > a.navbar-brand:hover {
|
||||
/* menu brand text hover */
|
||||
div.navbar-brand > a.navbar-brand-text:hover {
|
||||
color: <?php echo ($_SESSION['theme']['menu_brand_text_color_hover']['text'] != '') ? $_SESSION['theme']['menu_brand_text_color_hover']['text'] : 'rgba(255,255,255,1.0)'; ?>;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* main menu item */
|
||||
.navbar .navbar-nav > li > a,
|
||||
.navbar .navbar-nav > li.current-menu-item > a {
|
||||
ul.navbar-nav > li.nav-item > a.nav-link {
|
||||
font-family: <?php echo ($_SESSION['theme']['menu_main_text_font']['text'] != '') ? $_SESSION['theme']['menu_main_text_font']['text'] : 'arial'; ?>;
|
||||
font-size: <?php echo ($_SESSION['theme']['menu_main_text_size']['text'] != '') ? $_SESSION['theme']['menu_main_text_size']['text'] : '10.25pt'; ?>;
|
||||
color: <?php echo ($_SESSION['theme']['menu_main_text_color']['text'] != '') ? $_SESSION['theme']['menu_main_text_color']['text'] : '#fff'; ?>;
|
||||
padding-right: 10px;
|
||||
padding-left: 10px;
|
||||
padding: 15px 10px 14px 10px; !important;
|
||||
}
|
||||
|
||||
.navbar .navbar-nav > li:hover > a,
|
||||
@@ -314,7 +322,7 @@ $default_login = ($_REQUEST['login'] == 'default') ? true : false;
|
||||
background: <?php echo ($_SESSION['theme']['menu_main_background_color_hover']['text'] != '') ? $_SESSION['theme']['menu_main_background_color_hover']['text'] : 'rgba(0,0,0,1.0)'; ?>
|
||||
}
|
||||
|
||||
.navbar .navbar-nav > li > a > span.glyphicon {
|
||||
.navbar .navbar-nav > li > a > span.fas {
|
||||
margin: 1px 2px 0 0;
|
||||
}
|
||||
|
||||
@@ -325,7 +333,7 @@ $default_login = ($_REQUEST['login'] == 'default') ? true : false;
|
||||
}
|
||||
|
||||
/* sub menu container */
|
||||
.navbar-nav > li > .dropdown-menu {
|
||||
ul.navbar-nav > li.nav-item > ul.dropdown-menu {
|
||||
margin-top: 0;
|
||||
padding-top: 0;
|
||||
padding-bottom: 10px;
|
||||
@@ -347,60 +355,54 @@ $default_login = ($_REQUEST['login'] == 'default') ? true : false;
|
||||
}
|
||||
|
||||
/* sub menu item */
|
||||
.dropdown-menu > li > a {
|
||||
ul.navbar-nav > li.nav-item > ul.dropdown-menu > li.nav-item > a.nav-link {
|
||||
font-family: <?php echo ($_SESSION['theme']['menu_sub_text_font']['text'] != '') ? $_SESSION['theme']['menu_sub_text_font']['text'] : 'arial'; ?>;
|
||||
color: <?php echo ($_SESSION['theme']['menu_sub_text_color']['text'] != '') ? $_SESSION['theme']['menu_sub_text_color']['text'] : '#fff'; ?>;
|
||||
font-size: <?php echo ($_SESSION['theme']['menu_sub_text_size']['text'] != '') ? $_SESSION['theme']['menu_sub_text_size']['text'] : '10pt'; ?>;
|
||||
margin: 0;
|
||||
padding: 3px 15px;
|
||||
padding: 3px 14px !important;
|
||||
}
|
||||
|
||||
.dropdown-menu > li > a:hover,
|
||||
.dropdown-menu > li > a:focus,
|
||||
.dropdown-menu > li > a:active {
|
||||
ul.navbar-nav > li.nav-item > ul.dropdown-menu > li.nav-item > a.nav-link:hover,
|
||||
ul.navbar-nav > li.nav-item > ul.dropdown-menu > li.nav-item > a.nav-link:focus,
|
||||
ul.navbar-nav > li.nav-item > ul.dropdown-menu > li.nav-item > a.nav-link:active {
|
||||
color: <?php echo ($_SESSION['theme']['menu_sub_text_color_hover']['text'] != '') ? $_SESSION['theme']['menu_sub_text_color_hover']['text'] : '#fd9c03'; ?>;
|
||||
background: <?php echo ($_SESSION['theme']['menu_sub_background_color_hover']['text'] != '') ? $_SESSION['theme']['menu_sub_background_color_hover']['text'] : '#141414'; ?>;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.dropdown-menu > li > a > span.glyphicon {
|
||||
a.nav-link {
|
||||
text-align: left !important;
|
||||
}
|
||||
|
||||
/* sub menu item icon */
|
||||
ul.dropdown-menu > li.nav-item > a.nav-link > span.fas {
|
||||
display: inline-block;
|
||||
font-size: 8pt;
|
||||
margin: 0 0 8px 8px;
|
||||
margin: 0 0 0 8px;
|
||||
opacity: 0.30;
|
||||
text-align: top;
|
||||
}
|
||||
|
||||
/* domain name/selector */
|
||||
a.domain_selector_domain {
|
||||
display: inline-block;
|
||||
white-space: nowrap;
|
||||
font-size: 9.5pt;
|
||||
color: <?php echo ($_SESSION['theme']['domain_color']['text'] != '') ? $_SESSION['theme']['domain_color']['text'] : 'rgba(255,255,255,0.8)'; ?>;
|
||||
padding: 16px 0 14px 0;
|
||||
}
|
||||
|
||||
a.domain_selector_domain:hover,
|
||||
a.domain_selector_domain:focus,
|
||||
a.domain_selector_domain:active {
|
||||
color: <?php echo ($_SESSION['theme']['domain_color_hover']['text'] != '') ? $_SESSION['theme']['domain_color_hover']['text'] : 'rgba(255,255,255,1.0)'; ?>;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a#header_domain_selector_domain:hover,
|
||||
a#header_domain_selector_domain:focus,
|
||||
a#header_domain_selector_domain:active {
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* logout icon */
|
||||
a.logout_icon {
|
||||
display: inline-block;
|
||||
color: <?php echo ($_SESSION['theme']['logout_icon_color']['text'] != '') ? $_SESSION['theme']['logout_icon_color']['text'] : 'rgba(255,255,255,0.8)'; ?>;
|
||||
font-size: 11pt;
|
||||
padding: 16px 10px 13px 10px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
a.logout_icon:hover,
|
||||
a.logout_icon:focus,
|
||||
a.logout_icon:active {
|
||||
color: <?php echo ($_SESSION['theme']['logout_icon_color_hover']['text'] != '') ? $_SESSION['theme']['logout_icon_color_hover']['text'] : 'rgba(255,255,255,1.0)'; ?>;
|
||||
}
|
||||
|
||||
a#header_logout_icon {
|
||||
@@ -412,14 +414,8 @@ $default_login = ($_REQUEST['login'] == 'default') ? true : false;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
a.logout_icon:hover,
|
||||
a.logout_icon:focus,
|
||||
a.logout_icon:active {
|
||||
color: <?php echo ($_SESSION['theme']['logout_icon_color_hover']['text'] != '') ? $_SESSION['theme']['logout_icon_color_hover']['text'] : 'rgba(255,255,255,1.0)'; ?>;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* xs menu toggle button */
|
||||
/*
|
||||
.navbar-inverse .navbar-toggle {
|
||||
background: transparent;
|
||||
border: none;
|
||||
@@ -432,13 +428,14 @@ $default_login = ($_REQUEST['login'] == 'default') ? true : false;
|
||||
.navbar-inverse .navbar-toggle:active {
|
||||
background: transparent;
|
||||
}
|
||||
*/
|
||||
|
||||
.navbar-inverse .navbar-toggle .icon-bar {
|
||||
background: <?php echo ($_SESSION['theme']['menu_main_toggle_color']['text'] != '') ? $_SESSION['theme']['menu_main_toggle_color']['text'] : 'rgba(255,255,255,0.8)'; ?>;
|
||||
button.navbar-toggler > span.fas.fa-bars {
|
||||
color: <?php echo ($_SESSION['theme']['menu_main_toggle_color']['text'] != '') ? $_SESSION['theme']['menu_main_toggle_color']['text'] : 'rgba(255,255,255,0.8)'; ?>;
|
||||
}
|
||||
|
||||
.navbar-inverse .navbar-toggle:hover > .icon-bar {
|
||||
background: <?php echo ($_SESSION['theme']['menu_main_toggle_color_hover']['text'] != '') ? $_SESSION['theme']['menu_main_toggle_color_hover']['text'] : 'rgba(255,255,255,1.0)'; ?>;
|
||||
button.navbar-toggler > span.fas.fa-bars:hover {
|
||||
color: <?php echo ($_SESSION['theme']['menu_main_toggle_color_hover']['text'] != '') ? $_SESSION['theme']['menu_main_toggle_color_hover']['text'] : 'rgba(255,255,255,1.0)'; ?>;
|
||||
}
|
||||
|
||||
/* SIDE MENU: Begin ***********************************************************/
|
||||
@@ -449,7 +446,7 @@ $default_login = ($_REQUEST['login'] == 'default') ? true : false;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: <?php echo is_numeric($_SESSION['theme']['menu_side_width_contracted']['text']) ? $_SESSION['theme']['menu_side_width_contracted']['text'] : '55'; ?>px;
|
||||
width: <?php echo is_numeric($_SESSION['theme']['menu_side_width_contracted']['text']) ? $_SESSION['theme']['menu_side_width_contracted']['text'] : '60'; ?>px;
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
<?php if ($_SESSION['theme']['menu_main_background_image']['text'] != '') { ?>
|
||||
@@ -537,7 +534,7 @@ $default_login = ($_REQUEST['login'] == 'default') ? true : false;
|
||||
text-align: left;
|
||||
font-family: <?php echo ($_SESSION['theme']['menu_main_text_font']['text'] != '') ? $_SESSION['theme']['menu_main_text_font']['text'] : 'arial'; ?>;
|
||||
font-size: <?php echo ($_SESSION['theme']['menu_main_text_size']['text'] != '') ? $_SESSION['theme']['menu_main_text_size']['text'] : '10.25pt'; ?>;
|
||||
color: <?php echo ($_SESSION['theme']['menu_main_text_color']['text'] != '') ? $_SESSION['theme']['menu_main_text_color']['text'] : '#fff'; ?>;
|
||||
color: <?php echo ($_SESSION['theme']['menu_main_text_color']['text'] != '') ? $_SESSION['theme']['menu_main_text_color']['text'] : '#fff'; ?> !important;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@@ -552,7 +549,7 @@ $default_login = ($_REQUEST['login'] == 'default') ? true : false;
|
||||
a.menu_side_item_sub {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: 5px 20px 5px 42px;
|
||||
padding: 5px 20px 5px 45px;
|
||||
text-align: left;
|
||||
background: <?php echo ($_SESSION['theme']['menu_sub_background_color']['text'] != '') ? $_SESSION['theme']['menu_sub_background_color']['text'] : 'rgba(0,0,0,0.90)'; ?>;
|
||||
font-family: <?php echo ($_SESSION['theme']['menu_sub_text_font']['text'] != '') ? $_SESSION['theme']['menu_sub_text_font']['text'] : 'arial'; ?>;
|
||||
@@ -724,14 +721,14 @@ $default_login = ($_REQUEST['login'] == 'default') ? true : false;
|
||||
|
||||
/* ICONS *********************************************************************/
|
||||
|
||||
span.icon_glyphicon_body {
|
||||
span.icon_body {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
color: <?php echo ($_SESSION['theme']['body_icon_color']['text'] != '') ? $_SESSION['theme']['body_icon_color']['text'] : 'rgba(0,0,0,0.25)'; ?>;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
span.icon_glyphicon_body:hover {
|
||||
span.icon_body:hover {
|
||||
color: <?php echo ($_SESSION['theme']['body_icon_color_hover']['text'] != '') ? $_SESSION['theme']['body_icon_color_hover']['text'] : 'rgba(0,0,0,0.5)'; ?>;
|
||||
}
|
||||
|
||||
@@ -838,14 +835,14 @@ $default_login = ($_REQUEST['login'] == 'default') ? true : false;
|
||||
}
|
||||
|
||||
a.login_link {
|
||||
color: <?php echo ($_SESSION['theme']['login_link_text_color']['text'] != '') ? $_SESSION['theme']['login_link_text_color']['text'] : '#004083'; ?>;
|
||||
color: <?php echo ($_SESSION['theme']['login_link_text_color']['text'] != '') ? $_SESSION['theme']['login_link_text_color']['text'] : '#004083'; ?> !important;
|
||||
font-size: <?php echo ($_SESSION['theme']['login_link_text_size']['text'] != '') ? $_SESSION['theme']['login_link_text_size']['text'] : '11px'; ?>;
|
||||
font-family: <?php echo ($_SESSION['theme']['login_link_text_font']['text'] != '') ? $_SESSION['theme']['login_link_text_font']['text'] : 'Arial'; ?>;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a.login_link:hover {
|
||||
color: <?php echo ($_SESSION['theme']['login_link_text_color_hover']['text'] != '') ? $_SESSION['theme']['login_link_text_color_hover']['text'] : '#5082ca'; ?>;
|
||||
color: <?php echo ($_SESSION['theme']['login_link_text_color_hover']['text'] != '') ? $_SESSION['theme']['login_link_text_color_hover']['text'] : '#5082ca'; ?> !important;
|
||||
cursor: pointer;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
+160
-136
@@ -33,6 +33,7 @@ echo "<link rel='stylesheet' type='text/css' href='<!--{project_path}-->/resourc
|
||||
echo "<link rel='stylesheet' type='text/css' href='<!--{project_path}-->/resources/bootstrap/css/bootstrap-datetimepicker.min.css'>\n";
|
||||
echo "<link rel='stylesheet' type='text/css' href='<!--{project_path}-->/resources/bootstrap/css/bootstrap-colorpicker.min.css'>\n";
|
||||
echo "<link rel='stylesheet' type='text/css' href='<!--{project_path}-->/themes/".escape($_SESSION['domain']['template']['name'])."/css.php".($default_login ? '?login=default' : null)."'>\n";
|
||||
echo "<link rel='stylesheet' type='text/css' href='<!--{project_path}-->/resources/fontawesome/css/all.css'>\n";
|
||||
|
||||
//link to custom css file
|
||||
if ($_SESSION['theme']['custom_css']['text'] != '') {
|
||||
@@ -51,14 +52,18 @@ echo "<link rel='stylesheet' type='text/css' href='<!--{project_path}-->/themes/
|
||||
|
||||
echo "<title><!--{title}--></title>\n";
|
||||
|
||||
echo "<script language='JavaScript' type='text/javascript' src='<!--{project_path}-->/resources/jquery/jquery-1.12.4.js'></script>\n";
|
||||
echo "<script language='JavaScript' type='text/javascript' src='<!--{project_path}-->/resources/jquery/jquery-3.4.1.min.js'></script>\n";
|
||||
//echo "<script src='https://code.jquery.com/jquery-migrate-3.1.0.js'></script>\n";
|
||||
echo "<script language='JavaScript' type='text/javascript' src='<!--{project_path}-->/resources/jquery/jquery.autosize.input.js'></script>\n";
|
||||
echo "<script language='JavaScript' type='text/javascript' src='<!--{project_path}-->/resources/momentjs/moment.js'></script>\n";
|
||||
echo "<script language='JavaScript' type='text/javascript' src='<!--{project_path}-->/resources/momentjs/moment.min.js'></script>\n";
|
||||
echo "<script language='JavaScript' type='text/javascript' src='<!--{project_path}-->/resources/bootstrap/js/bootstrap.min.js'></script>\n";
|
||||
echo "<script language='JavaScript' type='text/javascript' src='<!--{project_path}-->/resources/bootstrap/js/bootstrap-datetimepicker.min.js'></script>\n";
|
||||
echo "<script language='JavaScript' type='text/javascript' src='<!--{project_path}-->/resources/bootstrap/js/bootstrap-colorpicker.js'></script>\n";
|
||||
echo "<script language='JavaScript' type='text/javascript' src='<!--{project_path}-->/resources/bootstrap/js/bootstrap-pwstrength.min.js'></script>\n";
|
||||
|
||||
echo "<script language='JavaScript' type='text/javascript'>window.FontAwesomeConfig = { autoReplaceSvg: false }</script>\n";
|
||||
echo "<script language='JavaScript' type='text/javascript' src='<!--{project_path}-->/resources/fontawesome/js/all.js' defer></script>\n";
|
||||
|
||||
//web font loader
|
||||
if ($_SESSION['theme']['font_loader']['text'] == 'true') {
|
||||
if ($_SESSION['theme']['font_retrieval']['text'] != 'asynchronous') {
|
||||
@@ -79,7 +84,7 @@ echo "<script language='JavaScript' type='text/javascript' src='<!--{project_pat
|
||||
var message_text = $(document.createElement('div'));
|
||||
message_text.addClass('message_text message_mood_'+mood);
|
||||
message_text.html(msg);
|
||||
message_text.click(function() {
|
||||
message_text.on('click', function() {
|
||||
var object = $(this);
|
||||
object.clearQueue().finish();
|
||||
$("#message_container div").remove();
|
||||
@@ -95,53 +100,55 @@ echo "<script language='JavaScript' type='text/javascript' src='<!--{project_pat
|
||||
}
|
||||
}
|
||||
|
||||
//toggle side menu visibility (if enabled)
|
||||
var menu_side_state = 'contracted';
|
||||
function menu_side_contract() {
|
||||
$('.menu_side_sub').slideUp(180);
|
||||
$('.menu_side_item_title').hide();
|
||||
<?php if ($_SESSION['theme']['menu_brand_type']['text'] == 'image' || $_SESSION['theme']['menu_brand_type']['text'] == '') { ?>
|
||||
$('#menu_brand_image_expanded').fadeOut(180, function() {
|
||||
$('#menu_brand_image_contracted').fadeIn(180);
|
||||
});
|
||||
<?php } else if ($_SESSION['theme']['menu_brand_type']['text'] == 'image_text') { ?>
|
||||
$('.menu_brand_text').hide();
|
||||
$('#menu_brand_image_contracted').animate({ width: '20px', 'margin-left': '-2px' }, 250);
|
||||
<?php } else if ($_SESSION['theme']['menu_brand_type']['text'] == 'text') { ?>
|
||||
$('.menu_brand_text').fadeOut(180);
|
||||
<?php } ?>
|
||||
$('#menu_side_container').animate({ width: '<?php echo is_numeric($_SESSION['theme']['menu_side_width_contracted']['text']) ? $_SESSION['theme']['menu_side_width_contracted']['text'] : '55'; ?>px' }, 250);
|
||||
$('#content_container').animate({ width: $(window).width() - <?php echo is_numeric($_SESSION['theme']['menu_side_width_contracted']['text']) ? $_SESSION['theme']['menu_side_width_contracted']['text'] : '55'; ?> }, 250, function() {
|
||||
menu_side_state = 'contracted';
|
||||
});
|
||||
|
||||
$('.menu_side_contract').hide();
|
||||
$('.menu_side_expand').show();
|
||||
}
|
||||
|
||||
function menu_side_expand() {
|
||||
<?php if ($_SESSION['theme']['menu_brand_type']['text'] == 'image_text') { ?>
|
||||
$('#menu_brand_image_contracted').animate({ width: '30px', 'margin-left': '0' }, 250);
|
||||
<?php } else if ($_SESSION['theme']['menu_brand_type']['text'] == 'image' || $_SESSION['theme']['menu_brand_type']['text'] == '') { ?>
|
||||
$('#menu_brand_image_contracted').fadeOut(180);
|
||||
<?php } ?>
|
||||
$('#menu_side_container').animate({ width: '<?php echo is_numeric($_SESSION['theme']['menu_side_width_expanded']['text']) ? $_SESSION['theme']['menu_side_width_expanded']['text'] : '225'; ?>px' }, 250);
|
||||
$('#content_container').animate({ width: $(window).width() - <?php echo is_numeric($_SESSION['theme']['menu_side_width_expanded']['text']) ? $_SESSION['theme']['menu_side_width_expanded']['text'] : '225'; ?> }, 250, function() {
|
||||
$('.menu_brand_text').fadeIn(180);
|
||||
$('.menu_side_item_title').fadeIn(180);
|
||||
<?php if ($_SESSION['theme']['menu_brand_type']['text'] != 'none') { ?>
|
||||
$('.menu_side_contract').fadeIn(180);
|
||||
<?php } ?>
|
||||
<?php if ($_SESSION['theme']['menu_style']['text'] == 'side') { ?>
|
||||
//toggle side menu visibility (if enabled)
|
||||
var menu_side_state = 'contracted';
|
||||
function menu_side_contract() {
|
||||
$('.menu_side_sub').slideUp(180);
|
||||
$('.menu_side_item_title').hide();
|
||||
<?php if ($_SESSION['theme']['menu_brand_type']['text'] == 'image' || $_SESSION['theme']['menu_brand_type']['text'] == '') { ?>
|
||||
$('#menu_brand_image_expanded').fadeIn(180);
|
||||
$('#menu_brand_image_expanded').fadeOut(180, function() {
|
||||
$('#menu_brand_image_contracted').fadeIn(180);
|
||||
});
|
||||
<?php } else if ($_SESSION['theme']['menu_brand_type']['text'] == 'image_text') { ?>
|
||||
$('.menu_brand_text').hide();
|
||||
$('#menu_brand_image_contracted').animate({ width: '20px', 'margin-left': '-2px' }, 250);
|
||||
<?php } else if ($_SESSION['theme']['menu_brand_type']['text'] == 'text') { ?>
|
||||
$('.menu_brand_text').fadeOut(180);
|
||||
<?php } ?>
|
||||
menu_side_state = 'expanded';
|
||||
});
|
||||
<?php if ($_SESSION['theme']['menu_brand_type']['text'] == 'none') { ?>
|
||||
$('.menu_side_contract').show();
|
||||
<?php } ?>
|
||||
$('.menu_side_expand').hide();
|
||||
}
|
||||
$('#menu_side_container').animate({ width: '<?php echo is_numeric($_SESSION['theme']['menu_side_width_contracted']['text']) ? $_SESSION['theme']['menu_side_width_contracted']['text'] : '60'; ?>px' }, 250);
|
||||
$('#content_container').animate({ width: $(window).width() - <?php echo is_numeric($_SESSION['theme']['menu_side_width_contracted']['text']) ? $_SESSION['theme']['menu_side_width_contracted']['text'] : '60'; ?> }, 250, function() {
|
||||
menu_side_state = 'contracted';
|
||||
});
|
||||
|
||||
$('.menu_side_contract').hide();
|
||||
$('.menu_side_expand').show();
|
||||
}
|
||||
|
||||
function menu_side_expand() {
|
||||
<?php if ($_SESSION['theme']['menu_brand_type']['text'] == 'image_text') { ?>
|
||||
$('#menu_brand_image_contracted').animate({ width: '30px', 'margin-left': '0' }, 250);
|
||||
<?php } else if ($_SESSION['theme']['menu_brand_type']['text'] == 'image' || $_SESSION['theme']['menu_brand_type']['text'] == '') { ?>
|
||||
$('#menu_brand_image_contracted').fadeOut(180);
|
||||
<?php } ?>
|
||||
$('#menu_side_container').animate({ width: '<?php echo is_numeric($_SESSION['theme']['menu_side_width_expanded']['text']) ? $_SESSION['theme']['menu_side_width_expanded']['text'] : '225'; ?>px' }, 250);
|
||||
$('#content_container').animate({ width: $(window).width() - <?php echo is_numeric($_SESSION['theme']['menu_side_width_expanded']['text']) ? $_SESSION['theme']['menu_side_width_expanded']['text'] : '225'; ?> }, 250, function() {
|
||||
$('.menu_brand_text').fadeIn(180);
|
||||
$('.menu_side_item_title').fadeIn(180);
|
||||
<?php if ($_SESSION['theme']['menu_brand_type']['text'] != 'none') { ?>
|
||||
$('.menu_side_contract').fadeIn(180);
|
||||
<?php } ?>
|
||||
<?php if ($_SESSION['theme']['menu_brand_type']['text'] == 'image' || $_SESSION['theme']['menu_brand_type']['text'] == '') { ?>
|
||||
$('#menu_brand_image_expanded').fadeIn(180);
|
||||
<?php } ?>
|
||||
menu_side_state = 'expanded';
|
||||
});
|
||||
<?php if ($_SESSION['theme']['menu_brand_type']['text'] == 'none') { ?>
|
||||
$('.menu_side_contract').show();
|
||||
<?php } ?>
|
||||
$('.menu_side_expand').hide();
|
||||
}
|
||||
<?php } ?>
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
@@ -149,7 +156,7 @@ echo "<script language='JavaScript' type='text/javascript' src='<!--{project_pat
|
||||
<?php echo message::html(true, " "); ?>
|
||||
|
||||
//hide message bar on hover
|
||||
$("#message_container").mouseover(function() {
|
||||
$("#message_container").on('mouseenter',function() {
|
||||
$("#message_container div").remove();
|
||||
$("#message_container").css({opacity: 0, 'height': 0}).css({'height': 'auto'});
|
||||
});
|
||||
@@ -159,9 +166,9 @@ echo "<script language='JavaScript' type='text/javascript' src='<!--{project_pat
|
||||
?>
|
||||
|
||||
//domain selector controls
|
||||
$(".domain_selector_domain").click(function() { show_domains(); });
|
||||
$("#header_domain_selector_domain").click(function() { show_domains(); });
|
||||
$("#domains_hide").click(function() { hide_domains(); });
|
||||
$(".domain_selector_domain").on('click', function() { show_domains(); });
|
||||
$("#header_domain_selector_domain").on('click', function() { show_domains(); });
|
||||
$("#domains_hide").on('click', function() { hide_domains(); });
|
||||
|
||||
function show_domains() {
|
||||
$('#domains_visible').val(1);
|
||||
@@ -174,7 +181,7 @@ echo "<script language='JavaScript' type='text/javascript' src='<!--{project_pat
|
||||
$(document).scrollTop(0);
|
||||
$("#domains_container").show();
|
||||
$("#domains_block").animate({marginRight: '+=300'}, 400, function() {
|
||||
$("#domain_filter").focus();
|
||||
$("#domain_filter").trigger('focus');
|
||||
});
|
||||
}
|
||||
|
||||
@@ -199,7 +206,7 @@ echo "<script language='JavaScript' type='text/javascript' src='<!--{project_pat
|
||||
|
||||
//link table rows (except the last - the list_control_icons cell) on a table with a class of 'tr_hover', according to the href attribute of the <tr> tag
|
||||
$('.tr_hover tr').each(function(i,e) {
|
||||
$(e).children('td:not(.list_control_icon,.list_control_icons,.tr_link_void)').click(function() {
|
||||
$(e).children('td:not(.list_control_icon,.list_control_icons,.tr_link_void)').on('click', function() {
|
||||
var href = $(this).closest("tr").attr("href");
|
||||
var target = $(this).closest('tr').attr('target');
|
||||
if (href) {
|
||||
@@ -272,15 +279,15 @@ echo "<script language='JavaScript' type='text/javascript' src='<!--{project_pat
|
||||
}
|
||||
});
|
||||
|
||||
<?php if ($_SESSION['theme']['menu_brand_image']['text'] != '' && $_SESSION['theme']['menu_brand_image_hover']['text'] != '') { ?>
|
||||
<?php if ($_SESSION['theme']['menu_brand_image']['text'] != '' && $_SESSION['theme']['menu_brand_image_hover']['text'] != '' && $_SESSION['theme']['menu_style']['text'] != 'side') { ?>
|
||||
//crossfade menu brand images (if hover version set)
|
||||
$(function(){
|
||||
$('#menu_brand_image').mouseover(function(){
|
||||
$('#menu_brand_image').on('mouseover',function(){
|
||||
$(this).fadeOut('fast', function(){
|
||||
$('#menu_brand_image_hover').fadeIn('fast');
|
||||
});
|
||||
});
|
||||
$('#menu_brand_image_hover').mouseout(function(){
|
||||
$('#menu_brand_image_hover').on('mouseout',function(){
|
||||
$(this).fadeOut('fast', function(){
|
||||
$('#menu_brand_image').fadeIn('fast');
|
||||
});
|
||||
@@ -289,7 +296,7 @@ echo "<script language='JavaScript' type='text/javascript' src='<!--{project_pat
|
||||
<?php } ?>
|
||||
|
||||
//generate resizeEnd event after window resize event finishes (used when side menu and on messages app)
|
||||
$(window).resize(function() {
|
||||
$(window).on('resize', function() {
|
||||
if (this.resizeTO) { clearTimeout(this.resizeTO); }
|
||||
this.resizeTO = setTimeout(function() { $(this).trigger('resizeEnd'); }, 180);
|
||||
});
|
||||
@@ -482,21 +489,15 @@ if (!$default_login) {
|
||||
default:
|
||||
$menu_position = ($menu_position != '') ? $menu_position : 'top';
|
||||
$menu_type = 'fixed-'.$menu_position;
|
||||
$menu_width = 'calc(90% - 20px)';
|
||||
$menu_width = !http_user_agent('mobile') ? 'calc(90% - 20px)' : null;
|
||||
$menu_brand = true;
|
||||
$menu_corners = null;
|
||||
}
|
||||
|
||||
//begin navbar code
|
||||
echo "<nav class='navbar navbar-inverse navbar-".$menu_type."' ".$menu_corners.">\n";
|
||||
echo " <div class='container-fluid' style='width: ".$menu_width."; padding: 0;'>\n";
|
||||
echo " <div class='navbar-header'>\n";
|
||||
echo " <button type='button' class='navbar-toggle collapsed' ".($menu_style == 'fixed' ? "style='margin-right: -2%;'" : null)." data-toggle='collapse' data-target='#main_navbar' aria-expanded='false' aria-controls='navbar'>\n";
|
||||
echo " <span class='sr-only'>Toggle navigation</span>\n";
|
||||
echo " <span class='icon-bar' style='margin-top: 1px;'></span>\n";
|
||||
echo " <span class='icon-bar'></span>\n";
|
||||
echo " <span class='icon-bar'></span>\n";
|
||||
echo " </button>\n";
|
||||
echo "<nav class='navbar navbar-expand-sm ".$menu_type."' ".$menu_corners.">\n";
|
||||
echo " <div class='container-fluid' style='width: ".$menu_width."; padding: 0;'>\n";
|
||||
echo " <div class='navbar-brand'>\n";
|
||||
|
||||
if ($menu_brand) {
|
||||
//define menu brand link
|
||||
@@ -508,55 +509,73 @@ if (!$default_login) {
|
||||
}
|
||||
//define menu brand mark
|
||||
$menu_brand_text = ($_SESSION['theme']['menu_brand_text']['text'] != '') ? escape($_SESSION['theme']['menu_brand_text']['text']) : "FusionPBX";
|
||||
if ($_SESSION['theme']['menu_brand_type']['text'] == 'image' || $_SESSION['theme']['menu_brand_type']['text'] == '') {
|
||||
$menu_brand_image = ($_SESSION['theme']['menu_brand_image']['text'] != '') ? escape($_SESSION['theme']['menu_brand_image']['text']) : PROJECT_PATH."/themes/default/images/logo.png";
|
||||
echo "<a href='".$menu_brand_link."'>";
|
||||
echo "<img id='menu_brand_image' class='navbar-logo' ".(($menu_style == 'fixed') ? "style='margin-right: -2%;'" : null)." src='".$menu_brand_image."' title=\"".escape($menu_brand_text)."\">";
|
||||
if ($_SESSION['theme']['menu_brand_image_hover']['text'] != '') {
|
||||
echo "<img id='menu_brand_image_hover' class='navbar-logo' style='display: none;' src='".$_SESSION['theme']['menu_brand_image_hover']['text']."' title=\"".escape($menu_brand_text)."\">";
|
||||
}
|
||||
echo "</a>";
|
||||
}
|
||||
else if ($_SESSION['theme']['menu_brand_type']['text'] == 'text') {
|
||||
echo "<div class='pull-left'><a class='navbar-brand' href=\"".$menu_brand_link."\">".$menu_brand_text."</a></div>\n";
|
||||
switch ($_SESSION['theme']['menu_brand_type']['text']) {
|
||||
case 'text':
|
||||
echo " <a class='navbar-brand-text' href=\"".$menu_brand_link."\">".$menu_brand_text."</a>\n";
|
||||
break;
|
||||
case 'image_text':
|
||||
$menu_brand_image = ($_SESSION['theme']['menu_brand_image']['text'] != '') ? escape($_SESSION['theme']['menu_brand_image']['text']) : PROJECT_PATH."/themes/default/images/logo.png";
|
||||
echo " <a href='".$menu_brand_link."'>";
|
||||
echo " <img id='menu_brand_image' class='navbar-logo' src='".$menu_brand_image."' title=\"".escape($menu_brand_text)."\">";
|
||||
if ($_SESSION['theme']['menu_brand_image_hover']['text'] != '') {
|
||||
echo "<img id='menu_brand_image_hover' class='navbar-logo' style='display: none;' src='".$_SESSION['theme']['menu_brand_image_hover']['text']."' title=\"".escape($menu_brand_text)."\">";
|
||||
}
|
||||
echo "</a>\n";
|
||||
echo " <a class='navbar-brand-text' href=\"".$menu_brand_link."\">".$menu_brand_text."</a>\n";
|
||||
break;
|
||||
case 'none':
|
||||
break;
|
||||
case 'image':
|
||||
default:
|
||||
$menu_brand_image = ($_SESSION['theme']['menu_brand_image']['text'] != '') ? escape($_SESSION['theme']['menu_brand_image']['text']) : PROJECT_PATH."/themes/default/images/logo.png";
|
||||
echo " <a href='".$menu_brand_link."'>";
|
||||
echo " <img id='menu_brand_image' class='navbar-logo' src='".$menu_brand_image."' title=\"".escape($menu_brand_text)."\">";
|
||||
if ($_SESSION['theme']['menu_brand_image_hover']['text'] != '') {
|
||||
echo "<img id='menu_brand_image_hover' class='navbar-logo' style='display: none;' src='".$_SESSION['theme']['menu_brand_image_hover']['text']."' title=\"".escape($menu_brand_text)."\">";
|
||||
}
|
||||
echo "</a>\n";
|
||||
echo " <a style='margin: 0;'></a>\n";
|
||||
}
|
||||
}
|
||||
//domain name/selector (xs)
|
||||
if ($_SESSION["username"] != '' && permission_exists("domain_select") && count($_SESSION['domains']) > 1) {
|
||||
echo "<span class='pull-right visible-xs'><a href='#' class='domain_selector_domain' title='".escape($text['theme-label-open_selector'])."'>".escape($_SESSION['domain_name'])."</a></span>\n";
|
||||
}
|
||||
|
||||
echo " </div>\n";
|
||||
|
||||
echo " <button type='button' class='navbar-toggler' data-toggle='collapse' data-target='#main_navbar' aria-expanded='false' aria-controls='main_navbar' aria-label='Toggle Menu'>\n";
|
||||
echo " <span class='fas fa-bars'></span>\n";
|
||||
echo " </button>\n";
|
||||
|
||||
echo " <div class='collapse navbar-collapse' id='main_navbar'>\n";
|
||||
echo " <ul class='nav navbar-nav'>\n";
|
||||
echo " <ul class='navbar-nav'>\n";
|
||||
|
||||
foreach ($menu_array as $index_main => $menu_parent) {
|
||||
$mod_li = "";
|
||||
$mod_li = "nav-item";
|
||||
$mod_a_1 = "";
|
||||
$submenu = false;
|
||||
if (is_array($menu_parent['menu_items']) && sizeof($menu_parent['menu_items']) > 0) {
|
||||
$mod_li = "class='dropdown' ";
|
||||
$mod_a_1 = "class='dropdown-toggle text-left' data-toggle='dropdown' ";
|
||||
$mod_li = "nav-item dropdown ";
|
||||
$mod_a_1 = "data-toggle='dropdown' ";
|
||||
$submenu = true;
|
||||
}
|
||||
$mod_a_2 = ($menu_parent['menu_item_link'] != '' && !$submenu) ? $menu_parent['menu_item_link'] : '#';
|
||||
$mod_a_3 = ($menu_parent['menu_item_category'] == 'external') ? "target='_blank' " : null;
|
||||
if ($_SESSION['theme']['menu_main_icons']['boolean'] != 'false') {
|
||||
if ($menu_parent['menu_item_icon'] != '' && substr_count($menu_parent['menu_item_icon'], 'glyphicon-') > 0) {
|
||||
$menu_main_icon = "<span class='glyphicon ".$menu_parent['menu_item_icon']."' title=\"".escape($menu_parent['menu_language_title'])."\"></span>";
|
||||
if ($menu_parent['menu_item_icon'] != '' && substr_count($menu_parent['menu_item_icon'], 'fa-') > 0) {
|
||||
$menu_main_icon = "<span class='fas ".$menu_parent['menu_item_icon']."' title=\"".escape($menu_parent['menu_language_title'])."\"></span>\n";
|
||||
}
|
||||
else {
|
||||
$menu_main_icon = null;
|
||||
}
|
||||
$menu_main_item = "<span class='hidden-sm' style='margin-left: 5px;'>".$menu_parent['menu_language_title']."</span>";
|
||||
$menu_main_item = "<span class='d-sm-none d-md-none d-lg-inline' style='margin-left: 5px;'>".$menu_parent['menu_language_title']."</span>\n";
|
||||
}
|
||||
else {
|
||||
$menu_main_item = $menu_parent['menu_language_title'];
|
||||
}
|
||||
echo " <li ".$mod_li.">\n";
|
||||
echo " <a ".$mod_a_1." href='".$mod_a_2."' ".$mod_a_3.">".$menu_main_icon.$menu_main_item."</a>\n";
|
||||
echo " <li class='".$mod_li."'>\n";
|
||||
echo " <a class='nav-link' ".$mod_a_1." href='".$mod_a_2."' ".$mod_a_3.">\n";
|
||||
echo " ".$menu_main_icon.$menu_main_item;
|
||||
echo " </a>\n";
|
||||
if ($submenu) {
|
||||
echo " <ul class='dropdown-menu'>\n";
|
||||
echo " <ul class='dropdown-menu'>\n";
|
||||
foreach ($menu_parent['menu_items'] as $index_sub => $menu_sub) {
|
||||
$mod_a_2 = $menu_sub['menu_item_link'];
|
||||
if ($mod_a_2 == '') {
|
||||
@@ -573,33 +592,38 @@ if (!$default_login) {
|
||||
}
|
||||
$mod_a_3 = ($menu_sub['menu_item_category'] == 'external') ? "target='_blank' " : null;
|
||||
if ($_SESSION['theme']['menu_sub_icons']['boolean'] != 'false') {
|
||||
if ($menu_sub['menu_item_icon'] != '' && substr_count($menu_sub['menu_item_icon'], 'glyphicon-') > 0) {
|
||||
$menu_sub_icon = "<span class='glyphicon ".escape($menu_sub['menu_item_icon'])."'></span>";
|
||||
if ($menu_sub['menu_item_icon'] != '' && substr_count($menu_sub['menu_item_icon'], 'fa-') > 0) {
|
||||
$menu_sub_icon = "<span class='fas ".escape($menu_sub['menu_item_icon'])."'></span>";
|
||||
}
|
||||
else {
|
||||
$menu_sub_icon = null;
|
||||
}
|
||||
}
|
||||
echo " <li><a href='".$mod_a_2."' ".$mod_a_3.">".(($_SESSION['theme']['menu_sub_icons']) ? "<span class='glyphicon glyphicon-minus visible-xs pull-left' style='margin: 4px 10px 0 25px;'></span>" : null).escape($menu_sub['menu_language_title']).$menu_sub_icon."</a></li>\n";
|
||||
echo " <li class='nav-item'><a class='nav-link' href='".$mod_a_2."' ".$mod_a_3.">".($_SESSION['theme']['menu_sub_icons'] ? "<span class='fas fa-bar d-inline-block d-sm-none float-left' style='margin: 4px 10px 0 25px;'></span>" : null).escape($menu_sub['menu_language_title']).$menu_sub_icon."</a></li>\n";
|
||||
}
|
||||
echo " </ul>\n";
|
||||
echo " </ul>\n";
|
||||
}
|
||||
echo " </li>\n";
|
||||
echo " </li>\n";
|
||||
}
|
||||
|
||||
echo " </ul>\n";
|
||||
echo " <span class='pull-right hidden-xs' style='white-space: nowrap;'>\n";
|
||||
//domain name/selector (sm+)
|
||||
|
||||
echo " <ul class='navbar-nav ml-auto'>␍\n";
|
||||
//domain name/selector
|
||||
if ($_SESSION["username"] != '' && permission_exists("domain_select") && count($_SESSION['domains']) > 1 && $_SESSION['theme']['domain_visible']['text'] == 'true') {
|
||||
echo " <a href='#' class='domain_selector_domain' title='".$text['theme-label-open_selector']."'>".escape($_SESSION['domain_name'])."</a>";
|
||||
echo " <li class='nav-item'>\n";
|
||||
echo " <a class='nav-link domain_selector_domain' href='#' title='".$text['theme-label-open_selector']."'>".escape($_SESSION['domain_name'])."</a>";
|
||||
echo " </li>\n";
|
||||
}
|
||||
//logout icon
|
||||
if ($_SESSION['username'] != '' && $_SESSION['theme']['logout_icon_visible']['text'] == "true") {
|
||||
$username_full = $_SESSION['username'].((count($_SESSION['domains']) > 1) ? "@".$_SESSION["user_context"] : null);
|
||||
echo " <a href='".PROJECT_PATH."/logout.php' class='logout_icon' title=\"".$text['theme-label-logout']."\" onclick=\"return confirm('".$text['theme-confirm-logout']."')\"><span class='glyphicon glyphicon-log-out'></span></a>";
|
||||
echo " <li class='nav-item'>\n";
|
||||
echo " <a class='nav-link logout_icon' href='".PROJECT_PATH."/logout.php' title=\"".$text['theme-label-logout']."\" onclick=\"return confirm('".$text['theme-confirm-logout']."')\"><span class='fas fa-sign-out-alt'></span></a>";
|
||||
echo " </li>\n";
|
||||
unset($username_full);
|
||||
}
|
||||
echo " </span>\n";
|
||||
echo " </ul>\n";
|
||||
|
||||
echo " </div>\n";
|
||||
echo " </div>\n";
|
||||
@@ -615,16 +639,16 @@ if (!$default_login) {
|
||||
unset($menu);
|
||||
|
||||
$menu_style = ($_SESSION['theme']['menu_style']['text'] != '') ? $_SESSION['theme']['menu_style']['text'] : 'fixed';
|
||||
$menu_position = ($_SESSION['theme']['menu_position']['text']) ? $_SESSION['theme']['menu_position']['text'] : 'top';
|
||||
$menu_position = ($_SESSION['theme']['menu_position']['text'] != '') ? $_SESSION['theme']['menu_position']['text'] : 'top';
|
||||
|
||||
switch ($menu_style) {
|
||||
case 'inline':
|
||||
$logo_align = ($_SESSION['theme']['logo_align']['text'] != '') ? $_SESSION['theme']['logo_align']['text'] : 'left';
|
||||
$logo_style = ($_SESSION['theme']['logo_style']['text'] != '') ? $_SESSION['theme']['logo_style']['text'] : '';
|
||||
$logo_style = ($_SESSION['theme']['logo_style']['text'] != '') ? $_SESSION['theme']['logo_style']['text'] : null;
|
||||
echo "<div class='container-fluid' style='padding: 0;' align='".$logo_align."'>\n";
|
||||
if ($_SERVER['PHP_SELF'] != PROJECT_PATH."/core/install/install.php") {
|
||||
$logo = ($_SESSION['theme']['logo']['text'] != '') ? $_SESSION['theme']['logo']['text'] : PROJECT_PATH."/themes/default/images/logo.png";
|
||||
echo "<a href='".((PROJECT_PATH != '') ? PROJECT_PATH : '/')."'><img src='".$logo."' style='padding: 15px 20px;$logo_style'></a>";
|
||||
echo "<a href='".((PROJECT_PATH != '') ? PROJECT_PATH : '/')."'><img src='".$logo."' style='padding: 15px 20px; ".$logo_style."'></a>";
|
||||
}
|
||||
|
||||
show_menu($menu_array, $menu_style, $menu_position);
|
||||
@@ -641,18 +665,18 @@ if (!$default_login) {
|
||||
echo "<div id='menu_side_container'>\n";
|
||||
//menu brand image and/or text
|
||||
if ($_SESSION['theme']['menu_brand_type']['text'] == 'none') {
|
||||
echo "<div style='height: 75px;'>\n";
|
||||
echo "<a class='menu_side_item_main menu_side_contract' onclick='menu_side_contract();' style='display: none;'><i class='glyphicon glyphicon-menu-hamburger' style='z-index: 99800; padding-right: 8px;'></i></a>";
|
||||
echo "<a class='menu_side_item_main menu_side_expand' onclick='menu_side_expand();'><i class='glyphicon glyphicon-menu-hamburger' style='z-index: 99800; padding-right: 8px;'></i></a>";
|
||||
echo "</div>\n";
|
||||
echo " <div style='height: 75px;'>\n";
|
||||
echo "<a class='menu_side_item_main menu_side_contract' onclick='menu_side_contract();' style='display: none;'><i class='fas fa-chevron-left' style='z-index: 99800; padding-left: 3px;'></i></a>";
|
||||
echo "<a class='menu_side_item_main menu_side_expand' onclick='menu_side_expand();'><i class='fas fa-bars' style='z-index: 99800; padding-left: 3px;'></i></a>";
|
||||
echo "</div>\n";
|
||||
}
|
||||
else {
|
||||
echo "<div id='menu_side_brand_container'>\n";
|
||||
echo " <div id='menu_side_brand_container'>\n";
|
||||
//menu toggle buttons
|
||||
if ($_SESSION['theme']['menu_brand_type']['text'] != 'none') {
|
||||
echo "<div style='float: right; margin-right: -20px; margin-top: -20px;'>\n";
|
||||
echo "<a class='menu_side_item_main menu_side_contract' onclick='menu_side_contract();' style='display: none;'><i class='glyphicon glyphicon-menu-hamburger'></i></a>";
|
||||
echo "</div>\n";
|
||||
echo " <div style='float: right; margin-right: -20px; margin-top: -20px;'>\n";
|
||||
echo " <a class='menu_side_item_main menu_side_contract' onclick='menu_side_contract();' style='display: none;'><i class='fas fa-chevron-left'></i></a>\n";
|
||||
echo " </div>\n";
|
||||
}
|
||||
//define the menu brand link
|
||||
if (strlen(PROJECT_PATH) > 0) {
|
||||
@@ -666,53 +690,53 @@ if (!$default_login) {
|
||||
$menu_brand_image_expanded = $_SESSION['theme']['menu_side_brand_image_expanded']['text'] != '' ? $_SESSION['theme']['menu_side_brand_image_expanded']['text'] : PROJECT_PATH."/themes/default/images/logo_side_expanded.png";
|
||||
$menu_brand_text = ($_SESSION['theme']['menu_brand_text']['text'] != '') ? escape($_SESSION['theme']['menu_brand_text']['text']) : "FusionPBX";
|
||||
if ($_SESSION['theme']['menu_brand_type']['text'] == 'image' || $_SESSION['theme']['menu_brand_type']['text'] == '') {
|
||||
echo "<a href='".$menu_brand_link."' style='text-decoration: none;'>";
|
||||
echo "<img id='menu_brand_image_contracted' style='width: 20px; margin-left: -2px; margin-top: -5px;' src='".escape($menu_brand_image_contracted)."' title=\"".escape($menu_brand_text)."\">";
|
||||
echo "<img id='menu_brand_image_expanded' style='display: none;' src='".escape($menu_brand_image_expanded)."' title=\"".escape($menu_brand_text)."\">";
|
||||
echo "</a>\n";
|
||||
echo " <a href='".$menu_brand_link."' style='text-decoration: none;'>";
|
||||
echo "<img id='menu_brand_image_contracted' style='width: 20px; margin-left: -2px; margin-top: -5px;' src='".escape($menu_brand_image_contracted)."' title=\"".escape($menu_brand_text)."\">";
|
||||
echo "<img id='menu_brand_image_expanded' style='display: none;' src='".escape($menu_brand_image_expanded)."' title=\"".escape($menu_brand_text)."\">";
|
||||
echo "</a>\n";
|
||||
}
|
||||
else if ($_SESSION['theme']['menu_brand_type']['text'] == 'image_text') {
|
||||
echo "<a href='".$menu_brand_link."' style='text-decoration: none;'>";
|
||||
echo "<img id='menu_brand_image_contracted' style='width: 20px; margin-left: -2px; margin-top: -5px;' src='".escape($menu_brand_image_contracted)."' title=\"".escape($menu_brand_text)."\">";
|
||||
echo "<span class='menu_brand_text' style='display: none;'>".$menu_brand_text."</span>";
|
||||
echo "</a>\n";
|
||||
echo " <a href='".$menu_brand_link."' style='text-decoration: none;'>";
|
||||
echo "<img id='menu_brand_image_contracted' style='width: 20px; margin-left: -2px; margin-top: -5px;' src='".escape($menu_brand_image_contracted)."' title=\"".escape($menu_brand_text)."\">";
|
||||
echo "<span class='menu_brand_text' style='display: none;'>".$menu_brand_text."</span>";
|
||||
echo "</a>\n";
|
||||
}
|
||||
else if ($_SESSION['theme']['menu_brand_type']['text'] == 'text') {
|
||||
echo "<a class='menu_brand_text' style='display: none;' href=\"".$menu_brand_link."\">".$menu_brand_text."</a>\n";
|
||||
echo " <a class='menu_brand_text' style='display: none;' href=\"".$menu_brand_link."\">".$menu_brand_text."</a>\n";
|
||||
}
|
||||
echo "</div>\n";
|
||||
echo " </div>\n";
|
||||
}
|
||||
|
||||
//main menu items
|
||||
if (is_array($menu_array) && sizeof($menu_array) != 0) {
|
||||
foreach ($menu_array as $menu_index_main => $menu_item_main) {
|
||||
echo "<a class='menu_side_item_main' ".($menu_item_main['menu_item_link'] != '' ? "href='".$menu_item_main['menu_item_link']."'" : "onclick=\"menu_side_expand(); $('#sub_".$menu_item_main['menu_item_uuid']."').slideToggle(180, function() { if (!$(this).is(':hidden')) { $('.menu_side_sub').not($(this)).slideUp(180); } });\"")." title=\"".$menu_item_main['menu_language_title']."\">";
|
||||
echo " <a class='menu_side_item_main' ".($menu_item_main['menu_item_link'] != '' ? "href='".$menu_item_main['menu_item_link']."'" : "onclick=\"menu_side_expand(); $('#sub_".$menu_item_main['menu_item_uuid']."').slideToggle(180, function() { if (!$(this).is(':hidden')) { $('.menu_side_sub').not($(this)).slideUp(180); } });\"")." title=\"".$menu_item_main['menu_language_title']."\">";
|
||||
if ($menu_item_main['menu_item_icon'] != '') {
|
||||
echo "<i class='glyphicon ".$menu_item_main['menu_item_icon']."' style='z-index: 99800; padding-right: 8px;'></i>";
|
||||
echo "<i class='fas ".$menu_item_main['menu_item_icon']." fa-fw' style='z-index: 99800; margin-right: 8px;'></i>";
|
||||
}
|
||||
echo "<span class='menu_side_item_title' style='display: none;'>".$menu_item_main['menu_language_title']."</span>";
|
||||
echo "</a>\n";
|
||||
//sub menu items
|
||||
if (is_array($menu_item_main['menu_items']) && sizeof($menu_item_main['menu_items']) != 0) {
|
||||
echo "<div id='sub_".$menu_item_main['menu_item_uuid']."' class='menu_side_sub' style='display: none;'>\n";
|
||||
echo " <div id='sub_".$menu_item_main['menu_item_uuid']."' class='menu_side_sub' style='display: none;'>\n";
|
||||
foreach ($menu_item_main['menu_items'] as $menu_index_sub => $menu_item_sub) {
|
||||
echo "<a class='menu_side_item_sub' ".($menu_item_sub['menu_item_category'] == 'external' ? "target='_blank'" : null)." href='".$menu_item_sub['menu_item_link']."'>";
|
||||
echo "<span class='menu_side_item_title' style='display: none;'>".$menu_item_sub['menu_language_title']."</span>";
|
||||
echo "</a>\n";
|
||||
echo " <a class='menu_side_item_sub' ".($menu_item_sub['menu_item_category'] == 'external' ? "target='_blank'" : null)." href='".$menu_item_sub['menu_item_link']."'>";
|
||||
echo "<span class='menu_side_item_title' style='display: none;'>".$menu_item_sub['menu_language_title']."</span>";
|
||||
echo "</a>\n";
|
||||
}
|
||||
echo "</div>\n";
|
||||
echo " </div>\n";
|
||||
}
|
||||
}
|
||||
echo "<div style='height: 100px;'></div>\n";
|
||||
echo " <div style='height: 100px;'></div>\n";
|
||||
}
|
||||
echo "</div>\n";
|
||||
echo "<div id='content_container' style='padding: 0; width: calc(100% - ".(is_numeric($_SESSION['theme']['menu_side_width_contracted']['text']) ? $_SESSION['theme']['menu_side_width_contracted']['text'] : '55')."px); float: right; padding-top: 0px; text-align: center;'>\n";
|
||||
echo " <div id='content_header'>\n";
|
||||
//header: left
|
||||
echo "<div style='float: left;'>\n";
|
||||
echo "<div class='float-left'>\n";
|
||||
echo "</div>\n";
|
||||
//header: right
|
||||
echo "<span class='pull-right' style='white-space: nowrap;'>";
|
||||
echo "<span class='float-right' style='white-space: nowrap;'>";
|
||||
//current user
|
||||
echo "<span style='display: inline-block; padding-right: 20px; font-size: 85%;'>\n";
|
||||
echo "<strong>".$text['theme-label-user']."</strong>: ";
|
||||
@@ -722,12 +746,12 @@ if (!$default_login) {
|
||||
if ($_SESSION["username"] != '' && permission_exists("domain_select") && count($_SESSION['domains']) > 1 && $_SESSION['theme']['domain_visible']['text'] == 'true') {
|
||||
echo "<span style='display: inline-block; padding-right: 10px; font-size: 85%;'>\n";
|
||||
echo "<strong>".$text['theme-label-domain']."</strong>: ";
|
||||
echo "<a id='header_domain_selector_domain' title='".$text['theme-label-open_selector']."'>".escape($_SESSION['domain_name'])."</a>";
|
||||
echo "<a href='#' id='header_domain_selector_domain' title='".$text['theme-label-open_selector']."'>".escape($_SESSION['domain_name'])."</a>";
|
||||
echo "</span>\n";
|
||||
}
|
||||
//logout icon
|
||||
if ($_SESSION['username'] != '' && $_SESSION['theme']['logout_icon_visible']['text'] == "true") {
|
||||
echo "<a id='header_logout_icon' href='".PROJECT_PATH."/logout.php' title=\"".$text['theme-label-logout']."\" onclick=\"return confirm('".$text['theme-confirm-logout']."')\"><span class='glyphicon glyphicon-log-out'></span></a>";
|
||||
echo "<a id='header_logout_icon' href='".PROJECT_PATH."/logout.php' title=\"".$text['theme-label-logout']."\" onclick=\"return confirm('".$text['theme-confirm-logout']."')\"><span class='fas fa-log-out'></span></a>";
|
||||
}
|
||||
echo "</span>";
|
||||
echo " </div>\n";
|
||||
|
||||
Reference in New Issue
Block a user