Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.body.php |
— | — | @@ -271,7 +271,32 @@ |
272 | 272 | Xml::Element( 'p', array( 'class' => 'mw-creditcard-submessage' ), |
273 | 273 | wfMsg( 'payflowpro_gateway-donor-currency-msg', $data['currency'] ) |
274 | 274 | ); |
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 | + } |
276 | 301 | } |
277 | 302 | |
278 | 303 | /** |
— | — | @@ -647,4 +672,4 @@ |
648 | 673 | $wgOut->addHTML( '<h3 class="response_message">' . $declinedDefault . $responseMsg . '</h3>' ); |
649 | 674 | } |
650 | 675 | |
651 | | -} // end class |
\ No newline at end of file |
| 676 | +} // end class |