PluginProbe
YayMail – WooCommerce Email Customizer / 3.3
YayMail – WooCommerce Email Customizer v3.3
4.4.4 4.4.3 4.4.2 4.4.1 trunk 1.9.6 2.1.4 2.1.5 3.2.2 3.2.6 3.2.7.1 3.2.8.1 3.2.9 3.3 3.3.1 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4 3.4.1 3.4.2 3.4.3 All 55 releases
yaymail / includes / Page / Source / DisplayNotice.php

DisplayNotice.php in YayMail – WooCommerce Email Customizer 3.3, at includes/Page/Source/DisplayNotice.php

67 lines 2.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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