Elgg  Version 3.0
header.php
Go to the documentation of this file.
1 <?php
2 
3 $site_link = elgg_view('output/url', [
4  'text' => elgg_get_site_entity()->getDisplayName(),
5  'href' => elgg_get_site_entity()->getURL(),
6 ]);
7 
8 echo elgg_format_element('h1', ['class' => 'elgg-heading-walled-garden'], $site_link);
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_get_site_entity()
Get the current site entity.
Definition: entities.php:130
$site_link
Definition: header.php:3
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246