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 / DisplayAddonNotice.php

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

248 lines 8.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 );
164
165 $list_support_plugins_function = array(
166 'pimwick_define' => array(
167 'plugin_name' => 'Woo_Gift_Cards',
168 'plugin_title' => 'PW WooCommerce Gift Cards',
169 ),
170 'yith_wishlist_constructor' => array(
171 'plugin_name' => 'yith_wishlist_constructor',
172 'plugin_title' => 'YITH WooCommerce Wishlist Premium',
173 ),
174 'yith_ywgc_premium_init' => array(
175 'plugin_name' => 'YITH_Gift_Cards',
176 'plugin_title' => 'YITH WooCommerce Gift Cards Premium',
177 ),
178 'yith_wcmbs_pr_init' => array(
179 'plugin_name' => 'YITH_Membership',
180 'plugin_title' => 'YITH WooCommerce Membership Premium',
181 ),
182 'yith_wcbk_init' => array(
183 'plugin_name' => 'yith_booking',
184 'plugin_title' => 'YITH Booking and Appointment for WooCommerce Premium',
185 ),
186 'yith_affiliates_constructor' => array(
187 'plugin_name' => 'yith_woo_affilates',
188 'plugin_title' => 'YITH WooCommerce Affiliates Premium',
189 ),
190 'b2bking_activate' => array(
191 'plugin_name' => 'B2BKing',
192 'plugin_title' => 'B2BKing',
193 ),
194 );
195
196 $list_active_plugins = array();
197 foreach ( $list_support_plugins_class as $key => $value ) {
198 if ( class_exists( $key ) ) {
199 $list_active_plugins[] = $value;
200 }
201 if ( 'LMFWC_PLUGIN_FILE' === $key || 'WCV_PRO_VERSION' === $key || 'WPCF_PRO_VERSION' === $key ) {
202 if ( defined( $key ) ) {
203 $list_active_plugins[] = $value;
204 }
205 }
206 }
207 foreach ( $list_support_plugins_function as $key => $value ) {
208 if ( function_exists( $key ) ) {
209 $list_active_plugins[] = $value;
210 }
211 }
212 $list_active_addons = apply_filters( 'yaymail_plugins', array() );
213
214 $list_active_addons_name = array();
215
216 foreach ( $list_active_addons as $key => $value ) {
217 $list_active_addons_name[] = $value['plugin_name'];
218 }
219
220 $final_name_list = array();
221
222 foreach ( $list_active_plugins as $key => $value ) {
223 if ( ! in_array( $value['plugin_name'], $list_active_addons_name ) ) {
224 $final_name_list[] = $value['plugin_title'];
225 }
226 }
227 if ( count( $final_name_list ) ) :
228 ?>
229
230 <div id="yaymail-notice" class="notice-info notice is-dismissible">
231 <h4 style="color: #000"><?php esc_html_e( 'Recommended: You can use YayMail Addons to customize all email templates of:', 'yaymail' ); ?></h4>
232 <ul style="list-style: inside;">
233 <?php
234 foreach ( $final_name_list as $key => $value ) {
235 ?>
236 <li><?php esc_html_e( $value, 'yaymail' ); ?></li>
237 <?php
238 }
239 ?>
240 </ul>
241 <p style="padding-left:0">
242 <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>
243 <a href="javascript:;" data="later" class="yaymail-nothank" style="margin-right: 5px"><?php esc_html_e( 'No, thanks', 'yaymail' ); ?></a>
244 </p>
245 </div>
246 <?php
247 endif;?>
248