aboutsummaryrefslogtreecommitdiff
path: root/views/default/page/layouts/content
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-06-28 07:30:22 -0400
committerCash Costello <cash.costello@gmail.com>2011-06-28 07:30:22 -0400
commiteb43980ad428e9c64406579de0677da7a4fcd081 (patch)
treeba8f044d070bd04ea9525d290ac04940cbae28c1 /views/default/page/layouts/content
parentf2bc7dd672a0717bd388fee51c4e97e1cb46f312 (diff)
downloadelgg-eb43980ad428e9c64406579de0677da7a4fcd081.tar.gz
elgg-eb43980ad428e9c64406579de0677da7a4fcd081.tar.bz2
using elgg_view_title() in content layout header
Diffstat (limited to 'views/default/page/layouts/content')
-rw-r--r--views/default/page/layouts/content/header.php35
1 files changed, 18 insertions, 17 deletions
diff --git a/views/default/page/layouts/content/header.php b/views/default/page/layouts/content/header.php
index 345163bdd..1e66e52db 100644
--- a/views/default/page/layouts/content/header.php
+++ b/views/default/page/layouts/content/header.php
@@ -2,7 +2,7 @@
/**
* Main content header
*
- * This includes a title and a new content button by default
+ * Title and title menu
*
* @uses $vars['header_override'] HTML for overriding the default header (override)
* @uses $vars['title'] Title text (override)
@@ -20,23 +20,24 @@ if (isset($vars['header_override'])) {
}
$context = elgg_extract('context', $vars, elgg_get_context());
-if ($context) {
- $title = elgg_extract('title', $vars, '');
- if (!$title) {
- $title = elgg_echo($context);
- }
- if (isset($vars['buttons']) && $vars['buttons']) {
- $buttons = $vars['buttons'];
- } else {
- $buttons = elgg_view_menu('title', array(
- 'sort_by' => 'priority',
- 'class' => 'elgg-menu-hz',
- ));
- }
- echo <<<HTML
+$title = elgg_extract('title', $vars, '');
+if (!$title) {
+ $title = elgg_echo($context);
+}
+$title = elgg_view_title($title, array('class' => 'elgg-heading-main'));
+
+if (isset($vars['buttons']) && $vars['buttons']) {
+ $buttons = $vars['buttons'];
+} else {
+ $buttons = elgg_view_menu('title', array(
+ 'sort_by' => 'priority',
+ 'class' => 'elgg-menu-hz',
+ ));
+}
+
+echo <<<HTML
<div class="elgg-head clearfix">
- <h2 class="elgg-heading-main">$title</h2>$buttons
+ $title$buttons
</div>
HTML;
-}