PluginProbe
YayMail – WooCommerce Email Customizer / 3.2.9
YayMail – WooCommerce Email Customizer v3.2.9
4.4.6 4.4.5 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 All 57 releases
yaymail / includes / Page / Source / DisplayAddonNotice.php

DisplayAddonNotice.php in YayMail – WooCommerce Email Customizer 3.2.9, at includes/Page/Source/DisplayAddonNotice.php

232 lines 8.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 $list_support_plugins_class = array(
3 'WC_Advanced_Shipment_Tracking_Actions' => array(
4 'plugin_name' => 'WC_Advanced_Shipment_Tracking',
5 'plugin_title' => 'Advanced Shipment Tracking for WooCommerce',
6 ),
7 'B2bwhs' => array(
8 'plugin_name' => 'B2BWholesaleSuite',
9 'plugin_title' => 'B2B & Wholesale Suite',
10 ),
11 'THWCFD' => array(
12 'plugin_name' => 'B2BWholesaleSuite',
13 'plugin_title' => 'Checkout Field Editor',
14 ),
15 'WeDevs_Dokan' => array(
16 'plugin_name' => 'Dokan',
17 'plugin_title' => 'Dokan',
18 ),
19 'Woocommerce_German_Market' => array(
20 'plugin_name' => 'woocommerce_german_market',
21 'plugin_title' => 'WooCommerce German Market',
22 ),
23 'WooCommerce_Germanized' => array(
24 'plugin_name' => 'WooCommerce_Germanized',
25 'plugin_title' => 'Germanized',
26 ),
27 'LMFWC_PLUGIN_FILE' => array(
28 'plugin_name' => 'LMFWC',
29 'plugin_title' => 'License Manager for WooCommerce',
30 ),
31 'WC_Subscription' => array(
32 'plugin_name' => 'WC_Subscription',
33 'plugin_title' => 'WooCommerce Subscriptions',
34 ),
35 'WC_Email_Cancelled_Customer_Order' => array(
36 'plugin_name' => 'WC_Email_Cancelled_Customer_Order',
37 'plugin_title' => 'Order Cancellation Email to Customer',
38 ),
39 'order_delivery_date' => array(
40 'plugin_name' => 'Order_Delivery_Date',
41 'plugin_title' => 'Order Delivery Date Pro WooCommerce',
42 ),
43 'WC_Smart_Coupons' => array(
44 'plugin_name' => 'WC_Smart_Coupons',
45 'plugin_title' => 'WooCommerce Smart Coupons',
46 ),
47 'Sg_Order_Approval_Woocommerce_Pro' => array(
48 'plugin_name' => 'Sg_Order_Approval',
49 'plugin_title' => 'SG Order Approval',
50 ),
51 'WCV_PRO_VERSION' => array(
52 'plugin_name' => 'WC_Vendors',
53 'plugin_title' => 'WooCommerce Vendors Marketplace',
54 ),
55 'Split_Orders' => array(
56 'plugin_name' => 'Split_Orders',
57 'plugin_title' => 'WooCommerce Split Orders',
58 ),
59 'SUMOSubscriptions' => array(
60 'plugin_name' => 'Sumo_Subscription',
61 'plugin_title' => 'SUMO Subscriptions',
62 ),
63 'WC_PIP_Loader' => array(
64 'plugin_name' => 'WC_PIP_Loader',
65 'plugin_title' => 'WooCommerce Print Invoices/Packing Lists',
66 ),
67 'WC_Account_Funds' => array(
68 'plugin_name' => 'Account_Funds',
69 'plugin_title' => 'WooCommerce Account Funds',
70 ),
71 'WC_Appointments' => array(
72 'plugin_name' => 'Woo_appointments',
73 'plugin_title' => 'WooCommerce Appointments',
74 ),
75 'Woo_B2B' => array(
76 'plugin_name' => 'Woo_B2B',
77 'plugin_title' => 'WooCommerce B2B',
78 ),
79 'WC_Bookings' => array(
80 'plugin_name' => 'WC_Bookings',
81 'plugin_title' => 'WooCommerce Bookings',
82 ),
83 'wc_deposits_woocommerce_is_active' => array(
84 'plugin_name' => 'Woo_Deposits',
85 'plugin_title' => 'WooCommerce Deposits',
86 ),
87 'Follow_Up_Emails' => array(
88 'plugin_name' => 'Follow_Up_Emails',
89 'plugin_title' => 'WooCommerce Follow-Ups',
90 ),
91 'WC_Gift_Cards' => array(
92 'plugin_name' => 'Woo_Gift_Cards',
93 'plugin_title' => 'WooCommerce Gift Cards',
94 ),
95 'WC_Order_Delivery' => array(
96 'plugin_name' => 'Woo_Order_Delivery',
97 'plugin_title' => 'WooCommerce Order Delivery',
98 ),
99 'Points_Rewards_For_Woocommerce' => array(
100 'plugin_name' => 'Point_Reward',
101 'plugin_title' => 'Points and Rewards for WooCommerce',
102 ),
103 'WC_Pre_Orders' => array(
104 'plugin_name' => 'Woo_PreOrders',
105 'plugin_title' => 'WooCommerce Pre-Orders',
106 ),
107 'Quotes_WC' => array(
108 'plugin_name' => 'Quotes_WC',
109 'plugin_title' => 'Quotes for WooCommerce',
110 ),
111 'WC_Shipment_Tracking_Actions' => array(
112 'plugin_name' => 'Woo_shipment_Tracking',
113 'plugin_title' => 'WooCommerce Shipment Tracking',
114 ),
115 'WooCommerce_simple_auction' => array(
116 'plugin_name' => 'Woo_Simple_Auction',
117 'plugin_title' => 'WooCommerce Simple Auction',
118 ),
119 'WooCommerce_Waitlist_Plugin' => array(
120 'plugin_name' => 'WooCommerce_Waitlist',
121 'plugin_title' => 'WooCommerce Waitlist',
122 ),
123 'WPCF_PRO_VERSION' => array(
124 'plugin_name' => 'WP_Crowdfunding',
125 'plugin_title' => 'WP Crowdfunding',
126 ),
127 'YITH_Pre_Order_Premium' => array(
128 'plugin_name' => 'YITH_Pre_Order',
129 'plugin_title' => 'YITH Pre-Order for WooCommerce Premium',
130 ),
131 'YWSBS_Subscription' => array(
132 'plugin_name' => 'YWSBS_Subscription',
133 'plugin_title' => 'YITH WooCommerce Subscription',
134 ),
135 'YITH_Vendors' => array(
136 'plugin_name' => 'YITH_Vendors',
137 'plugin_title' => 'YITH WooCommerce Multi Vendor Premium',
138 ),
139 'YITH_WC_Coupon_Email_System' => array(
140 'plugin_name' => 'YITH_WooCommerce_Coupon_Email_System_Premium',
141 'plugin_title' => 'YITH WooCommerce Coupon Email System Premium',
142 ),
143 'ParcelPanel\ParcelPanel' => array(
144 'plugin_name' => 'parcel_panel_order_tracking',
145 'plugin_title' => 'Parcel Panel Order Tracking for WooCommerce',
146 ),
147 'LpcInit' => array(
148 'plugin_name' => 'colissimo_shipping_woo',
149 'plugin_title' => 'Colissimo shipping methods for WooCommerce',
150 ),
151 'WeDevs_Dokan' => array(
152 'plugin_name' => 'dokan',
153 'plugin_title' => 'Dokan',
154 ),
155 );
156
157 $list_support_plugins_function = array(
158 'pimwick_define' => array(
159 'plugin_name' => 'Woo_Gift_Cards',
160 'plugin_title' => 'PW WooCommerce Gift Cards',
161 ),
162 'yith_wishlist_constructor' => array(
163 'plugin_name' => 'yith_wishlist_constructor',
164 'plugin_title' => 'YITH WooCommerce Wishlist Premium',
165 ),
166 'yith_ywgc_premium_init' => array(
167 'plugin_name' => 'YITH_Gift_Cards',
168 'plugin_title' => 'YITH WooCommerce Gift Cards Premium',
169 ),
170 'yith_wcmbs_pr_init' => array(
171 'plugin_name' => 'YITH_Membership',
172 'plugin_title' => 'YITH WooCommerce Membership Premium',
173 ),
174 'yith_wcbk_init' => array(
175 'plugin_name' => 'yith_booking',
176 'plugin_title' => 'YITH Booking and Appointment for WooCommerce Premium',
177 ),
178 );
179
180 $list_active_plugins = array();
181 foreach ( $list_support_plugins_class as $key => $value ) {
182 if ( class_exists( $key ) ) {
183 $list_active_plugins[] = $value;
184 }
185 if ( 'LMFWC_PLUGIN_FILE' === $key || 'WCV_PRO_VERSION' === $key || 'WPCF_PRO_VERSION' === $key ) {
186 if ( defined( $key ) ) {
187 $list_active_plugins[] = $value;
188 }
189 }
190 }
191 foreach ( $list_support_plugins_function as $key => $value ) {
192 if ( function_exists( $key ) ) {
193 $list_active_plugins[] = $value;
194 }
195 }
196 $list_active_addons = apply_filters( 'yaymail_plugins', array() );
197
198 $list_active_addons_name = array();
199
200 foreach ( $list_active_addons as $key => $value ) {
201 $list_active_addons_name[] = $value['plugin_name'];
202 }
203
204 $final_name_list = array();
205
206 foreach ( $list_active_plugins as $key => $value ) {
207 if ( ! in_array( $value['plugin_name'], $list_active_addons_name ) ) {
208 $final_name_list[] = $value['plugin_title'];
209 }
210 }
211 if ( count( $final_name_list ) ) :
212 ?>
213
214 <div id="yaymail-notice" class="notice-info notice is-dismissible">
215 <h4 style="color: #000"><?php esc_html_e( 'Recommended: You can use YayMail Addons to customize all email templates of:', 'yaymail' ); ?></h4>
216 <ul style="list-style: inside;">
217 <?php
218 foreach ( $final_name_list as $key => $value ) {
219 ?>
220 <li><?php esc_html_e( $value, 'yaymail' ); ?></li>
221 <?php
222 }
223 ?>
224 </ul>
225 <p style="padding-left:0">
226 <a href="https://yaycommerce.com/yaymail-addons/" target="_blank" data="upgradenow" class="button button-primary yaymail-see-addons" style="margin-right: 5px"><?php esc_html_e( 'See Addons', 'yaymail' ); ?></a>
227 <a href="javascript:;" data="later" class="yaymail-nothank" style="margin-right: 5px"><?php esc_html_e( 'No, thanks', 'yaymail' ); ?></a>
228 </p>
229 </div>
230 <?php
231 endif;?>
232