Elgg  Version 2.3
header.php
Go to the documentation of this file.
1 <?php
8 $widget = elgg_extract('entity', $vars);
9 if (!($widget instanceof \ElggWidget)) {
10  return;
11 }
12 
13 $title = "<h3 class='elgg-widget-title'>{$widget->getTitle()}</h3>";
14 $controls = elgg_view('object/widget/elements/controls', [
15  'widget' => $widget,
16  'show_edit' => $widget->canEdit(),
17 ]);
18 
19 echo "<div class='elgg-widget-handle clearfix'>{$title}{$controls}</div>";
$controls
Definition: header.php:14
$widget
Widget object header.
Definition: header.php:8
$vars['entity']
if(!($widget instanceof\ElggWidget)) $title
Definition: header.php:13
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