| 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 |
?> |
| 22 |
<div class="notice notice-error sdevs-install-plugin"> |
| 23 |
<div class="sdevs-notice-icon"> |
| 24 |
<img src="<?php echo esc_url( SUBSCRPT_ASSETS . '/images/logo.png' ); ?>" alt="woocommerce-logo" /> |
| 25 |
</div> |
| 26 |
<div class="sdevs-notice-content"> |
| 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> |
| 37 |
</div> |
| 38 |
<div class="sdevs-install-notice-button"> |
| 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"> |
| 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" /> |
| 41 |
</svg> <?php echo esc_html( $label ); ?></a> |
| 42 |
</div> |
| 43 |
</div> |
| 44 |
|