admin-warning.php
2 years ago
customizer.css
5 years ago
customizer.js
1 year ago
form.php
2 years ago
style.css
1 year ago
widget.php
2 years ago
admin-warning.php
41 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Display the Pay with PayPal Form. |
| 4 | * |
| 5 | * @html-template Jetpack_Simple_Payments_Widget::form |
| 6 | * @package automattic/jetpack |
| 7 | */ |
| 8 | |
| 9 | // phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable -- HTML template, let Phan handle it. |
| 10 | |
| 11 | ?> |
| 12 | <div class='jetpack-simple-payments-disabled-error'> |
| 13 | <p> |
| 14 | <?php |
| 15 | /** |
| 16 | * Show error and help if Pay with PayPal is disabled. |
| 17 | * |
| 18 | * @package automattic/jetpack |
| 19 | */ |
| 20 | |
| 21 | $support_url = ( defined( 'IS_WPCOM' ) && IS_WPCOM ) |
| 22 | ? 'https://wordpress.com/support/pay-with-paypal/' |
| 23 | : 'https://jetpack.com/support/pay-with-paypal/'; |
| 24 | printf( |
| 25 | wp_kses( |
| 26 | // translators: variable is a link to the support page. |
| 27 | __( 'Your plan doesn\'t include Pay with PayPal. <a href="%s" rel="noopener noreferrer" target="_blank">Learn more and upgrade</a>.', 'jetpack' ), |
| 28 | array( |
| 29 | 'a' => array( |
| 30 | 'href' => array(), |
| 31 | 'rel' => array(), |
| 32 | 'target' => array(), |
| 33 | ), |
| 34 | ) |
| 35 | ), |
| 36 | esc_url( $support_url ) |
| 37 | ); |
| 38 | ?> |
| 39 | </p> |
| 40 | </div> |
| 41 |