mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-25 05:19:22 +00:00
Separated 3rdparty files from app files
This commit is contained in:
parent
7ec9e23517
commit
7033e22dbe
@ -8,8 +8,8 @@
|
|||||||
//Path to assets
|
//Path to assets
|
||||||
$config['pathAssets'] = $config['siteURL']."assets/";
|
$config['pathAssets'] = $config['siteURL']."assets/";
|
||||||
|
|
||||||
//CSS files to include
|
//3rdparty CSS files to include
|
||||||
$config['CSSfiles'] = array(
|
$config['3rdPartyCSSfiles'] = array(
|
||||||
//CSS files - adminLTE distribution / bootstrap / plugins
|
//CSS files - adminLTE distribution / bootstrap / plugins
|
||||||
"%PATH_ASSETS%3rdparty/adminLTE/bootstrap/css/bootstrap.min.css",
|
"%PATH_ASSETS%3rdparty/adminLTE/bootstrap/css/bootstrap.min.css",
|
||||||
"%PATH_ASSETS%3rdparty/adminLTE/plugins/font-awesome/css/font-awesome.min.css",
|
"%PATH_ASSETS%3rdparty/adminLTE/plugins/font-awesome/css/font-awesome.min.css",
|
||||||
@ -19,7 +19,10 @@ $config['CSSfiles'] = array(
|
|||||||
"%PATH_ASSETS%3rdparty/adminLTE/plugins/select2/select2.min.css",
|
"%PATH_ASSETS%3rdparty/adminLTE/plugins/select2/select2.min.css",
|
||||||
"%PATH_ASSETS%3rdparty/adminLTE/dist/css/AdminLTE.min.css",
|
"%PATH_ASSETS%3rdparty/adminLTE/dist/css/AdminLTE.min.css",
|
||||||
"%PATH_ASSETS%3rdparty/adminLTE/dist/css/skins/_all-skins.min.css",
|
"%PATH_ASSETS%3rdparty/adminLTE/dist/css/skins/_all-skins.min.css",
|
||||||
|
);
|
||||||
|
|
||||||
|
//App CSS files
|
||||||
|
$config['CSSfiles'] = array(
|
||||||
//App stylesheets - common stylesheets
|
//App stylesheets - common stylesheets
|
||||||
"%PATH_ASSETS%css/common/global.css",
|
"%PATH_ASSETS%css/common/global.css",
|
||||||
"%PATH_ASSETS%css/common/page/waitSplashScreen.css",
|
"%PATH_ASSETS%css/common/page/waitSplashScreen.css",
|
||||||
@ -47,9 +50,8 @@ $config['CSSfiles'] = array(
|
|||||||
"%PATH_ASSETS%css/components/emoji/parser.css",
|
"%PATH_ASSETS%css/components/emoji/parser.css",
|
||||||
);
|
);
|
||||||
|
|
||||||
//JS files to include (at the end of the page)
|
//3rd party JS files to include (at the end of the page)
|
||||||
$config['JSfiles'] = array(
|
$config['3rdPartyJSfiles'] = array(
|
||||||
//Framework inclusions
|
|
||||||
//Jquery
|
//Jquery
|
||||||
"%PATH_ASSETS%3rdparty/adminLTE/plugins/jQuery/jquery-2.2.3.min.js",
|
"%PATH_ASSETS%3rdparty/adminLTE/plugins/jQuery/jquery-2.2.3.min.js",
|
||||||
|
|
||||||
@ -79,6 +81,10 @@ $config['JSfiles'] = array(
|
|||||||
|
|
||||||
//Textarea auto-size
|
//Textarea auto-size
|
||||||
"%PATH_ASSETS%3rdparty/jquery.textarea_autosize/jquery.textarea_autosize.min.js",
|
"%PATH_ASSETS%3rdparty/jquery.textarea_autosize/jquery.textarea_autosize.min.js",
|
||||||
|
);
|
||||||
|
|
||||||
|
//Application JS files
|
||||||
|
$config['JSfiles'] = array(
|
||||||
|
|
||||||
//Utilities
|
//Utilities
|
||||||
"%PATH_ASSETS%js/common/utils.js",
|
"%PATH_ASSETS%js/common/utils.js",
|
||||||
|
22
index.php
22
index.php
@ -35,7 +35,16 @@
|
|||||||
<link rel="icon" type="image/vnd.microsoft.icon" href="<?php echo config['pathAssets']; ?>img/favicon.png" />
|
<link rel="icon" type="image/vnd.microsoft.icon" href="<?php echo config['pathAssets']; ?>img/favicon.png" />
|
||||||
<link rel="shortcut icon" type="image/x-icon" href="<?php echo config['pathAssets']; ?>img/favicon.png" />
|
<link rel="shortcut icon" type="image/x-icon" href="<?php echo config['pathAssets']; ?>img/favicon.png" />
|
||||||
|
|
||||||
<!--Stylesheet requirements -->
|
<!--3rdPary Stylesheet requirements -->
|
||||||
|
<?php
|
||||||
|
foreach($config['3rdPartyCSSfiles'] as $file){
|
||||||
|
//Include CSS file
|
||||||
|
$file = str_replace("%PATH_ASSETS%", $config['pathAssets'], $file);
|
||||||
|
echo CSSFileInclusionCode($file);
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
<!--App Stylesheet requirements -->
|
||||||
<?php
|
<?php
|
||||||
foreach($config['CSSfiles'] as $file){
|
foreach($config['CSSfiles'] as $file){
|
||||||
//Include CSS file
|
//Include CSS file
|
||||||
@ -90,7 +99,16 @@
|
|||||||
<p><small>If this screen doesn't disappear after a while, please check javascript is enabled in your browser...</small></p>
|
<p><small>If this screen doesn't disappear after a while, please check javascript is enabled in your browser...</small></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Javascript files inclusion -->
|
<!-- 3rdparty Javascript files inclusion -->
|
||||||
|
<?php
|
||||||
|
foreach($config['3rdPartyJSfiles'] as $file){
|
||||||
|
//Include JS file
|
||||||
|
$file = str_replace("%PATH_ASSETS%", $config['pathAssets'], $file);
|
||||||
|
echo javascriptFileInclusionCode($file);
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
<!-- Application Javascript files inclusion -->
|
||||||
<?php
|
<?php
|
||||||
foreach($config['JSfiles'] as $file){
|
foreach($config['JSfiles'] as $file){
|
||||||
//Include JS file
|
//Include JS file
|
||||||
|
Loading…
Reference in New Issue
Block a user