1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-30 17:50:12 +02:00

Upgraded Bootstrap 3.3.7 to 3.4.1

This commit is contained in:
Cameron
2020-03-25 05:08:49 -07:00
parent 852ab5a32f
commit a2faa04fdf
25 changed files with 976 additions and 711 deletions

View File

@@ -19,28 +19,13 @@ if(!defined('e107_INIT'))
define('VIEWPORT', "width=device-width, initial-scale=1.0");
// CDN provider for Bootswatch.
$cndPref = e107::pref('theme', 'cdn', 'cdnjs');
$bootswatch = e107::pref('theme', 'bootswatch', false);
switch($cndPref)
// Load CDN provider for Bootswatch.
if($bootswatch = e107::pref('theme', 'bootswatch', false))
{
case "jsdelivr":
if($bootswatch)
{
e107::css('url', 'https://cdn.jsdelivr.net/bootswatch/3.3.7/' . $bootswatch . '/bootstrap.min.css');
}
break;
case "cdnjs":
default:
if($bootswatch)
{
e107::css('url', 'https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.7/' . $bootswatch . '/bootstrap.min.css');
}
break;
e107::css('url', 'https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.4.0/' . $bootswatch . '/bootstrap.min.css');
}
/* @example prefetch */
//e107::link(array('rel'=>'prefetch', 'href'=>THEME.'images/browsers.png'));