aboutsummaryrefslogtreecommitdiff
path: root/views/default/page_elements/breadcrumbs.php
blob: 165a6c7ddf020b60e029f50a536902eb0f9ef379 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php

/**
 * Breadcrumbs
**/
// @todo spk to Brett re. making this simpler / scalable
// grab variables from array
$breadcrumb_root_url = $vars['breadcrumb_root_url'];
$breadcrumb_root_text = $vars['breadcrumb_root_text'];
$breadcrumb_level1_url = $vars['breadcrumb_level1_url'];
$breadcrumb_level1_text = $vars['breadcrumb_level1_text'];
$breadcrumb_level2_url = $vars['breadcrumb_level2_url'];
$breadcrumb_level2_text = $vars['breadcrumb_level2_text'];
$breadcrumb_currentpage = $vars['breadcrumb_currentpage']; 
?>
<div id="breadcrumbs">
	<a href="<?php echo $breadcrumb_root_url; ?>"><?php echo $breadcrumb_root_text; ?></a> &gt;
	<?php
		if (isset($vars['breadcrumb_level1_url']) && $vars['breadcrumb_level1_url']) { ?>
		<a href="<?php echo $breadcrumb_level1_url; ?>"><?php echo $breadcrumb_level1_text; ?></a> &gt;
	<?php } 
		if (isset($vars['breadcrumb_level2_url']) && $vars['breadcrumb_level2_url']) { ?>	
		<a href="<?php echo $breadcrumb_level2_url; ?>"><?php echo $breadcrumb_level2_text; ?></a> &gt; 
	<?php }
	echo $breadcrumb_currentpage; ?>
</div>