'."\n";
if(isset($data)) {
foreach ($data as $link) {
if((isset($link[2])) AND ($link[2] === TRUE)) {
$breadcrumb .= ''.$link[1].''."\n";
} else {
$breadcrumb .= ''.$link[1].''."\n";
}
}
}
$breadcrumb .= ''."\n";
return $breadcrumb;
}
}
// Below is an example of how to generate the breadcrumb
$breadcrumb = array(
array('http://localhost/', 'Home'),
array('', 'Register', TRUE),
);
echo breadcrumb($breadcrumb);
/*
|----------------------------------------------------------------
| This will echo
|
|
|----------------------------------------------------------------
|
| You can use the following css
| [credit to : iTemplates | http://dinakit.itemplat.es/]
|
| .breadcrumb { background-color: #FEFEFE; list-style: none; margin: 0 0 20px; padding: 8px 15px; font-size: 12px; }
| .breadcrumb > li { display: inline-block; *display: inline; *zoom: 1; }
| .breadcrumb > li:after { content: "\2022"; color: #DDDDDD; padding: 0 5px 0 10px; }
| .breadcrumb > li:last-child:after { content: none; }
| .breadcrumb > li > a:link,
| .breadcrumb > li > a:visited { text-decoration: none; }
| .breadcrumb > li > a:hover,
| .breadcrumb > li > a:active,
| .breadcrumb > li > a:focus { text-decoration: underline; }
| .breadcrumb > .active > span,
| .breadcrumb > .active > a { color: #999999; text-decoration: none; cursor: default; }
*/