PluginProbe
Subscriptions for WooCommerce with Stripe Recurring Payments / 2.3.0
Subscriptions for WooCommerce with Stripe Recurring Payments v2.3.0
2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.11.2 1.11.1 1.11.0 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.6 1.9.5 trunk 1.3.0 1.3.1 1.3.2 1.4.0 All 65 releases
← All changes | includes/Admin/views/required-notice.php +25 -6 1.4.0 → 2.3.0 View file →
@@ -1,5 +1,11 @@
1 1 <?php
2 +/**
3 + * WooCommerce dependency notice.
4 + *
5 + * @package SpringDevs\Subscription
6 + */
7 +
2 8 /*
3 9 STYLE GUIDE FOR WP SUBSCRIPTION ADMIN PAGES:
4 10 - Use .wp-subscription-admin-content for main content area.
5 11 - Use .wp-subscription-admin-box for white card/box with shadow and 6-8px border-radius.
@@ -6,19 +12,32 @@
6 12 - Use compact, modern, visually unified design for all sections.
7 13 - Use Georgia, serif for titles, system sans-serif for body.
8 14 - All new UI/UX changes must follow these conventions.
9 15 */
16 +
17 +// Exit if accessed directly.
18 +if ( ! defined( 'ABSPATH' ) ) {
19 + exit;
20 +}
10 21 ?>
11 22 <div class="notice notice-error sdevs-install-plugin">
12 23 <div class="sdevs-notice-icon">
13 - <img src="<?php echo WP_SUBSCRIPTION_ASSETS . '/images/logo.png'; ?>" alt="woocommerce-logo" />
24 + <img src="<?php echo esc_url( SUBSCRPT_ASSETS . '/images/logo.png' ); ?>" alt="woocommerce-logo" />
14 25 </div>
15 26 <div class="sdevs-notice-content">
16 - <h2><?php _e( 'Thanks for using Subscription for WooCommerce', 'sdevs_subscrpt' ); ?></h2>
17 - <p>You must have <a href="https://wordpress.org/plugins/woocommerce/" target="_blank">Woocommerce </a> installed and activated on this website in order to use this plugin.</p>
27 + <h2><?php esc_html_e( 'Thanks for installing WPSubscription.', 'subscription' ); ?></h2>
28 + <p>
29 + <?php
30 + printf(
31 + /* translators: %s: WooCommerce, linked to its wordpress.org page. */
32 + esc_html__( '%s must be installed and activated before WPSubscription can be used.', 'subscription' ),
33 + '<a href="https://wordpress.org/plugins/woocommerce/" target="_blank" rel="noopener">' . esc_html__( 'WooCommerce', 'subscription' ) . '</a>'
34 + );
35 + ?>
36 + </p>
18 37 </div>
19 38 <div class="sdevs-install-notice-button">
20 - <a class="button-primary <?php echo $id; ?>" href="javascript:void(0);"><svg xmlns="http://www.w3.org/2000/svg" class="sdevs-loading-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor">
39 + <a class="button-primary <?php echo esc_attr( $id ); ?>" href="javascript:void(0);"><svg xmlns="http://www.w3.org/2000/svg" class="sdevs-loading-icon" fill="none" viewBox="0 0 24 24" stroke="currentColor">
21 40 <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" />
22 - </svg> <?php echo $label; ?></a>
41 + </svg> <?php echo esc_html( $label ); ?></a>
23 42 </div>
24 -</div>
43 +</div>