00001 <?php
00006 if (isset($vars['entity']) && elgg_instanceof($vars['entity'], 'object', 'admin_notice')) {
00007 $notice = $vars['entity'];
00008 $message = $notice->description;
00009
00010 $delete = elgg_view('output/url', array(
00011 'href' => "action/admin/delete_admin_notice?guid=$notice->guid",
00012 'text' => '<span class="elgg-icon elgg-icon-delete"></span>',
00013 'is_action' => true,
00014 'class' => 'elgg-admin-notice',
00015 'is_trusted' => true,
00016 ));
00017
00018 echo "<p>$delete$message</p>";
00019 }
00020