16 echo
elgg_view(
'page/components/no_results', [
17 'no_results' =>
elgg_echo(
'admin:users:details:profile:no_fields'),
23 'mobile' =>
'tel p-tel',
24 'phone' =>
'tel p-tel',
25 'website' =>
'url u-url',
26 'contactemail' =>
'email u-email',
32 $shortname =
$field[
'name'];
33 $valtype =
$field[
'#type'];
41 if ($valtype ===
'url' && is_string(
$value) && !preg_match(
'~^https?\://~i',
$value)) {
42 $value =
"http://{$value}";
57 echo
elgg_view(
'page/components/no_results', [
58 'no_results' =>
elgg_echo(
'admin:users:details:profile:no_information'),
elgg()
Bootstrapping and helper procedural code available for use in Elgg core and plugins.
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_echo(string $message_key, array $args=[], string $language='')
Elgg language module Functions to manage language and translations.
elgg_view(string $view, array $vars=[], string $viewtype='')
Return a parsed view.
elgg_format_element(string $tag_name, array $attributes=[], string $text='', array $options=[])
Format an HTML element.
if(empty($fields)) $microformats
$entity
Show user profile information in admin listings.
if(! $entity instanceof \ElggUser) $fields