Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
header.php
Go to the documentation of this file.
1 <?php
9 if (isset($vars['header'])) {
10  echo '<div class="elgg-head clearfix">';
11  echo $vars['header'];
12  echo '</div>';
13  return;
14 }
15 
16 $title = elgg_extract('title', $vars, '');
17 
18 $buttons = elgg_view_menu('title', array(
19  'sort_by' => 'priority',
20  'class' => 'elgg-menu-hz',
21 ));
22 
23 if ($title || $buttons) {
24  echo '<div class="elgg-head clearfix">';
25  // @todo .elgg-heading-main supports action buttons - maybe rename class name?
26  echo $buttons;
27  echo elgg_view_title($vars['title'], array('class' => 'elgg-heading-main'));
28  echo '</div>';
29 }
if(isset($vars['header'])) $title
Header for layouts.
Definition: header.php:16
$buttons
Definition: header.php:18
$vars['entity']
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1310
elgg_view_menu($menu, array $vars=array())
Render a menu.
Definition: views.php:745
elgg_view_title($title, array $vars=array())
Renders a title.
Definition: views.php:1117