Elgg  Version 5.1
banned.php
Go to the documentation of this file.
1 <?php
11 if (!$item instanceof ElggUser) {
12  return;
13 }
14 
15 if ($item->banned === 'yes') {
16  echo elgg_echo('option:yes');
17 }
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:254
$item
Render "Yes" is a user is banned.
Definition: banned.php:10
$vars
Definition: theme.php:5