Elgg
Version 6.1
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
admin
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
8
$site_link
=
elgg_view_url
(
elgg_generate_url
(
'admin'
),
$link_contents
);
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
elgg_get_release()
Get the current Elgg release.
Definition:
configuration.php:102
elgg_echo
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition:
languages.php:17
$logo
$logo
Definition:
header.php:9
$site_link
$site_link
Definition:
header.php:8
$link_contents
$link_contents
Definition:
header.php:5
elgg_view_menu
elgg_view_menu($menu, array $vars=[])
Render a menu.
Definition:
views.php:441
elgg_import_esm
elgg_import_esm(string $name)
Helper functions for external files like css/js.
Definition:
external_files.php:15
elgg_get_site_entity
elgg_get_site_entity()
Get the current site entity.
Definition:
entities.php:101
elgg_view_url
elgg_view_url(string $href, string $text=null, array $options=[])
Helper function for outputting urls.
Definition:
views.php:1427
elgg_generate_url
elgg_generate_url(string $name, array $parameters=[])
Generate a URL for named route.
Definition:
pagehandler.php:133
elgg_format_element
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition:
output.php:145
Generated on Wed Dec 4 2024 00:00:22 for Elgg by
1.8.11