From 3c8c971757629e29c5d815c434729015431e267d Mon Sep 17 00:00:00 2001 From: pete Date: Tue, 9 Mar 2010 13:14:22 +0000 Subject: Generic rss feed icon added git-svn-id: http://code.elgg.org/elgg/trunk@5325 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/css.php | 15 ++++++++++++-- views/default/page_elements/owner_block.php | 32 ++++++++++++++--------------- 2 files changed, 28 insertions(+), 19 deletions(-) (limited to 'views') diff --git a/views/default/css.php b/views/default/css.php index 8b5c7cab7..3fe37b959 100644 --- a/views/default/css.php +++ b/views/default/css.php @@ -207,8 +207,19 @@ h2 { .margin_top { margin-top:10px; } -form.action { - margin-top:10px; +.rss_link { + margin-top:-10px; + margin-bottom:10px; +} +.rss_link a { + display:block; + width:14px; + height:14px; + float:right; + background-image:url(_graphics/icon_rss.png); + background-repeat: no-repeat; + background-position: left top; + text-indent: -1000em; } .tags { background-image:url(_graphics/icon_tag.png); 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 .= <<{$label} +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 .= "
".$display."
"; } } -// 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 .= <<{$label} - -END; -} $contents .= elgg_view('owner_block/extend'); -- cgit v1.2.3