Elgg  Version 4.3
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.
$notification
Definition: body.php:13
$body
Definition: body.php:12
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:547
elgg echo
Translates a string.
Definition: deprecated.js:530
$vars['head']
Definition: html.php:24
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:179
if($notification instanceof Notification) $salutation
Definition: body.php:18
$signoff
Definition: body.php:20