diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-03 17:53:05 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-03 17:53:05 +0000 |
commit | 4766f36a4d74924f21ff329c4318ce4e069ffa04 (patch) | |
tree | 969b84632f2a8b0db79788a8a6db8e41d63e5cb4 /views/default/page_elements/breadcrumbs.php | |
parent | 57a217fd6b708844407486046a1faa23b46cac08 (diff) | |
download | elgg-4766f36a4d74924f21ff329c4318ce4e069ffa04.tar.gz elgg-4766f36a4d74924f21ff329c4318ce4e069ffa04.tar.bz2 |
Pulled in the interface changes.
git-svn-id: http://code.elgg.org/elgg/trunk@5257 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/page_elements/breadcrumbs.php')
-rwxr-xr-x | views/default/page_elements/breadcrumbs.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/views/default/page_elements/breadcrumbs.php b/views/default/page_elements/breadcrumbs.php new file mode 100755 index 000000000..165a6c7dd --- /dev/null +++ b/views/default/page_elements/breadcrumbs.php @@ -0,0 +1,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> >
+ <?php
+ if (isset($vars['breadcrumb_level1_url']) && $vars['breadcrumb_level1_url']) { ?>
+ <a href="<?php echo $breadcrumb_level1_url; ?>"><?php echo $breadcrumb_level1_text; ?></a> >
+ <?php }
+ if (isset($vars['breadcrumb_level2_url']) && $vars['breadcrumb_level2_url']) { ?>
+ <a href="<?php echo $breadcrumb_level2_url; ?>"><?php echo $breadcrumb_level2_text; ?></a> >
+ <?php }
+ echo $breadcrumb_currentpage; ?>
+</div>
\ No newline at end of file |