8 'src' => $resource->url,
11 if (!empty($resource->integrity)) {
12 $options[
'integrity'] = $resource->integrity;
13 $options[
'crossorigin'] =
'anonymous';
21 echo
elgg_format_element(
'script', [],
'require(' . json_encode(
$deps, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT) .
');');
24 'id' =>
'elgg-scroll-to-top',
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
elgg_view_icon(string $name, array $vars=[])
View an icon glyph.
elgg_view_url(string $href, string $text=null, array $options=[])
Helper function for outputting urls.
_elgg_services()
Get the global service provider.
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.