Elgg  Version 4.3
creator.php
Go to the documentation of this file.
1 <?php
10 $owner = elgg_extract('entity', $vars)->getOwnerEntity();
11 if ($owner) {
12  $owner_name = htmlspecialchars($owner->getDisplayName() ?? '', ENT_NOQUOTES, 'UTF-8');
13  echo "<dc:creator>$owner_name</dc:creator>";
14 }
$owner
Creator view.
Definition: creator.php:10
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