Elgg  Version 4.3
title.php
Go to the documentation of this file.
1 <?php
9 $title = elgg_extract('title', $vars, '');
10 if ($title === false) {
11  return;
12 }
13 
14 $annotation = elgg_extract('annotation', $vars);
15 if ($title === '' && $annotation instanceof ElggAnnotation) {
16  $owner = $annotation->getOwnerEntity();
17  if (!$owner instanceof ElggEntity) {
18  return;
19  }
20 
22 }
23 
25  return;
26 }
27 
28 echo elgg_format_element('div', ['class' => [
29  'elgg-listing-summary-title',
30 ]], $title);
$owner
Definition: upload.php:7
$title
Output annotation title.
Definition: title.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
if($title===false) $annotation
Definition: title.php:14
elgg_view_entity_url(\ElggEntity $entity, array $options=[])
Helper function for outputting a link to an entity.
Definition: views.php:1536