From 2a2d200cf34e2c136a5e50957a16111491da336f Mon Sep 17 00:00:00 2001 From: IgorA100 Date: Thu, 9 May 2024 00:36:40 +0300 Subject: [PATCH] Fix: CSS file loading order (functions.php) Load third-party files first --- web/skins/classic/includes/functions.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/web/skins/classic/includes/functions.php b/web/skins/classic/includes/functions.php index ff8efac48..b876d4cd8 100644 --- a/web/skins/classic/includes/functions.php +++ b/web/skins/classic/includes/functions.php @@ -114,6 +114,10 @@ echo output_link_if_exists(array( 'js/bootstrap-table-1.22.3/bootstrap-table.min.css', 'js/bootstrap-table-1.22.3/extensions/page-jump-to/bootstrap-table-page-jump-to.min.css', ), true); + +if ( $basename == 'montage' ) { + echo output_link_if_exists(array('/assets/gridstack/dist/gridstack.css', '/assets/gridstack/dist/gridstack-extra.css')); +} ?> @@ -137,9 +141,6 @@ if ( $css != 'base' ) if ( $css != 'base' ) echo output_link_if_exists(array('/css/'.$css.'/views/control.css')); } - if ( $basename == 'montage' ) { - echo output_link_if_exists(array('/assets/gridstack/dist/gridstack.css', '/assets/gridstack/dist/gridstack-extra.css')); - } ?>