Elgg  Version 3.0
topbar.php
Go to the documentation of this file.
1 <?php
2 
6 elgg_require_js('page/elements/topbar');
7 ?>
8 
9 <div class="elgg-nav-logo">
10  <?php
11  echo elgg_view('page/elements/header_logo');
12  ?>
13 </div>
14 
15 <?= elgg_view('core/account/login_dropdown') ?>
16 
17 <div class="elgg-nav-button">
18  <span></span>
19  <span></span>
20  <span></span>
21 </div>
22 
23 <div class="elgg-nav-collapse">
24  <?php
25  echo elgg_format_element('div', [
26  'class' => 'elgg-nav-search',
27  ], elgg_view('search/search_box'));
28 
29  echo elgg_view_menu('site', [
30  'sort_by' => 'text',
31  ]);
32  echo elgg_view_menu('topbar');
33  ?>
34 </div>
elgg_view_menu($menu, array $vars=[])
Render a menu.
Definition: views.php:755
elgg_require_js($name)
Request that Elgg load an AMD module onto the page.
Definition: elgglib.php:168
elgg_format_element($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
Definition: output.php:168
elgg echo
Translates a string.
Definition: languages.js:43
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246