From bb7c18797ae94cd22669e5943e23cf4567fbae08 Mon Sep 17 00:00:00 2001 From: IgorA100 Date: Tue, 15 Apr 2025 10:34:24 +0300 Subject: [PATCH 01/35] Feat: Added left side menu (functions.php) --- web/skins/classic/includes/functions.php | 590 ++++++++++++++++++++--- 1 file changed, 528 insertions(+), 62 deletions(-) diff --git a/web/skins/classic/includes/functions.php b/web/skins/classic/includes/functions.php index 2b8fb9036..19a483c2a 100644 --- a/web/skins/classic/includes/functions.php +++ b/web/skins/classic/includes/functions.php @@ -18,6 +18,8 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. // +$useOldMenuView = (isset($_COOKIE['zmUseOldMenuView']) and $_COOKIE["zmUseOldMenuView"] === 'true') ? true : false; + function xhtmlHeaders($file, $title) { xhtmlHeadersStart($file, $title); xhtmlHeadersEnd(); @@ -117,6 +119,14 @@ if ( $css != 'base' ) 'css/'.$css.'/jquery-ui-theme.css', )); + global $useOldMenuView; + if (!$useOldMenuView) { + echo output_link_if_exists(array( + '/assets/pro-sidebar-template/main.css', + '/css/base/sidebar.css', + )); + } + if ( $basename == 'watch' ) { echo output_link_if_exists(array('/css/base/views/control.css')); if ( $css != 'base' ) @@ -146,8 +156,11 @@ function xhtmlHeadersEnd() { // Outputs an opening body tag, and any additional content that should go at the very top, like warnings and error messages. function getBodyTopHTML() { + global $view; + //Needed for more flexible global governance + $classHTML = ' class="'.$view.'-page'.((defined('ZM_WEB_NAVBAR_STICKY') and ZM_WEB_NAVBAR_STICKY) ? ' sticky"' : '"'); echo ' - +