Index: trunk/extensions/DonationInterface/donationinterface.php |
— | — | @@ -147,7 +147,7 @@ |
148 | 148 | /** |
149 | 149 | * Global form dir and RapidHTML whitelist |
150 | 150 | */ |
151 | | -$wgDonationInterfaceHtmlFormDir = dirname( __FILE__ ) . "/gateway_forms/html"; |
| 151 | +$wgDonationInterfaceHtmlFormDir = dirname( __FILE__ ) . "/gateway_forms/rapidhtml/html"; |
152 | 152 | //ffname is the $key from now on. |
153 | 153 | $wgDonationInterfaceAllowedHtmlForms = array( |
154 | 154 | 'demo' => $wgDonationInterfaceHtmlFormDir . "/demo.html", |
— | — | @@ -458,6 +458,85 @@ |
459 | 459 | 'position' => 'top' |
460 | 460 | ) + $wgResourceTemplate; |
461 | 461 | |
| 462 | +// Resources for ResourceLoader - 98582 |
| 463 | +$wgResourceTemplate = array( |
| 464 | + 'localBasePath' => $donationinterface_dir . 'gateway_forms', |
| 465 | + 'remoteExtPath' => 'DonationInterface/gateway_forms', |
| 466 | +); |
| 467 | +$wgResourceModules[ 'pfp.form.rapidhtml.webitects' ] = array( |
| 468 | + 'styles' => array( |
| 469 | + 'rapidhtml/css/lp1.css', |
| 470 | + 'rapidhtml/css/Webitects.css', |
| 471 | + ), |
| 472 | + 'scripts' => array( |
| 473 | + 'rapidhtml/js/jquery.ezpz_hint.js', |
| 474 | + ), |
| 475 | + 'dependencies' => array( |
| 476 | + 'jquery.ui.accordion' |
| 477 | + ) |
| 478 | +) + $wgResourceTemplate; |
| 479 | + |
| 480 | + |
| 481 | +//99077 |
| 482 | +// RapidHtml globalcollect_test form resources |
| 483 | +$wgResourceModules[ 'pfp.form.rapidhtml.globalcollect_test' ] = array( |
| 484 | + 'styles' => array( |
| 485 | + 'css/TwoStepTwoColumnLetter3.css', |
| 486 | + 'css/gateway.css', |
| 487 | + ), |
| 488 | + 'scripts' => array(), |
| 489 | + 'dependencies' => array(), |
| 490 | +) + $wgResourceTemplate; |
| 491 | + |
| 492 | +// form validation resource |
| 493 | +//TODO: Move this somewhere gateway-agnostic. |
| 494 | +$wgResourceModules[ 'pfp.form.core.validate' ] = array( |
| 495 | + 'styles' => array(), |
| 496 | + 'scripts' => 'validate_input.js', |
| 497 | + 'dependencies' => 'pfp.form.core.pfp_css', |
| 498 | + 'localBasePath' => $donationinterface_dir . 'payflowpro_gateway', |
| 499 | + 'remoteExtPath' => 'DonationInterface/payflowpro_gateway' |
| 500 | +); |
| 501 | + |
| 502 | +// general PFP css |
| 503 | +$wgResourceModules[ 'pfp.form.core.pfp_css' ] = array( |
| 504 | + 'styles' => 'css/gateway.css', |
| 505 | + 'scripts' => array(), |
| 506 | + 'dependencies' => array(), |
| 507 | +) + $wgResourceTemplate; |
| 508 | + |
| 509 | + |
| 510 | +//98589 & 98600 |
| 511 | +// RapidHtml lightbox form resources |
| 512 | +$wgResourceModules[ 'pfp.form.rapidhtml.lightbox.js' ] = array( |
| 513 | + 'scripts' => array( |
| 514 | + 'rapidhtml/js/lightbox1.js', |
| 515 | + ), |
| 516 | + 'dependencies' => array( |
| 517 | + 'jquery.ui.core', |
| 518 | + 'jquery.ui.widget', |
| 519 | + 'jquery.ui.mouse', |
| 520 | + 'jquery.ui.position', |
| 521 | + 'jquery.ui.draggable', |
| 522 | + 'jquery.ui.resizable', |
| 523 | + 'jquery.ui.button', |
| 524 | + 'jquery.ui.dialog', |
| 525 | + ), |
| 526 | + 'position' => 'top', |
| 527 | +) + $wgResourceTemplate; |
| 528 | + |
| 529 | +// RapidHtml lightbox form css resources (these are separate from the js |
| 530 | +// resources for a good reason but I forget what - I believe to facilitate |
| 531 | +// ensuring proper load order? |
| 532 | +$wgResourceModules[ 'pfp.form.rapidhtml.lightbox.css' ] = array( |
| 533 | + 'styles' => array( |
| 534 | + 'rapidhtml/css/lightbox1.css', |
| 535 | + ), |
| 536 | + 'position' => 'top', |
| 537 | +) + $wgResourceTemplate; |
| 538 | + |
| 539 | + |
| 540 | + |
462 | 541 | $wgExtensionMessagesFiles['DonateInterface'] = $donationinterface_dir . 'donate_interface/donate_interface.i18n.php'; |
463 | 542 | |
464 | 543 | |