Elgg  Version 3.0
header.php
Go to the documentation of this file.
1 <?php
2 
9 $header = elgg_extract('header', $vars);
10 unset($vars['header']);
11 
12 if (!isset($header)) {
13  $title = elgg_extract('title', $vars, '');
14  unset($vars['title']);
15 
16  if ($title) {
18  'class' => 'elgg-heading-main',
19  ]);
20  }
21 
23  $menu_params['sort_by'] = 'priority';
24  $menu_params['class'] = 'elgg-menu-hz';
25  $buttons = elgg_view_menu('title', $menu_params);
26 
27  $header = $title . $buttons;
28 }
29 
30 if (!$header) {
31  return;
32 }
33 ?>
34 <div class="elgg-head elgg-layout-header">
35  <?= $header ?>
36 </div>
if(!empty($url)) $title
Definition: header.php:23
elgg_view_menu($menu, array $vars=[])
Render a menu.
Definition: views.php:755
$header
Header for layouts.
Definition: header.php:9
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:1131
$vars['type']
Definition: save.php:11
elgg_view_title($title, array $vars=[])
Renders a title.
Definition: views.php:1104