Elgg
Version master
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
email
elements
html.php
Go to the documentation of this file.
1
<?php
10
$subject
=
elgg_extract
(
'subject'
,
$vars
);
11
$head
=
elgg_format_element
(
'meta'
, [
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
$subject
Page shell for all Email messages.
Definition:
html.php:10
elgg_extract
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
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition:
views.php:156
$head
$head
Definition:
html.php:11
$vars
$vars['head']
Definition:
html.php:24
elgg_format_element
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition:
output.php:145
Generated on Sat Dec 21 2024 00:02:53 for Elgg by
1.8.11