Elgg  Version 4.3
body.php
Go to the documentation of this file.
1 <?php
9 $widget = elgg_extract('entity', $vars);
10 if (!$widget instanceof \ElggWidget) {
11  return;
12 }
13 
14 $content = elgg_view('object/widget/elements/content', $vars);
16  'class' => 'elgg-widget-content',
17  'id' => "elgg-widget-content-{$widget->guid}",
18 ], $content);
$widget
Widget object body.
Definition: body.php:9
if(!$widget instanceof\ElggWidget) $content
Definition: body.php:14
elgg_format_element($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
Definition: output.php:135
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