aboutsummaryrefslogtreecommitdiff
path: root/views/default/page_elements
diff options
context:
space:
mode:
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-09 13:14:22 +0000
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-03-09 13:14:22 +0000
commit3c8c971757629e29c5d815c434729015431e267d (patch)
tree9ebe1ae8fcbc4d85ca8113b84805342f496954a6 /views/default/page_elements
parent7fa08c45df0d8c726e229e6448a4d2d31a47c2ee (diff)
downloadelgg-3c8c971757629e29c5d815c434729015431e267d.tar.gz
elgg-3c8c971757629e29c5d815c434729015431e267d.tar.bz2
Generic rss feed icon added
git-svn-id: http://code.elgg.org/elgg/trunk@5325 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/page_elements')
-rw-r--r--views/default/page_elements/owner_block.php32
1 files changed, 15 insertions, 17 deletions
diff --git a/views/default/page_elements/owner_block.php b/views/default/page_elements/owner_block.php
index 04b70663a..4689b5a54 100644
--- a/views/default/page_elements/owner_block.php
+++ b/views/default/page_elements/owner_block.php
@@ -12,6 +12,21 @@
$contents = "";
+// Are there feeds to display?
+global $autofeed;
+if (isset($autofeed) && $autofeed == true) {
+ $url = $url2 = full_url();
+ if (substr_count($url,'?')) {
+ $url .= "&view=rss";
+ } else {
+ $url .= "?view=rss";
+ }
+ $label = elgg_echo('feed:rss');
+ $contents .= <<<END
+ <div class="rss_link clearfloat"><a href="{$url}" rel="nofollow" title="{$label}">{$label}</a></div>
+END;
+}
+
if(is_plugin_enabled('profile')) {
// Is there a page owner?
$owner = page_owner_entity();
@@ -34,23 +49,6 @@ if(is_plugin_enabled('profile')) {
$contents .= "<div id='owner_block' class='radius8'>".$display."</div>";
}
}
-// Are there feeds to display?
-global $autofeed;
-
-if (isset($autofeed) && $autofeed == true) {
- $url = $url2 = full_url();
- if (substr_count($url,'?')) {
- $url .= "&view=rss";
- } else {
- $url .= "?view=rss";
- }
- $label = elgg_echo('feed:rss');
- $contents .= <<<END
-
-<div id="rss_link"><a href="{$url}" rel="nofollow">{$label}</a></div>
-
-END;
-}
$contents .= elgg_view('owner_block/extend');