aboutsummaryrefslogtreecommitdiff
path: root/views/rss/page/components/georss.php
blob: d176b8cacdd8241469c04b71df5da6bdec1da393 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
/**
 * GeoRSS view
 *
 * This implements GeoRSS-Simple
 *
 * @uses $vars['entity']
 */

$longitude = $vars['entity']->getLongitude();
$latitude = $vars['entity']->getLatitude();

if ($vars['entity'] instanceof Locatable && $longitude && $latitude) {
	echo "<georss:point>$latitude $longitude</georss:point>";
}