--- /dev/null
+<?php
+/**
+ * Elgg sidebar menu
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ *
+ */
+
+// Plugins can add to the sidebar menu by calling elgg_add_submenu_item()
+$submenu = elgg_get_submenu();
+
+echo $submenu;
echo elgg_view('page_elements/owner_block');
+echo elgg_view('navigation/sidebar_menu');
+
if (isset($vars['area2'])) {
echo $vars['area2'];
}
// Have we been asked to inject any content? If so, display it
-if (isset($vars['content']))
+if (isset($vars['content'])) {
$contents .= $vars['content'];
+}
-// Initialise the current tool/page submenu (plugins can add to the submenu)
-$submenu = elgg_get_submenu();
-
-if (!empty($submenu))
- $contents .= $submenu;
-if (!empty($contents)) {
- echo $contents;
-}
\ No newline at end of file
+echo $contents;