mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
Add Bootstrap styling to breadcrumb
This commit is contained in:
@@ -4,12 +4,16 @@ global $$parm;
|
||||
$bc = $$parm;
|
||||
$flist = explode(",", $bc['fieldlist']);
|
||||
$ret = "";
|
||||
|
||||
$opt = array();
|
||||
|
||||
foreach($flist as $f)
|
||||
{
|
||||
if($bc[$f]['value'])
|
||||
{
|
||||
$ret .= $bc[$f]['value'];
|
||||
$opt[] = $bc[$f]['value'];
|
||||
// $opt[] = $bc[$f]['value'];
|
||||
|
||||
|
||||
|
||||
if($bc[$f]['sep'])
|
||||
@@ -20,14 +24,26 @@ foreach($flist as $f)
|
||||
}
|
||||
|
||||
|
||||
if($bc['style']=='bootstrap')
|
||||
if(deftrue('BOOTSTRAP'))
|
||||
{
|
||||
return '<ul class="breadcrumb">
|
||||
$text = '<ul class="breadcrumb">
|
||||
<li>';
|
||||
|
||||
foreach($flist as $f)
|
||||
{
|
||||
if($bc[$f]['value'])
|
||||
{
|
||||
$opt[] = $bc[$f]['value'];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$text .= implode("<span class='divider'>/</span></li><li>",$opt);
|
||||
|
||||
$text .= "</li></ul>";
|
||||
|
||||
return $text;
|
||||
|
||||
<li><a href="#">Home</a> <span class="divider">/</span></li>
|
||||
<li><a href="#">Library</a> <span class="divider">/</span></li>
|
||||
<li class="active">Data</li>
|
||||
</ul>';
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user