aboutsummaryrefslogtreecommitdiff
path: root/views/rss/object/georss.php
diff options
context:
space:
mode:
authornickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-20 14:32:40 +0000
committernickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-05-20 14:32:40 +0000
commit69aa38ac22767d458399b33a7deccf410ee15f25 (patch)
tree0e31651934141d67bbce024a82480a1f07a22488 /views/rss/object/georss.php
parent25bf2850a98d3f5784df9c998c906a118708c0be (diff)
downloadelgg-69aa38ac22767d458399b33a7deccf410ee15f25.tar.gz
elgg-69aa38ac22767d458399b33a7deccf410ee15f25.tar.bz2
Updating RSS views to allow for object creator and geolocation.
git-svn-id: http://code.elgg.org/elgg/trunk@6110 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/rss/object/georss.php')
-rw-r--r--views/rss/object/georss.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/views/rss/object/georss.php b/views/rss/object/georss.php
new file mode 100644
index 000000000..8aa027519
--- /dev/null
+++ b/views/rss/object/georss.php
@@ -0,0 +1,10 @@
+<?php
+/**
+ *
+ */
+
+if (($vars['entity'] instanceof Locatable) &&
+ ($latitude = $vars['entity']->getLongitude()) && ($longitude = $vars['entity']->getLatitude())
+) {
+ echo "<georss:point>$latitude $longitude</georss:point>";
+} \ No newline at end of file