Elgg  Version 3.0
georss.php
Go to the documentation of this file.
1 <?php
10 $longitude = elgg_extract('entity', $vars)->getLongitude();
11 $latitude = elgg_extract('entity', $vars)->getLatitude();
12 
13 if ($vars['entity'] instanceof Locatable && $longitude && $latitude) {
14  echo "<georss:point>$latitude $longitude</georss:point>";
15 }
$latitude
Definition: georss.php:11
$longitude
GeoRSS view.
Definition: georss.php:10
elgg echo
Translates a string.
Definition: languages.js:43
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:1131
$vars['type']
Definition: save.php:11