Elgg  Version master
header.php
Go to the documentation of this file.
1 <?php
2 
3 elgg_import_esm('page/elements/topbar');
4 
5 $link_contents = elgg_get_site_entity()->getDisplayName();
6 $link_contents .= ' ' . elgg_format_element('small', ['title' => elgg_echo('admin:header:release', [elgg_get_release()])], '[v' . elgg_get_release() . ']');
7 
9 $logo = elgg_format_element('div', ['class' => 'elgg-heading-site'], $site_link);
10 
11 echo elgg_format_element('div', ['class' => 'elgg-nav-logo'], $logo);
12 
13 echo elgg_format_element('div', ['class' => 'elgg-nav-button'], '<span></span><span></span><span></span>');
14 
15 echo elgg_format_element('div', ['class' => 'elgg-nav-collapse'], elgg_view_menu('admin_header'));
elgg_get_release()
Get the current Elgg release.
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
$logo
Definition: header.php:9
$site_link
Definition: header.php:8
$link_contents
Definition: header.php:5
elgg_view_menu($menu, array $vars=[])
Render a menu.
Definition: views.php:441
elgg_import_esm(string $name)
Helper functions for external files like css/js.
elgg_get_site_entity()
Get the current site entity.
Definition: entities.php:101
elgg_view_url(string $href, string $text=null, array $options=[])
Helper function for outputting urls.
Definition: views.php:1427
elgg_generate_url(string $name, array $parameters=[])
Generate a URL for named route.
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145