Permalink
Browse files

Don't show title on dashboard == frontpage.

  • Loading branch information...
Alex Barth
Alex Barth committed Mar 26, 2010
1 parent 04cffd7 commit b1c1586d7cd9eaad8cc655d0409c81a0d30a4ea2
Showing with 16 additions and 5 deletions.
  1. +9 −5 page.title.inc
  2. +7 −0 template.php
View
@@ -1,9 +1,13 @@
<div id='page-header' class='clear-block'>
- <div id='page-tools'><?php print $page_tools ?></div>
- <div id='page-title'>
- <?php if ($page_title) print $page_title ?>
- <?php if ($title && empty($page_title)): ?><h2 class='page-title'><?php print $title ?></h2><?php endif; ?>
- </div>
+ <?php if ($page_tools): ?>
+ <div id='page-tools'><?php print $page_tools ?></div>
+ <?php endif; ?>
+ <?php if ($page_title || $title): ?>
+ <div id='page-title'>
+ <?php if ($page_title) print $page_title ?>
+ <?php if ($title && empty($page_title)): ?><h2 class='page-title'><?php print $title ?></h2><?php endif; ?>
+ </div>
+ <?php endif; ?>
<?php if ($tabs): ?>
<div class='tabs clear-block'><?php if ($tabs) print $tabs ?><?php if ($tabs2) print $tabs2 ?></div>
<?php endif; ?>
View
@@ -54,6 +54,13 @@ function jake_preprocess_page(&$vars) {
$vars['mission_block'] = theme('block', $mission_block);
}
+ // Don't show title on dashboard == frontpage.
+ $context = context_get('context');
+ if (isset($context['mn-dashboard'])) {
+ $vars['title'] = '';
+ $vars['page_title'] = '';
+ }
+
// Truncate the slogan so it doesn't break the header
$vars['site_slogan'] = truncate_utf8($vars['site_slogan'], 35);

0 comments on commit b1c1586

Please sign in to comment.