Elgg  Version 2.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 if ($widget->canEdit()) {
15  echo elgg_view('object/widget/elements/settings', [
16  'widget' => $widget,
17  'show_access' => elgg_extract('show_access', $vars, true),
18  ]);
19 }
20 
21 $content = elgg_view('object/widget/elements/content', $vars);
23  'class' => 'elgg-widget-content',
24  'id' => "elgg-widget-content-{$widget->guid}",
25 ], $content);
$vars['entity']
elgg_format_element($tag_name, array $attributes=array(), $text= '', array $options=array())
Format an HTML element.
Definition: output.php:208
$widget
Widget object body.
Definition: body.php:9
elgg echo
Translates a string.
Definition: languages.js:48
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:336
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:1375
if(!($widget instanceof\ElggWidget)) if($widget->canEdit()) $content
Definition: body.php:21