Elgg
Version 2.3
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
object
admin_notice.php
Go to the documentation of this file.
1
<?php
6
if
(isset(
$vars
[
'entity'
]) &&
elgg_instanceof
(
$vars
[
'entity'
],
'object'
,
'admin_notice'
)) {
7
$notice
=
$vars
[
'entity'
];
8
$message
=
$notice
->description;
9
10
$delete =
elgg_view
(
'output/url'
, array(
11
'href'
=>
"action/admin/delete_admin_notice?guid=$notice->guid"
,
12
'text'
=>
elgg_view_icon
(
'delete'
),
13
'is_action'
=>
true
,
14
'class'
=>
'elgg-admin-notice'
,
15
'is_trusted'
=>
true
,
16
));
17
18
echo
"<p>$delete$message</p>"
;
19
}
20
elgg_view_icon
elgg_view_icon($name, $vars=array())
View one of the icons.
Definition:
views.php:1582
$notice
$notice
Definition:
delete_admin_notice.php:7
$message
$message
Definition:
set_maintenance_mode.php:7
$vars
$vars['entity']
Definition:
plugin_settings.php:15
elgg_instanceof
elgg_instanceof($entity, $type=null, $subtype=null, $class=null)
Checks if $entity is an and optionally for type and subtype.
Definition:
entities.php:736
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
Generated on Mon Dec 2 2024 00:01:32 for Elgg by
1.8.11