r58520 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r58519‎ | r58520 | r58521 >
Date:09:33, 4 November 2009
Author:tomasz
Status:resolved (Comments)
Tags:
Comment:
Adding simple theming
Modified paths:
  • /trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php
@@ -271,7 +271,32 @@
272272 Xml::Element( 'p', array( 'class' => 'mw-creditcard-submessage' ),
273273 wfMsg( 'payflowpro_gateway-donor-currency-msg', $data['currency'] )
274274 );
275 - $wgOut->addHTML( $form );
 275+ // Theming
 276+ global $wgDonationInterfaceTomasSkin;
 277+
 278+ if ( $wgDonationInterfaceTomasSkin ) {
 279+ $language = 'en';
 280+ $wgOut->addWikiText( '{{Template:2008/Donate-header/' . $language . '}}' );
 281+ $wgOut->addWikiText( '<skin>Tomas</skin>' );
 282+ $form = XML::openElement( 'div', array( 'id' => 'liquid-round', 'style' => 'width:600px;' ) ) .
 283+ XML::openElement( 'div', array( 'class' => 'rightside' ) ) .
 284+ XML::openElement( 'div', array( 'class' => 'top' ) ) .
 285+ XML::element( 'span' ) .
 286+ XML::closeElement( 'div' ) .
 287+ XML::openElement( 'div', array( 'class' => 'bottom' ) ) .
 288+ XML::openElement( 'div', array( 'class' => 'bottom-right' ) ) .
 289+ XML::openElement( 'div', array( 'class' => 'center-content' ) ) .
 290+ $form .
 291+ XML::closeElement( 'div' ) .
 292+ XML::closeElement( 'div' ) .
 293+ XML::closeElement( 'div' ) .
 294+ XML::closeElement( 'div' ) .
 295+ XML::closeElement( 'div' );
 296+ $wgOut->addHTML( $form );
 297+ $wgOut->addWikiText( '{{Template:2008/Donate-footer/' . $language . '}}' );
 298+ } else {
 299+ $wgOut->addHTML( $form );
 300+ }
276301 }
277302
278303 /**
@@ -647,4 +672,4 @@
648673 $wgOut->addHTML( '<h3 class="response_message">' . $declinedDefault . $responseMsg . '</h3>' );
649674 }
650675
651 -} // end class
\ No newline at end of file
 676+} // end class

Follow-up revisions

RevisionCommit summaryAuthorDate
r60761Dropping old section as its not used to fix double tab problem from r58520tomasz01:21, 7 January 2010

Comments

#Comment by Tim Starling (talk | contribs)   06:41, 5 January 2010

That's some crazy indenting. Do you need help configuring your text editor?

#Comment by Siebrand (talk | contribs)   09:37, 5 January 2010

Is the global $wgDonationInterfaceTomasSkin work in progress? Funny name for a global...

Status & tagging log