Elgg
Version master
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
rss
page
components
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
elgg_format_element
(
'dc:creator'
, [], $owner_name);
14
}
elgg_extract
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:254
$owner
$owner
Creator view.
Definition:
creator.php:10
$vars
$vars
Definition:
theme.php:5
elgg_format_element
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition:
output.php:145
Generated on Sat Dec 21 2024 00:02:54 for Elgg by
1.8.11