Elgg  Version 6.1
topbar.php
Go to the documentation of this file.
1 <?php
2 
3 elgg_import_esm('page/elements/topbar');
4 
5 echo elgg_format_element('div', ['class' => 'elgg-nav-logo'], elgg_view('page/elements/header_logo'));
6 
7 echo elgg_view('core/account/login_dropdown');
8 
9 echo elgg_format_element('div', ['class' => 'elgg-nav-button'], '<span></span><span></span><span></span>');
10 
11 $contents = elgg_format_element('div', ['class' => 'elgg-nav-search'], elgg_view('search/search_box'));
12 $contents .= elgg_view_menu('site', ['sort_by' => 'text']);
13 $contents .= elgg_view_menu('topbar');
14 
15 echo elgg_format_element('div', ['class' => 'elgg-nav-collapse'], $contents);
$contents
Definition: topbar.php:11
elgg_view_menu($menu, array $vars=[])
Render a menu.
Definition: views.php:441
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
elgg_import_esm(string $name)
Helper functions for external files like css/js.
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145