Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoColumnLetter.php |
— | — | @@ -127,15 +127,18 @@ |
128 | 128 | // PayPal button |
129 | 129 | // make sure we have a paypal url set to redirect the user to before displaying the button |
130 | 130 | 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" )) . ' <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>'; |
132 | 141 | } |
133 | 142 | |
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 | | - |
140 | 143 | // card number |
141 | 144 | $form .= $this->getCardNumberField(); |
142 | 145 | |