@@ -9,19 +9,19 @@ |
||
9 | 9 | */ |
10 | 10 | |
11 | 11 | ?> |
12 | -<h3><?php esc_html_e( 'Settings', 'pronamic_ideal' ); ?></h3> |
|
12 | +<h3><?php esc_html_e('Settings', 'pronamic_ideal'); ?></h3> |
|
13 | 13 | |
14 | 14 | <p> |
15 | - <?php esc_html_e( 'These are the General settings for the Pronamic Pay plugin.', 'pronamic_ideal' ); ?> |
|
16 | - <?php esc_html_e( 'Here you can enter your license key and configure some default settings.', 'pronamic_ideal' ); ?> |
|
15 | + <?php esc_html_e('These are the General settings for the Pronamic Pay plugin.', 'pronamic_ideal'); ?> |
|
16 | + <?php esc_html_e('Here you can enter your license key and configure some default settings.', 'pronamic_ideal'); ?> |
|
17 | 17 | </p> |
18 | 18 | |
19 | 19 | <div class="wp-pointer-buttons pp-pointer-buttons"> |
20 | - <a href="<?php echo esc_attr( add_query_arg( 'post_type', 'pronamic_pay_form', admin_url( 'edit.php' ) ) ); ?>" class="button-secondary pp-pointer-button-prev"><?php esc_html_e( 'Previous', 'pronamic_ideal' ); ?></a> |
|
20 | + <a href="<?php echo esc_attr(add_query_arg('post_type', 'pronamic_pay_form', admin_url('edit.php'))); ?>" class="button-secondary pp-pointer-button-prev"><?php esc_html_e('Previous', 'pronamic_ideal'); ?></a> |
|
21 | 21 | |
22 | 22 | <span class="pp-pointer-buttons-right"> |
23 | - <a href="<?php echo esc_attr( add_query_arg( 'page', 'pronamic_pay_tools', admin_url( 'admin.php' ) ) ); ?>" class="button-primary pp-pointer-button-next"><?php esc_html_e( 'Next', 'pronamic_ideal' ); ?></a> |
|
23 | + <a href="<?php echo esc_attr(add_query_arg('page', 'pronamic_pay_tools', admin_url('admin.php'))); ?>" class="button-primary pp-pointer-button-next"><?php esc_html_e('Next', 'pronamic_ideal'); ?></a> |
|
24 | 24 | |
25 | - <a href="<?php echo esc_attr( $this->get_close_url() ); ?>" class="button-secondary pp-pointer-button-close"><?php esc_html_e( 'Close', 'pronamic_ideal' ); ?></a> |
|
25 | + <a href="<?php echo esc_attr($this->get_close_url()); ?>" class="button-secondary pp-pointer-button-close"><?php esc_html_e('Close', 'pronamic_ideal'); ?></a> |
|
26 | 26 | </span> |
27 | 27 | </div> |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | |
11 | 11 | ?> |
12 | 12 | <div class="wrap"> |
13 | - <h1 class="wp-heading-inline"><?php echo esc_html( get_admin_page_title() ); ?></h1> |
|
13 | + <h1 class="wp-heading-inline"><?php echo esc_html(get_admin_page_title()); ?></h1> |
|
14 | 14 | |
15 | 15 | <hr class="wp-header-end"> |
16 | 16 | |
@@ -19,14 +19,14 @@ discard block |
||
19 | 19 | <div id="postbox-container-1" class="postbox-container"> |
20 | 20 | <div id="normal-sortables" class="meta-box-sortables ui-sortable"> |
21 | 21 | |
22 | - <?php if ( current_user_can( 'manage_options' ) ) : ?> |
|
22 | + <?php if (current_user_can('manage_options')) : ?> |
|
23 | 23 | |
24 | 24 | <div class="postbox"> |
25 | - <h2 class="hndle"><span><?php esc_html_e( 'Support', 'pronamic_ideal' ); ?></span></h2> |
|
25 | + <h2 class="hndle"><span><?php esc_html_e('Support', 'pronamic_ideal'); ?></span></h2> |
|
26 | 26 | |
27 | 27 | <div class="inside"> |
28 | 28 | <p> |
29 | - <?php esc_html_e( "Please follow the tour, read the 'What is new' and 'Getting Started' pages before contacting us. Also, check the system status page for any issues.", 'pronamic_ideal' ); ?> |
|
29 | + <?php esc_html_e("Please follow the tour, read the 'What is new' and 'Getting Started' pages before contacting us. Also, check the system status page for any issues.", 'pronamic_ideal'); ?> |
|
30 | 30 | </p> |
31 | 31 | |
32 | 32 | <?php |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | ), 'pronamic_pay_ignore_tour', 'pronamic_pay_nonce' |
44 | 44 | ) |
45 | 45 | ), |
46 | - esc_html__( 'Start tour', 'pronamic_ideal' ) |
|
46 | + esc_html__('Start tour', 'pronamic_ideal') |
|
47 | 47 | ); |
48 | 48 | |
49 | 49 | echo ' '; |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | ) |
59 | 59 | ) |
60 | 60 | ), |
61 | - esc_html__( 'What is new', 'pronamic_ideal' ) |
|
61 | + esc_html__('What is new', 'pronamic_ideal') |
|
62 | 62 | ); |
63 | 63 | |
64 | 64 | echo ' '; |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | ) |
74 | 74 | ) |
75 | 75 | ), |
76 | - esc_html__( 'Getting started', 'pronamic_ideal' ) |
|
76 | + esc_html__('Getting started', 'pronamic_ideal') |
|
77 | 77 | ); |
78 | 78 | |
79 | 79 | echo ' '; |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | ) |
88 | 88 | ) |
89 | 89 | ), |
90 | - esc_html__( 'System Status', 'pronamic_ideal' ) |
|
90 | + esc_html__('System Status', 'pronamic_ideal') |
|
91 | 91 | ); |
92 | 92 | |
93 | 93 | ?> |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | <?php endif; ?> |
98 | 98 | |
99 | 99 | <div class="postbox"> |
100 | - <h2 class="hndle"><span><?php esc_html_e( 'Pending Payments', 'pronamic_ideal' ); ?></span></h2> |
|
100 | + <h2 class="hndle"><span><?php esc_html_e('Pending Payments', 'pronamic_ideal'); ?></span></h2> |
|
101 | 101 | |
102 | 102 | <div class="inside"> |
103 | 103 | <?php |
@@ -110,14 +110,14 @@ discard block |
||
110 | 110 | ) |
111 | 111 | ); |
112 | 112 | |
113 | - if ( $query->have_posts() ) : |
|
113 | + if ($query->have_posts()) : |
|
114 | 114 | |
115 | 115 | ?> |
116 | 116 | |
117 | 117 | <div id="dashboard_recent_drafts"> |
118 | 118 | <ul> |
119 | 119 | |
120 | - <?php while ( $query->have_posts() ) : $query->the_post(); ?> |
|
120 | + <?php while ($query->have_posts()) : $query->the_post(); ?> |
|
121 | 121 | |
122 | 122 | <li> |
123 | 123 | <h4> |
@@ -127,8 +127,8 @@ discard block |
||
127 | 127 | |
128 | 128 | printf( |
129 | 129 | '<a href="%s">%s</a>', |
130 | - esc_attr( get_edit_post_link( $post ) ), |
|
131 | - esc_html( get_the_title( $post ) ) |
|
130 | + esc_attr(get_edit_post_link($post)), |
|
131 | + esc_html(get_the_title($post)) |
|
132 | 132 | ); |
133 | 133 | |
134 | 134 | ?> |
@@ -137,8 +137,8 @@ discard block |
||
137 | 137 | printf( |
138 | 138 | '<abbr title="%s">%s</abbr>', |
139 | 139 | /* translators: comment date format. See http://php.net/date */ |
140 | - esc_attr( get_the_time( __( 'c', 'pronamic_ideal' ), $post ) ), |
|
141 | - esc_html( get_the_time( get_option( 'date_format' ), $post ) ) |
|
140 | + esc_attr(get_the_time(__('c', 'pronamic_ideal'), $post)), |
|
141 | + esc_html(get_the_time(get_option('date_format'), $post)) |
|
142 | 142 | ); |
143 | 143 | |
144 | 144 | ?> |
@@ -161,16 +161,16 @@ discard block |
||
161 | 161 | <div id="postbox-container-2" class="postbox-container"> |
162 | 162 | <div id="side-sortables" class="meta-box-sortables ui-sortable"> |
163 | 163 | <div class="postbox"> |
164 | - <h2 class="hndle"><span><?php esc_html_e( 'Pronamic News', 'pronamic_ideal' ); ?></span></h2> |
|
164 | + <h2 class="hndle"><span><?php esc_html_e('Pronamic News', 'pronamic_ideal'); ?></span></h2> |
|
165 | 165 | |
166 | 166 | <div class="inside"> |
167 | 167 | <?php |
168 | 168 | |
169 | 169 | wp_widget_rss_output( |
170 | 170 | 'http://feeds.feedburner.com/pronamic', array( |
171 | - 'link' => __( 'http://www.pronamic.eu/', 'pronamic_ideal' ), |
|
171 | + 'link' => __('http://www.pronamic.eu/', 'pronamic_ideal'), |
|
172 | 172 | 'url' => 'http://feeds.feedburner.com/pronamic', |
173 | - 'title' => __( 'Pronamic News', 'pronamic_ideal' ), |
|
173 | + 'title' => __('Pronamic News', 'pronamic_ideal'), |
|
174 | 174 | 'items' => 5, |
175 | 175 | ) |
176 | 176 | ); |
@@ -9,16 +9,16 @@ |
||
9 | 9 | */ |
10 | 10 | |
11 | 11 | ?> |
12 | -<h3><?php esc_html_e( 'Congratulations', 'pronamic_ideal' ); ?></h3> |
|
12 | +<h3><?php esc_html_e('Congratulations', 'pronamic_ideal'); ?></h3> |
|
13 | 13 | |
14 | 14 | <p> |
15 | - <?php esc_html_e( 'You’ve just installed the Pronamic Pay plugin. Click “Start Tour” to view a quick introduction of this plugin’s core functionality.', 'pronamic_ideal' ); ?> |
|
15 | + <?php esc_html_e('You’ve just installed the Pronamic Pay plugin. Click “Start Tour” to view a quick introduction of this plugin’s core functionality.', 'pronamic_ideal'); ?> |
|
16 | 16 | </p> |
17 | 17 | |
18 | 18 | <div class="wp-pointer-buttons pp-pointer-buttons"> |
19 | 19 | <span class="pp-pointer-buttons-right"> |
20 | - <a href="<?php echo esc_attr( add_query_arg( 'page', 'pronamic_ideal', admin_url( 'admin.php' ) ) ); ?>" class="button-primary pp-pointer-button-next"><?php esc_html_e( 'Start tour', 'pronamic_ideal' ); ?></a> |
|
20 | + <a href="<?php echo esc_attr(add_query_arg('page', 'pronamic_ideal', admin_url('admin.php'))); ?>" class="button-primary pp-pointer-button-next"><?php esc_html_e('Start tour', 'pronamic_ideal'); ?></a> |
|
21 | 21 | |
22 | - <a href="<?php echo esc_attr( $this->get_close_url() ); ?>" class="button-secondary pp-pointer-button-close"><?php esc_html_e( 'Close', 'pronamic_ideal' ); ?></a> |
|
22 | + <a href="<?php echo esc_attr($this->get_close_url()); ?>" class="button-secondary pp-pointer-button-close"><?php esc_html_e('Close', 'pronamic_ideal'); ?></a> |
|
23 | 23 | </span> |
24 | 24 | </div> |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | |
13 | 13 | ?> |
14 | 14 | |
15 | -<h2><?php esc_html_e( 'Documentation', 'pronamic_ideal' ); ?></h2> |
|
15 | +<h2><?php esc_html_e('Documentation', 'pronamic_ideal'); ?></h2> |
|
16 | 16 | |
17 | 17 | <?php |
18 | 18 | |
@@ -103,13 +103,13 @@ discard block |
||
103 | 103 | 'url' => 'http://pronamic.nl/wp-content/uploads/2013/04/BPE-3.0-Gateway-HTML.1.02.pdf', |
104 | 104 | 'name' => 'Buckaroo Payment Engine 3.0 - Implementation Manual - HTML gateway', |
105 | 105 | 'version' => '1.02', |
106 | - 'date' => new DateTime( '01-03-2012' ), |
|
106 | + 'date' => new DateTime('01-03-2012'), |
|
107 | 107 | ), |
108 | 108 | array( |
109 | 109 | 'url' => 'http://pronamic.nl/wp-content/uploads/2013/04/BPE-3.0-Service-iDEAL.2.01.pdf', |
110 | 110 | 'name' => 'Buckaroo Payment Engine 3.0 - iDEAL', |
111 | 111 | 'version' => '2.01', |
112 | - 'date' => new DateTime( '14-02-2013' ), |
|
112 | + 'date' => new DateTime('14-02-2013'), |
|
113 | 113 | ), |
114 | 114 | ), |
115 | 115 | ), |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | 'url' => 'http://pronamic.nl/wp-content/uploads/2011/12/Merchant_Integratie_Gids_2.3_NL.pdf', |
122 | 122 | 'name' => 'Technische aansluit documentatie', |
123 | 123 | 'version' => '2.23', |
124 | - 'date' => new DateTime( '19-08-2011' ), |
|
124 | + 'date' => new DateTime('19-08-2011'), |
|
125 | 125 | ), |
126 | 126 | ), |
127 | 127 | ), |
@@ -158,13 +158,13 @@ discard block |
||
158 | 158 | 'url' => 'http://pronamic.nl/wp-content/uploads/2012/09/iDEAL_Merchant_Integratie_Gids_v3.3.1_NL.pdf', |
159 | 159 | 'name' => 'iDEAL Merchant Integratie Gids', |
160 | 160 | 'version' => '3.3.1', |
161 | - 'date' => new DateTime( '01-11-2012' ), |
|
161 | + 'date' => new DateTime('01-11-2012'), |
|
162 | 162 | ), |
163 | 163 | array( |
164 | 164 | 'url' => 'http://pronamic.nl/wp-content/uploads/2012/12/iDEAL-Merchant-Integration-Guide-ENG-v3.3.1.pdf', |
165 | 165 | 'name' => 'iDEAL Merchant Integration Guide', |
166 | 166 | 'version' => '3.3.1', |
167 | - 'date' => new DateTime( '01-11-2012' ), |
|
167 | + 'date' => new DateTime('01-11-2012'), |
|
168 | 168 | ), |
169 | 169 | ), |
170 | 170 | ), |
@@ -307,12 +307,12 @@ discard block |
||
307 | 307 | array( |
308 | 308 | 'url' => 'http://pronamic.nl/wp-content/uploads/2014/01/Handleiding_connectENG.pdf', |
309 | 309 | 'name' => 'MultiSafepay Connect - Implementation Guide Connect', |
310 | - 'date' => new DateTime( '27-12-2013' ), |
|
310 | + 'date' => new DateTime('27-12-2013'), |
|
311 | 311 | ), |
312 | 312 | array( |
313 | 313 | 'url' => 'http://pronamic.nl/wp-content/uploads/2014/01/Handleiding_connectNL.pdf', |
314 | 314 | 'name' => 'MultiSafepay Connect - Implementatie handleiding Connect', |
315 | - 'date' => new DateTime( '27-12-2013' ), |
|
315 | + 'date' => new DateTime('27-12-2013'), |
|
316 | 316 | ), |
317 | 317 | ), |
318 | 318 | ), |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | array( |
334 | 334 | 'url' => 'http://pronamic.nl/wp-content/uploads/2011/12/Ogone_eCom_STD_Integration_20041224_EN.pdf', |
335 | 335 | 'name' => 'Ogone Document II: Ogone e-Commerce, integration in the merchant\'s WEB site', |
336 | - 'date' => new DateTime( '26-10-2006' ), |
|
336 | + 'date' => new DateTime('26-10-2006'), |
|
337 | 337 | ), |
338 | 338 | array( |
339 | 339 | 'url' => 'http://pronamic.nl/wp-content/uploads/2013/08/Ogone_DirectLink_EN.pdf', |
@@ -369,7 +369,7 @@ discard block |
||
369 | 369 | array( |
370 | 370 | 'url' => 'http://pronamic.nl/wp-content/uploads/2013/02/PayGate-PayWebv2-v1.15.pdf', |
371 | 371 | 'name' => 'PayGate - PayWeb', |
372 | - 'date' => new DateTime( '01-02-2012' ), |
|
372 | + 'date' => new DateTime('01-02-2012'), |
|
373 | 373 | 'version' => '1.0', |
374 | 374 | ), |
375 | 375 | ), |
@@ -382,14 +382,14 @@ discard block |
||
382 | 382 | 'url' => 'http://pronamic.nl/wp-content/uploads/2011/12/handleiding_ideal_lite_2966321.pdf', |
383 | 383 | 'name' => 'Rabo iDEAL Lite - Winkel Integratie Handleiding', |
384 | 384 | 'version' => '2.3', |
385 | - 'date' => new DateTime( '01-12-2009' ), |
|
385 | + 'date' => new DateTime('01-12-2009'), |
|
386 | 386 | 'deprecated' => true, |
387 | 387 | ), |
388 | 388 | array( |
389 | 389 | 'url' => 'http://pronamic.nl/wp-content/uploads/2011/12/handleiding_ideal_professional_2966322.pdf', |
390 | 390 | 'name' => 'Handleiding iDEAL Professional', |
391 | 391 | 'version' => '2.1', |
392 | - 'date' => new DateTime( '01-03-2007' ), |
|
392 | + 'date' => new DateTime('01-03-2007'), |
|
393 | 393 | 'deprecated' => true, |
394 | 394 | ), |
395 | 395 | array( |
@@ -417,26 +417,26 @@ discard block |
||
417 | 417 | array( |
418 | 418 | 'url' => 'http://pronamic.nl/wp-content/uploads/2012/05/zo_werkt_het_aanvragen_en_aansluiten_van_de_rabo_omnikassa_29417568.pdf', |
419 | 419 | 'name' => 'Zo werkt het aanvragen en aansluiten van de Rabo OmniKassa', |
420 | - 'date' => new DateTime( '17-04-2012' ), |
|
420 | + 'date' => new DateTime('17-04-2012'), |
|
421 | 421 | ), |
422 | 422 | array( |
423 | 423 | 'url' => 'http://pronamic.nl/wp-content/uploads/2012/07/integration_guide_rabo_omnikassa_v2_0_1_final_29451215.pdf', |
424 | 424 | 'name' => 'Integration guide Rabo OmniKassa', |
425 | - 'date' => new DateTime( '01-04-2012' ), |
|
425 | + 'date' => new DateTime('01-04-2012'), |
|
426 | 426 | 'version' => '2.0.1', |
427 | 427 | 'deprecated' => true, |
428 | 428 | ), |
429 | 429 | array( |
430 | 430 | 'url' => 'http://pronamic.nl/wp-content/uploads/2012/09/Handleiding-iDEAL-Professional.pdf', |
431 | 431 | 'name' => 'Handleiding iDEAL Professional', |
432 | - 'date' => new DateTime( '01-05-2012' ), |
|
432 | + 'date' => new DateTime('01-05-2012'), |
|
433 | 433 | 'version' => '1.1', |
434 | 434 | 'deprecated' => true, |
435 | 435 | ), |
436 | 436 | array( |
437 | 437 | 'url' => 'http://pronamic.nl/wp-content/uploads/2012/09/Handleiding-iDEAL-Lite.pdf', |
438 | 438 | 'name' => 'Handleiding iDEAL Lite', |
439 | - 'date' => new DateTime( '01-01-2012' ), |
|
439 | + 'date' => new DateTime('01-01-2012'), |
|
440 | 440 | 'version' => '2.6', |
441 | 441 | 'deprecated' => true, |
442 | 442 | ), |
@@ -444,19 +444,19 @@ discard block |
||
444 | 444 | 'url' => 'http://pronamic.nl/wp-content/uploads/2012/09/Integratiehandleiding_Rabo_Omnikassa_v300_nl.pdf', |
445 | 445 | 'name' => 'Integratiehandleiding Rabo OmniKassa - Versie 3.0 September 2012', |
446 | 446 | 'version' => '3.0', |
447 | - 'date' => new DateTime( '01-09-2012' ), |
|
447 | + 'date' => new DateTime('01-09-2012'), |
|
448 | 448 | 'deprecated' => true, |
449 | 449 | ), |
450 | 450 | array( |
451 | 451 | 'url' => 'http://pronamic.nl/wp-content/uploads/2012/09/Integration_Guide_Rabo_Omnikassa_v300_en.pdf', |
452 | 452 | 'name' => 'Integration guide Rabo OmniKassa - Version 3.0 September 2012', |
453 | 453 | 'version' => '3.0', |
454 | - 'date' => new DateTime( '01-09-2012' ), |
|
454 | + 'date' => new DateTime('01-09-2012'), |
|
455 | 455 | ), |
456 | 456 | array( |
457 | 457 | 'url' => 'http://pronamic.nl/wp-content/uploads/2012/09/zo_werkt_het_aanvragen_en_aansluiten_van_de_rabo_omnikassa_29417568.pdf', |
458 | 458 | 'name' => 'Zo werkt het aanvragen en aansluiten van de Rabo OmniKassa', |
459 | - 'date' => new DateTime( '03-09-2012' ), |
|
459 | + 'date' => new DateTime('03-09-2012'), |
|
460 | 460 | ), |
461 | 461 | array( |
462 | 462 | 'url' => 'http://www.rabobank.nl/omnikassa-actueel', |
@@ -466,107 +466,107 @@ discard block |
||
466 | 466 | 'url' => 'http://pronamic.nl/wp-content/uploads/2012/11/integratiehandleiding_rabo_omnikassa_versie_7_11_2012_29420242.pdf', |
467 | 467 | 'name' => 'Integratiehandleiding Rabo OmniKassa - Versie 3.1, november 2012', |
468 | 468 | 'version' => '3.1', |
469 | - 'date' => new DateTime( '01-11-2012' ), |
|
469 | + 'date' => new DateTime('01-11-2012'), |
|
470 | 470 | 'deprecated' => true, |
471 | 471 | ), |
472 | 472 | array( |
473 | 473 | 'url' => 'http://pronamic.nl/wp-content/uploads/2013/01/rabobank_omnikassa_integratiehandleiding_versie_4_1_december_2012_29420242.pdf', |
474 | 474 | 'name' => 'Integratiehandleiding Rabo OmniKassa - Versie 4.1, december 2012', |
475 | 475 | 'version' => '4.1', |
476 | - 'date' => new DateTime( '01-12-2012' ), |
|
476 | + 'date' => new DateTime('01-12-2012'), |
|
477 | 477 | 'deprecated' => true, |
478 | 478 | ), |
479 | 479 | array( |
480 | 480 | 'url' => 'http://pronamic.nl/wp-content/uploads/2013/01/rabobank_omnikassa_gebruikshandleiding_downloadsite_versie_2_1_december_2012_29420244.pdf', |
481 | 481 | 'name' => 'Rabo OmniKassa - Gebruikshandleiding Downloadsite - Versie 2.1, december 2012', |
482 | 482 | 'version' => '2.1', |
483 | - 'date' => new DateTime( '01-12-2012' ), |
|
483 | + 'date' => new DateTime('01-12-2012'), |
|
484 | 484 | ), |
485 | 485 | array( |
486 | 486 | 'url' => 'http://pronamic.nl/wp-content/uploads/2013/01/rabo_omnikassa_gebruikerhandleiding_dashboard_29420243.pdf', |
487 | 487 | 'name' => 'Gebruikshandleiding - Dashboard van de Rabo OmniKassa - ROK 2.3 07-11-2012', |
488 | 488 | 'version' => '2.3', |
489 | - 'date' => new DateTime( '07-11-2012' ), |
|
489 | + 'date' => new DateTime('07-11-2012'), |
|
490 | 490 | 'deprecated' => true, |
491 | 491 | ), |
492 | 492 | array( |
493 | 493 | 'url' => 'http://pronamic.nl/wp-content/uploads/2013/06/rabo_omnikassa_gebruikshandleiding_dashboard_new_29550801.pdf', |
494 | 494 | 'name' => 'Gebruikshandleiding - Dashboard van de Rabo OmniKassa - versie 2.4, 5 juni 2013', |
495 | 495 | 'version' => '2.4', |
496 | - 'date' => new DateTime( '05-06-2013' ), |
|
496 | + 'date' => new DateTime('05-06-2013'), |
|
497 | 497 | ), |
498 | 498 | array( |
499 | 499 | 'url' => 'http://pronamic.nl/wp-content/uploads/2013/06/Handleiding-iDEAL-Lite.pdf', |
500 | 500 | 'name' => 'Rabo iDEAL Lite - Integratie Handleiding', |
501 | 501 | 'version' => '2.6', |
502 | - 'date' => new DateTime( '01-01-2012' ), |
|
502 | + 'date' => new DateTime('01-01-2012'), |
|
503 | 503 | ), |
504 | 504 | array( |
505 | 505 | 'url' => 'http://pronamic.nl/wp-content/uploads/2013/06/Handleiding-iDEAL-Professional.pdf', |
506 | 506 | 'name' => 'Handleiding iDEAL Professional', |
507 | 507 | 'version' => '1.2', |
508 | - 'date' => new DateTime( '01-11-2012' ), |
|
508 | + 'date' => new DateTime('01-11-2012'), |
|
509 | 509 | ), |
510 | 510 | array( |
511 | 511 | 'url' => 'http://pronamic.nl/wp-content/uploads/2013/06/rabobank_omnikassa_integratiehandleiding_29420242.pdf', |
512 | 512 | 'name' => 'Integratiehandleiding Rabobank OmniKassa - Versie 4.2, 5 juni 2013', |
513 | 513 | 'version' => '4.2', |
514 | - 'date' => new DateTime( '05-06-2013' ), |
|
514 | + 'date' => new DateTime('05-06-2013'), |
|
515 | 515 | 'deprecated' => true, |
516 | 516 | ), |
517 | 517 | array( |
518 | 518 | 'url' => 'http://pronamic.nl/wp-content/uploads/2013/08/integratiehandleiding_rabo_omnikassa_en_versie_5_0_juni_2013_10_29451215.pdf', |
519 | 519 | 'name' => 'Integration Guide Rabo OmniKassa - Versie 5.0, 28 June 2013', |
520 | 520 | 'version' => '5.0', |
521 | - 'date' => new DateTime( '28-06-2013' ), |
|
521 | + 'date' => new DateTime('28-06-2013'), |
|
522 | 522 | 'deprecated' => true, |
523 | 523 | ), |
524 | 524 | array( |
525 | 525 | 'url' => 'http://pronamic.nl/wp-content/uploads/2013/08/integratiehandleiding_rabobank_omnikassa_nl_versie_5_0_juni_2013_10_29420242.pdf', |
526 | 526 | 'name' => 'Integratiehandleiding Rabo OmniKassa - Versie 5.1, 28 juni 2013', |
527 | 527 | 'version' => '5.0', |
528 | - 'date' => new DateTime( '28-06-2013' ), |
|
528 | + 'date' => new DateTime('28-06-2013'), |
|
529 | 529 | 'deprecated' => true, |
530 | 530 | ), |
531 | 531 | array( |
532 | 532 | 'url' => 'http://pronamic.nl/wp-content/uploads/2013/10/integratiehandleiding_rabo_omnikassa_en_versie_5_0_juni_2013_10_29451215.pdf', |
533 | 533 | 'name' => 'Integration Guide Rabo OmniKassa - Versie 5.1, October 2013', |
534 | 534 | 'version' => '5.1', |
535 | - 'date' => new DateTime( '01-10-2013' ), |
|
535 | + 'date' => new DateTime('01-10-2013'), |
|
536 | 536 | 'deprecated' => true, |
537 | 537 | ), |
538 | 538 | array( |
539 | 539 | 'url' => 'http://pronamic.nl/wp-content/uploads/2013/10/integratiehandleiding_rabobank_omnikassa_nl_versie_5_0_juni_2013_10_29420242.pdf', |
540 | 540 | 'name' => 'Integratiehandleiding Rabo OmniKassa - Versie 5.1, oktboer 2013', |
541 | 541 | 'version' => '5.1', |
542 | - 'date' => new DateTime( '01-10-2013' ), |
|
542 | + 'date' => new DateTime('01-10-2013'), |
|
543 | 543 | 'deprecated' => true, |
544 | 544 | ), |
545 | 545 | array( |
546 | 546 | 'url' => 'http://pronamic.nl/wp-content/uploads/2014/01/integratiehandleiding_en_12_2013_29451215.pdf', |
547 | 547 | 'name' => 'Integration Guide Rabo OmniKassa, Version 6.0, November 2013', |
548 | 548 | 'version' => '6.0', |
549 | - 'date' => new DateTime( '01-11-2013' ), |
|
549 | + 'date' => new DateTime('01-11-2013'), |
|
550 | 550 | 'deprecated' => true, |
551 | 551 | ), |
552 | 552 | array( |
553 | 553 | 'url' => 'http://pronamic.nl/wp-content/uploads/2014/01/integratiehandleiding_nl_12_2013_29420242.pdf', |
554 | 554 | 'name' => 'Integratiehandleiding Rabo OmniKassa, versie 6.0, november 2013', |
555 | 555 | 'version' => '6.0', |
556 | - 'date' => new DateTime( '01-11-2013' ), |
|
556 | + 'date' => new DateTime('01-11-2013'), |
|
557 | 557 | 'deprecated' => true, |
558 | 558 | ), |
559 | 559 | array( |
560 | 560 | 'url' => 'http://pronamic.nl/wp-content/uploads/2014/07/integratiehandleiding_rabo_omnikassa_en_version_7_1_april_2014_final_2_0_29637101.pdf', |
561 | 561 | 'name' => 'Integration Guide Rabo OmniKassa, Version 7.1, April 2014', |
562 | 562 | 'version' => '7.1', |
563 | - 'date' => new DateTime( '01-04-2014' ), |
|
563 | + 'date' => new DateTime('01-04-2014'), |
|
564 | 564 | ), |
565 | 565 | array( |
566 | 566 | 'url' => 'http://pronamic.nl/wp-content/uploads/2014/07/integratiehandleiding_nl_12_2013_29420242.pdf', |
567 | 567 | 'name' => 'Integratiehandleiding Rabo OmniKassa, versie 7.1, april 2014', |
568 | 568 | 'version' => '7.1', |
569 | - 'date' => new DateTime( '01-04-2014' ), |
|
569 | + 'date' => new DateTime('01-04-2014'), |
|
570 | 570 | ), |
571 | 571 | ), |
572 | 572 | ), |
@@ -612,63 +612,63 @@ discard block |
||
612 | 612 | |
613 | 613 | <table class="pronamic-pay-table wp-list-table widefat" cellspacing="0"> |
614 | 614 | |
615 | - <?php foreach ( array( 'thead', 'tfoot' ) as $tag ) : ?> |
|
615 | + <?php foreach (array('thead', 'tfoot') as $tag) : ?> |
|
616 | 616 | |
617 | - <<?php echo esc_html( $tag ); ?>> |
|
617 | + <<?php echo esc_html($tag); ?>> |
|
618 | 618 | <tr> |
619 | - <th scope="col" class="manage-column"><?php esc_html_e( 'Title', 'pronamic_ideal' ); ?></th> |
|
620 | - <th scope="col" class="manage-column"><?php esc_html_e( 'Date', 'pronamic_ideal' ); ?></th> |
|
621 | - <th scope="col" class="manage-column"><?php esc_html_e( 'Version', 'pronamic_ideal' ); ?></th> |
|
619 | + <th scope="col" class="manage-column"><?php esc_html_e('Title', 'pronamic_ideal'); ?></th> |
|
620 | + <th scope="col" class="manage-column"><?php esc_html_e('Date', 'pronamic_ideal'); ?></th> |
|
621 | + <th scope="col" class="manage-column"><?php esc_html_e('Version', 'pronamic_ideal'); ?></th> |
|
622 | 622 | </tr> |
623 | - </<?php echo esc_html( $tag ); ?>> |
|
623 | + </<?php echo esc_html($tag); ?>> |
|
624 | 624 | |
625 | 625 | <?php endforeach; ?> |
626 | 626 | |
627 | 627 | <tobdy> |
628 | 628 | |
629 | - <?php foreach ( $providers as $provider ) : ?> |
|
629 | + <?php foreach ($providers as $provider) : ?> |
|
630 | 630 | |
631 | - <?php if ( isset( $provider['resources'] ) && ! empty( $provider['resources'] ) ) : ?> |
|
631 | + <?php if (isset($provider['resources']) && ! empty($provider['resources'])) : ?> |
|
632 | 632 | |
633 | 633 | <tr class="alternate"> |
634 | 634 | <td colspan="4"> |
635 | - <strong><?php echo esc_html( $provider['name'] ); ?></strong> |
|
636 | - <small><a href="<?php echo esc_attr( $provider['url'] ); ?>"><?php echo esc_html( $provider['url'] ); ?></a></small> |
|
635 | + <strong><?php echo esc_html($provider['name']); ?></strong> |
|
636 | + <small><a href="<?php echo esc_attr($provider['url']); ?>"><?php echo esc_html($provider['url']); ?></a></small> |
|
637 | 637 | </td> |
638 | 638 | </tr> |
639 | 639 | |
640 | - <?php foreach ( $provider['resources'] as $resource ) : ?> |
|
640 | + <?php foreach ($provider['resources'] as $resource) : ?> |
|
641 | 641 | |
642 | 642 | <?php |
643 | 643 | |
644 | 644 | $href = null; |
645 | 645 | |
646 | - if ( isset( $resource['path'] ) ) { |
|
647 | - $href = plugins_url( $resource['path'], Plugin::$file ); |
|
646 | + if (isset($resource['path'])) { |
|
647 | + $href = plugins_url($resource['path'], Plugin::$file); |
|
648 | 648 | } |
649 | 649 | |
650 | - if ( isset( $resource['url'] ) ) { |
|
650 | + if (isset($resource['url'])) { |
|
651 | 651 | $href = $resource['url']; |
652 | 652 | } |
653 | 653 | |
654 | 654 | $classes = array(); |
655 | 655 | |
656 | - if ( isset( $resource['deprecated'] ) ) { |
|
656 | + if (isset($resource['deprecated'])) { |
|
657 | 657 | $classes[] = 'deprecated'; |
658 | 658 | } |
659 | 659 | |
660 | 660 | ?> |
661 | - <tr class="<?php echo esc_attr( implode( ' ', $classes ) ); ?>"> |
|
661 | + <tr class="<?php echo esc_attr(implode(' ', $classes)); ?>"> |
|
662 | 662 | <td> |
663 | - <a href="<?php echo esc_attr( $href ); ?>"> |
|
664 | - <?php echo esc_html( $resource['name'] ); ?> |
|
663 | + <a href="<?php echo esc_attr($href); ?>"> |
|
664 | + <?php echo esc_html($resource['name']); ?> |
|
665 | 665 | </a> |
666 | 666 | </td> |
667 | 667 | <td> |
668 | 668 | <?php |
669 | 669 | |
670 | - if ( isset( $resource['date'] ) ) { |
|
671 | - echo esc_html( $resource['date']->format( 'd-m-Y' ) ); |
|
670 | + if (isset($resource['date'])) { |
|
671 | + echo esc_html($resource['date']->format('d-m-Y')); |
|
672 | 672 | } |
673 | 673 | |
674 | 674 | ?> |
@@ -676,8 +676,8 @@ discard block |
||
676 | 676 | <td> |
677 | 677 | <?php |
678 | 678 | |
679 | - if ( isset( $resource['version'] ) ) { |
|
680 | - echo esc_html( $resource['version'] ); |
|
679 | + if (isset($resource['version'])) { |
|
680 | + echo esc_html($resource['version']); |
|
681 | 681 | } |
682 | 682 | |
683 | 683 | ?> |
@@ -19,12 +19,12 @@ discard block |
||
19 | 19 | <select id="pronamic-payment-status" name="post_status" class="medium-text"> |
20 | 20 | <?php |
21 | 21 | |
22 | - foreach ( $states as $status => $label ) { |
|
22 | + foreach ($states as $status => $label) { |
|
23 | 23 | printf( |
24 | 24 | '<option value="%s" %s>%s</option>', |
25 | - esc_attr( $status ), |
|
26 | - selected( $status, $post->post_status, false ), |
|
27 | - esc_html( $label ) |
|
25 | + esc_attr($status), |
|
26 | + selected($status, $post->post_status, false), |
|
27 | + esc_html($label) |
|
28 | 28 | ); |
29 | 29 | } |
30 | 30 | |
@@ -37,11 +37,11 @@ discard block |
||
37 | 37 | /** |
38 | 38 | * Check status button. |
39 | 39 | */ |
40 | - $config_id = get_post_meta( $post->ID, '_pronamic_payment_config_id', true ); |
|
40 | + $config_id = get_post_meta($post->ID, '_pronamic_payment_config_id', true); |
|
41 | 41 | |
42 | - $gateway = Plugin::get_gateway( $config_id ); |
|
42 | + $gateway = Plugin::get_gateway($config_id); |
|
43 | 43 | |
44 | - if ( $gateway && $gateway->supports( 'payment_status_request' ) ) { |
|
44 | + if ($gateway && $gateway->supports('payment_status_request')) { |
|
45 | 45 | // Only show button if gateway exists and status check is supported. |
46 | 46 | $check_status_nonce_url = wp_nonce_url( |
47 | 47 | add_query_arg( |
@@ -49,15 +49,15 @@ discard block |
||
49 | 49 | 'post' => $post->ID, |
50 | 50 | 'action' => 'edit', |
51 | 51 | 'pronamic_pay_check_status' => true, |
52 | - ), admin_url( 'post.php' ) |
|
52 | + ), admin_url('post.php') |
|
53 | 53 | ), |
54 | 54 | 'pronamic_payment_check_status_' . $post->ID |
55 | 55 | ); |
56 | 56 | |
57 | 57 | printf( |
58 | 58 | '<a class="button" href="%s">%s</a>', |
59 | - esc_url( $check_status_nonce_url ), |
|
60 | - esc_html__( 'Check status', 'pronamic_ideal' ) |
|
59 | + esc_url($check_status_nonce_url), |
|
60 | + esc_html__('Check status', 'pronamic_ideal') |
|
61 | 61 | ); |
62 | 62 | |
63 | 63 | } |
@@ -69,10 +69,10 @@ discard block |
||
69 | 69 | <div class="pronamic-pay-action"> |
70 | 70 | <?php |
71 | 71 | |
72 | - wp_nonce_field( 'pronamic_payment_update', 'pronamic_payment_nonce' ); |
|
72 | + wp_nonce_field('pronamic_payment_update', 'pronamic_payment_nonce'); |
|
73 | 73 | |
74 | 74 | submit_button( |
75 | - __( 'Update', 'pronamic_ideal' ), |
|
75 | + __('Update', 'pronamic_ideal'), |
|
76 | 76 | 'primary', |
77 | 77 | 'pronamic_payment_update', |
78 | 78 | false |
@@ -12,32 +12,32 @@ discard block |
||
12 | 12 | |
13 | 13 | $post_id = get_the_ID(); |
14 | 14 | |
15 | -$payment = get_pronamic_payment( $post_id ); |
|
15 | +$payment = get_pronamic_payment($post_id); |
|
16 | 16 | |
17 | 17 | $subscription = $payment->get_subscription(); |
18 | 18 | |
19 | -if ( $subscription ) : ?> |
|
19 | +if ($subscription) : ?> |
|
20 | 20 | |
21 | 21 | <table class="form-table"> |
22 | 22 | <tr> |
23 | 23 | <th scope="row"> |
24 | - <?php esc_html_e( 'Subscription', 'pronamic_ideal' ); ?> |
|
24 | + <?php esc_html_e('Subscription', 'pronamic_ideal'); ?> |
|
25 | 25 | </th> |
26 | 26 | <td> |
27 | - <?php edit_post_link( get_the_title( $subscription->post->ID ), '', '', $subscription->post->ID ); ?> |
|
27 | + <?php edit_post_link(get_the_title($subscription->post->ID), '', '', $subscription->post->ID); ?> |
|
28 | 28 | </td> |
29 | 29 | </tr> |
30 | 30 | <tr> |
31 | 31 | <th scope="row"> |
32 | - <?php esc_html_e( 'Description', 'pronamic_ideal' ); ?> |
|
32 | + <?php esc_html_e('Description', 'pronamic_ideal'); ?> |
|
33 | 33 | </th> |
34 | 34 | <td> |
35 | - <?php echo esc_html( $subscription->get_description() ); ?> |
|
35 | + <?php echo esc_html($subscription->get_description()); ?> |
|
36 | 36 | </td> |
37 | 37 | </tr> |
38 | 38 | <tr> |
39 | 39 | <th scope="row"> |
40 | - <?php esc_html_e( 'Amount', 'pronamic_ideal' ); ?> |
|
40 | + <?php esc_html_e('Amount', 'pronamic_ideal'); ?> |
|
41 | 41 | </th> |
42 | 42 | <td> |
43 | 43 | <?php |
@@ -45,43 +45,43 @@ discard block |
||
45 | 45 | $currency = $subscription->get_currency(); |
46 | 46 | $amount = $subscription->get_amount(); |
47 | 47 | |
48 | - echo esc_html( Util::format_price( $amount, $currency ) ); |
|
48 | + echo esc_html(Util::format_price($amount, $currency)); |
|
49 | 49 | |
50 | 50 | ?> |
51 | 51 | </td> |
52 | 52 | </tr> |
53 | 53 | <tr> |
54 | 54 | <th scope="row"> |
55 | - <?php echo esc_html_x( 'Interval', 'Recurring payment', 'pronamic_ideal' ); ?> |
|
55 | + <?php echo esc_html_x('Interval', 'Recurring payment', 'pronamic_ideal'); ?> |
|
56 | 56 | </th> |
57 | 57 | <td> |
58 | - <?php echo esc_html( Util::format_interval( $subscription->get_interval(), $subscription->get_interval_period() ) ); ?> |
|
58 | + <?php echo esc_html(Util::format_interval($subscription->get_interval(), $subscription->get_interval_period())); ?> |
|
59 | 59 | </td> |
60 | 60 | </tr> |
61 | 61 | <tr> |
62 | 62 | <th scope="row"> |
63 | - <?php echo esc_html_x( 'Frequency', 'Recurring payment', 'pronamic_ideal' ); ?> |
|
63 | + <?php echo esc_html_x('Frequency', 'Recurring payment', 'pronamic_ideal'); ?> |
|
64 | 64 | </th> |
65 | 65 | <td> |
66 | - <?php echo esc_html( Util::format_frequency( $subscription->get_frequency() ) ); ?> |
|
66 | + <?php echo esc_html(Util::format_frequency($subscription->get_frequency())); ?> |
|
67 | 67 | </td> |
68 | 68 | </tr> |
69 | 69 | <tr> |
70 | 70 | <th scope="row"> |
71 | - <?php esc_html_e( 'Source', 'pronamic_ideal' ); ?> |
|
71 | + <?php esc_html_e('Source', 'pronamic_ideal'); ?> |
|
72 | 72 | </th> |
73 | 73 | <td> |
74 | 74 | <?php |
75 | 75 | |
76 | 76 | $payment = $subscription->get_first_payment(); |
77 | 77 | |
78 | - if ( $payment ) { |
|
78 | + if ($payment) { |
|
79 | 79 | echo $payment->get_source_text(); // WPCS: XSS ok. |
80 | 80 | } else { |
81 | 81 | printf( |
82 | 82 | '%s<br />%s', // WPCS: XSS ok. |
83 | - esc_html( $subscription->get_source() ), |
|
84 | - esc_html( $subscription->get_source_id() ) |
|
83 | + esc_html($subscription->get_source()), |
|
84 | + esc_html($subscription->get_source_id()) |
|
85 | 85 | ); |
86 | 86 | } |
87 | 87 | |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | <?php else : ?> |
94 | 94 | |
95 | 95 | <p> |
96 | - <?php esc_html_e( 'This payment is not related to a subscription.', 'pronamic_ideal' ); ?> |
|
96 | + <?php esc_html_e('This payment is not related to a subscription.', 'pronamic_ideal'); ?> |
|
97 | 97 | </p> |
98 | 98 | |
99 | 99 | <?php endif; ?> |
@@ -90,10 +90,13 @@ |
||
90 | 90 | </tr> |
91 | 91 | </table> |
92 | 92 | |
93 | -<?php else : ?> |
|
93 | +<?php else { |
|
94 | + : ?> |
|
94 | 95 | |
95 | 96 | <p> |
96 | - <?php esc_html_e( 'This payment is not related to a subscription.', 'pronamic_ideal' ); ?> |
|
97 | + <?php esc_html_e( 'This payment is not related to a subscription.', 'pronamic_ideal' ); |
|
98 | +} |
|
99 | +?> |
|
97 | 100 | </p> |
98 | 101 | |
99 | 102 | <?php endif; ?> |
@@ -9,7 +9,7 @@ |
||
9 | 9 | */ |
10 | 10 | |
11 | 11 | ?> |
12 | -<h2><?php esc_html_e( 'Follow Pronamic', 'pronamic_ideal' ); ?></h2> |
|
12 | +<h2><?php esc_html_e('Follow Pronamic', 'pronamic_ideal'); ?></h2> |
|
13 | 13 | |
14 | 14 | <div style="margin: 1em 0;"> |
15 | 15 | <iframe src="https://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2FPronamic&send=false&layout=standard&width=600&show_faces=false&action=like&colorscheme=light&font&height=24&appId=208724019165734" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:600px; height:24px;" allowTransparency="true"></iframe> |
@@ -9,19 +9,19 @@ |
||
9 | 9 | */ |
10 | 10 | |
11 | 11 | ?> |
12 | -<h3><?php esc_html_e( 'Reports', 'pronamic_ideal' ); ?></h3> |
|
12 | +<h3><?php esc_html_e('Reports', 'pronamic_ideal'); ?></h3> |
|
13 | 13 | |
14 | 14 | <p> |
15 | - <?php esc_html_e( 'The Pronamic Pay reports page shows you an graph of all the payments of this year.', 'pronamic_ideal' ); ?> |
|
16 | - <?php esc_html_e( 'You can see the number of succesfull payments and the total amount of pending, succesfull, cancelled and failed payments.', 'pronamic_ideal' ); ?> |
|
15 | + <?php esc_html_e('The Pronamic Pay reports page shows you an graph of all the payments of this year.', 'pronamic_ideal'); ?> |
|
16 | + <?php esc_html_e('You can see the number of succesfull payments and the total amount of pending, succesfull, cancelled and failed payments.', 'pronamic_ideal'); ?> |
|
17 | 17 | </p> |
18 | 18 | |
19 | 19 | <div class="wp-pointer-buttons pp-pointer-buttons"> |
20 | - <a href="<?php echo esc_attr( add_query_arg( 'page', 'pronamic_pay_tools', admin_url( 'admin.php' ) ) ); ?>" class="button-secondary pp-pointer-button-prev"><?php esc_html_e( 'Previous', 'pronamic_ideal' ); ?></a> |
|
20 | + <a href="<?php echo esc_attr(add_query_arg('page', 'pronamic_pay_tools', admin_url('admin.php'))); ?>" class="button-secondary pp-pointer-button-prev"><?php esc_html_e('Previous', 'pronamic_ideal'); ?></a> |
|
21 | 21 | |
22 | 22 | <span class="pp-pointer-buttons-right"> |
23 | - <a href="<?php echo esc_attr( add_query_arg( 'page', 'pronamic_pay_tools', admin_url( 'admin.php' ) ) ); ?>" class="button-primary pp-pointer-button-next"><?php esc_html_e( 'Next', 'pronamic_ideal' ); ?></a> |
|
23 | + <a href="<?php echo esc_attr(add_query_arg('page', 'pronamic_pay_tools', admin_url('admin.php'))); ?>" class="button-primary pp-pointer-button-next"><?php esc_html_e('Next', 'pronamic_ideal'); ?></a> |
|
24 | 24 | |
25 | - <a href="<?php echo esc_attr( $this->get_close_url() ); ?>" class="button-secondary pp-pointer-button-close"><?php esc_html_e( 'Close', 'pronamic_ideal' ); ?></a> |
|
25 | + <a href="<?php echo esc_attr($this->get_close_url()); ?>" class="button-secondary pp-pointer-button-close"><?php esc_html_e('Close', 'pronamic_ideal'); ?></a> |
|
26 | 26 | </span> |
27 | 27 | </div> |
@@ -14,37 +14,37 @@ |
||
14 | 14 | |
15 | 15 | <thead> |
16 | 16 | <tr> |
17 | - <th scope="col"><?php esc_html_e( 'Icon', 'pronamic_ideal' ); ?></th> |
|
18 | - <th scope="col"><?php esc_html_e( 'Name', 'pronamic_ideal' ); ?></th> |
|
19 | - <th scope="col"><?php esc_html_e( 'Website', 'pronamic_ideal' ); ?></th> |
|
17 | + <th scope="col"><?php esc_html_e('Icon', 'pronamic_ideal'); ?></th> |
|
18 | + <th scope="col"><?php esc_html_e('Name', 'pronamic_ideal'); ?></th> |
|
19 | + <th scope="col"><?php esc_html_e('Website', 'pronamic_ideal'); ?></th> |
|
20 | 20 | </tr> |
21 | 21 | </thead> |
22 | 22 | |
23 | 23 | <tbody> |
24 | 24 | |
25 | - <?php foreach ( $methods as $method ) : ?> |
|
25 | + <?php foreach ($methods as $method) : ?> |
|
26 | 26 | |
27 | 27 | <tr> |
28 | 28 | <td> |
29 | 29 | <?php |
30 | 30 | |
31 | - if ( isset( $method['icon'] ) ) { |
|
32 | - printf( '<img src="%s" alt="" />', esc_attr( $method['icon'] ) ); |
|
31 | + if (isset($method['icon'])) { |
|
32 | + printf('<img src="%s" alt="" />', esc_attr($method['icon'])); |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | ?> |
36 | 36 | </td> |
37 | 37 | <td> |
38 | - <?php echo esc_html( $method['name'] ); ?> |
|
38 | + <?php echo esc_html($method['name']); ?> |
|
39 | 39 | </td> |
40 | 40 | <td> |
41 | 41 | <?php |
42 | 42 | |
43 | - if ( isset( $method['url'] ) ) { |
|
43 | + if (isset($method['url'])) { |
|
44 | 44 | printf( |
45 | 45 | '<a href="%s" target="_blank">%s</a>', |
46 | - esc_attr( $method['url'] ), |
|
47 | - esc_html( $method['url'] ) |
|
46 | + esc_attr($method['url']), |
|
47 | + esc_html($method['url']) |
|
48 | 48 | ); |
49 | 49 | } |
50 | 50 |