Elgg  Version 4.3
subtitle.php
Go to the documentation of this file.
1 <?php
9 $subtitle = elgg_extract('subtitle', $vars, '');
10 if ($subtitle === false) {
11  return;
12 }
13 
14 if ($subtitle === '') {
15  $subtitle = elgg_view('annotation/elements/imprint', $vars);
16 }
17 
19  return;
20 }
21 
22 echo elgg_format_element('div', ['class' => [
23  'elgg-listing-summary-subtitle',
24  'elgg-subtext',
25 ]], $subtitle);
$subtitle
Output annotation subtitle.
Definition: subtitle.php:9
elgg_is_empty($value)
Check if a value isn&#39;t empty, but allow 0 and &#39;0&#39;.
Definition: input.php:179
elgg_format_element($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
Definition: output.php:135
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:547
elgg echo
Translates a string.
Definition: deprecated.js:530
$vars['head']
Definition: html.php:24
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:179