aboutsummaryrefslogtreecommitdiff
path: root/views/default/page/layouts/one_sidebar.php
diff options
context:
space:
mode:
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']);
}