PluginProbe ʕ •ᴥ•ʔ
My Sticky Bar – Floating Notification Bar & Sticky Header (formerly myStickymenu) / 2.6
My Sticky Bar – Floating Notification Bar & Sticky Header (formerly myStickymenu) v2.6
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 / stickymenu-dashboard.php
mystickymenu Last commit date
css 3 years ago fonts 4 years ago images 3 years ago js 3 years ago languages 4 years ago class-review-box.php 4 years ago class-upgrade-box.php 4 years ago help.php 3 years ago index.php 8 years ago mystickymenu-affiliate.php 4 years ago mystickymenu-contact-leads.php 3 years ago mystickymenu-deactivate-form.php 4 years ago mystickymenu-fonts.php 4 years ago mystickymenu-popup.php 4 years ago mystickymenu.php 3 years ago mystickymeny-new-welcomebar.php 4 years ago readme.txt 3 years ago recommended-plugins.php 4 years ago stickymenu-dashboard.php 3 years ago uninstall.php 4 years ago update.php 4 years ago upgrade-to-pro.php 3 years ago welcome-bar.php 3 years ago
stickymenu-dashboard.php
265 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 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 Welcome 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( 'Welcome 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 welcome 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('Welcome 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 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 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 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 welcome? You will lose the welcomer 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 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 welcome 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 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 Welcome Bar','mystickymenu');?></a>
113 </div>
114 <div class="mystickymenu-features">
115 <div class="mystickymenu-feature-title">
116 <img src="<?php echo 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 welcome 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 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>".$val->contact_name." </td>";
158 echo "<td>".$val->contact_email." </td>";
159 echo "<td>".$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="'. MYSTICKYMENU_URL .'images/empty_lead.png" />'; ?>
169 <p><?php _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>Contact Us</h3>
180
181 <div class="contactus-contents-buttons"><span class="folous">Follow Us </span> <a href="https://www.facebook.com/groups/premioplugins/" class="facebook-link copyicon" target="_blank"><span class="dashicons dashicons-facebook-alt"></span></a>
182 <a href="https://twitter.com/premioplugins" class="tweeter-link copyicon" target="_blank"><span class="dashicons dashicons-twitter"></span></a>
183 </div>
184 </div>
185
186 <div class="premio-footer-option">
187 <h3><img src="<?php echo MYSTICKYMENU_URL . "images/Premio.svg"; ?>" /></h3>
188 <div class="premio-content-list">
189 <h4>There are a lot of stuff waiting for you 🎉</h4>
190 <span>Be among the first to know about our latest features & what we're working on. Plus insider offers & flash sales</span>
191 </div>
192 <label><a class="copyicon1" href="https://premio.io/" target="_blank"><span class="dashicons dashicons-external"></span>Visit website</a></label>
193 </div>
194
195 </div>
196 <!-- -->
197
198 </div>
199
200 <!--Main 2nd -->
201
202 <div class="msmenu-blockbox msmenu-box50">
203 <!-- 1 -->
204 <div class="stickymenu-tab-option msm-bgbox">
205 <div class="stickymenubox-title-section"><h3><?php esc_html_e("Sticky menu","mystickymenu");?></h3></div>
206 <dklllllllllllkiv class="stickymenu-settings">
207 <div class="settings-content">
208 <?php
209 if(isset($mysticky_options['stickymenu_enable']) && $mysticky_options['stickymenu_enable'] == 1){
210 echo '<p>Sticky menu is currently turned on.</p>';
211 }else{
212 echo '<p>Sticky menu is not currently configured. Configure to enable.</p>';
213 }
214 ?>
215 </div>
216 <div class="stickymenu-box-button settings-buttons">
217 <?php if(isset($mysticky_options['stickymenu_enable']) && $mysticky_options['stickymenu_enable'] == 1):
218 ?>
219 <a href="<?php echo 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>
220 <a href="javascript:void(0);" id="btn-config-disable" style="color:#d3465c;border-color:#efbcc4;"><?php esc_html_e("Disable","mystickymenu"); ?></a>
221 <?php else : ?>
222 <a href="<?php echo admin_url("admin.php?page=my-stickymenu-settings");?>"><?php esc_html_e("Configure","mystickymenu"); ?></a>
223 <?php endif; ?>
224 </div>
225 </dklllllllllllkiv>
226 </div>
227 <!-- 2 -->
228 <div class="mystickymenu-tab-documentation msm-bgbox">
229 <h3>Documentation</h3>
230 <div class="stickymenu-box-container">
231 <ul class="documents-wrap-list">
232 <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 Menu?','mystickymenu');?></a></li>
233 <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>
234 <li><a href="https://premio.io/help/mystickymenu/how-to-create-a-welcome-bar/" target="_blank"><?php esc_html_e('How to create a welcome bar','mystickymenu');?></a></li>
235 <!-- <li><a href="https://premio.io/help/mystickymenu/how-to-launch-a-poptin-popup-from-your-welcome-bar/" target="_blank"><?php esc_html_e('How to launch a Poptin popup from your welcome bar','mystickymenu');?></a></li>
236 <li><a href="https://premio.io/help/mystickymenu/how-to-create-a-separate-welcome-bar-for-different-pages/" target="_blank"><?php esc_html_e('How to create a separate welcome bar for different pages','mystickymenu');?></a></li> -->
237 </ul>
238 </div>
239 <div class="stickymenu-box-button">
240 <span><?php esc_html_e("Need more help? Visit our ","mystickymenu");?></span><a href="https://premio.io/help/mystickymenu/?utm_source=msmhelp" target="_blank"><?php esc_html_e("Help Center","mystickymenu"); ?></a>
241 </div>
242 </div>
243
244 </div>
245
246 </div>
247
248 <!-- 00000 END -->
249
250 <div class="mystickymenu-action-popup new-center" id="stickymenu_status_popupbox" style="display:none;">
251 <div class="mystickymenu-action-popup-header">
252 <h3><?php esc_html_e("Are you sure?","mystickymenu"); ?></h3>
253 <span class="dashicons dashicons-no-alt close-button" data-from = "stickymenu-status"></span>
254 </div>
255 <div class="mystickymenu-action-popup-body">
256 <p><?php esc_html_e("You’re about to turn off the sticky menu feature. Are you sure about that?","mystickymenu"); ?></p>
257 </div>
258 <div class="mystickymenu-action-popup-footer">
259 <button type="button" class="btn-enable btn-nevermind-status" id="stickymenu_status_nevermind" ><?php esc_html_e("Nevermind","mystickymenu"); ?></button>
260 <button type="button" class="btn-disable-cancel" id="stickymenu_status_turnoff" ><?php esc_html_e("Turn off","mystickymenu"); ?></button>
261 </div>
262 </div>
263 <div class="mystickymenupopup-overlay" id="stickymenuconfig-overlay-popup"></div>
264 </div>
265 </div>