Elgg  Version master
html.php
Go to the documentation of this file.
1 <?php
10 $subject = elgg_extract('subject', $vars);
12  'http-equiv' => 'Content-Type',
13  'content' => 'text/html; charset=UTF-8',
14 ]);
15 
16 $head .= elgg_format_element('base', ['target' => '_blank']);
17 
18 if (!empty($subject)) {
19  $head .= elgg_format_element('title', [], $subject);
20 }
21 
22 $head .= elgg_format_element('style', [], (string) elgg_extract('css', $vars));
23 
24 $vars['head'] = $head;
25 
26 echo elgg_view('page/elements/html', $vars);
$subject
Page shell for all Email messages.
Definition: html.php:10
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
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:177
$head
Definition: html.php:11
$vars['head']
Definition: html.php:24
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:130