Elgg  Version 1.11
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 }
$buttons
Definition: header.php:18
elgg_extract($key, array $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1246
elgg_view_menu($menu_name, array $vars=array())
Render a menu.
Definition: views.php:692
elgg echo
Translates a string.
Definition: languages.js:43
if(isset($vars['header'])) $title
Header for layouts.
Definition: header.php:16
elgg_view_title($title, $vars=array())
Renders a title.
Definition: views.php:1125
if(file_exists($welcome)) $vars
Definition: upgrade.php:93