r74458 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r74457‎ | r74458 | r74459 >
Date:20:17, 7 October 2010
Author:kaldari
Status:deferred
Tags:
Comment:
fixing cc graphic for vert form
Modified paths:
  • /trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoColumnLetter.php (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoColumnLetter.php
@@ -127,15 +127,18 @@
128128 // PayPal button
129129 // make sure we have a paypal url set to redirect the user to before displaying the button
130130 if ( strlen( $wgPayflowGatewayPaypalURL )) {
131 - $form .= $this->getPaypalButton();
 131+ $form .= '<tr>';
 132+ $form .= '<td class="label"></td>';
 133+ $form .= '<td class="paypal-button">';
 134+ $form .= Xml::hidden( 'PaypalRedirect', false );
 135+ $form .= Xml::tags( 'div',
 136+ array(),
 137+ Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/credit_card_logos2.gif" )) . '&nbsp;&nbsp;&nbsp;<a href="#" onclick="document.payment.PaypalRedirect.value=\'true\';document.payment.submit();"><img src="'.$scriptPath.'/donate_with_paypal.gif"/></a>'
 138+ );
 139+ $form .= '</td>';
 140+ $form .= '</tr>';
132141 }
133142
134 - // card logos
135 - $form .= '<tr>';
136 - $form .= '<td />';
137 - $form .= '<td>' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/payflowpro_gateway/includes/credit_card_logos.gif" )) . '</td>';
138 - $form .= '</tr>';
139 -
140143 // card number
141144 $form .= $this->getCardNumberField();
142145

Status & tagging log