Elgg
Version 2.3
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
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>"
;
$controls
$controls
Definition:
header.php:14
$widget
$widget
Widget object header.
Definition:
header.php:8
$vars
$vars['entity']
Definition:
plugin_settings.php:15
$title
if(!($widget instanceof\ElggWidget)) $title
Definition:
header.php:13
echo
elgg echo
Translates a string.
Definition:
languages.js:48
elgg_view
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition:
views.php:336
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
ElggWidget
Definition:
ElggWidget.php:16
Generated on Sat Dec 21 2024 00:01:05 for Elgg by
1.8.11