PluginProbe
QuadMenu – Mega Menu / 3.3.8
QuadMenu – Mega Menu v3.3.8
3.3.8 3.3.7 3.3.6 trunk 1.8.4 1.8.5 1.8.7 1.8.8 1.8.9 1.9.0 1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 All 88 releases
quadmenu / vendor_packages / wp-notice-plugin-promote.php

wp-notice-plugin-promote.php in QuadMenu – Mega Menu 3.3.8, at vendor_packages/wp-notice-plugin-promote.php

141 lines 5.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if ( class_exists( 'QuadLayers\\WP_Notice_Plugin_Promote\\Load' ) ) {
4 add_action('init', function() {
5 /**
6 * Promote constants
7 */
8 define( 'QUADMENU_PROMOTE_LOGO_SRC', plugins_url( '/assets/backend/img/logo.jpg', QUADMENU_PLUGIN_FILE ) );
9 /**
10 * Notice review
11 */
12 define( 'QUADMENU_PROMOTE_REVIEW_URL', 'https://wordpress.org/support/plugin/quadmenu/reviews/?filter=5#new-post' );
13 /**
14 * Notice premium sell
15 */
16 define( 'QUADMENU_PROMOTE_PREMIUM_SELL_SLUG', 'quadmenu-pro' );
17 define( 'QUADMENU_PROMOTE_PREMIUM_SELL_NAME', 'QuadMenu PRO' );
18 define( 'QUADMENU_PROMOTE_PREMIUM_INSTALL_URL', 'https://quadmenu.com/?utm_source=quadmenu_plugin&utm_medium=dashboard_notice&utm_campaign=premium_upgrade&utm_content=premium_install_button' );
19 define( 'QUADMENU_PROMOTE_PREMIUM_SELL_URL', 'https://quadmenu.com/?utm_source=quadmenu_plugin&utm_medium=dashboard_notice&utm_campaign=premium_upgrade&utm_content=premium_link' );
20 /**
21 * Notice cross sell 1
22 */
23 define( 'QUADMENU_PROMOTE_CROSS_INSTALL_1_SLUG', 'wp-whatsapp-chat' );
24 define( 'QUADMENU_PROMOTE_CROSS_INSTALL_1_NAME', 'Social Chat' );
25 define(
26 'QUADMENU_PROMOTE_CROSS_INSTALL_1_TITLE',
27 wp_kses(
28 sprintf(
29 '<h3 style="margin:0">%s</h3>',
30 esc_html__( 'Turn more visitors into customers.', 'quadmenu' )
31 ),
32 array(
33 'h3' => array(
34 'style' => array()
35 )
36 )
37 )
38 );
39 define( 'QUADMENU_PROMOTE_CROSS_INSTALL_1_DESCRIPTION', esc_html__( 'Social Chat allows your users to start a conversation from your website directly to your WhatsApp phone number with one click.', 'quadmenu' ) );
40 define( 'QUADMENU_PROMOTE_CROSS_INSTALL_1_URL', 'https://quadlayers.com/products/whatsapp-chat/?utm_source=quadmenu_plugin&utm_medium=dashboard_notice&utm_campaign=cross_sell&utm_content=social_chat_link' );
41 define( 'QUADMENU_PROMOTE_CROSS_INSTALL_1_LOGO_SRC', plugins_url( '/assets/backend/img/wp-whatsapp-chat.jpeg', QUADMENU_PLUGIN_FILE ) );
42 /**
43 * Notice cross sell 2
44 */
45 define( 'QUADMENU_PROMOTE_CROSS_INSTALL_2_SLUG', 'insta-gallery' );
46 define( 'QUADMENU_PROMOTE_CROSS_INSTALL_2_NAME', 'Social Feed Gallery' );
47 define(
48 'QUADMENU_PROMOTE_CROSS_INSTALL_2_TITLE',
49 wp_kses(
50 sprintf(
51 '<h3 style="margin:0">%s</h3>',
52 esc_html__( 'Display Instagram feeds beautifully.', 'quadmenu' )
53 ),
54 array(
55 'h3' => array(
56 'style' => array()
57 )
58 )
59 )
60 );
61 define( 'QUADMENU_PROMOTE_CROSS_INSTALL_2_DESCRIPTION', esc_html__( 'Display Instagram photos from any account with responsive galleries, custom layouts, and an engaging lightbox popup.', 'quadmenu' ) );
62 define( 'QUADMENU_PROMOTE_CROSS_INSTALL_2_URL', 'https://quadlayers.com/products/instagram-feed-gallery/?utm_source=quadmenu_plugin&utm_medium=dashboard_notice&utm_campaign=cross_sell&utm_content=instagram_feed_link' );
63 define( 'QUADMENU_PROMOTE_CROSS_INSTALL_2_LOGO_SRC', plugins_url( '/assets/backend/img/insta-gallery.jpg', QUADMENU_PLUGIN_FILE ) );
64 new \QuadLayers\WP_Notice_Plugin_Promote\Load(
65 QUADMENU_PLUGIN_FILE,
66 array(
67 array(
68 'type' => 'ranking',
69 'notice_delay' => 0,
70 'notice_logo' => QUADMENU_PROMOTE_LOGO_SRC,
71 'notice_title' => wp_kses(
72 sprintf(
73 '<h3 style="margin:0">%s</h3>',
74 esc_html__( 'Enjoying QuadMenu?', 'quadmenu' )
75 ),
76 array(
77 'h3' => array(
78 'style' => array()
79 )
80 )
81 ),
82 'notice_description' => esc_html__( 'A quick 5-star review helps us keep improving the plugin and supporting users like you. It only takes 2 seconds — thank you!', 'quadmenu' ),
83 'notice_link' => QUADMENU_PROMOTE_REVIEW_URL,
84 'notice_more_link' => 'https://quadmenu.com/account/support/?utm_source=quadmenu_plugin&utm_medium=dashboard_notice&utm_campaign=support&utm_content=report_bug_button',
85 'notice_more_label' => esc_html__(
86 'Report a bug',
87 'quadmenu'
88 ),
89 ),
90 array(
91 'plugin_slug' => QUADMENU_PROMOTE_PREMIUM_SELL_SLUG,
92 'plugin_install_link' => QUADMENU_PROMOTE_PREMIUM_INSTALL_URL,
93 'plugin_install_label' => esc_html__(
94 'Purchase Now',
95 'quadmenu'
96 ),
97 'notice_delay' => WEEK_IN_SECONDS,
98 'notice_logo' => QUADMENU_PROMOTE_LOGO_SRC,
99 'notice_title' => wp_kses(
100 sprintf(
101 '<h3 style="margin:0">%s</h3>',
102 esc_html__( 'Save 20% today!', 'quadmenu' )
103 ),
104 array(
105 'h3' => array(
106 'style' => array()
107 )
108 )
109 ),
110 'notice_description' => sprintf(
111 esc_html__(
112 'Today we have a special gift for you. Use the coupon code %1$s within the next 48 hours to receive a %2$s discount on the premium version of the %3$s plugin.',
113 'quadmenu'
114 ),
115 'ADMINPANEL20%',
116 '20%',
117 QUADMENU_PROMOTE_PREMIUM_SELL_NAME
118 ),
119 'notice_more_link' => QUADMENU_PROMOTE_PREMIUM_SELL_URL,
120 ),
121 array(
122 'plugin_slug' => QUADMENU_PROMOTE_CROSS_INSTALL_1_SLUG,
123 'notice_delay' => MONTH_IN_SECONDS * 3,
124 'notice_logo' => QUADMENU_PROMOTE_CROSS_INSTALL_1_LOGO_SRC,
125 'notice_title' => QUADMENU_PROMOTE_CROSS_INSTALL_1_TITLE,
126 'notice_description' => QUADMENU_PROMOTE_CROSS_INSTALL_1_DESCRIPTION,
127 'notice_more_link' => QUADMENU_PROMOTE_CROSS_INSTALL_1_URL
128 ),
129 array(
130 'plugin_slug' => QUADMENU_PROMOTE_CROSS_INSTALL_2_SLUG,
131 'notice_delay' => MONTH_IN_SECONDS * 6,
132 'notice_logo' => QUADMENU_PROMOTE_CROSS_INSTALL_2_LOGO_SRC,
133 'notice_title' => QUADMENU_PROMOTE_CROSS_INSTALL_2_TITLE,
134 'notice_description' => QUADMENU_PROMOTE_CROSS_INSTALL_2_DESCRIPTION,
135 'notice_more_link' => QUADMENU_PROMOTE_CROSS_INSTALL_2_URL
136 ),
137 )
138 );
139 });
140 }
141