1
0
mirror of https://github.com/e107inc/e107.git synced 2025-09-02 19:02:39 +02:00

Auto-prepend "cdn." (when available and CDN is On). Autoload "unminified" version (if available) when debug mode is On.

This commit is contained in:
lonalore
2017-01-27 11:51:28 +01:00
parent b8a1bde497
commit b0a48418d8
7 changed files with 652 additions and 636 deletions

View File

@@ -1,6 +1,12 @@
<?php
/**
* e107 website system
*
* Copyright (C) 2008-2017 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* @file
* Provides information about external libraries.
*/
@@ -17,13 +23,12 @@ class bootstrap3_library
*/
function config()
{
$libraries = array();
return $libraries;
// TODO - bootswatch...
return array();
}
/**
* Alter the library information before detection and caching takes place.
* Alters library information before detection and caching takes place.
*/
function config_alter(&$libraries)
{
@@ -33,9 +38,9 @@ class bootstrap3_library
{
// Disable Bootstrap CSS.
unset($libraries['cdn.bootstrap']['files']['css']);
unset($libraries['cdn.bootstrap']['variants']['minified']['files']['css']);
unset($libraries['cdn.bootstrap']['variants']['dev']['files']['css']);
unset($libraries['bootstrap']['files']['css']);
unset($libraries['bootstrap']['variants']['minified']['files']['css']);
unset($libraries['bootstrap']['variants']['dev']['files']['css']);
}
}