bar-preview.php
1 week ago
bar-settings.php
1 week ago
customize-bar.php
1 week ago
display-rules.php
1 week ago
email-signup.php
7 months ago
help.php
1 month ago
poptin-plugin.php
7 months ago
poptin-popup.php
7 months ago
sticky-header-settings.php
1 week ago
stickymenu-dashboard.php
1 week ago
stickymenu-dashboard.php
332 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 | <!-- Updated design --> |
| 22 | <div class="wrap mystickymenu-wrap"> |
| 23 | <div class="mystickymenu-dashboard flex flex-col gap-7"> |
| 24 | <?php if(isset($stickymenus_widgets) && !empty($stickymenus_widgets)) : ?> |
| 25 | <div class="welcomebars-list-table"> |
| 26 | <div class="header-section"> |
| 27 | <div class="heading-title"> |
| 28 | <h3> |
| 29 | <?php esc_html_e( 'Dashboard', 'mystickymenu');?> |
| 30 | </h3> |
| 31 | </div> |
| 32 | <div class="mystickymenu-widgets-btn-wrap"> |
| 33 | <a href="<?php echo esc_url(admin_url('admin.php?page=my-stickymenu-new-welcomebar'))?>" class="add_new_welcombar msb-primary-button"> |
| 34 | <span class="dashicons dashicons-insert" style="font-size:18px;color:#fff;"></span> |
| 35 | <?php echo esc_html_e('Add a New Bar','mystickymenu');?> |
| 36 | </a> |
| 37 | </div> |
| 38 | </div> |
| 39 | |
| 40 | <table class="dashboard-table msb-table"> |
| 41 | <thead> |
| 42 | <tr> |
| 43 | <th class="text-center"><?php esc_html_e( 'Status', 'mystickymenu');?></th> |
| 44 | <th class="text-left"><?php esc_html_e( 'Bars', 'mystickymenu');?></th> |
| 45 | <th class="text-center"><?php esc_html_e( 'Quick Action', 'mystickymenu');?></th> |
| 46 | </tr> |
| 47 | </thead> |
| 48 | <tbody> |
| 49 | <?php if(isset($stickymenus_widgets) && !empty($stickymenus_widgets)) : ?> |
| 50 | <tr id="stickymenu-widget-0"> |
| 51 | <td class="text-center w-20"> |
| 52 | <label class="mysticky-welcomebar-switch welcombar-status-switch"> |
| 53 | <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 ); ?> /> |
| 54 | <span class="slider round"></span> |
| 55 | </label> |
| 56 | <div class="mystickymenu-action-popup welcombar-enabled-status" id="widget-status-dialog-0" style="display:none;"> |
| 57 | <div class="mystickymenu-action-popup-header"> |
| 58 | <h3><?php esc_html_e('Are you sure?','mystickymenu');?></h3> |
| 59 | <span class="dashicons dashicons-no-alt close-button" data-from = "welcome-bar-status"data-id="0"></span> |
| 60 | </div> |
| 61 | <div class="mystickymenu-action-popup-body"> |
| 62 | <p><?php esc_html_e("You're about to turn off the bar. Are you sure about that?",'mystickymenu');?></p> |
| 63 | </div> |
| 64 | <div class="mystickymenu-action-popup-footer"> |
| 65 | <button type="button" class="btn-enable btn-nevermind-status" data-id="0"><?php esc_html_e('Nevermind','mystickymenu');?></button> |
| 66 | <button type="button" class="btn-disable-cancel btn-turnoff-status" data-id="0"><?php esc_html_e('Turn off','mystickymenu');?></button> |
| 67 | </div> |
| 68 | </div> |
| 69 | <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> |
| 70 | </td> |
| 71 | <td class="text-left"><?php echo esc_html_e('Bar #0','mystickymenu'); ?></td> |
| 72 | <td class="text-center w-40 action-col"> |
| 73 | <div class="tooltip"> |
| 74 | <span class="tooltiptext"><?php esc_html_e('Edit','mystickymenu');?></span> |
| 75 | <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> |
| 76 | </div> |
| 77 | <div class="tooltip"> |
| 78 | <span class="tooltiptext"><?php esc_html_e('Duplicate','mystickymenu');?></span> |
| 79 | <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> |
| 80 | </div> |
| 81 | |
| 82 | <div class="tooltip"> |
| 83 | <span class="tooltiptext"><?php esc_html_e('Delete','mystickymenu');?></span> |
| 84 | <a href="#" 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> |
| 85 | </div> |
| 86 | |
| 87 | |
| 88 | <div class="mystickymenu-action-popup" id="widget-delete-dialog-0" style="display:none;"> |
| 89 | <div class="mystickymenu-action-popup-header"> |
| 90 | <h3><?php esc_html_e('Are you sure?','mystickymenu');?></h3> |
| 91 | <span class="dashicons dashicons-no-alt close-button" data-from = "welcome-bar-delete"data-id="0"></span> |
| 92 | </div> |
| 93 | <div class="mystickymenu-action-popup-body"> |
| 94 | <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> |
| 95 | </div> |
| 96 | <div class="mystickymenu-action-popup-footer"> |
| 97 | <button type="button" class="btn-enable btn-delete-cancel" data-id="0"><?php esc_html_e('Nevermind','mystickymenu');?></button> |
| 98 | <button type="button" class="btn-disable-cancel btn-delete" data-id="0"><?php esc_html_e('Delete','mystickymenu');?></button> |
| 99 | </div> |
| 100 | </div> |
| 101 | <div class="mystickymenupopup-overlay" id="mystickymenu-delete-popup-overlay-0" data-id="0" data-fromoverlay="welcombar_delete"></div> |
| 102 | </td> |
| 103 | </tr> |
| 104 | <?php endif; ?> |
| 105 | </tbody> |
| 106 | </table> |
| 107 | </div> |
| 108 | <?php else:?> |
| 109 | |
| 110 | <div class="mystickymenu-dashboard new-welcomebar-section-wrap"> |
| 111 | <div class="mystickymenu-welcome-img"> |
| 112 | <img src="<?php echo esc_url(MYSTICKYMENU_URL); ?>/images/firstwelcombar.svg" /> |
| 113 | </div> |
| 114 | <div class="mystickymenu-newwelcomebar-contents"> |
| 115 | <h2><?php esc_html_e("Welcome 🎉","mystickymenu");?></h2> |
| 116 | <p><?php esc_html_e("You're one step away from creating a bar.","mystickymenu")?> </p> |
| 117 | <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> |
| 118 | <a href="<?php echo esc_url(admin_url('admin.php?page=my-stickymenu-new-welcomebar'));?>" class="add_new_welcombar msb-primary-button py-2! px-6! mt-4!"> |
| 119 | <?php echo esc_html_e('Add a New Bar','mystickymenu');?> |
| 120 | <span class="dashicons dashicons-arrow-right-alt text-white text-base"></span> |
| 121 | </a> |
| 122 | </div> |
| 123 | <div class="mystickymenu-features"> |
| 124 | <div class="mystickymenu-feature-title"> |
| 125 | <img src="<?php echo esc_url(MYSTICKYMENU_URL); ?>/images/crown.svg" alt="My Happy SVG" /> |
| 126 | <?php esc_html_e("Features","mystickymenu");?></div> |
| 127 | <div class="mystickymenu-features-list"> |
| 128 | <ul class="documents-wrap-list"> |
| 129 | <li><?php esc_html_e("Create new bars with unique customization","mystickymenu");?></li> |
| 130 | <li><?php esc_html_e("Make your WordPress navigation menu sticky","mystickymenu");?></li> |
| 131 | <li><?php esc_html_e("Explore more triggers & targeting options","mystickymenu");?></li> |
| 132 | </ul> |
| 133 | </div> |
| 134 | </div> |
| 135 | </div> |
| 136 | <?php endif; ?> |
| 137 | <!-- /**/ */ --> |
| 138 | |
| 139 | <div class="mystickymenu-tab-boxs-wrap flex flex-col md:flex-row gap-5"> |
| 140 | |
| 141 | <!--Main 1st --> |
| 142 | |
| 143 | <div class="mystickymenu-tab-stickymenu msmenu-blockbox flex-1 flex flex-col gap-5"> |
| 144 | <?php $result = getRecentContactLead(); ?> |
| 145 | |
| 146 | <!-- 1 --> |
| 147 | <div class="contact-recent-lead msm-bgbox"> |
| 148 | <div class="stickymenubox-title-section"> |
| 149 | <h3><?php esc_html_e("Recent Leads","mystickymenu");?></h3> |
| 150 | <?php if(isset($result) && count($result) > 0) : ?> |
| 151 | <a class="msb-secondary-button" href="<?php echo esc_url(admin_url('admin.php?page=my-sticky-menu-leads'));?>"><?php echo esc_html_e('View All','mystickymenu');?></a> |
| 152 | <?php endif; ?> |
| 153 | </div> |
| 154 | <?php |
| 155 | if( isset($result) && count($result) > 0 ){?> |
| 156 | <div class="stickymenu recent-lead-table"> |
| 157 | <table> |
| 158 | <tr> |
| 159 | <th><?php esc_html_e('Name','mystickymenu');?></th> |
| 160 | <th><?php esc_html_e('Email','mystickymenu');?></th> |
| 161 | <th><?php esc_html_e('Phone','mystickymenu');?></th> |
| 162 | </tr> |
| 163 | <?php |
| 164 | foreach( $result as $key => $val ){ |
| 165 | echo "<tr>"; |
| 166 | echo "<td>". esc_html($val->contact_name) ." </td>"; |
| 167 | echo "<td>". esc_html($val->contact_email) ." </td>"; |
| 168 | echo "<td>". esc_html($val->contact_phone) ." </td>"; |
| 169 | echo "</tr>"; |
| 170 | } |
| 171 | ?> |
| 172 | </table> |
| 173 | </div> |
| 174 | <?php |
| 175 | }else{?> |
| 176 | <div class="stickymenu-no-lead text-center"> |
| 177 | <?php echo '<img src="'. esc_url(MYSTICKYMENU_URL) .'images/empty_lead.png" class="mx-auto" />'; ?> |
| 178 | <p><?php esc_html_e("Once you get a new lead, it’ll appear here","mystickymenu");?></p> |
| 179 | </div> |
| 180 | <?php |
| 181 | } |
| 182 | ?> |
| 183 | |
| 184 | </div> |
| 185 | <!-- 2 --> |
| 186 | <div class="contactus-tab-option msm-bgbox"> |
| 187 | <div class="stickymenubox-title-section"> |
| 188 | <h3><?php esc_html_e('Create Popups That Convert', 'mystickymenu'); ?></h3> |
| 189 | </div> |
| 190 | <div class="premio-footer-option flex-col sm:flex-row sm:items-center gap-5"> |
| 191 | <h3> |
| 192 | <img src="<?php echo esc_url(MYSTICKYMENU_URL . "images/poptin-popups.png"); ?>" /> |
| 193 | </h3> |
| 194 | <div class="flex flex-col sm:flex-row sm:items-center gap-4"> |
| 195 | <div class="premio-content-list text-center w-full sm:text-left"> |
| 196 | <span><?php esc_html_e("Engaging popups and forms for your website. Build in minutes.", "mystickymenu"); ?></span> |
| 197 | </div> |
| 198 | <?php |
| 199 | if( class_exists( 'POPTIN_Plugin_Base' ) ) { |
| 200 | $poptin_url = admin_url('admin.php?page=poptin'); |
| 201 | } else { |
| 202 | $poptin_url = admin_url('admin.php?page=install-poptin-plugin'); |
| 203 | } |
| 204 | ?> |
| 205 | <div class="text-center"> |
| 206 | <a class="msb-secondary-button " href="<?php echo esc_url( $poptin_url );?>" target="_blank"> |
| 207 | <?php |
| 208 | if(get_option('poptin_id', false) != false){ |
| 209 | echo esc_html_e("Manage Poptin Popups","mystickymenu"); |
| 210 | }else{ |
| 211 | echo esc_html_e("Create Your First Popup","mystickymenu"); |
| 212 | } |
| 213 | ?> |
| 214 | </a> |
| 215 | </div> |
| 216 | </div> |
| 217 | </div> |
| 218 | |
| 219 | </div> |
| 220 | <!-- --> |
| 221 | |
| 222 | </div> |
| 223 | |
| 224 | <!--Main 2nd --> |
| 225 | |
| 226 | <div class="msmenu-blockbox flex-1 flex-1 flex flex-col gap-5"> |
| 227 | <!-- 1 --> |
| 228 | <div class="stickymenu-tab-option msm-bgbox"> |
| 229 | <div class="stickymenubox-title-section"><h3><?php esc_html_e("Sticky menu","mystickymenu");?></h3></div> |
| 230 | <div class="stickymenu-settings"> |
| 231 | <div class="settings-content"> |
| 232 | <?php |
| 233 | if(isset($mysticky_options['stickymenu_enable']) && $mysticky_options['stickymenu_enable'] == 1){ |
| 234 | echo '<p>'.esc_html__('Sticky menu is currently turned on.', 'mystickymenu').'</p>'; |
| 235 | }else{ |
| 236 | echo '<p>'.esc_html__('Sticky menu is not currently configured. Configure to enable.', 'mystickymenu').'</p>'; |
| 237 | } |
| 238 | ?> |
| 239 | </div> |
| 240 | <div class="stickymenu-box-button settings-buttons"> |
| 241 | <div class="flex items-center gap-2"> |
| 242 | <?php if(isset($mysticky_options['stickymenu_enable']) && $mysticky_options['stickymenu_enable'] == 1): |
| 243 | ?> |
| 244 | <a href="<?php echo esc_url(admin_url("admin.php?page=my-stickymenu-settings"));?>" id="btn-config-settings" class="msb-primary-button py-2!"> |
| 245 | <?php esc_html_e("Settings","mystickymenu"); ?> |
| 246 | </a> |
| 247 | <a href="#" id="btn-config-disable" class="msb-secondary-button text-[#d3465c]! border-[#d3465c]! hover:bg-[#d3465c]/20!"> |
| 248 | <?php esc_html_e("Disable","mystickymenu"); ?> |
| 249 | </a> |
| 250 | <?php else : ?> |
| 251 | <a class="msb-secondary-button" href="<?php echo esc_url(admin_url("admin.php?page=my-stickymenu-settings"));?>"> |
| 252 | <?php esc_html_e("Configure","mystickymenu"); ?> |
| 253 | </a> |
| 254 | <?php endif; ?> |
| 255 | </div> |
| 256 | </div> |
| 257 | </div> |
| 258 | </div> |
| 259 | <!-- 2 --> |
| 260 | <div class="mystickymenu-tab-documentation msm-bgbox"> |
| 261 | <div class="stickymenubox-title-section"> |
| 262 | <h3><?php esc_html_e('Documentation', 'mystickymenu'); ?></h3> |
| 263 | </div> |
| 264 | <div class="stickymenu-box-container flex flex-column gap-x-px"> |
| 265 | <ul class="documents-wrap-list"> |
| 266 | <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> |
| 267 | <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> |
| 268 | <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> |
| 269 | </ul> |
| 270 | |
| 271 | <div class="flex! justify-between gap-2 items-center! stickymenu-box-button"> |
| 272 | <div class="inline-flex pr-2"> |
| 273 | <?php esc_html_e("Need more help? Visit our ","mystickymenu");?> |
| 274 | </div> |
| 275 | <a class="msb-secondary-button" href="https://premio.io/help/mystickymenu/?utm_source=msmhelp" target="_blank"> |
| 276 | <?php esc_html_e("Help Center","mystickymenu"); ?> |
| 277 | </a> |
| 278 | </div> |
| 279 | </div> |
| 280 | </div> |
| 281 | </div> |
| 282 | </div> |
| 283 | |
| 284 | <div class="mystickymenu-tab-boxs-wrap msmenu-flexbox"> |
| 285 | <div class="mystickymenu-tab-stickymenu contactus-tab-option-wrap msmenu-blockbox"> |
| 286 | <div class="contactus-tab-option msm-bgbox"> |
| 287 | <div class="inline-flex gap-1.5 items-center text-sm"> |
| 288 | <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> |
| 289 | <?php esc_html_e('Explore amazing products from the premio team and supercharge your wordpress website!', 'mystickymenu')?> |
| 290 | <a class="copyicon1 text-sm whitespace-nowrap" href="https://premio.io/" target="_blank"> |
| 291 | <?php esc_html_e('Visit website', 'mystickymenu');?> |
| 292 | <span class="inline-flex! dashicons dashicons-external"></span> |
| 293 | </a> |
| 294 | </div> |
| 295 | <div class="contactus-tab-option-right"> |
| 296 | <div class="contactus-contents-buttons whitespace-nowrap"> |
| 297 | <span class="folous text-sm!"><?php esc_html_e('Follow Us', 'mystickymenu');?> </span> |
| 298 | <div class="inline-flex gap-0.5 items-center"> |
| 299 | <a class="facebook-link copyicon inline-flex w-8 h-8" href="https://www.facebook.com/groups/premioplugins/" target="_blank"> |
| 300 | <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="100" height="100" viewBox="0 0 50 50" class="fill-[#4267B2] w-full h-full"> |
| 301 | <path d="M41,4H9C6.24,4,4,6.24,4,9v32c0,2.76,2.24,5,5,5h32c2.76,0,5-2.24,5-5V9C46,6.24,43.76,4,41,4z M37,19h-2c-2.14,0-3,0.5-3,2 v3h5l-1,5h-4v15h-5V29h-4v-5h4v-3c0-4,2-7,6-7c2.9,0,4,1,4,1V19z"></path> |
| 302 | </svg> |
| 303 | </a> |
| 304 | <a href="https://x.com/premioplugins" class="tweeter-link copyicon inline-flex w-8 h-8" target="_blank"> |
| 305 | <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="100" height="100" viewBox="0 0 50 50" class="w-full h-full"> |
| 306 | <path d="M 11 4 C 7.134 4 4 7.134 4 11 L 4 39 C 4 42.866 7.134 46 11 46 L 39 46 C 42.866 46 46 42.866 46 39 L 46 11 C 46 7.134 42.866 4 39 4 L 11 4 z M 13.085938 13 L 21.023438 13 L 26.660156 21.009766 L 33.5 13 L 36 13 L 27.789062 22.613281 L 37.914062 37 L 29.978516 37 L 23.4375 27.707031 L 15.5 37 L 13 37 L 22.308594 26.103516 L 13.085938 13 z M 16.914062 15 L 31.021484 35 L 34.085938 35 L 19.978516 15 L 16.914062 15 z"></path> |
| 307 | </svg> |
| 308 | </a> |
| 309 | </div> |
| 310 | </div> |
| 311 | </div> |
| 312 | </div> |
| 313 | </div> |
| 314 | </div> |
| 315 | <!-- 00000 END --> |
| 316 | </div> |
| 317 | |
| 318 | <div class="mystickymenu-action-popup new-center" id="stickymenu_status_popupbox" style="display:none;"> |
| 319 | <div class="mystickymenu-action-popup-header"> |
| 320 | <h3><?php esc_html_e("Are you sure?","mystickymenu"); ?></h3> |
| 321 | <span class="dashicons dashicons-no-alt close-button" data-from = "stickymenu-status"></span> |
| 322 | </div> |
| 323 | <div class="mystickymenu-action-popup-body"> |
| 324 | <p><?php esc_html_e("You’re about to turn off the sticky menu feature. Are you sure about that?","mystickymenu"); ?></p> |
| 325 | </div> |
| 326 | <div class="mystickymenu-action-popup-footer"> |
| 327 | <button type="button" class="btn-enable btn-nevermind-status" id="stickymenu_status_nevermind" ><?php esc_html_e("Nevermind","mystickymenu"); ?></button> |
| 328 | <button type="button" class="btn-disable-cancel" id="stickymenu_status_turnoff" ><?php esc_html_e("Turn off","mystickymenu"); ?></button> |
| 329 | </div> |
| 330 | </div> |
| 331 | <div class="mystickymenupopup-overlay" id="stickymenuconfig-overlay-popup"></div> |
| 332 | </div> |