diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-05-14 18:49:25 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-05-14 18:49:25 +0000 |
commit | 47340a14348eb56725c58388d5c4f5134551e827 (patch) | |
tree | e6e56ce46be30856008c7b0231e4c7108291fff0 /views/rss/user/default.php | |
parent | 5a2ff4a25cf57cdc62c2847df5197f4d5ef9cc6b (diff) | |
download | elgg-47340a14348eb56725c58388d5c4f5134551e827.tar.gz elgg-47340a14348eb56725c58388d5c4f5134551e827.tar.bz2 |
Closes #646: GeoRSS support added to Locatable objects with coordinates on RSS feeds
git-svn-id: https://code.elgg.org/elgg/trunk@3292 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/rss/user/default.php')
-rw-r--r-- | views/rss/user/default.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/views/rss/user/default.php b/views/rss/user/default.php index 36d5555fe..317ff4724 100644 --- a/views/rss/user/default.php +++ b/views/rss/user/default.php @@ -19,5 +19,16 @@ <link><?php echo $vars['entity']->getURL(); ?></link>
<title><![CDATA[<?php echo (($vars['entity']->name)); ?>]]></title>
<description><![CDATA[<?php echo (autop($vars['entity']->description)); ?>]]></description> + <?php + if ( + ($vars['entity'] instanceof Locatable) && + ($vars['entity']->getLongitude()) && + ($vars['entity']->getLatitude()) + ) { + ?> + <georss:point><?php echo $vars['entity']->getLatitude(); ?> <?php echo $vars['entity']->getLongitude(); ?></georss:point> + <?php + } + ?> <?php echo elgg_view('extensions/item'); ?>
</item>
|