Elgg  Version master
foot.php
Go to the documentation of this file.
1 <?php
2 
3 echo elgg_format_element('script', [], elgg_view('initialize_elgg.js', $vars));
4 
6 foreach ($js as $resource) {
7  $options = [
8  'src' => $resource->url,
9  ];
10 
11  if (!empty($resource->integrity)) {
12  $options['integrity'] = $resource->integrity;
13  $options['crossorigin'] = 'anonymous';
14  }
15 
16  echo elgg_format_element('script', $options);
17 }
18 
19 echo elgg_view_url('#top', elgg_view_icon('chevron-up'), [
20  'id' => 'elgg-scroll-to-top',
21  'title' => elgg_echo('scroll_to_top'),
22 ]);
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
$resource
$js
Definition: foot.php:5
if($who_can_change_language=== 'nobody') elseif($who_can_change_language=== 'admin_only'&&!elgg_is_admin_logged_in()) $options
Definition: language.php:20
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
elgg_view_icon(string $name, array $vars=[])
View an icon glyph.
Definition: views.php:1261
$vars
Definition: theme.php:5
elgg_view_url(string $href, string $text=null, array $options=[])
Helper function for outputting urls.
Definition: views.php:1427
elgg_get_loaded_external_resources(string $type, string $location)
Get external resource descriptors.
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145