/var/www/html_us/wp-content/plugins/yaymail/includes/Page/Source/DisplayAddonNotice.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
<?php
    $list_support_plugins_class 
= array(
        
'WC_Advanced_Shipment_Tracking_Actions' => array(
            
'plugin_name'  => 'WC_Advanced_Shipment_Tracking',
            
'plugin_title' => 'Advanced Shipment Tracking for WooCommerce',
        ),
        
'B2bwhs'                                => array(
            
'plugin_name'  => 'B2BWholesaleSuite',
            
'plugin_title' => 'B2B & Wholesale Suite',
        ),
        
'THWCFD'                                => array(
            
'plugin_name'  => 'B2BWholesaleSuite',
            
'plugin_title' => 'Checkout Field Editor',
        ),
        
'WeDevs_Dokan'                          => array(
            
'plugin_name'  => 'Dokan',
            
'plugin_title' => 'Dokan',
        ),
        
'Woocommerce_German_Market'             => array(
            
'plugin_name'  => 'woocommerce_german_market',
            
'plugin_title' => 'WooCommerce German Market',
        ),
        
'WooCommerce_Germanized'                => array(
            
'plugin_name'  => 'WooCommerce_Germanized',
            
'plugin_title' => 'Germanized',
        ),
        
'LMFWC_PLUGIN_FILE'                     => array(
            
'plugin_name'  => 'LMFWC',
            
'plugin_title' => 'License Manager for WooCommerce',
        ),
        
'WC_Subscription'                       => array(
            
'plugin_name'  => 'WC_Subscription',
            
'plugin_title' => 'WooCommerce Subscriptions',
        ),
        
'WC_Email_Cancelled_Customer_Order'     => array(
            
'plugin_name'  => 'WC_Email_Cancelled_Customer_Order',
            
'plugin_title' => 'Order Cancellation Email to Customer',
        ),
        
'order_delivery_date'                   => array(
            
'plugin_name'  => 'Order_Delivery_Date',
            
'plugin_title' => 'Order Delivery Date Pro WooCommerce',
        ),
        
'WC_Smart_Coupons'                      => array(
            
'plugin_name'  => 'WC_Smart_Coupons',
            
'plugin_title' => 'WooCommerce Smart Coupons',
        ),
        
'Sg_Order_Approval_Woocommerce_Pro'     => array(
            
'plugin_name'  => 'Sg_Order_Approval',
            
'plugin_title' => 'SG Order Approval',
        ),
        
'WCV_PRO_VERSION'                       => array(
            
'plugin_name'  => 'WC_Vendors',
            
'plugin_title' => 'WooCommerce Vendors Marketplace',
        ),
        
'Split_Orders'                          => array(
            
'plugin_name'  => 'Split_Orders',
            
'plugin_title' => 'WooCommerce Split Orders',
        ),
        
'SUMOSubscriptions'                     => array(
            
'plugin_name'  => 'Sumo_Subscription',
            
'plugin_title' => 'SUMO Subscriptions',
        ),
        
'WC_PIP_Loader'                         => array(
            
'plugin_name'  => 'WC_PIP_Loader',
            
'plugin_title' => 'WooCommerce Print Invoices/Packing Lists',
        ),
        
'WC_Account_Funds'                      => array(
            
'plugin_name'  => 'Account_Funds',
            
'plugin_title' => 'WooCommerce Account Funds',
        ),
        
'WC_Appointments'                       => array(
            
'plugin_name'  => 'Woo_appointments',
            
'plugin_title' => 'WooCommerce Appointments',
        ),
        
'Woo_B2B'                               => array(
            
'plugin_name'  => 'Woo_B2B',
            
'plugin_title' => 'WooCommerce B2B',
        ),
        
'WC_Bookings'                           => array(
            
'plugin_name'  => 'WC_Bookings',
            
'plugin_title' => 'WooCommerce Bookings',
        ),
        
'wc_deposits_woocommerce_is_active'     => array(
            
'plugin_name'  => 'Woo_Deposits',
            
'plugin_title' => 'WooCommerce Deposits',
        ),
        
'Follow_Up_Emails'                      => array(
            
'plugin_name'  => 'Follow_Up_Emails',
            
'plugin_title' => 'WooCommerce Follow-Ups',
        ),
        
'WC_Gift_Cards'                         => array(
            
'plugin_name'  => 'Woo_Gift_Cards',
            
'plugin_title' => 'WooCommerce Gift Cards',
        ),
        
'WC_Order_Delivery'                     => array(
            
'plugin_name'  => 'Woo_Order_Delivery',
            
'plugin_title' => 'WooCommerce Order Delivery',
        ),
        
'Points_Rewards_For_Woocommerce'        => array(
            
'plugin_name'  => 'Point_Reward',
            
'plugin_title' => 'Points and Rewards for WooCommerce',
        ),
        
'WC_Pre_Orders'                         => array(
            
'plugin_name'  => 'Woo_PreOrders',
            
'plugin_title' => 'WooCommerce Pre-Orders',
        ),
        
'Quotes_WC'                             => array(
            
'plugin_name'  => 'Quotes_WC',
            
'plugin_title' => 'Quotes for WooCommerce',
        ),
        
'WC_Shipment_Tracking_Actions'          => array(
            
'plugin_name'  => 'Woo_shipment_Tracking',
            
'plugin_title' => 'WooCommerce Shipment Tracking',
        ),
        
'WooCommerce_simple_auction'            => array(
            
'plugin_name'  => 'Woo_Simple_Auction',
            
'plugin_title' => 'WooCommerce Simple Auction',
        ),
        
'WooCommerce_Waitlist_Plugin'           => array(
            
'plugin_name'  => 'WooCommerce_Waitlist',
            
'plugin_title' => 'WooCommerce Waitlist',
        ),
        
'WPCF_PRO_VERSION'                      => array(
            
'plugin_name'  => 'WP_Crowdfunding',
            
'plugin_title' => 'WP Crowdfunding',
        ),
        
'YITH_Pre_Order_Premium'                => array(
            
'plugin_name'  => 'YITH_Pre_Order',
            
'plugin_title' => 'YITH Pre-Order for WooCommerce Premium',
        ),
        
'YWSBS_Subscription'                    => array(
            
'plugin_name'  => 'YITH_Subscription',
            
'plugin_title' => 'YITH WooCommerce Subscription',
        ),
        
'YITH_Vendors'                          => array(
            
'plugin_name'  => 'YITH_Vendors',
            
'plugin_title' => 'YITH WooCommerce Multi Vendor Premium',
        ),
        
'YITH_WC_Coupon_Email_System'           => array(
            
'plugin_name'  => 'YITH_WooCommerce_Coupon_Email_System_Premium',
            
'plugin_title' => 'YITH WooCommerce Coupon Email System Premium',
        ),
        
'ParcelPanel\ParcelPanel'               => array(
            
'plugin_name'  => 'parcel_panel_order_tracking',
            
'plugin_title' => 'Parcel Panel Order Tracking for WooCommerce',
        ),
        
'LpcInit'                               => array(
            
'plugin_name'  => 'colissimo_shipping_woo',
            
'plugin_title' => 'Colissimo shipping methods for WooCommerce',
        ),
        
'WeDevs_Dokan'                          => array(
            
'plugin_name'  => 'dokan',
            
'plugin_title' => 'Dokan',
        ),
        
'CARTFLOWS_CA_Loader'                   => array(
            
'plugin_name'  => 'wc_cart_abandonment_recovery',
            
'plugin_title' => 'WooCommerce Cart Abandonment Recovery',
        ),
        
'AutomateWoo_Loader'                    => array(
            
'plugin_name'  => 'automatewoo',
            
'plugin_title' => 'AutomateWoo',
        ),
        
'BM'                                    => array(
            
'plugin_name'  => 'b2b_market',
            
'plugin_title' => 'B2B Market',
        ),
        
'YITH_Request_Quote_Premium'            => array(
            
'plugin_name'  => 'YITH_Request_Quote',
            
'plugin_title' => 'YITH WooCommerce Request A Quote Premium',
        ),
        
'phive_booking_initialze_premium'       => array(
            
'plugin_name'  => 'phive_booking_initialze_premium',
            
'plugin_title' => 'Bookings and Appointments For WooCommerce Premium',
        ),
        
'WPDesk\\ShopMagic\\Plugin'             => array(
            
'plugin_name'  => 'Shop_Magic_For_Wc',
            
'plugin_title' => 'ShopMagic for Woocommerce',
        ),
        
'Points_Rewards_For_Woocommerce'        => array(
            
'plugin_name'  => 'Point_Reward',
            
'plugin_title' => 'Points and Rewards for WooCommerce',
        ),
        
'Marketkingcore'                        => array(
            
'plugin_name'  => 'Marketkingcore',
            
'plugin_title' => 'MarketKing Core',
        ),
        
'AFWC_Affiliate'                    => array(
            
'plugin_name'  => 'Affiliate_Woo',
            
'plugin_title' => 'Affiliate For WooCommerce',
        ),
    );

    
$list_support_plugins_function = array(
        
'pimwick_define'              => array(
            
'plugin_name'  => 'Woo_Gift_Cards',
            
'plugin_title' => 'PW WooCommerce Gift Cards',
        ),
        
'yith_wishlist_constructor'   => array(
            
'plugin_name'  => 'yith_wishlist_constructor',
            
'plugin_title' => 'YITH WooCommerce Wishlist Premium',
        ),
        
'yith_ywgc_premium_init'      => array(
            
'plugin_name'  => 'YITH_Gift_Cards',
            
'plugin_title' => 'YITH WooCommerce Gift Cards Premium',
        ),
        
'yith_wcmbs_pr_init'          => array(
            
'plugin_name'  => 'YITH_Membership',
            
'plugin_title' => 'YITH WooCommerce Membership Premium',
        ),
        
'yith_wcbk_init'              => array(
            
'plugin_name'  => 'yith_booking',
            
'plugin_title' => 'YITH Booking and Appointment for WooCommerce Premium',
        ),
        
'yith_affiliates_constructor' => array(
            
'plugin_name'  => 'yith_woo_affilates',
            
'plugin_title' => 'YITH WooCommerce Affiliates Premium',
        ),
        
'b2bking_activate'            => array(
            
'plugin_name'  => 'B2BKing',
            
'plugin_title' => 'B2BKing',
        ),
        
'wholesalex_run'              => array(
            
'plugin_name'  => 'wholesalex',
            
'plugin_title' => 'WholesaleX',
        ),
        
'wccfsq_activation_notice'      => array(
            
'plugin_name'  => 'WooCommerce_Contact_For_Shipping_Quote',
            
'plugin_title' => 'WooCommerce Contact for Shipping Quote',
        ),
        
'AWCDP'                       => array(
            
'plugin_name'  => 'AWCDP',
            
'plugin_title' => 'Deposits & Partial Payments for WooCommerce',
        ),
    );

    
$list_active_plugins = array();
    foreach ( 
$list_support_plugins_class as $key => $value ) {
        if ( 
class_exists$key ) ) {
            
$list_active_plugins[] = $value;
        }
        if ( 
'LMFWC_PLUGIN_FILE' === $key || 'WCV_PRO_VERSION' === $key || 'WPCF_PRO_VERSION' === $key ) {
            if ( 
defined$key ) ) {
                
$list_active_plugins[] = $value;
            }
        }
    }
    foreach ( 
$list_support_plugins_function as $key => $value ) {
        if ( 
function_exists$key ) ) {
            
$list_active_plugins[] = $value;
        }
    }
    
$list_active_addons apply_filters'yaymail_plugins', array() );

    
$list_active_addons_name = array();

    foreach ( 
$list_active_addons as $key => $value ) {
        
$list_active_addons_name[] = $value['plugin_name'];
    }

    
$final_name_list = array();

    foreach ( 
$list_active_plugins as $key => $value ) {
        if ( ! 
in_array$value['plugin_name'], $list_active_addons_name ) ) {
            
$final_name_list[] = $value['plugin_title'];
        }
    }
    if ( 
count$final_name_list ) ) :
        
?>

    <div id="yaymail-notice" class="notice-info notice is-dismissible">
        <h4 style="color: #000"><?php esc_html_e'Recommended: You can use YayMail Addons to customize all email templates of:''yaymail' ); ?></h4>
        <ul style="list-style: inside;">
            <?php
            
foreach ( $final_name_list as $key => $value ) {
                
?>
                <li><?php esc_html_e$value'yaymail' ); ?></li>
                <?php
            
}
            
?>
        </ul>
        <p style="padding-left:0">
            <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>
            <a href="javascript:;" data="later" class="yaymail-nothank" style="margin-right: 5px"><?php esc_html_e'No, thanks''yaymail' ); ?></a>
        </p>
    </div>
            <?php
endif;?>