1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 17:44:37 +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

@@ -1610,6 +1610,11 @@ class e107
if(null !== $zone) $jshandler->requireCoreLib($data, $zone);
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'
@@ -1677,6 +1682,11 @@ class e107
// data is path relative to e_FILE/jslib/
$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