Elgg  Version 2.3
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
$vars['entity']
if(!($widget instanceof\ElggWidget)) $title
Definition: header.php:13
elgg echo
Translates a string.
Definition: languages.js:48
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:1375
elgg_view_menu($menu, array $vars=array())
Render a menu.
Definition: views.php:775
elgg_view_title($title, array $vars=array())
Renders a title.
Definition: views.php:1160