Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 23
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2/**
3 * Display the Pay with PayPal Form.
4 *
5 * @html-template Automattic\Jetpack\Paypal_Payments\Widgets\Simple_Payments_Widget::form
6 * @package automattic/jetpack
7 */
8
9if ( ! defined( 'ABSPATH' ) ) {
10    exit( 0 );
11}
12
13?>
14<div class='jetpack-simple-payments-disabled-error'>
15    <p>
16        <?php
17        /**
18         * Show error and help if Pay with PayPal is disabled.
19         *
20         * @package automattic/jetpack
21         */
22
23            $support_url = ( defined( 'IS_WPCOM' ) && IS_WPCOM )
24                ? 'https://wordpress.com/support/pay-with-paypal/'
25                : 'https://jetpack.com/support/pay-with-paypal/';
26            printf(
27                wp_kses(
28                    // translators: variable is a link to the support page.
29                    __( 'Your plan doesn\'t include Pay with PayPal. <a href="%s" rel="noopener noreferrer" target="_blank">Learn more and upgrade</a>.', 'jetpack-paypal-payments' ),
30                    array(
31                        'a' => array(
32                            'href'   => array(),
33                            'rel'    => array(),
34                            'target' => array(),
35                        ),
36                    )
37                ),
38                esc_url( $support_url )
39            );
40            ?>
41    </p>
42</div>