1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-20 05:11:42 +02:00

Issue #435 - start of Bootstrap 3 core support. Enable by adding the following to your theme.php file:

define("BOOTSTRAP", 3);
define("FONTAWESOME", 4); // optional

e107::js("url", "//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js");
e107::css('url', '//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css');
e107::css('url', "//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css"); // optional
This commit is contained in:
Cameron
2013-12-17 11:12:42 -08:00
parent ba18155c34
commit 7874cd1060
10 changed files with 47 additions and 16 deletions

View File

@@ -1599,7 +1599,10 @@ class e_form
$opt = array();
$opt[] = "<a href='".e_HTTP."'><i class='icon-home'></i></a>"; // Add Site-Pref to disable?
$homeIcon = e107::getParser()->toGlyph('icon-home.glyph',false);
$opt[] = "<a href='".e_HTTP."'>".$homeIcon."</a>"; // Add Site-Pref to disable?
$text = '<ul class="breadcrumb">
<li>';
@@ -1617,9 +1620,13 @@ class e_form
}
}
$text .= implode("<span class='divider'>/</span></li><li>",$opt);
$sep = (deftrue('BOOTSTRAP') == 3) ? "" : "<span class='divider'>/</span>";
$text .= implode($sep."</li><li>",$opt);
$text .= "</li></ul>";
// return print_a($opt,true);
return $text;