Elgg  Version 6.1
subtitle.php
Go to the documentation of this file.
1 <?php
8 $subtitle = elgg_extract('subtitle', $vars);
9 if (!isset($subtitle)) {
10  $subtitle = elgg_view('trash/elements/imprint', $vars);
11 }
12 
13 if (!$subtitle) {
14  return;
15 }
16 
17 echo elgg_format_element('div', [
18  'class' => [
19  'elgg-listing-summary-subtitle',
20  'elgg-subtext',
21  ]
22 ], $subtitle);
$subtitle
Output annotation subtitle.
Definition: subtitle.php:9
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:256
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
$vars
Definition: theme.php:5
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145