Elgg  Version master
head.php
Go to the documentation of this file.
1 <?php
9 
11 $elggSubdir = $isElggAtRoot ? '' : 'vendor/elgg/elgg/';
12 
13 echo elgg_format_element('title', [], elgg_echo('install:title') . ' : ' . elgg_extract('title', $vars));
14 echo elgg_format_element('meta', [
15  'http-equiv' => 'Content-Type',
16  'content' => 'text/html; charset=utf-8',
17 ]);
18 
19 echo elgg_format_element('meta', [
20  'name' => 'viewport',
21  'content' => 'width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=1',
22 ]);
23 
24 echo elgg_format_element('link', [
25  'rel' => 'icon',
26  'href' => elgg_get_site_url() . $elggSubdir . 'views/default/graphics/favicon.ico',
27 ]);
28 
29 echo elgg_format_element('script', ['src' => elgg_get_site_url() . 'vendor/npm-asset/jquery/dist/jquery.min.js']);
elgg
Definition: install.js:27
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:254
string project
Definition: conf.py:49
$isElggAtRoot
Definition: head.php:10
elgg_get_site_url()
Get the URL for the current (or specified) site, ending with "/".
$vars
Definition: theme.php:5
$elggSubdir
Definition: head.php:11
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145