PluginProbe
YayMail – WooCommerce Email Customizer / 3.4.2
YayMail – WooCommerce Email Customizer v3.4.2
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 / DisplayAddonNotice.php

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

276 lines 9.7 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 'CARTFLOWS_CA_Loader' => array(
156 'plugin_name' => 'wc_cart_abandonment_recovery',
157 'plugin_title' => 'WooCommerce Cart Abandonment Recovery',
158 ),
159 'AutomateWoo_Loader' => array(
160 'plugin_name' => 'automatewoo',
161 'plugin_title' => 'AutomateWoo',
162 ),
163 'BM' => array(
164 'plugin_name' => 'b2b_market',
165 'plugin_title' => 'B2B Market',
166 ),
167 'YITH_Request_Quote_Premium' => array(
168 'plugin_name' => 'YITH_Request_Quote',
169 'plugin_title' => 'YITH WooCommerce Request A Quote Premium',
170 ),
171 'phive_booking_initialze_premium' => array(
172 'plugin_name' => 'phive_booking_initialze_premium',
173 'plugin_title' => 'Bookings and Appointments For WooCommerce Premium',
174 ),
175 'WPDesk\\ShopMagic\\Plugin' => array(
176 'plugin_name' => 'Shop_Magic_For_Wc',
177 'plugin_title' => 'ShopMagic for Woocommerce',
178 ),
179 );
180
181 $list_support_plugins_function = array(
182 'pimwick_define' => array(
183 'plugin_name' => 'Woo_Gift_Cards',
184 'plugin_title' => 'PW WooCommerce Gift Cards',
185 ),
186 'yith_wishlist_constructor' => array(
187 'plugin_name' => 'yith_wishlist_constructor',
188 'plugin_title' => 'YITH WooCommerce Wishlist Premium',
189 ),
190 'yith_ywgc_premium_init' => array(
191 'plugin_name' => 'YITH_Gift_Cards',
192 'plugin_title' => 'YITH WooCommerce Gift Cards Premium',
193 ),
194 'yith_wcmbs_pr_init' => array(
195 'plugin_name' => 'YITH_Membership',
196 'plugin_title' => 'YITH WooCommerce Membership Premium',
197 ),
198 'yith_wcbk_init' => array(
199 'plugin_name' => 'yith_booking',
200 'plugin_title' => 'YITH Booking and Appointment for WooCommerce Premium',
201 ),
202 'yith_affiliates_constructor' => array(
203 'plugin_name' => 'yith_woo_affilates',
204 'plugin_title' => 'YITH WooCommerce Affiliates Premium',
205 ),
206 'b2bking_activate' => array(
207 'plugin_name' => 'B2BKing',
208 'plugin_title' => 'B2BKing',
209 ),
210 'wholesalex_run' => array(
211 'plugin_name' => 'wholesalex',
212 'plugin_title' => 'WholesaleX',
213 ),
214 'woothemes_queue_update' => array(
215 'plugin_name' => 'WooCommerce_Contact_For_Shipping_Quote',
216 'plugin_title' => 'WooCommerce Contact for Shipping Quote',
217 ),
218 'AWCDP' => array(
219 'plugin_name' => 'AWCDP',
220 'plugin_title' => 'Deposits & Partial Payments for WooCommerce',
221 ),
222 );
223
224 $list_active_plugins = array();
225 foreach ( $list_support_plugins_class as $key => $value ) {
226 if ( class_exists( $key ) ) {
227 $list_active_plugins[] = $value;
228 }
229 if ( 'LMFWC_PLUGIN_FILE' === $key || 'WCV_PRO_VERSION' === $key || 'WPCF_PRO_VERSION' === $key ) {
230 if ( defined( $key ) ) {
231 $list_active_plugins[] = $value;
232 }
233 }
234 }
235 foreach ( $list_support_plugins_function as $key => $value ) {
236 if ( function_exists( $key ) ) {
237 $list_active_plugins[] = $value;
238 }
239 }
240 $list_active_addons = apply_filters( 'yaymail_plugins', array() );
241
242 $list_active_addons_name = array();
243
244 foreach ( $list_active_addons as $key => $value ) {
245 $list_active_addons_name[] = $value['plugin_name'];
246 }
247
248 $final_name_list = array();
249
250 foreach ( $list_active_plugins as $key => $value ) {
251 if ( ! in_array( $value['plugin_name'], $list_active_addons_name ) ) {
252 $final_name_list[] = $value['plugin_title'];
253 }
254 }
255 if ( count( $final_name_list ) ) :
256 ?>
257
258 <div id="yaymail-notice" class="notice-info notice is-dismissible">
259 <h4 style="color: #000"><?php esc_html_e( 'Recommended: You can use YayMail Addons to customize all email templates of:', 'yaymail' ); ?></h4>
260 <ul style="list-style: inside;">
261 <?php
262 foreach ( $final_name_list as $key => $value ) {
263 ?>
264 <li><?php esc_html_e( $value, 'yaymail' ); ?></li>
265 <?php
266 }
267 ?>
268 </ul>
269 <p style="padding-left:0">
270 <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>
271 <a href="javascript:;" data="later" class="yaymail-nothank" style="margin-right: 5px"><?php esc_html_e( 'No, thanks', 'yaymail' ); ?></a>
272 </p>
273 </div>
274 <?php
275 endif;?>
276