Elgg
Version master
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
notifications
body.php
Go to the documentation of this file.
1
<?php
9
use
Elgg\Notifications\Notification
;
10
11
$body
=
elgg_extract
(
'body'
,
$vars
);
12
13
$notification
=
elgg_extract
(
'notification'
,
$vars
);
14
if
(
$notification
instanceof
Notification
) {
15
$body
=
$notification
->body;
16
}
17
18
$salutation
=
elgg_view
(
'notifications/elements/salutation'
,
$vars
);
19
20
$signoff
=
elgg_view
(
'notifications/elements/sign-off'
,
$vars
);
21
22
echo
implode
(PHP_EOL . PHP_EOL, array_filter([
$salutation
,
$body
,
$signoff
]));
implode
Elgg\Notifications\Notification
Notification container.
Definition:
Notification.php:11
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
$notification
$notification
Definition:
body.php:13
Notification
$body
$body
Wrap form body.
Definition:
body.php:11
$vars
$vars
Definition:
theme.php:5
$salutation
if($notification instanceof Notification) $salutation
Definition:
body.php:18
$signoff
$signoff
Definition:
body.php:20
Generated on Sun Nov 10 2024 00:02:57 for Elgg by
1.8.11