Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/html/webitects_2_3step.html |
— | — | @@ -1,8 +1,8 @@ |
2 | | -<!-- load styles from original first steps --> |
3 | | -<link rel="stylesheet" href="@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/css/lp1.css" /> |
| 2 | +<script type="text/javascript"> |
| 3 | +mw.loader.load('pfp.form.rapidhtml.webitects'); |
| 4 | +</script> |
4 | 5 | <!--[if lt IE 7]><style type="text/css">body{behavior:url("@script_path/skins/vector/csshover.min.htc")}</style><![endif]--> |
5 | 6 | <!-- start Webitects styles --> |
6 | | -<link rel="stylesheet" href="@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/css/Webitects.css" /> |
7 | 7 | <style type="text/css"> |
8 | 8 | #errorMessages { font-size: 0.75em; color: #FF0000; } |
9 | 9 | /* Force vertical scrollbar |
— | — | @@ -229,11 +229,6 @@ |
230 | 230 | </div> |
231 | 231 | |
232 | 232 | <!-- load jquery (newer) --> |
233 | | - <script type='text/javascript' src='@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/js/jquery.js'></script> |
234 | | - <script type='text/javascript' src='@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/js/jquery.ui.core.js'></script> |
235 | | - <script type='text/javascript' src='@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/js/jquery.ui.widget.js'></script> |
236 | | - <script type='text/javascript' src='@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/js/jquery.ui.accordion.js'></script> |
237 | | - <script type='text/javascript' src='@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/js/jquery.ezpz_hint.js'></script> |
238 | 233 | <script type="text/javascript"> |
239 | 234 | ( function( $ ){ |
240 | 235 | window.onload = function (){ |
— | — | @@ -481,4 +476,4 @@ |
482 | 477 | </script> |
483 | 478 | <!-- Wikimedia Project logo |
484 | 479 | <li id="footer-copyrightico"><a href="https://www.mediawiki.org//wikimediafoundation.org/"><img src="//bits.wikimedia.org/images/wikimedia-button.png" width="88" height="31" alt="Wikimedia Foundation"/></a></li> |
485 | | - --> |
\ No newline at end of file |
| 480 | + --> |
Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/html/webitects_1.html |
— | — | @@ -1,8 +1,7 @@ |
2 | | -<!-- load styles from original first steps --> |
3 | | -<link rel="stylesheet" href="@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/css/lp1.css" /> |
| 2 | +<script type="text/javascript"> |
| 3 | +mw.loader.load('pfp.form.rapidhtml.webitects'); |
| 4 | +</script> |
4 | 5 | <!--[if lt IE 7]><style type="text/css">body{behavior:url("@script_path/skins/vector/csshover.min.htc")}</style><![endif]--> |
5 | | -<!-- start Webitects styles --> |
6 | | -<link rel="stylesheet" href="@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/css/Webitects.css" /> |
7 | 6 | <style type="text/css"> |
8 | 7 | #errorMessages { font-size: 0.75em; color: #FF0000; } |
9 | 8 | /* Force vertical scrollbar |
— | — | @@ -206,11 +205,6 @@ |
207 | 206 | </div> |
208 | 207 | </div> |
209 | 208 | <!-- load jquery (newer) --> |
210 | | - <script type='text/javascript' src='@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/js/jquery.js'></script> |
211 | | - <script type='text/javascript' src='@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/js/jquery.ui.core.js'></script> |
212 | | - <script type='text/javascript' src='@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/js/jquery.ui.widget.js'></script> |
213 | | - <script type='text/javascript' src='@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/js/jquery.ui.accordion.js'></script> |
214 | | - <script type='text/javascript' src='@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/js/jquery.ezpz_hint.js'></script> |
215 | 209 | <script type="text/javascript"> |
216 | 210 | ( function( $ ){ |
217 | 211 | window.onload = function (){ |
Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/html/webitects_1a.html |
— | — | @@ -1,8 +1,7 @@ |
2 | | -<!-- load styles from original first steps --> |
3 | | -<link rel="stylesheet" href="@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/css/lp1.css" /> |
| 2 | +<script type="text/javascript"> |
| 3 | +mw.loader.load('pfp.form.rapidhtml.webitects'); |
| 4 | +</script> |
4 | 5 | <!--[if lt IE 7]><style type="text/css">body{behavior:url("@script_path/skins/vector/csshover.min.htc")}</style><![endif]--> |
5 | | -<!-- start Webitects styles --> |
6 | | -<link rel="stylesheet" href="@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/css/Webitects.css" /> |
7 | 6 | <style type="text/css"> |
8 | 7 | #errorMessages { font-size: 0.75em; color: #FF0000; } |
9 | 8 | /* Force vertical scrollbar |
— | — | @@ -207,11 +206,6 @@ |
208 | 207 | </div> |
209 | 208 | </div> |
210 | 209 | <!-- load jquery (newer) --> |
211 | | - <script type='text/javascript' src='@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/js/jquery.js'></script> |
212 | | - <script type='text/javascript' src='@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/js/jquery.ui.core.js'></script> |
213 | | - <script type='text/javascript' src='@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/js/jquery.ui.widget.js'></script> |
214 | | - <script type='text/javascript' src='@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/js/jquery.ui.accordion.js'></script> |
215 | | - <script type='text/javascript' src='@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/js/jquery.ezpz_hint.js'></script> |
216 | 210 | <script type="text/javascript"> |
217 | 211 | ( function( $ ){ |
218 | 212 | window.onload = function (){ |
Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/html/webitects_2.html |
— | — | @@ -1,8 +1,7 @@ |
2 | | -<!-- load styles from original first steps --> |
3 | | -<link rel="stylesheet" href="@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/css/lp1.css" /> |
| 2 | +<script type="text/javascript"> |
| 3 | +mw.loader.load('pfp.form.rapidhtml.webitects'); |
| 4 | +</script> |
4 | 5 | <!--[if lt IE 7]><style type="text/css">body{behavior:url("@script_path/skins/vector/csshover.min.htc")}</style><![endif]--> |
5 | | -<!-- start Webitects styles --> |
6 | | -<link rel="stylesheet" href="@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/css/Webitects.css" /> |
7 | 6 | <style type="text/css"> |
8 | 7 | #errorMessages { font-size: 0.75em; color: #FF0000; } |
9 | 8 | /* Force vertical scrollbar |
— | — | @@ -217,11 +216,6 @@ |
218 | 217 | </div> |
219 | 218 | |
220 | 219 | <!-- load jquery (newer) --> |
221 | | - <script type='text/javascript' src='@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/js/jquery.js'></script> |
222 | | - <script type='text/javascript' src='@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/js/jquery.ui.core.js'></script> |
223 | | - <script type='text/javascript' src='@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/js/jquery.ui.widget.js'></script> |
224 | | - <script type='text/javascript' src='@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/js/jquery.ui.accordion.js'></script> |
225 | | - <script type='text/javascript' src='@script_path/extensions/DonationInterface/payflowpro_gateway/forms/rapidhtml/js/jquery.ezpz_hint.js'></script> |
226 | 220 | <script type="text/javascript"> |
227 | 221 | ( function( $ ){ |
228 | 222 | window.onload = function (){ |
Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.php |
— | — | @@ -167,6 +167,22 @@ |
168 | 168 | $wgAPIModules[ 'pfp' ] = 'ApiPayflowProGateway'; |
169 | 169 | $wgAutoloadClasses[ 'ApiPayflowProGateway' ] = $dir . 'api_payflowpro_gateway.php'; |
170 | 170 | |
| 171 | +// Resources for ResourceLoader |
| 172 | +$wgResourceModules[ 'pfp.form.rapidhtml.webitects' ] = array( |
| 173 | + 'styles' => array( |
| 174 | + 'forms/rapidhtml/css/lp1.css', |
| 175 | + 'forms/rapidhtml/css/Webitects.css', |
| 176 | + ), |
| 177 | + 'scripts' => array( |
| 178 | + 'forms/rapidhtml/js/jquery.ezpz_hint.js', |
| 179 | + ), |
| 180 | + 'dependencies' => array( |
| 181 | + 'jquery.ui.accordion' |
| 182 | + ), |
| 183 | + 'localBasePath' => dirname( __FILE__ ), |
| 184 | + 'remoteExtPath' => 'DonationInterface/payflowpro_gateway' |
| 185 | +); |
| 186 | + |
171 | 187 | function payflowGatewayConnection() { |
172 | 188 | global $wgPayflowGatewayDBserver, $wgPayflowGatewayDBname; |
173 | 189 | global $wgPayflowGatewayDBuser, $wgPayflowGatewayDBpassword; |