1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

Added 'bootstrap' as a e107::css() and e107::js() option. (subject to change)

This commit is contained in:
Cameron
2013-06-17 16:44:46 -07:00
parent a0aec4b210
commit 5a4981c9f1
2 changed files with 14 additions and 4 deletions

View File

@@ -1611,6 +1611,11 @@ class e107
else $jshandler->requireCoreLib($data);
break;
case 'bootstrap': //TODO Eventually add own method and render for bootstrap.
if(null !== $zone) $jshandler->requireCoreLib('bootstrap/js/'.$data, $zone);
else $jshandler->requireCoreLib('bootstrap/js/'.$data);
break;
case 'theme':
// data is e.g. 'jslib/mytheme.js'
if(null !== $zone) $jshandler->headerTheme($data, $zone);
@@ -1678,6 +1683,11 @@ class e107
$jshandler->coreCSS($data, $media, $preComment, $postComment);
break;
case 'bootstrap':
// data is path relative to e_FILE/jslib/
$jshandler->coreCSS('bootstrap/css/'.$data, $media, $preComment, $postComment);
break;
case 'theme':
// data is path relative to current theme
$jshandler->themeCSS($data, $media, $preComment, $postComment);

View File

@@ -8,7 +8,7 @@ define("VIEWPORT", "width=device-width, initial-scale=1.0");
define("BODYTAG", '<body data-spy="scroll" data-target=".bs-docs-sidebar" >');
e107::lan('theme');
e107::js('core','bootstrap/js/bootstrap.min.js');
e107::js('bootstrap','bootstrap.min.js');
if(THEME_STYLE != 'style.css') // allow for drop-in bootstrap replacement. See http://bootswatch.com
{
@@ -16,11 +16,11 @@ if(THEME_STYLE != 'style.css') // allow for drop-in bootstrap replacement. See h
}
else
{
e107::css('core','bootstrap/css/bootstrap.min.css');
e107::css('bootstrap','bootstrap.min.css');
}
e107::css('core','bootstrap/css/bootstrap-responsive.min.css');
e107::css('core','bootstrap/css/jquery-ui.custom.css');
e107::css('bootstrap','bootstrap-responsive.min.css');
e107::css('bootstrap','jquery-ui.custom.css');
e107::css('theme', 'js/google-code-prettify/prettify.css');
e107::js('theme', "js/google-code-prettify/prettify.js");