aboutsummaryrefslogtreecommitdiff
path: root/views/default/page/layouts/one_sidebar.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-29 01:48:07 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-29 01:48:07 +0000
commit7c1a133ad9f316d2e3b96b12eaec379c25e5d22e (patch)
treec87fe09afbb4606f939c99023814c4e4c060911e /views/default/page/layouts/one_sidebar.php
parenta77528d9d2d7c2c4ecefdb916f73b6c1b6a20c38 (diff)
downloadelgg-7c1a133ad9f316d2e3b96b12eaec379c25e5d22e.tar.gz
elgg-7c1a133ad9f316d2e3b96b12eaec379c25e5d22e.tar.bz2
one_sidebar layout wants breadcrumbs, too!
git-svn-id: http://code.elgg.org/elgg/trunk@8877 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/page/layouts/one_sidebar.php')
-rw-r--r--views/default/page/layouts/one_sidebar.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/views/default/page/layouts/one_sidebar.php b/views/default/page/layouts/one_sidebar.php
index 1e308f979..d74dad53d 100644
--- a/views/default/page/layouts/one_sidebar.php
+++ b/views/default/page/layouts/one_sidebar.php
@@ -9,6 +9,7 @@
* @uses $vars['sidebar'] Optional content that is displayed in the sidebar
* @uses $vars['title'] Optional title for main content area
* @uses $vars['class'] Additional class to apply to layout
+ * @uses $vars['nav'] HTML of the page nav (override) (default: breadcrumbs)
*/
$class = 'elgg-layout elgg-layout-one-sidebar clearfix';
@@ -16,6 +17,9 @@ if (isset($vars['class'])) {
$class = "$class {$vars['class']}";
}
+// navigation defaults to breadcrumbs
+$nav = elgg_extract('nav', $vars, elgg_view('navigation/breadcrumbs'));
+
?>
<div class="<?php echo $class; ?>">
@@ -27,6 +31,8 @@ if (isset($vars['class'])) {
<div class="elgg-main elgg-body">
<?php
+ echo $nav;
+
if (isset($vars['title'])) {
echo elgg_view_title($vars['title']);
}