PluginProbe ʕ •ᴥ•ʔ
My Sticky Bar – Floating Notification Bar & Sticky Header (formerly myStickymenu) / 2.7.9
My Sticky Bar – Floating Notification Bar & Sticky Header (formerly myStickymenu) v2.7.9
2.9.1 2.9.0 2.8.9 2.8.8 trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9 1.9.1 2.0 2.0.1 2.0.3 2.0.4 2.0.5 2.0.6 2.1 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8 2.3.9 2.4 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.5 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.5.8 2.5.9 2.6 2.6.1 2.6.2 2.6.3 2.6.4 2.6.5 2.6.6 2.6.7 2.6.8 2.6.9 2.7 2.7.1 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 2.8.0 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7
mystickymenu / admin / stickymenu-dashboard.php
mystickymenu / admin Last commit date
bar-preview.php 1 year ago bar-settings.php 1 year ago customize-bar.php 1 year ago display-rules.php 1 year ago poptin-plugin.php 1 year ago poptin-popup.php 1 year ago stickymenu-dashboard.php 1 year ago
stickymenu-dashboard.php
287 lines
1 <?php
2 $stickymenus_widgets = get_option( 'mysticky_option_welcomebar' );
3 if ( !isset( $stickymenus_widgets['mysticky_welcomebar_enable'])) {
4 $widget_status = 0;
5 }
6 if ( isset( $stickymenus_widgets['mysticky_welcomebar_enable']) ) {
7 $widget_status = $stickymenus_widgets['mysticky_welcomebar_enable'];
8 }
9 $mysticky_options = get_option( 'mysticky_option_name' );
10
11
12 function getRecentContactLead(){
13 global $wpdb;
14 $table_name = $wpdb->prefix . "mystickymenu_contact_lists";
15 $query = "SELECT * FROM {$table_name} ORDER BY ID DESC LIMIT 3";
16 $result = $wpdb->get_results( $query );
17
18 return $result;
19 }
20 ?>
21 <h1></h1>
22 <!-- Updated design -->
23 <div class="wrap mystickymenu-wrap">
24 <div class="mystickymenu-dashboard">
25 <h2></h2>
26 <?php if(isset($stickymenus_widgets) && !empty($stickymenus_widgets)) : ?>
27 <div class="mystickymenu-dashboard welcomebars-list-table">
28
29 <div class="mystickymenu-dashboard header-section">
30 <div class="mystickymenu-dashboard heading-title"><h3><?php esc_html_e( 'Dashboard', 'mystickymenu');?></h3></div>
31 <div class="mystickymenu-dashboard mystickymenu-widgets-btn-wrap"><a href="<?php echo esc_url(admin_url('admin.php?page=my-stickymenu-new-welcomebar'))?>" class="btn add_new_welcombar"><span class="dashicons dashicons-insert" style="font-size:18px;color:#fff;"></span>&nbsp; <?php echo esc_html_e('Add a New Bar','mystickymenu');?></a></div>
32 </div>
33
34 <table class="mystickymenu-widgets-lists">
35 <thead>
36 <tr>
37 <th style="text-align: left;padding: 0 0 0 20px !important;"><?php esc_html_e( 'Status', 'mystickymenu');?></th>
38 <th style="width:66%;text-align: left;padding: 0 0 0 30px !important;"><?php esc_html_e( 'Bars', 'mystickymenu');?></th>
39 <th><?php esc_html_e( 'Quick Action', 'mystickymenu');?></th>
40 </tr>
41 </thead>
42 <tbody>
43 <?php if(isset($stickymenus_widgets) && !empty($stickymenus_widgets)) : ?>
44 <tr id="stickymenu-widget-0">
45 <td style="text-align: left;padding: 0 0 0 20px !important;">
46 <label class="mysticky-welcomebar-switch welcombar-status-switch">
47 <input type="checkbox" data-id="0" class="mystickymenu-widget-enabled" name ="mystickymenu-widget-enabled" data-id = "0" id = "mystickymenu-widget-enabled-0" value="1" <?php checked( $widget_status, 1 ); ?> />
48 <span class="slider round"></span>
49 </label>
50 <div class="mystickymenu-action-popup welcombar-enabled-status" id="widget-status-dialog-0" style="display:none;">
51 <div class="mystickymenu-action-popup-header">
52 <h3><?php esc_html_e('Are you sure?','mystickymenu');?></h3>
53 <span class="dashicons dashicons-no-alt close-button" data-from = "welcome-bar-status"data-id="0"></span>
54 </div>
55 <div class="mystickymenu-action-popup-body">
56 <p><?php esc_html_e("You're about to turn off the bar. Are you sure about that?",'mystickymenu');?></p>
57 </div>
58 <div class="mystickymenu-action-popup-footer">
59 <button type="button" class="btn-enable btn-nevermind-status" data-id="0"><?php esc_html_e('Nevermind','mystickymenu');?></button>
60 <button type="button" class="btn-disable-cancel btn-turnoff-status" data-id="0"><?php esc_html_e('Turn off','mystickymenu');?></button>
61 </div>
62 </div>
63 <div class="mystickymenupopup-overlay mystickymenupopup-widget-status-overlay" id="mystickymenu-status-popup-overlay-0" data-id="0" data-from="welcomebar-status" data-fromoverlay="welcombar_status"></div>
64 </td>
65 <td style="text-align: left;padding: 0 0 0 30px !important;"><?php echo esc_html_e('Bar #0','mystickymenu'); ?></td>
66 <td>
67 <div class="tooltip">
68 <span class="tooltiptext"><?php esc_html_e('Edit','mystickymenu');?></span>
69 <a href="<?php echo admin_url("admin.php?page=my-stickymenu-welcomebar&widget=0&isedit=1" );?>" ><img src="<?php echo esc_url(MYSTICKYMENU_URL); ?>/images/edit-icon.svg" /></a>
70 </div>
71 <div class="tooltip">
72 <span class="tooltiptext"><?php esc_html_e('Duplicate','mystickymenu');?></span>
73 <a class="copyicon" href='<?php echo admin_url("admin.php?page=my-stickymenu-new-welcomebar&duplicate_from=1");?>'><img src="<?php echo esc_url(MYSTICKYMENU_URL); ?>/images/copy-icon.svg" /></a>
74 </div>
75
76 <div class="tooltip">
77 <span class="tooltiptext"><?php esc_html_e('Delete','mystickymenu');?></span>
78 <a href="javascript:void(0);" class="mystickymenu-delete-widget" id="delete-widget-0" data-widget-id="0"><img src="<?php echo esc_url(MYSTICKYMENU_URL); ?>/images/delete-icon.svg" /></a>
79 </div>
80
81
82 <div class="mystickymenu-action-popup" id="widget-delete-dialog-0" style="display:none;">
83 <div class="mystickymenu-action-popup-header">
84 <h3><?php esc_html_e('Are you sure?','mystickymenu');?></h3>
85 <span class="dashicons dashicons-no-alt close-button" data-from = "welcome-bar-delete"data-id="0"></span>
86 </div>
87 <div class="mystickymenu-action-popup-body">
88 <p><?php esc_html_e("Are you sure want to delete the bar? You will lose the bar permanently and will not be able to retrieve it",'mystickymenu');?></p>
89 </div>
90 <div class="mystickymenu-action-popup-footer">
91 <button type="button" class="btn-enable btn-delete-cancel" data-id="0"><?php esc_html_e('Nevermind','mystickymenu');?></button>
92 <button type="button" class="btn-disable-cancel btn-delete" data-id="0"><?php esc_html_e('Delete','mystickymenu');?></button>
93 </div>
94 </div>
95 <div class="mystickymenupopup-overlay" id="mystickymenu-delete-popup-overlay-0" data-id="0" data-fromoverlay="welcombar_delete"></div>
96 </td>
97 </tr>
98 <?php endif; ?>
99 </tbody>
100 </table>
101 </div>
102 <?php else:?>
103
104 <div class="mystickymenu-dashboard new-welcomebar-section-wrap">
105 <div class="mystickymenu-welcome-img">
106 <img src="<?php echo esc_url(MYSTICKYMENU_URL); ?>/images/firstwelcombar.svg" />
107 </div>
108 <div class="mystickymenu-newwelcomebar-contents">
109 <h2><?php esc_html_e("Welcome 🎉","mystickymenu");?></h2>
110 <p><?php esc_html_e("You're one step away from creating a bar.","mystickymenu")?> </p>
111 <p><?php esc_html_e("Add top and bottoms bars for various purposes like showing updates, offers, countdown, flash sales, and more. You can also make any WordPress menu sticky easily.","mystickymenu");?></p>
112 <a class="copyicon add_new_welcombar" href="<?php echo esc_url(admin_url('admin.php?page=my-stickymenu-new-welcomebar'));?>" class="btn add_new_welcombar"><span class="dashicons dashicons-arrow-right-alt" style="font-size:18px;color:#fff;"></span>&nbsp; <?php echo esc_html_e('Add a New Bar','mystickymenu');?></a>
113 </div>
114 <div class="mystickymenu-features">
115 <div class="mystickymenu-feature-title">
116 <img src="<?php echo esc_url(MYSTICKYMENU_URL); ?>/images/crown.svg" alt="My Happy SVG" />
117 <?php esc_html_e("Features","mystickymenu");?></div>
118 <div class="mystickymenu-features-list">
119 <ul class="documents-wrap-list">
120 <li><?php esc_html_e("Create new bars with unique customization","mystickymenu");?></li>
121 <li><?php esc_html_e("Make your WordPress navigation menu sticky","mystickymenu");?></li>
122 <li><?php esc_html_e("Explore more triggers & targeting options","mystickymenu");?></li>
123 </ul>
124 </div>
125 </div>
126 </div>
127 <?php endif; ?>
128 <!-- /**/ */ -->
129
130 <div class="mystickymenu-tab-boxs-wrap msmenu-flexbox">
131
132 <!--Main 1st -->
133
134 <div class="mystickymenu-tab-stickymenu msmenu-blockbox msmenu-box50">
135 <?php $result = getRecentContactLead(); ?>
136
137 <!-- 1 -->
138 <div class="contact-recent-lead msm-bgbox">
139 <div class="stickymenubox-title-section">
140 <h3><?php esc_html_e("Recent Leads","mystickymenu");?></h3>
141 <?php if(isset($result) && count($result) > 0) : ?>
142 <a class="msmenu-btn" href="<?php echo esc_url(admin_url('admin.php?page=my-sticky-menu-leads'));?>"><?php echo esc_html_e('View All','mystickymenu');?></a>
143 <?php endif; ?>
144 </div>
145 <?php
146 if( isset($result) && count($result) > 0 ){?>
147 <div class="stickymenu recent-lead-table">
148 <table>
149 <tr>
150 <th><?php esc_html_e('Name','mystickymenu');?></th>
151 <th><?php esc_html_e('Email','mystickymenu');?></th>
152 <th><?php esc_html_e('Phone','mystickymenu');?></th>
153 </tr>
154 <?php
155 foreach( $result as $key => $val ){
156 echo "<tr>";
157 echo "<td>". esc_html($val->contact_name) ." </td>";
158 echo "<td>". esc_html($val->contact_email) ." </td>";
159 echo "<td>". esc_html($val->contact_phone) ." </td>";
160 echo "</tr>";
161 }
162 ?>
163 </table>
164 </div>
165 <?php
166 }else{?>
167 <div class="stickymenu-no-lead">
168 <?php echo '<img src="'. esc_url(MYSTICKYMENU_URL) .'images/empty_lead.png" />'; ?>
169 <p><?php esc_html_e("Once you get a new lead, it’ll appear here","mystickymenu");?></p>
170 </div>
171 <?php
172 }
173 ?>
174
175 </div>
176 <!-- 2 -->
177 <div class="contactus-tab-option msm-bgbox">
178 <div class="contactus-title">
179 <h3>Create Popups That Convert</h3>
180 </div>
181 <div class="premio-footer-option">
182 <h3><img src="<?php echo esc_url(MYSTICKYMENU_URL . "images/poptin-popups.png"); ?>" /></h3>
183 <div class="premio-content-list">
184 <span>Engaging popups and forms for your website. Build in minutes.</span>
185 </div>
186 <?php
187 if( class_exists( 'POPTIN_Plugin_Base' ) ) {
188 $poptin_url = admin_url('admin.php?page=Poptin');
189 } else {
190 $poptin_url = admin_url('admin.php?page=install-poptin-plugin');
191 }
192 ?>
193 <label class="stickymenu-box-button settings-buttons"><a class="btn btn-poptin-popups" href="<?php echo esc_url($poptin_url);?>" target="_blank">Create Your First Popup</a></label>
194 </div>
195
196 </div>
197 <!-- -->
198
199 </div>
200
201 <!--Main 2nd -->
202
203 <div class="msmenu-blockbox msmenu-box50">
204 <!-- 1 -->
205 <div class="stickymenu-tab-option msm-bgbox">
206 <div class="stickymenubox-title-section"><h3><?php esc_html_e("Sticky menu","mystickymenu");?></h3></div>
207 <div class="stickymenu-settings">
208 <div class="settings-content">
209 <?php
210 if(isset($mysticky_options['stickymenu_enable']) && $mysticky_options['stickymenu_enable'] == 1){
211 echo '<p>Sticky menu is currently turned on.</p>';
212 }else{
213 echo '<p>Sticky menu is not currently configured. Configure to enable.</p>';
214 }
215 ?>
216 </div>
217 <div class="stickymenu-box-button settings-buttons">
218 <?php if(isset($mysticky_options['stickymenu_enable']) && $mysticky_options['stickymenu_enable'] == 1):
219 ?>
220 <a href="<?php echo esc_url(admin_url("admin.php?page=my-stickymenu-settings"));?>" id="btn-config-settings" style="color:#6559f6;border-color:#c7c2fb;"><?php esc_html_e("Settings","mystickymenu"); ?></a>
221 <a href="javascript:void(0);" id="btn-config-disable" style="color:#d3465c;border-color:#efbcc4;"><?php esc_html_e("Disable","mystickymenu"); ?></a>
222 <?php else : ?>
223 <a href="<?php echo esc_url(admin_url("admin.php?page=my-stickymenu-settings"));?>"><?php esc_html_e("Configure","mystickymenu"); ?></a>
224 <?php endif; ?>
225 </div>
226 </div>
227 </div>
228 <!-- 2 -->
229 <div class="mystickymenu-tab-documentation msm-bgbox">
230 <h3>Documentation</h3>
231 <div class="stickymenu-box-container flex-col">
232 <ul class="documents-wrap-list">
233 <li><a href="https://premio.io/help/mystickymenu/how-to-use-my-sticky-menu/" target="_blank"><?php esc_html_e('How to use My Sticky Bar?','mystickymenu');?></a></li>
234 <li><a href="https://premio.io/help/mystickymenu/how-to-add-your-sticky-menu-on-specific-pages-only/" target="_blank"><?php esc_html_e('How to add your sticky menu on specific pages only','mystickymenu');?></a></li>
235 <li><a href="https://premio.io/help/mystickymenu/how-to-create-a-welcome-bar/" target="_blank"><?php esc_html_e('How to create a Bar','mystickymenu');?></a></li>
236 </ul>
237
238 <span class="flex align-middle gap-x-px">
239 <span><?php esc_html_e("Need more help? Visit our ","mystickymenu");?></span>
240 <a class="btn btn-primary-outline" href="https://premio.io/help/mystickymenu/?utm_source=msmhelp" target="_blank"><?php esc_html_e("Help Center","mystickymenu"); ?></a>
241 </span>
242 </div>
243 </div>
244
245 </div>
246
247 </div>
248 <div class="mystickymenu-tab-boxs-wrap msmenu-flexbox">
249 <div class="mystickymenu-tab-stickymenu contactus-tab-option-wrap msmenu-blockbox">
250 <div class="contactus-tab-option msm-bgbox">
251 <div class="contactus-tab-option-left">
252 <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path opacity="0.3" d="M12 1L9 9L1 12L9 15L12 23L15 15L23 12L15 9L12 1Z" fill="black"/></svg>
253 <?php esc_html_e('Explore amazing products from the premio team and supercharge your wordpress website!', 'mystickymenu')?>
254 <a class="copyicon1" href="https://premio.io/" target="_blank"><span class="dashicons dashicons-external"></span><?php esc_html_e('Visit website', 'mystickymenu');?></a>
255 </div>
256 <div class="contactus-tab-option-right">
257 <div class="contactus-contents-buttons">
258 <span class="folous"><?php esc_html_e('Follow Us', 'mystickymenu');?> </span>
259 <a href="https://www.facebook.com/groups/premioplugins/" class="facebook-link copyicon" target="_blank">
260 <span class="dashicons dashicons-facebook-alt"></span>
261 </a>
262 <a href="https://twitter.com/premioplugins" class="tweeter-link copyicon" target="_blank">
263 <span class="dashicons dashicons-twitter"></span>
264 </a>
265 </div>
266 </div>
267 </div>
268 </div>
269 </div>
270 <!-- 00000 END -->
271
272 <div class="mystickymenu-action-popup new-center" id="stickymenu_status_popupbox" style="display:none;">
273 <div class="mystickymenu-action-popup-header">
274 <h3><?php esc_html_e("Are you sure?","mystickymenu"); ?></h3>
275 <span class="dashicons dashicons-no-alt close-button" data-from = "stickymenu-status"></span>
276 </div>
277 <div class="mystickymenu-action-popup-body">
278 <p><?php esc_html_e("You’re about to turn off the sticky menu feature. Are you sure about that?","mystickymenu"); ?></p>
279 </div>
280 <div class="mystickymenu-action-popup-footer">
281 <button type="button" class="btn-enable btn-nevermind-status" id="stickymenu_status_nevermind" ><?php esc_html_e("Nevermind","mystickymenu"); ?></button>
282 <button type="button" class="btn-disable-cancel" id="stickymenu_status_turnoff" ><?php esc_html_e("Turn off","mystickymenu"); ?></button>
283 </div>
284 </div>
285 <div class="mystickymenupopup-overlay" id="stickymenuconfig-overlay-popup"></div>
286 </div>
287 </div>