Elgg
Version 6.1
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
rss
page
components
georss.php
Go to the documentation of this file.
1
<?php
10
$entity
=
elgg_extract
(
'entity'
,
$vars
);
11
if
(!
$entity
instanceof \
ElggEntity
) {
12
return
;
13
}
14
15
$longitude
=
$entity
->getLongitude();
16
$latitude
=
$entity
->getLatitude();
17
18
if
(
$longitude
&&
$latitude
) {
19
echo
elgg_format_element
(
'georss:point'
, [],
"{$latitude} {$longitude}"
);
20
}
$latitude
$latitude
Definition:
georss.php:16
$entity
$entity
GeoRSS view.
Definition:
georss.php:10
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:256
$vars
$vars
Definition:
theme.php:5
ElggEntity
Definition:
ElggEntity.php:52
$longitude
if(!$entity instanceof\ElggEntity) $longitude
Definition:
georss.php:15
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 Wed Dec 4 2024 00:00:23 for Elgg by
1.8.11