Elgg
Version 2.3
views
default
object
widget
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>"
;
ElggWidget
Definition:
ElggWidget.php:16
elgg_extract
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
elgg_view
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype='')
Return a parsed view.
Definition:
views.php:336
$title
if(!($widget instanceof \ElggWidget)) $title
Definition:
header.php:13
$controls
$controls
Definition:
header.php:14
$widget
$widget
Widget object header.
Definition:
header.php:8
$vars
$vars['entity']
Definition:
plugin_settings.php:15
Generated on Fri Aug 29 2025 00:00:46 for Elgg by
1.9.1