| 1 |
<?php |
| 2 |
|
| 3 |
defined( 'ABSPATH' ) || exit; |
| 4 |
$sent_to_admin = ( isset( $sent_to_admin ) ? true : false ); |
| 5 |
if ( is_plugin_active( 'woocommerce-subscriptions/woocommerce-subscriptions.php' ) |
| 6 |
|| is_plugin_active( 'woocommerce-shipment-tracking/woocommerce-shipment-tracking.php' ) |
| 7 |
|| is_plugin_active( 'woocommerce-order-status-manager/woocommerce-order-status-manager.php' ) |
| 8 |
|| is_plugin_active( 'woocommerce-admin-custom-order-fields/woocommerce-admin-custom-order-fields.php' ) |
| 9 |
|| is_plugin_active( 'woo-advanced-shipment-tracking/woocommerce-advanced-shipment-tracking.php' ) |
| 10 |
|| is_plugin_active( 'yith-woocommerce-subscription-premium/init.php' ) |
| 11 |
|| is_plugin_active( 'yith-woocommerce-subscription/init.php' ) |
| 12 |
) { |
| 13 |
?> |
| 14 |
|
| 15 |
<div id="yaymail-notice" class="notice-info notice is-dismissible"> |
| 16 |
<h4 style="color: #000"><?php esc_html_e( 'Please upgrade to YayMail Pro to customize emails with:', 'yaymail' ); ?></h4> |
| 17 |
<ul style="list-style: inside;"> |
| 18 |
<?php |
| 19 |
ob_start(); |
| 20 |
$_path = YAYMAIL_PLUGIN_PATH . '/includes/Page/Source/DisplayNotice.php'; |
| 21 |
include $_path; |
| 22 |
?> |
| 23 |
</ul> |
| 24 |
<p style="padding-left:0"> |
| 25 |
<a href="https://yaycommerce.com/yaymail-woocommerce-email-customizer/ " target="_blank" data="upgradenow" class="button button-primary" style="margin-right: 5px"><?php esc_html_e( 'Upgrade Now', 'yaymail' ); ?></a> |
| 26 |
<a href="javascript:;" data="later" class="button yaymail-nothank" style="margin-right: 5px"><?php esc_html_e( 'No, thanks', 'yaymail' ); ?></a> |
| 27 |
</p> |
| 28 |
</div> |
| 29 |
<?php |
| 30 |
} |
| 31 |
if ( is_plugin_active( 'woocommerce-subscriptions/woocommerce-subscriptions.php' ) ) { |
| 32 |
?> |
| 33 |
<li><?php esc_html_e( 'Woocommerce Subscriptions (PRO)', 'yaymail' ); ?></li> |
| 34 |
<?php |
| 35 |
} |
| 36 |
|
| 37 |
if ( is_plugin_active( 'woocommerce-shipment-tracking/woocommerce-shipment-tracking.php' ) ) { |
| 38 |
?> |
| 39 |
<li><?php esc_html_e( 'Woocommerce Shipment Tracking (PRO)', 'yaymail' ); ?></li> |
| 40 |
<?php |
| 41 |
} |
| 42 |
|
| 43 |
if ( is_plugin_active( 'woocommerce-order-status-manager/woocommerce-order-status-manager.php' ) ) { |
| 44 |
?> |
| 45 |
<li><?php esc_html_e( 'Woocommerce Order Status Manager (PRO)', 'yaymail' ); ?></li> |
| 46 |
<?php |
| 47 |
} |
| 48 |
|
| 49 |
if ( is_plugin_active( 'woo-advanced-shipment-tracking/woocommerce-advanced-shipment-tracking.php' ) |
| 50 |
|| is_plugin_active( 'yith-woocommerce-subscription-premium/init.php' ) |
| 51 |
|| is_plugin_active( 'yith-woocommerce-subscription/init.php' ) |
| 52 |
) { |
| 53 |
?> |
| 54 |
<li><?php esc_html_e( 'Woocommerce Custom Email Templates (PRO)', 'yaymail' ); ?></li> |
| 55 |
<?php |
| 56 |
} |
| 57 |
|
| 58 |
if ( is_plugin_active( 'woocommerce-admin-custom-order-fields/woocommerce-admin-custom-order-fields.php' ) ) { |
| 59 |
?> |
| 60 |
<li><?php esc_html_e( 'Woocommerce Admin Custom Order fields (PRO)', 'yaymail' ); ?></li> |
| 61 |
<?php |
| 62 |
} |
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|