Elgg  Version 4.3
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 "<georss:point>$latitude $longitude</georss:point>";
20 }
$latitude
Definition: georss.php:16
$entity
GeoRSS view.
Definition: georss.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
if(!$entity instanceof\ElggEntity) $longitude
Definition: georss.php:15
elgg echo
Translates a string.
Definition: deprecated.js:530
$vars['head']
Definition: html.php:24