* (bug 3043) - RSS feed link should have silly orange icon
authorDanny B <danny_b@users.mediawiki.org>
Fri, 23 Jan 2009 03:39:11 +0000 (03:39 +0000)
committerDanny B <danny_b@users.mediawiki.org>
Fri, 23 Jan 2009 03:39:11 +0000 (03:39 +0000)
** improved r46058, now works in all skins

14 files changed:
includes/DefaultSettings.php
includes/Skin.php
skins/Modern.php
skins/MonoBook.php
skins/common/common_rtl.css
skins/common/shared.css
skins/modern/feed-icon.png [deleted file]
skins/modern/main.css
skins/modern/rtl.css
skins/monobook/feed-icon.png [deleted file]
skins/monobook/main.css
skins/monobook/rtl.css
skins/simple/main.css
skins/simple/rtl.css

index 0cd4bf3..9ec4d13 100644 (file)
@@ -1455,7 +1455,7 @@ $wgCacheEpoch = '20030516000000';
  * to ensure that client-side caches don't keep obsolete copies of global
  * styles.
  */
-$wgStyleVersion = '200';
+$wgStyleVersion = '201';
 
 
 # Server-side caching:
index 40b480d..be46fe8 100644 (file)
@@ -1005,7 +1005,7 @@ END;
                if( $wgOut->isSyndicated() ) {
                        foreach( $wgFeedClasses as $format => $class ) {
                                $feedurl = $wgRequest->escapeAppendQuery( "feed=$format" );
-                               $s .= " | <a href=\"$feedurl\">{$format}</a>";
+                               $s .= " | <a href=\"$feedurl\" class=\"feedlink\">{$format}</a>";
                        }
                }
                return $s;
index e651562..509af71 100644 (file)
@@ -294,7 +294,7 @@ class ModernTemplate extends QuickTemplate {
                if($this->data['feeds']) { ?>
                        <li id="feedlinks"><?php foreach($this->data['feeds'] as $key => $feed) {
                                        ?><a id="<?php echo Sanitizer::escapeId( "feed-$key" ) ?>" href="<?php
-                                       echo htmlspecialchars($feed['href']) ?>"<?php echo $this->skin->tooltipAndAccesskey('feed-'.$key) ?>><?php echo htmlspecialchars($feed['text'])?></a>&nbsp;
+                                       echo htmlspecialchars($feed['href']) ?>" class="feedlink"<?php echo $this->skin->tooltipAndAccesskey('feed-'.$key) ?>><?php echo htmlspecialchars($feed['text'])?></a>&nbsp;
                                        <?php } ?></li><?php
                }
 
index 071e079..f891996 100644 (file)
@@ -296,7 +296,7 @@ class MonoBookTemplate extends QuickTemplate {
                if($this->data['feeds']) { ?>
                        <li id="feedlinks"><?php foreach($this->data['feeds'] as $key => $feed) {
                                        ?><a id="<?php echo Sanitizer::escapeId( "feed-$key" ) ?>" href="<?php
-                                       echo htmlspecialchars($feed['href']) ?>"<?php echo $this->skin->tooltipAndAccesskey('feed-'.$key) ?>><?php echo htmlspecialchars($feed['text'])?></a>&nbsp;
+                                       echo htmlspecialchars($feed['href']) ?>" class="feedlink"<?php echo $this->skin->tooltipAndAccesskey('feed-'.$key) ?>><?php echo htmlspecialchars($feed['text'])?></a>&nbsp;
                                        <?php } ?></li><?php
                }
 
index 11fc995..d3f8351 100644 (file)
@@ -46,3 +46,9 @@ table.filehistory th {
 html > body div#article ul {
        display: table;
 }
+
+/* feed links */
+a.feedlink {
+       background: none;
+       padding-left: 0;
+}
index 7404a15..724b0f4 100644 (file)
@@ -317,4 +317,10 @@ span.mw-revdelundel-link,
 strong.mw-revdelundel-link {
        font-family: monospace;
        font-size: smaller
-}
\ No newline at end of file
+}
+
+/* feed links */
+a.feedlink {
+       background: url("images/feed-icon.png") center left no-repeat;
+       padding-left: 16px;
+}
diff --git a/skins/modern/feed-icon.png b/skins/modern/feed-icon.png
deleted file mode 100644 (file)
index 7188fa2..0000000
Binary files a/skins/modern/feed-icon.png and /dev/null differ
index e24db9b..80ef008 100644 (file)
@@ -162,12 +162,6 @@ textarea {
        margin-top: .4em;
 }
 
-/* feed links */
-#feed-atom, #feed-rss {
-       background: url("feed-icon.png") center left no-repeat;
-       padding-left: 16px;
-}
-
 .portlet h5 {
        padding: 0.1em 0 0.3em 1em;
        margin: 0 0 0 0;
index 6967af2..d7aae76 100644 (file)
@@ -116,12 +116,6 @@ table.filehistory th {
        padding: 0.1em 1em 0.3em 0;
 }
 
-/* feed links */
-#feed-atom, #feed-rss {
-       background: none;
-       padding-left: 0;
-}
-
 #p-cactions li {
        float: right;
 }
diff --git a/skins/monobook/feed-icon.png b/skins/monobook/feed-icon.png
deleted file mode 100644 (file)
index 7188fa2..0000000
Binary files a/skins/monobook/feed-icon.png and /dev/null differ
index 5f96a98..63ce572 100644 (file)
@@ -900,12 +900,6 @@ li#ca-watch, li#ca-unwatch, li#ca-varlang-0, li#ca-print {
        z-index: 3;
 }
 
-/* feed links */
-#feed-atom, #feed-rss {
-       background: url("feed-icon.png") center left no-repeat;
-       padding-left: 16px;
-}
-
 /* TODO: #t-iscite is only used by the Cite extension, come up with some
  * system which allows extensions to add to this file on the fly
  */
index 7f97cab..fbd5ab3 100644 (file)
@@ -77,12 +77,6 @@ div.magnify,
        right: 0;
 }
 
-/* feed links */
-#feed-atom, #feed-rss {
-       background: none;
-       padding-left: 0;
-}
-
 #p-cactions {
        left: auto;
        right: 11.5em;
index 6f3e8eb..6ba47e0 100644 (file)
@@ -175,6 +175,12 @@ input.searchButton {
     padding: 0.5em 0.4em 0.4em 0.4em;
 }
 
+/* feed links */
+a.feedlink {
+       background: url("../common/images/feed-icon.png") center left no-repeat;
+       padding-left: 16px;
+}
+
 textarea {
   width: 100%;
 }
index 1ba1431..1c72597 100644 (file)
@@ -71,6 +71,12 @@ div.magnify,
        right: 0;
 }
 
+/* feed links */
+a.feedlink {
+       background: none;
+       padding-left: 0;
+}
+
 /* Fix margins for non-css2 browsers */
 /* top right bottom left */