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

Use Library Manager to load jQuery, jQuery UI... etc.

This commit is contained in:
lonalore
2016-12-22 14:16:52 +01:00
parent 46a7dd5d14
commit 8ef8a93407
4 changed files with 379 additions and 73 deletions

View File

@@ -5,28 +5,11 @@ define("SEP"," <span class='fa fa-play e-breadcrumb'></span> ");
define("BOOTSTRAP", 3);
define('FONTAWESOME', 4);
$minified = deftrue('e_DEBUG') == true ? null : 'minified';
// e107::js("url", "https://netdna.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js",'jquery', 2);
// e107::css('url', 'http://netdna.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css');
// e107::css('url', "https://netdna.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css");
e107::js("url", "https://cdn.jsdelivr.net/bootstrap/3.3.6/js/bootstrap.min.js", 'jquery', 2);
// e107::css('url', 'https://cdn.jsdelivr.net/bootstrap/3.3.5/css/bootstrap.min.css');
e107::css('url', 'https://cdn.jsdelivr.net/fontawesome/4.5.0/css/font-awesome.min.css');
// Too slow.
// e107::css('url', "http://cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap3-editable/css/bootstrap-editable.css");
// e107::js('url', "http://cdnjs.cloudflare.com/ajax/libs/x-editable/1.5.0/bootstrap3-editable/js/bootstrap-editable.min.js");
e107::css('core', 'bootstrap3-editable/css/bootstrap-editable.css', 'jquery');
e107::js('core', 'bootstrap3-editable/js/bootstrap-editable.min.js', 'jquery', 4);
// e107::css('url', 'http://maxcdn.bootstrapcdn.com/bootswatch/3.3.5/slate/bootstrap.min.css');
// e107::css('url', 'http://maxcdn.bootstrapcdn.com/bootswatch/3.3.5/cyborg/bootstrap.min.css');
// e107::css('url', "https://maxcdn.bootstrapcdn.com/bootswatch/3.3.5/cosmo/bootstrap.min.css");
// e107::css('url', "https://maxcdn.bootstrapcdn.com/bootswatch/3.3.5/darkly/bootstrap.min.css");
e107::library('load', 'cdn.bootstrap', $minified);
e107::library('load', 'cdn.fontawesome', $minified);
e107::library('load', 'bootstrap.editable', $minified);
e107::css('theme','css/bootstrap-dark.min.css');
e107::css('theme','admin_style.css');
@@ -34,8 +17,6 @@ e107::css('theme','admin_dark.css');
e107::css('theme','ie_all.css',null,'all',"<!--[if IE]>","<![endif]-->");
e107::css('inline', "
.mce-menubar .mce-caret { border-top-color: #C6C6C6!important }
.mce-menubar:hover .mce-caret { border-top-color: #FFFFFF!important }
.mce-menubar .mce-btn button { color: #C6C6C6!important; }
@@ -48,7 +29,6 @@ e107::css('inline', "
.mce-menubtn:focus { background-color:transparent!important; color: #FFFFFF!important; border-color:transparent!important; }
.mce-menubar .mce-btn.mce-active { color:white!important; border-color:transparent!important; background-color: transparent!important; }
body.forceColors { margin:0; background-color: #373737; !important}
body.forceColors a { color: white}
body.forceColors li a { color: silver}
@@ -56,8 +36,6 @@ body.forceColors li a { color: silver}
div#media-manager div.mce-window-head { background-color: #373737; !important }
div#media-manager div.mce-title { color:white; }
div#media-manager, html { color: silver; background-color: #2F2F2F; !important}
");
/*