r53346 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53345‎ | r53346 | r53347 >
Date:01:18, 16 July 2009
Author:tparscal
Status:deferred
Tags:
Comment:
Added templates for portals, and brough some of the styles in which were decided on over on meta (http://meta.wikimedia.org/wiki/Fundraising_2009/Donation_buttons_upgrade). Still a small bug in Ruby when scaling text up - and I have not tested these in many browsers yet...
Modified paths:
  • /trunk/extensions/FundraiserPortal/FundraiserPortal.hooks.php (modified) (history)
  • /trunk/extensions/FundraiserPortal/FundraiserPortal.i18n.php (modified) (history)
  • /trunk/extensions/FundraiserPortal/FundraiserPortal.php (modified) (history)
  • /trunk/extensions/FundraiserPortal/Templates (added) (history)
  • /trunk/extensions/FundraiserPortal/Templates/Plain.php (added) (history)
  • /trunk/extensions/FundraiserPortal/Templates/Ruby.php (added) (history)
  • /trunk/extensions/FundraiserPortal/Templates/RubyText.php (added) (history)
  • /trunk/extensions/FundraiserPortal/Templates/Sapphire.php (added) (history)
  • /trunk/extensions/FundraiserPortal/images (added) (history)
  • /trunk/extensions/FundraiserPortal/images/ruby-b.png (added) (history)
  • /trunk/extensions/FundraiserPortal/images/ruby-bl.png (added) (history)
  • /trunk/extensions/FundraiserPortal/images/ruby-br.png (added) (history)
  • /trunk/extensions/FundraiserPortal/images/ruby-c.png (added) (history)
  • /trunk/extensions/FundraiserPortal/images/ruby-t.png (added) (history)
  • /trunk/extensions/FundraiserPortal/images/ruby-tl.png (added) (history)
  • /trunk/extensions/FundraiserPortal/images/ruby-tr.png (added) (history)
  • /trunk/extensions/FundraiserPortal/images/rubytext-b-b.png (added) (history)
  • /trunk/extensions/FundraiserPortal/images/rubytext-b-bl.png (added) (history)
  • /trunk/extensions/FundraiserPortal/images/rubytext-b-br.png (added) (history)
  • /trunk/extensions/FundraiserPortal/images/rubytext-b-close.png (added) (history)
  • /trunk/extensions/FundraiserPortal/images/rubytext-b-l.png (added) (history)
  • /trunk/extensions/FundraiserPortal/images/rubytext-b-r.png (added) (history)
  • /trunk/extensions/FundraiserPortal/images/rubytext-b.png (added) (history)
  • /trunk/extensions/FundraiserPortal/images/rubytext-bl.png (added) (history)
  • /trunk/extensions/FundraiserPortal/images/rubytext-br.png (added) (history)
  • /trunk/extensions/FundraiserPortal/images/rubytext-c.png (added) (history)
  • /trunk/extensions/FundraiserPortal/images/rubytext-t.png (added) (history)
  • /trunk/extensions/FundraiserPortal/images/rubytext-tl.png (added) (history)
  • /trunk/extensions/FundraiserPortal/images/rubytext-tr.png (added) (history)
  • /trunk/extensions/FundraiserPortal/images/sapphire-b.png (added) (history)
  • /trunk/extensions/FundraiserPortal/images/sapphire-bl.png (added) (history)
  • /trunk/extensions/FundraiserPortal/images/sapphire-br.png (added) (history)
  • /trunk/extensions/FundraiserPortal/images/sapphire-c.png (added) (history)
  • /trunk/extensions/FundraiserPortal/images/sapphire-l.png (added) (history)
  • /trunk/extensions/FundraiserPortal/images/sapphire-r.png (added) (history)
  • /trunk/extensions/FundraiserPortal/images/sapphire-t.png (added) (history)
  • /trunk/extensions/FundraiserPortal/images/sapphire-tl.png (added) (history)
  • /trunk/extensions/FundraiserPortal/images/sapphire-tr.png (added) (history)

Diff [purge]

Index: trunk/extensions/FundraiserPortal/images/rubytext-b.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/FundraiserPortal/images/rubytext-b.png
___________________________________________________________________
Added: svn:mime-type
11 + application/octet-stream
Index: trunk/extensions/FundraiserPortal/images/rubytext-b-br.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/FundraiserPortal/images/rubytext-b-br.png
___________________________________________________________________
Added: svn:mime-type
22 + application/octet-stream
Index: trunk/extensions/FundraiserPortal/images/rubytext-c.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/FundraiserPortal/images/rubytext-c.png
___________________________________________________________________
Added: svn:mime-type
33 + application/octet-stream
Index: trunk/extensions/FundraiserPortal/images/sapphire-bl.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/FundraiserPortal/images/sapphire-bl.png
___________________________________________________________________
Added: svn:mime-type
44 + application/octet-stream
Index: trunk/extensions/FundraiserPortal/images/rubytext-b-close.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/FundraiserPortal/images/rubytext-b-close.png
___________________________________________________________________
Added: svn:mime-type
55 + application/octet-stream
Index: trunk/extensions/FundraiserPortal/images/rubytext-tr.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/FundraiserPortal/images/rubytext-tr.png
___________________________________________________________________
Added: svn:mime-type
66 + application/octet-stream
Index: trunk/extensions/FundraiserPortal/images/sapphire-r.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/FundraiserPortal/images/sapphire-r.png
___________________________________________________________________
Added: svn:mime-type
77 + application/octet-stream
Index: trunk/extensions/FundraiserPortal/images/ruby-bl.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/FundraiserPortal/images/ruby-bl.png
___________________________________________________________________
Added: svn:mime-type
88 + application/octet-stream
Index: trunk/extensions/FundraiserPortal/images/sapphire-br.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/FundraiserPortal/images/sapphire-br.png
___________________________________________________________________
Added: svn:mime-type
99 + application/octet-stream
Index: trunk/extensions/FundraiserPortal/images/sapphire-t.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/FundraiserPortal/images/sapphire-t.png
___________________________________________________________________
Added: svn:mime-type
1010 + application/octet-stream
Index: trunk/extensions/FundraiserPortal/images/rubytext-bl.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/FundraiserPortal/images/rubytext-bl.png
___________________________________________________________________
Added: svn:mime-type
1111 + application/octet-stream
Index: trunk/extensions/FundraiserPortal/images/ruby-t.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/FundraiserPortal/images/ruby-t.png
___________________________________________________________________
Added: svn:mime-type
1212 + application/octet-stream
Index: trunk/extensions/FundraiserPortal/images/ruby-br.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/FundraiserPortal/images/ruby-br.png
___________________________________________________________________
Added: svn:mime-type
1313 + application/octet-stream
Index: trunk/extensions/FundraiserPortal/images/rubytext-b-b.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/FundraiserPortal/images/rubytext-b-b.png
___________________________________________________________________
Added: svn:mime-type
1414 + application/octet-stream
Index: trunk/extensions/FundraiserPortal/images/rubytext-t.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/FundraiserPortal/images/rubytext-t.png
___________________________________________________________________
Added: svn:mime-type
1515 + application/octet-stream
Index: trunk/extensions/FundraiserPortal/images/rubytext-br.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/FundraiserPortal/images/rubytext-br.png
___________________________________________________________________
Added: svn:mime-type
1616 + application/octet-stream
Index: trunk/extensions/FundraiserPortal/images/sapphire-tl.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/FundraiserPortal/images/sapphire-tl.png
___________________________________________________________________
Added: svn:mime-type
1717 + application/octet-stream
Index: trunk/extensions/FundraiserPortal/images/sapphire-b.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/FundraiserPortal/images/sapphire-b.png
___________________________________________________________________
Added: svn:mime-type
1818 + application/octet-stream
Index: trunk/extensions/FundraiserPortal/images/sapphire-c.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/FundraiserPortal/images/sapphire-c.png
___________________________________________________________________
Added: svn:mime-type
1919 + application/octet-stream
Index: trunk/extensions/FundraiserPortal/images/sapphire-tr.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/FundraiserPortal/images/sapphire-tr.png
___________________________________________________________________
Added: svn:mime-type
2020 + application/octet-stream
Index: trunk/extensions/FundraiserPortal/images/ruby-tl.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/FundraiserPortal/images/ruby-tl.png
___________________________________________________________________
Added: svn:mime-type
2121 + application/octet-stream
Index: trunk/extensions/FundraiserPortal/images/rubytext-b-l.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/FundraiserPortal/images/rubytext-b-l.png
___________________________________________________________________
Added: svn:mime-type
2222 + application/octet-stream
Index: trunk/extensions/FundraiserPortal/images/ruby-b.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/FundraiserPortal/images/ruby-b.png
___________________________________________________________________
Added: svn:mime-type
2323 + application/octet-stream
Index: trunk/extensions/FundraiserPortal/images/rubytext-b-bl.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/FundraiserPortal/images/rubytext-b-bl.png
___________________________________________________________________
Added: svn:mime-type
2424 + application/octet-stream
Index: trunk/extensions/FundraiserPortal/images/ruby-c.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/FundraiserPortal/images/ruby-c.png
___________________________________________________________________
Added: svn:mime-type
2525 + application/octet-stream
Index: trunk/extensions/FundraiserPortal/images/rubytext-tl.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/FundraiserPortal/images/rubytext-tl.png
___________________________________________________________________
Added: svn:mime-type
2626 + application/octet-stream
Index: trunk/extensions/FundraiserPortal/images/sapphire-l.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/FundraiserPortal/images/sapphire-l.png
___________________________________________________________________
Added: svn:mime-type
2727 + application/octet-stream
Index: trunk/extensions/FundraiserPortal/images/ruby-tr.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/FundraiserPortal/images/ruby-tr.png
___________________________________________________________________
Added: svn:mime-type
2828 + application/octet-stream
Index: trunk/extensions/FundraiserPortal/images/rubytext-b-r.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: trunk/extensions/FundraiserPortal/images/rubytext-b-r.png
___________________________________________________________________
Added: svn:mime-type
2929 + application/octet-stream
Index: trunk/extensions/FundraiserPortal/FundraiserPortal.i18n.php
@@ -14,5 +14,10 @@
1515 $messages['en'] = array(
1616 'fundraiserportal' => 'Fundraiser Portal',
1717 'fundraiserportal-desc' => 'Adds a "please donate" portal to the top of the sidebar.',
18 - 'fundraiserportal-donate' => 'Support Wikipedia!'
 18+ 'fundraiserportal-plain-button' => 'Support Wikipedia!',
 19+ 'fundraiserportal-ruby-button' => 'Donate Now',
 20+ 'fundraiserportal-rubytext-button' => 'Donate Now',
 21+ 'fundraiserportal-rubytext-message' => 'Every donation helps us to keep Wikipedia free for everyone.',
 22+ 'fundraiserportal-rubytext-close' => 'Hide this from now on',
 23+ 'fundraiserportal-sapphire-button' => 'Donate Now',
1924 );
Index: trunk/extensions/FundraiserPortal/FundraiserPortal.php
@@ -21,6 +21,8 @@
2222
2323 $wgFundraiserPortalShow = true;
2424 $wgFundraiserPortalURL = 'http://wikimediafoundation.org/wiki/Donate/Now/en';
 25+// Allowable templates: Plain, Ruby, RubyText, Sapphire
 26+$wgFundraiserPortalTemplate = 'Sapphire';
2527
2628 /* Setup */
2729
Index: trunk/extensions/FundraiserPortal/FundraiserPortal.hooks.php
@@ -7,78 +7,44 @@
88 */
99
1010 class FundraiserPortalHooks {
11 -
 11+
 12+ /* Static Members */
 13+
 14+ // Only one of these templates will be allowed
 15+ static $mTemplates = array(
 16+ 'Plain', 'Ruby', 'RubyText', 'Sapphire'
 17+ );
 18+
1219 /* Static Functions */
13 -
 20+
1421 /**
1522 * SkinBuildSidebar hook
1623 * Adds please donate button to sidebar
1724 */
1825 public static function buildSidebar( $skin, &$bar ) {
19 - global $wgFundraiserPortalURL, $wgFundraiserPortalShow;
 26+ global $wgScriptPath, $wgFundraiserPortalURL, $wgFundraiserPortalShow;
 27+ global $wgFundraiserPortalTemplate;
2028
 29+ // Only proceed if we are configured to show the portal
2130 if ( !$wgFundraiserPortalShow ) {
2231 return true;
2332 }
24 -
 33+ // Only proceed if the template we are being asked to use is allowed
 34+ if ( !in_array( $wgFundraiserPortalTemplate, self::$mTemplates ) ) {
 35+ return true;
 36+ }
 37+ // Render the portal and insert it at the begining of the sidebar
2538 wfLoadExtensionMessages( 'FundraiserPortal' );
 39+ $template = dirname( __FILE__ ) . '/Templates/' .
 40+ $wgFundraiserPortalTemplate .
 41+ '.php';
 42+ $imageUrl = $wgScriptPath . '/extensions/FundraiserPortal/images';
 43+ if ( file_exists( $template ) ) {
 44+ ob_start();
 45+ require_once( $template );
 46+ $bar = array_merge( array( 'DONATE' => ob_get_clean() ), $bar );
 47+ }
2648
27 - // Define CSS to make portal fit in with the 3 SkinTemplate based
28 - // skins used on our projects
29 - $css = <<<CSS
30 -/* Monobook Style */
31 -body.skin-monobook div#p-DONATE h5 {
32 - display: none;
33 -}
34 -body.skin-monobook div#p-DONATE div.pBody a {
35 - display: block;
36 - margin: 0.5em;
37 - margin-bottom: 0.25em;
38 -}
39 -/* Modern Style */
40 -body.skin-modern div#p-DONATE {
41 - padding-top: 0.25em;
42 -}
43 -body.skin-modern div#p-DONATE h5 {
44 - display: none;
45 -}
46 -body.skin-modern div#p-DONATE div.pBody a {
47 - display: block;
48 - padding: 0;
49 - margin: 0.5em;
50 - margin-bottom: 0.25em;
51 -}
52 -/* Vector Style */
53 -body.skin-vector div#p-DONATE {
54 - padding-top: 1em;
55 -}
56 -body.skin-vector div#p-DONATE h5 {
57 - display: none;
58 -}
59 -body.skin-vector div#p-DONATE div.body {
60 - background: none;
61 - padding: 0;
62 - margin: 0;
63 - margin-left: 0.5em;
64 -}
65 -body.skin-vector div#p-DONATE div a {
66 - display: block;
67 - margin: 0.5em;
68 - margin-bottom: 0;
69 -}
70 -CSS;
71 - $portal = Xml::element(
72 - 'style',
73 - array( 'type' => 'text/css' ),
74 - $css
75 - );
76 - $portal .= Xml::element(
77 - 'a',
78 - array( 'href' => $wgFundraiserPortalURL ),
79 - wfMsg( 'fundraiserportal-donate' )
80 - );
81 - $bar = array_merge( array( 'DONATE' => $portal ), $bar );
82 -
8349 return true;
8450 }
8551 }
Index: trunk/extensions/FundraiserPortal/Templates/Plain.php
@@ -0,0 +1,43 @@
 2+<style type="text/css">
 3+/* Monobook Style */
 4+body.skin-monobook div#p-DONATE h5 {
 5+ display: none;
 6+}
 7+body.skin-monobook div#p-DONATE div.pBody a {
 8+ display: block;
 9+ margin: 0.5em;
 10+ margin-bottom: 0.25em;
 11+}
 12+/* Modern Style */
 13+body.skin-modern div#p-DONATE {
 14+ padding-top: 0.25em;
 15+}
 16+body.skin-modern div#p-DONATE h5 {
 17+ display: none;
 18+}
 19+body.skin-modern div#p-DONATE div.pBody a {
 20+ display: block;
 21+ padding: 0;
 22+ margin: 0.5em;
 23+ margin-bottom: 0.25em;
 24+}
 25+/* Vector Style */
 26+body.skin-vector div#p-DONATE {
 27+ padding-top: 1em;
 28+}
 29+body.skin-vector div#p-DONATE h5 {
 30+ display: none;
 31+}
 32+body.skin-vector div#p-DONATE div.body {
 33+ background: none;
 34+ padding: 0;
 35+ margin: 0;
 36+ margin-left: 0.5em;
 37+}
 38+body.skin-vector div#p-DONATE div a {
 39+ display: block;
 40+ margin: 0.5em;
 41+ margin-bottom: 0;
 42+}
 43+</style>
 44+<a href="<?php echo $wgFundraiserPortalURL ?>"><?php echo wfMsg( 'fundraiserportal-plain-button' ) ?></a>
\ No newline at end of file
Index: trunk/extensions/FundraiserPortal/Templates/RubyText.php
@@ -0,0 +1,178 @@
 2+<style type="text/css">
 3+/* Monobook Style */
 4+body.skin-monobook div#p-DONATE h5 {
 5+ display: none;
 6+}
 7+body.skin-monobook div#p-DONATE div.pBody {
 8+ background: none;
 9+ border: 0;
 10+ padding: 0.5em;
 11+ padding-left: 1em;
 12+ padding-top: 0em;
 13+ margin: 0;
 14+}
 15+/* Modern Style */
 16+body.skin-modern div#p-DONATE h5 {
 17+ display: none;
 18+}
 19+body.skin-modern div#p-DONATE div.pBody {
 20+ padding: 0.5em;
 21+ margin: 0;
 22+}
 23+/* Vector Style */
 24+body.skin-vector div#p-DONATE {
 25+ padding-top: 0;
 26+}
 27+body.skin-vector div#p-DONATE h5 {
 28+ display: none;
 29+}
 30+body.skin-vector div#p-DONATE div.body {
 31+ background: none;
 32+ padding: 0;
 33+ margin: 0;
 34+ margin-left: 1em;
 35+ margin-right: 1em;
 36+}
 37+/* General Style */
 38+div#fundraiserportal-button {
 39+ background-image: url(<?php echo $imageUrl ?>/rubytext-c.png);
 40+ margin: 0;
 41+ margin-left: 10px;
 42+ margin-right: 10px;
 43+}
 44+div#fundraiserportal-button div {
 45+ background-image: url(<?php echo $imageUrl ?>/rubytext-t.png);
 46+ background-position: top;
 47+ background-repeat: repeat-x;
 48+ margin: 0;
 49+}
 50+div#fundraiserportal-button div div {
 51+ background-image: url(<?php echo $imageUrl ?>/rubytext-b.png);
 52+ background-position: bottom;
 53+ background-repeat: repeat-x;
 54+ margin: 0;
 55+}
 56+div#fundraiserportal-button div div div {
 57+ background-image: url(<?php echo $imageUrl ?>/rubytext-tl.png);
 58+ background-position: top left;
 59+ background-repeat: no-repeat;
 60+ margin: 0;
 61+ margin-left: -10px;
 62+ margin-right: -10px;
 63+}
 64+div#fundraiserportal-button div div div div {
 65+ background-image: url(<?php echo $imageUrl ?>/rubytext-bl.png);
 66+ background-position: bottom left;
 67+ background-repeat: no-repeat;
 68+ margin: 0;
 69+}
 70+div#fundraiserportal-button div div div div div {
 71+ background-image: url(<?php echo $imageUrl ?>/rubytext-tr.png);
 72+ background-position: top right;
 73+ background-repeat: no-repeat;
 74+ margin: 0;
 75+}
 76+div#fundraiserportal-button div div div div div div {
 77+ background-image: url(<?php echo $imageUrl ?>/rubytext-br.png);
 78+ background-position: bottom right;
 79+ background-repeat: no-repeat;
 80+ margin: 0;
 81+}
 82+div#fundraiserportal-button a {
 83+ display: block;
 84+ padding: 0.5em;
 85+ color: white;
 86+ font-weight: bold;
 87+ text-align: center;
 88+}
 89+div#fundraiserportal-button a:hover {
 90+ text-decoration: none;
 91+}
 92+div#fundraiserportal-message {
 93+ background-color: white;
 94+ background-image: url(<?php echo $imageUrl ?>/rubytext-b-b.png);
 95+ background-position: bottom;
 96+ background-repeat: repeat-x;
 97+ margin: 0;
 98+ margin-left: 10px;
 99+ margin-right: 10px;
 100+ padding: 0;
 101+}
 102+div#fundraiserportal-message div {
 103+ background-image: url(<?php echo $imageUrl ?>/rubytext-b-br.png);
 104+ background-position: bottom right;
 105+ background-repeat: no-repeat;
 106+ margin: 0;
 107+ margin-left: -10px;
 108+ margin-right: -10px;
 109+ padding: 0;
 110+}
 111+div#fundraiserportal-message div div {
 112+ background-image: url(<?php echo $imageUrl ?>/rubytext-b-bl.png);
 113+ background-position: bottom left;
 114+ background-repeat: no-repeat;
 115+ margin: 0;
 116+ padding: 0;
 117+ padding-bottom: 10px;
 118+}
 119+div#fundraiserportal-message div div div {
 120+ background-image: url(<?php echo $imageUrl ?>/rubytext-b-l.png);
 121+ background-position: left;
 122+ background-repeat: repeat-y;
 123+ margin: 0;
 124+ padding: 0;
 125+}
 126+div#fundraiserportal-message div div div div {
 127+ background-image: url(<?php echo $imageUrl ?>/rubytext-b-r.png);
 128+ background-position: right;
 129+ background-repeat: repeat-y;
 130+ margin: 0;
 131+ padding: 0;
 132+}
 133+div#fundraiserportal-message div div div div p {
 134+ font-size: 0.8em;
 135+ color: #333333;
 136+ margin: 0;
 137+ padding: 0.5em 0.75em;
 138+}
 139+div#fundraiserportal-close {
 140+}
 141+div#fundraiserportal-close a {
 142+ float: right;
 143+ margin-top: -11px;
 144+ margin-right: -2px;
 145+ display: block;
 146+ width: 13px;
 147+ height: 13px;
 148+ background-image: url(<?php echo $imageUrl ?>/rubytext-b-close.png);
 149+ background-position: top left;
 150+ background-repeat: no-repeat;
 151+}
 152+</style>
 153+<div id="fundraiserportal-button">
 154+ <div>
 155+ <div>
 156+ <div>
 157+ <div>
 158+ <div>
 159+ <div>
 160+ <a href="<?php echo $wgFundraiserPortalURL ?>"><?php echo wfMsg( 'fundraiserportal-rubytext-button' ) ?></a>
 161+ </div>
 162+ </div>
 163+ </div>
 164+ </div>
 165+ </div>
 166+ </div>
 167+</div>
 168+<div id="fundraiserportal-message">
 169+ <div>
 170+ <div>
 171+ <div>
 172+ <div>
 173+ <p><?php echo wfMsg( 'fundraiserportal-rubytext-message' ) ?></p>
 174+ </div>
 175+ </div>
 176+ </div>
 177+ </div>
 178+</div>
 179+<div id="fundraiserportal-close"><a href="#" title="<?php echo wfMsg( 'fundraiserportal-rubytext-close' ) ?>"></a></div>
\ No newline at end of file
Index: trunk/extensions/FundraiserPortal/Templates/Sapphire.php
@@ -0,0 +1,91 @@
 2+<style type="text/css">
 3+/* Monobook Style */
 4+body.skin-monobook div#p-DONATE h5 {
 5+ display: none;
 6+}
 7+body.skin-monobook div#p-DONATE div.pBody {
 8+ background: none;
 9+ border: 0;
 10+ padding: 0.5em;
 11+ padding-left: 1em;
 12+ padding-top: 0em;
 13+ margin: 0;
 14+}
 15+/* Modern Style */
 16+body.skin-modern div#p-DONATE h5 {
 17+ display: none;
 18+}
 19+body.skin-modern div#p-DONATE div.pBody {
 20+ padding: 0.5em;
 21+ margin: 0;
 22+}
 23+/* Vector Style */
 24+body.skin-vector div#p-DONATE {
 25+ padding-top: 0;
 26+}
 27+body.skin-vector div#p-DONATE h5 {
 28+ display: none;
 29+}
 30+body.skin-vector div#p-DONATE div.body {
 31+ background: none;
 32+ padding: 0;
 33+ margin: 0;
 34+ margin-left: 1em;
 35+ margin-right: 1em;
 36+}
 37+/* General Style */
 38+div#fundraiserportal-button {
 39+ background-image: url(<?php echo $imageUrl ?>/sapphire-c.png);
 40+}
 41+div#fundraiserportal-button div {
 42+ background-image: url(<?php echo $imageUrl ?>/sapphire-t.png);
 43+ background-position: top;
 44+ background-repeat: repeat-x;
 45+}
 46+div#fundraiserportal-button div div {
 47+ background-image: url(<?php echo $imageUrl ?>/sapphire-b.png);
 48+ background-position: bottom;
 49+ background-repeat: repeat-x;
 50+}
 51+div#fundraiserportal-button div div div {
 52+ background-image: url(<?php echo $imageUrl ?>/sapphire-l.png);
 53+ background-position: left;
 54+ background-repeat: repeat-y;
 55+}
 56+div#fundraiserportal-button div div div div {
 57+ background-image: url(<?php echo $imageUrl ?>/sapphire-r.png);
 58+ background-position: right;
 59+ background-repeat: repeat-y;
 60+}
 61+div#fundraiserportal-button div div div div div {
 62+ background-image: url(<?php echo $imageUrl ?>/sapphire-tl.png);
 63+ background-position: top left;
 64+ background-repeat: no-repeat;
 65+}
 66+div#fundraiserportal-button div div div div div div {
 67+ background-image: url(<?php echo $imageUrl ?>/sapphire-bl.png);
 68+ background-position: bottom left;
 69+ background-repeat: no-repeat;
 70+}
 71+div#fundraiserportal-button div div div div div div div {
 72+ background-image: url(<?php echo $imageUrl ?>/sapphire-tr.png);
 73+ background-position: top right;
 74+ background-repeat: no-repeat;
 75+}
 76+div#fundraiserportal-button div div div div div div div div {
 77+ background-image: url(<?php echo $imageUrl ?>/sapphire-br.png);
 78+ background-position: bottom right;
 79+ background-repeat: no-repeat;
 80+}
 81+div#fundraiserportal-button div div div div div div div div a {
 82+ display: block;
 83+ padding: 0.4em;
 84+ color: white;
 85+ font-weight: bold;
 86+ text-align: center;
 87+}
 88+div#fundraiserportal-button a:hover {
 89+ text-decoration: none;
 90+}
 91+</style>
 92+<div id="fundraiserportal-button"><div><div><div><div><div><div><div><div><a href="<?php echo $wgFundraiserPortalURL ?>"><?php echo wfMsg( 'fundraiserportal-sapphire-button' ) ?></a></div></div></div></div></div></div></div></div></div>
\ No newline at end of file
Index: trunk/extensions/FundraiserPortal/Templates/Ruby.php
@@ -0,0 +1,106 @@
 2+<style type="text/css">
 3+/* Monobook Style */
 4+body.skin-monobook div#p-DONATE h5 {
 5+ display: none;
 6+}
 7+body.skin-monobook div#p-DONATE div.pBody {
 8+ background: none;
 9+ border: 0;
 10+ padding: 0.5em;
 11+ padding-left: 1em;
 12+ padding-top: 0em;
 13+ margin: 0;
 14+}
 15+/* Modern Style */
 16+body.skin-modern div#p-DONATE h5 {
 17+ display: none;
 18+}
 19+body.skin-modern div#p-DONATE div.pBody {
 20+ padding: 0.5em;
 21+ margin: 0;
 22+}
 23+/* Vector Style */
 24+body.skin-vector div#p-DONATE {
 25+ padding-top: 0;
 26+}
 27+body.skin-vector div#p-DONATE h5 {
 28+ display: none;
 29+}
 30+body.skin-vector div#p-DONATE div.body {
 31+ background: none;
 32+ padding: 0;
 33+ margin: 0;
 34+ margin-left: 1em;
 35+ margin-right: 1em;
 36+}
 37+/* General Style */
 38+div#fundraiserportal-button {
 39+ background-image: url(<?php echo $imageUrl ?>/ruby-c.png);
 40+ margin-left: 10px;
 41+ margin-right: 10px;
 42+}
 43+div#fundraiserportal-button div {
 44+ background-image: url(<?php echo $imageUrl ?>/ruby-t.png);
 45+ background-position: top;
 46+ background-repeat: repeat-x;
 47+ margin: 0;
 48+}
 49+div#fundraiserportal-button div div {
 50+ background-image: url(<?php echo $imageUrl ?>/ruby-b.png);
 51+ background-position: bottom;
 52+ background-repeat: repeat-x;
 53+ margin: 0;
 54+}
 55+div#fundraiserportal-button div div div {
 56+ background-image: url(<?php echo $imageUrl ?>/ruby-tl.png);
 57+ background-position: top left;
 58+ background-repeat: no-repeat;
 59+ margin: 0;
 60+ margin-left: -10px;
 61+ margin-right: -10px;
 62+}
 63+div#fundraiserportal-button div div div div {
 64+ background-image: url(<?php echo $imageUrl ?>/ruby-bl.png);
 65+ background-position: bottom left;
 66+ background-repeat: no-repeat;
 67+ margin: 0;
 68+}
 69+div#fundraiserportal-button div div div div div {
 70+ background-image: url(<?php echo $imageUrl ?>/ruby-tr.png);
 71+ background-position: top right;
 72+ background-repeat: no-repeat;
 73+ margin: 0;
 74+}
 75+div#fundraiserportal-button div div div div div div {
 76+ background-image: url(<?php echo $imageUrl ?>/ruby-br.png);
 77+ background-position: bottom right;
 78+ background-repeat: no-repeat;
 79+ margin: 0;
 80+}
 81+div#fundraiserportal-button a {
 82+ display: block;
 83+ padding: 0.5em;
 84+ color: white;
 85+ font-weight: bold;
 86+ text-align: center;
 87+}
 88+div#fundraiserportal-button a:hover {
 89+ text-decoration: none;
 90+}
 91+</style>
 92+<div id="fundraiserportal-button">
 93+ <div>
 94+ <div>
 95+ <div>
 96+ <div>
 97+ <div>
 98+ <div>
 99+ <a href="<?php echo $wgFundraiserPortalURL ?>"><?php echo wfMsg( 'fundraiserportal-ruby-button' ) ?></a>
 100+ </div>
 101+ </div>
 102+ </div>
 103+ </div>
 104+ </div>
 105+ </div>
 106+</div>
 107+<div style="clear:both"></div>
\ No newline at end of file

Status & tagging log