Elgg  Version 3.0
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
elgg_format_element($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
Definition: output.php:168
if(!($widget instanceof\ElggWidget)) $content
Definition: body.php:14
elgg echo
Translates a string.
Definition: languages.js:43
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:1131
$vars['type']
Definition: save.php:11
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246