Elgg  Version 2.3
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($name, $vars=array())
View one of the icons.
Definition: views.php:1582
$vars['entity']
elgg_instanceof($entity, $type=null, $subtype=null, $class=null)
Checks if $entity is an and optionally for type and subtype.
Definition: entities.php:736
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