Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/css/TwoStepTwoColumnPremiumUS.css |
— | — | @@ -9,7 +9,7 @@ |
10 | 10 | font-size:90%; |
11 | 11 | } |
12 | 12 | table#donation_amount td.amount_data { |
13 | | - background-color:#daf2db; |
| 13 | + background-color:#e8e8e8; |
14 | 14 | } |
15 | 15 | h3.cc_header { |
16 | 16 | padding-bottom: 0; |
Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoStepTwoColumnPremiumUS.php |
— | — | @@ -6,7 +6,7 @@ |
7 | 7 | |
8 | 8 | // set the path to css, before the parent constructor is called, checking to make sure some child class hasn't already set this |
9 | 9 | if ( !strlen( $this->getStylePath() ) ) { |
10 | | - $this->setStylePath( $wgScriptPath . '/extensions/DonationInterface/payflowpro_gateway/forms/css/TwoStepTwoColumnPremium.css' ); |
| 10 | + $this->setStylePath( $wgScriptPath . '/extensions/DonationInterface/payflowpro_gateway/forms/css/TwoStepTwoColumnPremiumUS.css' ); |
11 | 11 | } |
12 | 12 | |
13 | 13 | parent::__construct( $form_data, $form_errors ); |
— | — | @@ -319,4 +319,45 @@ |
320 | 320 | $form .= Xml::closeElement( 'table' ); |
321 | 321 | return $form; |
322 | 322 | } |
| 323 | + |
| 324 | + public function generateDonationFooter() { |
| 325 | + global $wgScriptPath; |
| 326 | + $form = ''; |
| 327 | + $form .= Xml::openElement( 'div', array( 'class' => 'payflow-cc-form-section', 'id' => 'payflowpro_gateway-donate-addl-info' ) ); |
| 328 | + $form .= Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-donate-addl-info-text' ) ); |
| 329 | + $form .= Xml::tags( 'div', array( 'style' => 'text-align:center;' ), '* * *' ); |
| 330 | + $form .= Xml::tags( 'div', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-credit-storage-processing' ) ); |
| 331 | + $form .= Xml::tags( 'div', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-otherways-alt' ) ); |
| 332 | + $form .= Xml::tags( 'div', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-question-comment' ) ); |
| 333 | + $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-addl-info-text |
| 334 | + $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-addl-info |
| 335 | + return $form; |
| 336 | + } |
| 337 | + |
| 338 | + public function generateStateDropdown() { |
| 339 | + require_once( dirname( __FILE__ ) . '/../includes/stateAbbreviations.inc' ); |
| 340 | + |
| 341 | + $states = statesMenuXML(); |
| 342 | + |
| 343 | + $state_opts = Xml::option( '', '' ); |
| 344 | + |
| 345 | + // generate dropdown of state opts |
| 346 | + foreach ( $states as $value => $state_name ) { |
| 347 | + if ( $value !== 'YY' && $value !== 'XX' ) { |
| 348 | + $selected = ( $this->form_data[ 'state' ] == $value ) ? true : false; |
| 349 | + $state_opts .= Xml::option( $value, $value, $selected ); |
| 350 | + } |
| 351 | + } |
| 352 | + |
| 353 | + $state_menu = Xml::openElement( |
| 354 | + 'select', |
| 355 | + array( |
| 356 | + 'name' => 'state', |
| 357 | + 'id' => 'state' |
| 358 | + ) ); |
| 359 | + $state_menu .= $state_opts; |
| 360 | + $state_menu .= Xml::closeElement( 'select' ); |
| 361 | + |
| 362 | + return $state_menu; |
| 363 | + } |
323 | 364 | } |
Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.i18n.php |
— | — | @@ -218,6 +218,7 @@ |
219 | 219 | 'payflowpro_gateway-wikipedia-translation' => 'Please note: "Wikipedia" on the shirt sleeve will be the "Wikipedia 10" graphic, which is not translated.', |
220 | 220 | 'payflowpro_gateway-on-the-back' => 'With this on the back:', |
221 | 221 | 'payflowpro_gateway-tshirt-confirmation' => 'Your t-shirt will be shipped in the size and language below:', |
| 222 | + 'payflowpro_gateway-donation-tshirt' => 'Donation (t-shirt offer)', |
222 | 223 | |
223 | 224 | // For more USA states, see payflowpro_gateway.us-states.i18n.php. |
224 | 225 | 'payflowpro_gateway-state-dropdown-YY' => 'Select a state', |