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