Elgg  Version master
body.php
Go to the documentation of this file.
1 <?php
10 
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]));
Notification container.
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:156
$notification
Definition: body.php:13
$body
Wrap form body.
Definition: body.php:11
$vars
Definition: theme.php:5
if($notification instanceof Notification) $salutation
Definition: body.php:18
$signoff
Definition: body.php:20