mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 05:37:32 +02:00
Add Bootstrap styling to breadcrumb
This commit is contained in:
@@ -4,12 +4,16 @@ global $$parm;
|
|||||||
$bc = $$parm;
|
$bc = $$parm;
|
||||||
$flist = explode(",", $bc['fieldlist']);
|
$flist = explode(",", $bc['fieldlist']);
|
||||||
$ret = "";
|
$ret = "";
|
||||||
|
|
||||||
|
$opt = array();
|
||||||
|
|
||||||
foreach($flist as $f)
|
foreach($flist as $f)
|
||||||
{
|
{
|
||||||
if($bc[$f]['value'])
|
if($bc[$f]['value'])
|
||||||
{
|
{
|
||||||
$ret .= $bc[$f]['value'];
|
$ret .= $bc[$f]['value'];
|
||||||
$opt[] = $bc[$f]['value'];
|
// $opt[] = $bc[$f]['value'];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if($bc[$f]['sep'])
|
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