Fix: CSS file loading order (functions.php)

Load third-party files first
pull/3988/head
IgorA100 2024-05-09 00:36:40 +03:00 committed by GitHub
parent 4b596b70f3
commit 2a2d200cf3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 3 deletions

View File

@ -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'));
}
?>
<link rel="stylesheet" href="skins/classic/js/jquery-ui-1.13.2/jquery-ui.theme.min.css" type="text/css"/>
<?php #Chosen can't be cache-busted because it loads sprites by relative path ?>
@ -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'));
}
?>
<style>
<?php