aboutsummaryrefslogtreecommitdiff
path: root/views/default/page/elements/title.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/page/elements/title.php')
-rw-r--r--views/default/page/elements/title.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/views/default/page/elements/title.php b/views/default/page/elements/title.php
new file mode 100644
index 000000000..77260212e
--- /dev/null
+++ b/views/default/page/elements/title.php
@@ -0,0 +1,21 @@
+<?php
+/**
+ * Elgg title element
+ *
+ * @uses $vars['title'] The page title
+ * @uses $vars['class'] Optional class for heading
+ */
+
+if (isset($vars['header'])) {
+ echo $vars['header'];
+ return true;
+}
+
+$class = '';
+if (isset($vars['class'])) {
+ $class = " class=\"{$vars['class']}\"";
+}
+
+echo elgg_view_menu('title', array('sort_by' => 'priority'));
+echo "<h1{$class}>{$vars['title']}</h1>";
+echo elgg_view('navigation/breadcrumbs'); \ No newline at end of file