Elgg  Version master
notice.php
Go to the documentation of this file.
1 <?php
6 $retention = (int) elgg_get_config('trash_retention');
7 if ($retention < 1) {
8  return;
9 }
10 
11 echo elgg_view_message('notice', elgg_echo('trash:notice:retention', [elgg_format_element('strong', [], $retention)]), [
12  'title' => false,
13 ]);
$retention
Show a notice about the retention period of trashed items.
Definition: notice.php:6
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
elgg_view_message(string $type, string $body, array $vars=[])
Wrapper function for the message display pattern.
Definition: views.php:940
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145