kollapsminoriteten/wp-content/plugins/jetpack/modules/widgets/simple-payments/admin-warning.php

41 lines
1.0 KiB
PHP
Raw Normal View History

2025-02-28 08:42:11 +01:00
<?php
/**
* Display the Pay with PayPal Form.
*
* @html-template Jetpack_Simple_Payments_Widget::form
* @package automattic/jetpack
*/
// phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable -- HTML template, let Phan handle it.
?>
2019-11-15 23:26:29 +01:00
<div class='jetpack-simple-payments-disabled-error'>
<p>
<?php
2022-06-16 14:01:47 +02:00
/**
* Show error and help if Pay with PayPal is disabled.
*
* @package automattic/jetpack
*/
2019-11-15 23:26:29 +01:00
$support_url = ( defined( 'IS_WPCOM' ) && IS_WPCOM )
2020-09-15 14:30:05 +02:00
? 'https://wordpress.com/support/pay-with-paypal/'
: 'https://jetpack.com/support/pay-with-paypal/';
2019-11-15 23:26:29 +01:00
printf(
wp_kses(
2022-06-16 14:01:47 +02:00
// translators: variable is a link to the support page.
2020-09-15 14:30:05 +02:00
__( 'Your plan doesn\'t include Pay with PayPal. <a href="%s" rel="noopener noreferrer" target="_blank">Learn more and upgrade</a>.', 'jetpack' ),
2022-06-16 14:01:47 +02:00
array(
'a' => array(
'href' => array(),
'rel' => array(),
'target' => array(),
),
)
2019-11-15 23:26:29 +01:00
),
esc_url( $support_url )
);
2022-06-16 14:01:47 +02:00
?>
2019-11-15 23:26:29 +01:00
</p>
</div>