| @@ -1,14 +1,43 @@ | ||
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * WooCommerce dependency notice. | |
| 4 | + * | |
| 5 | + * @package SpringDevs\Subscription | |
| 6 | + */ | |
| 7 | + | |
| 8 | +/* | |
| 9 | +STYLE GUIDE FOR WP SUBSCRIPTION ADMIN PAGES: | |
| 10 | +- Use .wp-subscription-admin-content for main content area. | |
| 11 | +- Use .wp-subscription-admin-box for white card/box with shadow and 6-8px border-radius. | |
| 12 | +- Use compact, modern, visually unified design for all sections. | |
| 13 | +- Use Georgia, serif for titles, system sans-serif for body. | |
| 14 | +- All new UI/UX changes must follow these conventions. | |
| 15 | +*/ | |
| 16 | + | |
| 17 | +// Exit if accessed directly. | |
| 18 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 19 | + exit; | |
| 20 | +} | |
| 21 | +?> | |
| 1 | 22 | <div class="notice notice-error sdevs-install-plugin"> |
| 2 | 23 | <div class="sdevs-notice-icon"> |
| 3 | - <img src="<?php echo SUBSCRPT_ASSETS . '/images/woocommerce.png'; ?>" alt="woocommerce-logo" /> | |
| 24 | + <img src="<?php echo esc_url( SUBSCRPT_ASSETS . '/images/logo.png' ); ?>" alt="woocommerce-logo" /> | |
| 4 | 25 | </div> |
| 5 | 26 | <div class="sdevs-notice-content"> |
| 6 | - <h2><?php _e( 'Thanks for using Subscription for WooCommerce', 'sdevs_subscrpt' ); ?></h2> | |
| 7 | - <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> | |
| 8 | 37 | </div> |
| 9 | 38 | <div class="sdevs-install-notice-button"> |
| 10 | - <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"> | |
| 11 | 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" /> |
| 12 | - </svg> <?php echo $label; ?></a> | |
| 41 | + </svg> <?php echo esc_html( $label ); ?></a> | |
| 13 | 42 | </div> |
| 14 | 43 | </div> |