r75896 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r75895‎ | r75896 | r75897 >
Date:01:18, 3 November 2010
Author:kaldari
Status:deferred
Tags:
Comment:
stuff for wednesday
Modified paths:
  • /trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoColumnLetter3.php (added) (history)
  • /trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoColumnLetter4.php (added) (history)
  • /trunk/extensions/DonationInterface/payflowpro_gateway/forms/css/TwoColumnLetter4.css (added) (history)
  • /trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoColumnLetter3.php
@@ -0,0 +1,217 @@
 2+<?php
 3+
 4+class PayflowProGateway_Form_TwoColumnLetter2 extends PayflowProGateway_Form_OneStepTwoColumn {
 5+ public $paypal = false; // true for paypal only version
 6+
 7+ public function __construct( &$form_data, &$form_errors ) {
 8+ global $wgScriptPath;
 9+
 10+ // set the path to css, before the parent constructor is called, checking to make sure some child class hasn't already set this
 11+ if ( !strlen( $this->getStylePath() ) ) {
 12+ $this->setStylePath( $wgScriptPath . '/extensions/DonationInterface/payflowpro_gateway/forms/css/TwoColumnLetter.css' );
 13+ }
 14+
 15+ parent::__construct( $form_data, $form_errors );
 16+ }
 17+
 18+ public function generateFormStart() {
 19+ global $wgOut, $wgRequest;
 20+
 21+ $this->paypal = $wgRequest->getBool( 'paypal', false );
 22+
 23+ $form = parent::generateBannerHeader();
 24+
 25+ $form .= Xml::openElement( 'table', array( 'width' => '100%', 'cellspacing' => 0, 'cellpadding' => 0, 'border' => 0 ) );
 26+ $form .= Xml::openElement( 'tr' );
 27+ $form .= Xml::openElement( 'td', array( 'id' => 'appeal', 'valign' => 'top' ) );
 28+
 29+ $text_template = $wgRequest->getText( 'text_template', '2010/JimmyAppealLong' );
 30+ // if the user has uselang set, honor that, otherwise default to the language set for the form defined by 'language' in the query string
 31+ if ( $wgRequest->getText( 'language' ) ) $text_template .= '/' . $this->form_data[ 'language' ];
 32+
 33+ $template = ( strlen( $text_template ) ) ? $wgOut->parse( '{{' . $text_template . '}}' ) : '';
 34+ // if the template doesn't exist, prevent the display of the red link
 35+ if ( preg_match( '/redlink\=1/', $template ) ) $template = NULL;
 36+ $form .= $template;
 37+
 38+ $form .= Xml::closeElement( 'td' );
 39+
 40+ $form .= Xml::openElement( 'td', array( 'id' => 'donate', 'valign' => 'top' ) );
 41+
 42+ // add noscript tags for javascript disabled browsers
 43+ $form .= $this->getNoScript();
 44+
 45+ // $form .= Xml::tags( 'h2', array( 'id' => 'donate-head' ), wfMsg( 'payflowpro_gateway-make-your-donation' ));
 46+
 47+ // provide a place at the top of the form for displaying general messages
 48+ if ( $this->form_errors['general'] ) {
 49+ $form .= Xml::openElement( 'div', array( 'id' => 'mw-payflow-general-error' ) );
 50+ if ( is_array( $this->form_errors['general'] ) ) {
 51+ foreach ( $this->form_errors['general'] as $this->form_errors_msg ) {
 52+ $form .= Xml::tags( 'p', array( 'class' => 'creditcard-error-msg' ), $this->form_errors_msg );
 53+ }
 54+ } else {
 55+ $form .= Xml::tags( 'p', array( 'class' => 'creditcard-error-msg' ), $this->form_errors_msg );
 56+ }
 57+ $form .= Xml::closeElement( 'div' ); // close div#mw-payflow-general-error
 58+ }
 59+
 60+ // Xml::element seems to convert html to htmlentities
 61+ $form .= "<p class='creditcard-error-msg'>" . $this->form_errors['retryMsg'] . "</p>";
 62+ $form .= Xml::openElement( 'form', array( 'name' => 'payment', 'method' => 'post', 'action' => $this->getNoCacheAction(), 'onsubmit' => 'return validate_form(this)', 'autocomplete' => 'off' ) );
 63+
 64+ $form .= $this->generateBillingContainer();
 65+ return $form;
 66+ }
 67+
 68+ public function generateFormEnd() {
 69+ $form = '';
 70+ $form .= $this->generateFormClose();
 71+ return $form;
 72+ }
 73+
 74+ protected function generateBillingContainer() {
 75+ $form = '';
 76+ $form .= Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-personal-info' ) );
 77+ $form .= Xml::openElement( 'table', array( 'id' => 'payflow-table-donor' ) );
 78+ $form .= $this->generateBillingFields();
 79+ $form .= Xml::closeElement( 'table' ); // close table#payflow-table-donor
 80+ $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-personal-info
 81+
 82+ return $form;
 83+ }
 84+
 85+ protected function generateBillingFields() {
 86+ global $wgScriptPath, $wgPayflowGatewayPaypalURL, $wgRequest;
 87+ $scriptPath = "$wgScriptPath/extensions/DonationInterface/payflowpro_gateway/includes";
 88+
 89+ $form = '';
 90+
 91+ if ( !$this->paypal ) {
 92+ // PayPal button
 93+ $form .= '<tr>';
 94+ $form .= '<td style="text-align:center;" colspan="2"><big><b>' . wfMsg( 'payflowpro_gateway-paypal-button' ) . '</b></big><br/><a href="#" onclick="document.payment.PaypalRedirect.value=\'true\';document.payment.submit();"><img src="' . $scriptPath . '/paypal.png"/></a><br/>' .
 95+ '— ' . wfMsg( 'payflowpro_gateway-or' ) . ' —<br/><big><b>' . wfMsg( 'payflowpro_gateway-donate-wikipedia' ) . '</b></big></td>';
 96+ $form .= '</tr>';
 97+ }
 98+
 99+ // amount
 100+ $form .= $this->getAmountField();
 101+
 102+ // name
 103+ $form .= $this->getNameField();
 104+
 105+ // email
 106+ $form .= $this->getEmailField();
 107+
 108+ if ( !$this->paypal ) {
 109+ // PayPal button
 110+ // make sure we have a paypal url set to redirect the user to before displaying the button
 111+ if ( strlen( $wgPayflowGatewayPaypalURL ) ) {
 112+ $form .= '<tr>';
 113+ $form .= '<td class="label"></td>';
 114+ $form .= '<td>';
 115+ $form .= Html::hidden( 'PaypalRedirect', false );
 116+ $form .= Xml::tags( 'div',
 117+ array(),
 118+ Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/credit_card_logos.gif" ) )
 119+ );
 120+ $form .= '</td>';
 121+ $form .= '</tr>';
 122+ }
 123+
 124+ // card number
 125+ $form .= $this->getCardNumberField();
 126+
 127+ // cvv
 128+ $form .= $this->getCvvField();
 129+
 130+ // expiry
 131+ $form .= $this->getExpiryField();
 132+
 133+ // street
 134+ $form .= $this->getStreetField();
 135+
 136+ // city
 137+ $form .= $this->getCityField();
 138+
 139+ // state
 140+ $form .= $this->getStateField();
 141+ // zip
 142+ $form .= $this->getZipField();
 143+
 144+ // country
 145+ $form .= $this->getCountryField();
 146+ }
 147+
 148+ // anonymous
 149+ $comment_opt_value = ( $wgRequest->wasPosted() ) ? $this->form_data[ 'comment-option' ] : true;
 150+ $form .= '<tr>';
 151+ $form .= '<td class="check-option" colspan="2">' . Xml::check( 'comment-option', $comment_opt_value );
 152+ $form .= ' ' . Xml::label( wfMsg( 'payflowpro_gateway-anon-message' ), 'comment-option' ) . '</td>';
 153+ $form .= '</tr>';
 154+
 155+ // email agreement
 156+ $form .= $this->getEmailOptField();
 157+
 158+ return $form;
 159+ }
 160+
 161+ public function generateFormSubmit() {
 162+ // submit button
 163+ $form = Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-form-submit' ) );
 164+ $form .= Xml::openElement( 'div', array( 'id' => 'mw-donate-submit-button' ) );
 165+ if ( $this->paypal ) {
 166+ $form .= Html::hidden( 'PaypalRedirect', false );
 167+ $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'payflowpro_gateway-paypal-button' ), 'onclick' => 'document.payment.PaypalRedirect.value=\'true\';document.payment.submit();', 'type' => 'submit' ) );
 168+ } else {
 169+ $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'payflowpro_gateway-donor-submit' ), 'onclick' => 'submit_form( this )', 'type' => 'submit' ) );
 170+ $form .= Xml::closeElement( 'div' ); // close div#mw-donate-submit-button
 171+ $form .= Xml::openElement( 'div', array( 'class' => 'mw-donate-submessage', 'id' => 'payflowpro_gateway-donate-submessage' ) ) .
 172+ wfMsg( 'payflowpro_gateway-donate-click' );
 173+ }
 174+ $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-submessage
 175+ $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-form-submit
 176+
 177+ return $form;
 178+ }
 179+
 180+ /**
 181+ * Generate form closing elements
 182+ */
 183+ public function generateFormClose() {
 184+ $form = '';
 185+ // add hidden fields
 186+ $hidden_fields = $this->getHiddenFields();
 187+ foreach ( $hidden_fields as $field => $value ) {
 188+ $form .= Html::hidden( $field, $value );
 189+ }
 190+
 191+ $form .= Xml::closeElement( 'form' ); // close form 'payment'
 192+ $form .= $this->generateDonationFooter();
 193+ $form .= Xml::closeElement( 'td' );
 194+ $form .= Xml::closeElement( 'tr' );
 195+ $form .= Xml::closeElement( 'table' );
 196+ return $form;
 197+ }
 198+
 199+ /**
 200+ * Generates the donation footer ("There are other ways to give...")
 201+ * @returns string of HTML
 202+ */
 203+ public function generateDonationFooter() {
 204+ global $wgScriptPath;
 205+ $form = '';
 206+ $form .= Xml::openElement( 'div', array( 'class' => 'payflow-cc-form-section', 'id' => 'payflowpro_gateway-donate-addl-info' ) );
 207+ $form .= Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-donate-addl-info-secure-logos' ) );
 208+ $form .= Xml::tags( 'p', array( 'class' => '' ), Xml::openElement( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/rapidssl_ssl_certificate.gif" ) ) );
 209+ $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-addl-info-secure-logos
 210+ $form .= Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-donate-addl-info-text' ) );
 211+ $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-otherways-short' ) );
 212+ $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-credit-storage-processing' ) );
 213+ $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-question-comment' ) );
 214+ $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-addl-info-text
 215+ $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-addl-info
 216+ return $form;
 217+ }
 218+}
Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoColumnLetter4.php
@@ -0,0 +1,217 @@
 2+<?php
 3+
 4+class PayflowProGateway_Form_TwoColumnLetter2 extends PayflowProGateway_Form_OneStepTwoColumn {
 5+ public $paypal = false; // true for paypal only version
 6+
 7+ public function __construct( &$form_data, &$form_errors ) {
 8+ global $wgScriptPath;
 9+
 10+ // set the path to css, before the parent constructor is called, checking to make sure some child class hasn't already set this
 11+ if ( !strlen( $this->getStylePath() ) ) {
 12+ $this->setStylePath( $wgScriptPath . '/extensions/DonationInterface/payflowpro_gateway/forms/css/TwoColumnLetter4.css' );
 13+ }
 14+
 15+ parent::__construct( $form_data, $form_errors );
 16+ }
 17+
 18+ public function generateFormStart() {
 19+ global $wgOut, $wgRequest;
 20+
 21+ $this->paypal = $wgRequest->getBool( 'paypal', false );
 22+
 23+ $form = parent::generateBannerHeader();
 24+
 25+ $form .= Xml::openElement( 'table', array( 'width' => '100%', 'cellspacing' => 0, 'cellpadding' => 0, 'border' => 0 ) );
 26+ $form .= Xml::openElement( 'tr' );
 27+ $form .= Xml::openElement( 'td', array( 'id' => 'appeal', 'valign' => 'top' ) );
 28+
 29+ $text_template = $wgRequest->getText( 'text_template', '2010/JimmyAppealLong' );
 30+ // if the user has uselang set, honor that, otherwise default to the language set for the form defined by 'language' in the query string
 31+ if ( $wgRequest->getText( 'language' ) ) $text_template .= '/' . $this->form_data[ 'language' ];
 32+
 33+ $template = ( strlen( $text_template ) ) ? $wgOut->parse( '{{' . $text_template . '}}' ) : '';
 34+ // if the template doesn't exist, prevent the display of the red link
 35+ if ( preg_match( '/redlink\=1/', $template ) ) $template = NULL;
 36+ $form .= $template;
 37+
 38+ $form .= Xml::closeElement( 'td' );
 39+
 40+ $form .= Xml::openElement( 'td', array( 'id' => 'donate', 'valign' => 'top' ) );
 41+
 42+ // add noscript tags for javascript disabled browsers
 43+ $form .= $this->getNoScript();
 44+
 45+ // $form .= Xml::tags( 'h2', array( 'id' => 'donate-head' ), wfMsg( 'payflowpro_gateway-make-your-donation' ));
 46+
 47+ // provide a place at the top of the form for displaying general messages
 48+ if ( $this->form_errors['general'] ) {
 49+ $form .= Xml::openElement( 'div', array( 'id' => 'mw-payflow-general-error' ) );
 50+ if ( is_array( $this->form_errors['general'] ) ) {
 51+ foreach ( $this->form_errors['general'] as $this->form_errors_msg ) {
 52+ $form .= Xml::tags( 'p', array( 'class' => 'creditcard-error-msg' ), $this->form_errors_msg );
 53+ }
 54+ } else {
 55+ $form .= Xml::tags( 'p', array( 'class' => 'creditcard-error-msg' ), $this->form_errors_msg );
 56+ }
 57+ $form .= Xml::closeElement( 'div' ); // close div#mw-payflow-general-error
 58+ }
 59+
 60+ // Xml::element seems to convert html to htmlentities
 61+ $form .= "<p class='creditcard-error-msg'>" . $this->form_errors['retryMsg'] . "</p>";
 62+ $form .= Xml::openElement( 'form', array( 'name' => 'payment', 'method' => 'post', 'action' => $this->getNoCacheAction(), 'onsubmit' => 'return validate_form(this)', 'autocomplete' => 'off' ) );
 63+
 64+ $form .= $this->generateBillingContainer();
 65+ return $form;
 66+ }
 67+
 68+ public function generateFormEnd() {
 69+ $form = '';
 70+ $form .= $this->generateFormClose();
 71+ return $form;
 72+ }
 73+
 74+ protected function generateBillingContainer() {
 75+ $form = '';
 76+ $form .= Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-personal-info' ) );
 77+ $form .= Xml::openElement( 'table', array( 'id' => 'payflow-table-donor' ) );
 78+ $form .= $this->generateBillingFields();
 79+ $form .= Xml::closeElement( 'table' ); // close table#payflow-table-donor
 80+ $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-personal-info
 81+
 82+ return $form;
 83+ }
 84+
 85+ protected function generateBillingFields() {
 86+ global $wgScriptPath, $wgPayflowGatewayPaypalURL, $wgRequest;
 87+ $scriptPath = "$wgScriptPath/extensions/DonationInterface/payflowpro_gateway/includes";
 88+
 89+ $form = '';
 90+
 91+ if ( !$this->paypal ) {
 92+ // PayPal button
 93+ $form .= '<tr>';
 94+ $form .= '<td style="text-align:center;" colspan="2"><big><b>' . wfMsg( 'payflowpro_gateway-paypal-button' ) . '</b></big><br/><a href="#" onclick="document.payment.PaypalRedirect.value=\'true\';document.payment.submit();"><img src="' . $scriptPath . '/paypal.png"/></a><br/>' .
 95+ '— ' . wfMsg( 'payflowpro_gateway-or' ) . ' —<br/><big><b>' . wfMsg( 'payflowpro_gateway-donate-wikipedia' ) . '</b></big></td>';
 96+ $form .= '</tr>';
 97+ }
 98+
 99+ // name
 100+ $form .= $this->getNameField();
 101+
 102+ // email
 103+ $form .= $this->getEmailField();
 104+
 105+ // amount
 106+ $form .= $this->getAmountField();
 107+
 108+ if ( !$this->paypal ) {
 109+ // PayPal button
 110+ // make sure we have a paypal url set to redirect the user to before displaying the button
 111+ if ( strlen( $wgPayflowGatewayPaypalURL ) ) {
 112+ $form .= '<tr>';
 113+ $form .= '<td class="label"></td>';
 114+ $form .= '<td>';
 115+ $form .= Html::hidden( 'PaypalRedirect', false );
 116+ $form .= Xml::tags( 'div',
 117+ array(),
 118+ Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/credit_card_logos.gif" ) )
 119+ );
 120+ $form .= '</td>';
 121+ $form .= '</tr>';
 122+ }
 123+
 124+ // card number
 125+ $form .= $this->getCardNumberField();
 126+
 127+ // cvv
 128+ $form .= $this->getCvvField();
 129+
 130+ // expiry
 131+ $form .= $this->getExpiryField();
 132+
 133+ // street
 134+ $form .= $this->getStreetField();
 135+
 136+ // city
 137+ $form .= $this->getCityField();
 138+
 139+ // state
 140+ $form .= $this->getStateField();
 141+ // zip
 142+ $form .= $this->getZipField();
 143+
 144+ // country
 145+ $form .= $this->getCountryField();
 146+ }
 147+
 148+ // anonymous
 149+ $comment_opt_value = ( $wgRequest->wasPosted() ) ? $this->form_data[ 'comment-option' ] : true;
 150+ $form .= '<tr>';
 151+ $form .= '<td class="check-option" colspan="2">' . Xml::check( 'comment-option', $comment_opt_value );
 152+ $form .= ' ' . Xml::label( wfMsg( 'payflowpro_gateway-anon-message' ), 'comment-option' ) . '</td>';
 153+ $form .= '</tr>';
 154+
 155+ // email agreement
 156+ $form .= $this->getEmailOptField();
 157+
 158+ return $form;
 159+ }
 160+
 161+ public function generateFormSubmit() {
 162+ // submit button
 163+ $form = Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-form-submit' ) );
 164+ $form .= Xml::openElement( 'div', array( 'id' => 'mw-donate-submit-button' ) );
 165+ if ( $this->paypal ) {
 166+ $form .= Html::hidden( 'PaypalRedirect', false );
 167+ $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'payflowpro_gateway-paypal-button' ), 'onclick' => 'document.payment.PaypalRedirect.value=\'true\';document.payment.submit();', 'type' => 'submit' ) );
 168+ } else {
 169+ $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'payflowpro_gateway-donor-submit' ), 'onclick' => 'submit_form( this )', 'type' => 'submit' ) );
 170+ $form .= Xml::closeElement( 'div' ); // close div#mw-donate-submit-button
 171+ $form .= Xml::openElement( 'div', array( 'class' => 'mw-donate-submessage', 'id' => 'payflowpro_gateway-donate-submessage' ) ) .
 172+ wfMsg( 'payflowpro_gateway-donate-click' );
 173+ }
 174+ $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-submessage
 175+ $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-form-submit
 176+
 177+ return $form;
 178+ }
 179+
 180+ /**
 181+ * Generate form closing elements
 182+ */
 183+ public function generateFormClose() {
 184+ $form = '';
 185+ // add hidden fields
 186+ $hidden_fields = $this->getHiddenFields();
 187+ foreach ( $hidden_fields as $field => $value ) {
 188+ $form .= Html::hidden( $field, $value );
 189+ }
 190+
 191+ $form .= Xml::closeElement( 'form' ); // close form 'payment'
 192+ $form .= $this->generateDonationFooter();
 193+ $form .= Xml::closeElement( 'td' );
 194+ $form .= Xml::closeElement( 'tr' );
 195+ $form .= Xml::closeElement( 'table' );
 196+ return $form;
 197+ }
 198+
 199+ /**
 200+ * Generates the donation footer ("There are other ways to give...")
 201+ * @returns string of HTML
 202+ */
 203+ public function generateDonationFooter() {
 204+ global $wgScriptPath;
 205+ $form = '';
 206+ $form .= Xml::openElement( 'div', array( 'class' => 'payflow-cc-form-section', 'id' => 'payflowpro_gateway-donate-addl-info' ) );
 207+ $form .= Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-donate-addl-info-secure-logos' ) );
 208+ $form .= Xml::tags( 'p', array( 'class' => '' ), Xml::openElement( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/rapidssl_ssl_certificate.gif" ) ) );
 209+ $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-addl-info-secure-logos
 210+ $form .= Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-donate-addl-info-text' ) );
 211+ $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-otherways-short' ) );
 212+ $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-credit-storage-processing' ) );
 213+ $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-question-comment' ) );
 214+ $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-addl-info-text
 215+ $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-addl-info
 216+ return $form;
 217+ }
 218+}
Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/css/TwoColumnLetter4.css
@@ -0,0 +1,103 @@
 2+.payflow-cc-form-section {
 3+ float: none;
 4+ margin-right: 0em;
 5+ margin-bottom: 1em;
 6+}
 7+
 8+#payflowpro_gateway-cc_form_container {
 9+ width: 100%;
 10+}
 11+
 12+#payflowpro_gateway-cc_form_form {
 13+ width: 475px;
 14+ float: right;
 15+ margin-left: 2em;
 16+ padding-left: 2em;
 17+ border-left: 1px solid #BBBBBB;
 18+}
 19+
 20+#payflowpro_gateway-cc_form_letter {
 21+ height: 100%;
 22+}
 23+
 24+#payflowpro_gateway-cc_form_letter p {
 25+ font-size: 1.125em;
 26+ margin-bottom: 1.2em;
 27+}
 28+
 29+#payflowpro_gateway-personal-info {
 30+ margin-right:0 !important;
 31+}
 32+
 33+#payflowpro_gateway-donate-addl-info-secure-logos {
 34+ float: left;
 35+ margin-right: 2em;
 36+}
 37+
 38+#payflowpro_gateway-cc_form_letter_inside {
 39+ padding-top: .5em;
 40+}
 41+
 42+#payflowpro_gateway-cc_otherways {
 43+ padding-top: .5em;
 44+ display: block;
 45+}
 46+#payflowpro_gateway-donate-addl-info {
 47+ margin-top:3em !important;
 48+ margin-bottom:1em !important;
 49+}
 50+
 51+#appeal {
 52+ /* background-color:#F3F3F3; */
 53+ background-color: transparent;
 54+ /* border-color:silver; */
 55+ border-color: transparent;
 56+ border-style:solid;
 57+ border-width:1px 0 1px 1px;
 58+ padding:16px 24px 24px;
 59+}
 60+#appeal-head {
 61+ font-size:1.5em;
 62+ line-height:1.125em;
 63+ padding-bottom:0.5em;
 64+ padding-top:0.125em;
 65+}
 66+#appeal-body {
 67+ font-size:1.125em;
 68+ margin-bottom:1em;
 69+ padding:0.2em 0;
 70+}
 71+#donate {
 72+ background-color:transparent;
 73+ border:1px solid transparent;
 74+ padding:16px 24px 24px;
 75+ width:400px;
 76+}
 77+#donate-head {
 78+ border-color:#AAAAAA;
 79+ font-size:1.5em;
 80+ line-height:1.125em;
 81+ padding-bottom:0.5em;
 82+ padding-top:0.125em;
 83+}
 84+#donate-body {
 85+ font-size:1.125em;
 86+ margin-bottom:1em;
 87+}
 88+
 89+/* Hiding content border */
 90+table {
 91+ background-color: transparent;
 92+}
 93+div#content {
 94+ background-color: transparent !important;
 95+ background-image: none !important;
 96+}
 97+div#mw-head-base {
 98+ background-image: none !important;
 99+}
 100+
 101+/* Hiding stuff we don't need */
 102+h1#firstHeading, div#contentSub {
 103+ display: none;
 104+}
Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.php
@@ -27,6 +27,8 @@
2828 $wgAutoloadClasses[ 'PayflowProGateway_Form_TwoColumnPayPal' ] = $dir . 'forms/TwoColumnPayPal.php';
2929 $wgAutoloadClasses[ 'PayflowProGateway_Form_TwoColumnLetter' ] = $dir . 'forms/TwoColumnLetter.php';
3030 $wgAutoloadClasses[ 'PayflowProGateway_Form_TwoColumnLetter2' ] = $dir . 'forms/TwoColumnLetter2.php';
 31+$wgAutoloadClasses[ 'PayflowProGateway_Form_TwoColumnLetter3' ] = $dir . 'forms/TwoColumnLetter3.php';
 32+$wgAutoloadClasses[ 'PayflowProGateway_Form_TwoColumnLetter4' ] = $dir . 'forms/TwoColumnLetter4.php';
3133 $wgAutoloadClasses[ 'PayflowProGateway_Form_TwoStepTwoColumnLetter' ] = $dir . 'forms/TwoStepTwoColumnLetter.php';
3234 $wgAutoloadClasses[ 'PayflowProGateway_Form_SingleColumn' ] = $dir . 'forms/SingleColumn.php';
3335 $wgExtensionMessagesFiles['PayflowProGateway'] = $dir . 'payflowpro_gateway.i18n.php';

Status & tagging log