mystickymenu
Last commit date
css
4 years ago
fonts
4 years ago
images
4 years ago
js
4 years ago
languages
5 years ago
class-review-box.php
4 years ago
class-upgrade-box.php
4 years ago
index.php
8 years ago
mystickymenu-affiliate.php
4 years ago
mystickymenu-deactivate-form.php
5 years ago
mystickymenu-fonts.php
4 years ago
mystickymenu-popup.php
5 years ago
mystickymenu.php
4 years ago
mystickymeny-new-welcomebar.php
4 years ago
readme.txt
4 years ago
recommended-plugins.php
4 years ago
stickymenu-dashboard.php
4 years ago
uninstall.php
5 years ago
update.php
4 years ago
upgrade-to-pro.php
4 years ago
welcome-bar.php
4 years ago
stickymenu-dashboard.php
251 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 | <h1></h1> |
| 12 | <!-- Updated design --> |
| 13 | <div class="wrap mystickymenu-wrap"> |
| 14 | <div class="mystickymenu-dashboard"> |
| 15 | <?php if(isset($stickymenus_widgets) && !empty($stickymenus_widgets)) : ?> |
| 16 | |
| 17 | |
| 18 | <div class="mystickymenu-dashboard welcomebars-list-table"> |
| 19 | |
| 20 | <div class="mystickymenu-dashboard header-section"> |
| 21 | <div class="mystickymenu-dashboard heading-title"><h3><?php esc_html_e( 'Dashboard', 'mystickymenu');?></h3></div> |
| 22 | <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> <?php echo esc_html_e('Add a New Welcome Bar','mystickymenu');?></a></div> |
| 23 | </div> |
| 24 | |
| 25 | <table class="mystickymenu-widgets-lists"> |
| 26 | <thead> |
| 27 | <tr> |
| 28 | <th style="text-align: left;padding: 0 0 0 20px !important;"><?php esc_html_e( 'Status', 'mystickymenu');?></th> |
| 29 | <th style="width:66%;text-align: left;padding: 0 0 0 30px !important;"><?php esc_html_e( 'Welcome bars', 'mystickymenu');?></th> |
| 30 | <th><?php esc_html_e( 'Quick Action', 'mystickymenu');?></th> |
| 31 | </tr> |
| 32 | </thead> |
| 33 | <tbody> |
| 34 | <?php if(isset($stickymenus_widgets) && !empty($stickymenus_widgets)) : ?> |
| 35 | <tr id="stickymenu-widget-0"> |
| 36 | <td style="text-align: left;padding: 0 0 0 20px !important;"> |
| 37 | <label class="mysticky-welcomebar-switch welcombar-status-switch"> |
| 38 | <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 ); ?> /> |
| 39 | <span class="slider round"></span> |
| 40 | </label> |
| 41 | <div class="mystickymenu-action-popup welcombar-enabled-status" id="widget-status-dialog-0" style="display:none;"> |
| 42 | <div class="mystickymenu-action-popup-header"> |
| 43 | <h3><?php esc_html_e('Are you sure?','mystickymenu');?></h3> |
| 44 | <span class="dashicons dashicons-no-alt close-button" data-from = "welcome-bar-status"data-id="0"></span> |
| 45 | </div> |
| 46 | <div class="mystickymenu-action-popup-body"> |
| 47 | <p><?php esc_html_e("You're about to turn off the welcome bar. Are you sure about that?",'mystickymenu');?></p> |
| 48 | </div> |
| 49 | <div class="mystickymenu-action-popup-footer"> |
| 50 | <button type="button" class="btn-enable btn-nevermind-status" data-id="0"><?php esc_html_e('Nevermind','mystickymenu');?></button> |
| 51 | <button type="button" class="btn-disable-cancel btn-turnoff-status" data-id="0"><?php esc_html_e('Turn off','mystickymenu');?></button> |
| 52 | </div> |
| 53 | </div> |
| 54 | <div class="mystickymenupopup-overlay" id="mystickymenu-status-popup-overlay-0" data-id="0" data-from="welcomebar-status" data-fromoverlay="welcombar_status"></div> |
| 55 | </td> |
| 56 | <td style="text-align: left;padding: 0 0 0 30px !important;"><?php echo esc_html_e('Welcome Bar #0','mystickymenu'); ?></td> |
| 57 | <td> |
| 58 | <div class="tooltip"> |
| 59 | <span class="tooltiptext"><?php esc_html_e('Edit','mystickymenu');?></span> |
| 60 | <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> |
| 61 | </div> |
| 62 | <div class="tooltip"> |
| 63 | <span class="tooltiptext"><?php esc_html_e('Duplicate','mystickymenu');?></span> |
| 64 | <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> |
| 65 | </div> |
| 66 | |
| 67 | <div class="tooltip"> |
| 68 | <span class="tooltiptext"><?php esc_html_e('Delete','mystickymenu');?></span> |
| 69 | <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> |
| 70 | </div> |
| 71 | |
| 72 | |
| 73 | <div class="mystickymenu-action-popup" id="widget-delete-dialog-0" style="display:none;"> |
| 74 | <div class="mystickymenu-action-popup-header"> |
| 75 | <h3><?php esc_html_e('Are you sure?','mystickymenu');?></h3> |
| 76 | <span class="dashicons dashicons-no-alt close-button" data-from = "welcome-bar-delete"data-id="0"></span> |
| 77 | </div> |
| 78 | <div class="mystickymenu-action-popup-body"> |
| 79 | <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> |
| 80 | </div> |
| 81 | <div class="mystickymenu-action-popup-footer"> |
| 82 | <button type="button" class="btn-enable btn-delete-cancel" data-id="0"><?php esc_html_e('Nevermind','mystickymenu');?></button> |
| 83 | <button type="button" class="btn-disable-cancel btn-delete" data-id="0"><?php esc_html_e('Delete','mystickymenu');?></button> |
| 84 | </div> |
| 85 | </div> |
| 86 | <div class="mystickymenupopup-overlay" id="mystickymenu-delete-popup-overlay-0" data-id="0" data-fromoverlay="welcombar_delete"></div> |
| 87 | </td> |
| 88 | </tr> |
| 89 | <?php endif; ?> |
| 90 | </tbody> |
| 91 | </table> |
| 92 | </div> |
| 93 | <?php else:?> |
| 94 | |
| 95 | <div class="mystickymenu-dashboard new-welcomebar-section-wrap"> |
| 96 | <div class="mystickymenu-welcome-img"> |
| 97 | <img src="<?php echo MYSTICKYMENU_URL; ?>/images/firstwelcombar.svg" /> |
| 98 | </div> |
| 99 | <div class="mystickymenu-newwelcomebar-contents"> |
| 100 | <h2><?php esc_html_e("Welcome 🎉","mystickymenu");?></h2> |
| 101 | <p><?php esc_html_e("You're one step away from creating a welcome bar.","mystickymenu")?> </p> |
| 102 | <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> |
| 103 | <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> <?php echo esc_html_e('Add a New Welcome Bar','mystickymenu');?></a> |
| 104 | </div> |
| 105 | <div class="mystickymenu-features"> |
| 106 | <div class="mystickymenu-feature-title"> |
| 107 | <img src="<?php echo MYSTICKYMENU_URL; ?>/images/crown.svg" alt="My Happy SVG" /> |
| 108 | <?php esc_html_e("Features","mystickymenu");?></div> |
| 109 | <div class="mystickymenu-features-list"> |
| 110 | <ul class="documents-wrap-list"> |
| 111 | <li><?php esc_html_e("Create new welcome bars with unique customization","mystickymenu");?></li> |
| 112 | <li><?php esc_html_e("Make your WordPress navigation menu sticky","mystickymenu");?></li> |
| 113 | <li><?php esc_html_e("Explore more triggers & targeting options","mystickymenu");?></li> |
| 114 | </ul> |
| 115 | </div> |
| 116 | </div> |
| 117 | </div> |
| 118 | <?php endif; ?> |
| 119 | <div class="mystickymenu-tab-boxs-wrap"> |
| 120 | <div class="mystickymenu-tab-stickymenu"> |
| 121 | |
| 122 | |
| 123 | |
| 124 | |
| 125 | |
| 126 | <div class="stickymenu-tab-option msm-bgbox"> |
| 127 | <div class="stickymenubox-title-section"><h3><?php esc_html_e("Sticky menu","mystickymenu");?></h3></div> |
| 128 | <div class="stickymenu-settings"> |
| 129 | <div class="settings-content"> |
| 130 | <?php |
| 131 | if(isset($mysticky_options['stickymenu_enable']) && $mysticky_options['stickymenu_enable'] == 1){ |
| 132 | echo '<p>Sticky menu is currently turned on.</p>'; |
| 133 | }else{ |
| 134 | echo '<p>Sticky menu is not currently configured. Configure to enable.</p>'; |
| 135 | } |
| 136 | ?> |
| 137 | </div> |
| 138 | |
| 139 | <div class="stickymenu-box-button settings-buttons"> |
| 140 | <?php if(isset($mysticky_options['stickymenu_enable']) && $mysticky_options['stickymenu_enable'] == 1): |
| 141 | ?> |
| 142 | <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> |
| 143 | <a href="javascript:void(0);" id="btn-config-disable" style="color:#d3465c;border-color:#efbcc4;"><?php esc_html_e("Disable","mystickymenu"); ?></a> |
| 144 | <?php else : ?> |
| 145 | <a href="<?php echo admin_url("admin.php?page=my-stickymenu-settings");?>"><?php esc_html_e("Configure","mystickymenu"); ?></a> |
| 146 | <?php endif; ?> |
| 147 | </div> |
| 148 | |
| 149 | </div> |
| 150 | </div> |
| 151 | |
| 152 | |
| 153 | |
| 154 | |
| 155 | <!-- <div class="contactus-tab-option msm-bgbox"> |
| 156 | <div class="contactus-title"> |
| 157 | <h3>Contact Us</h3> |
| 158 | |
| 159 | <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> |
| 160 | <a href="https://twitter.com/premioplugins" class="tweeter-link copyicon" target="_blank"><span class="dashicons dashicons-twitter"></span></a> |
| 161 | </div> |
| 162 | |
| 163 | </div> |
| 164 | <div class="premio-footer-option"> |
| 165 | <h3> |
| 166 | <img src="<?php echo MYSTICKYMENU_URL . "images/Premio.svg"; ?>" /> |
| 167 | </h3> |
| 168 | <div class="premio-content-list"> |
| 169 | <h4>There are a lot of stuff waiting for you 🎉</h4> |
| 170 | <span>Be among the first to know about our latest features & what we're working on. Plus insider offers & flash sales</span> |
| 171 | </div> |
| 172 | <label><a class="copyicon1" href="https://premio.io/" target="_blank"><span class="dashicons dashicons-external"></span>Visit website</a></label> |
| 173 | </div> |
| 174 | |
| 175 | </div> --> |
| 176 | |
| 177 | |
| 178 | |
| 179 | |
| 180 | </div> |
| 181 | |
| 182 | <!-- Documantation --> |
| 183 | |
| 184 | <div class="mystickymenu-new302box"> |
| 185 | |
| 186 | <div class="contactus-tab-option msm-bgbox"> |
| 187 | <div class="contactus-title"> |
| 188 | <h3>Contact Us</h3> |
| 189 | |
| 190 | <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> |
| 191 | <a href="https://twitter.com/premioplugins" class="tweeter-link copyicon" target="_blank"><span class="dashicons dashicons-twitter"></span></a> |
| 192 | </div> |
| 193 | |
| 194 | </div> |
| 195 | <div class="premio-footer-option"> |
| 196 | <h3> |
| 197 | <img src="<?php echo MYSTICKYMENU_URL . "images/Premio.svg"; ?>" /> |
| 198 | </h3> |
| 199 | <div class="premio-content-list"> |
| 200 | <h4>There are a lot of stuff waiting for you 🎉</h4> |
| 201 | <span>Be among the first to know about our latest features & what we're working on. Plus insider offers & flash sales</span> |
| 202 | </div> |
| 203 | <label><a class="copyicon1" href="https://premio.io/" target="_blank"><span class="dashicons dashicons-external"></span>Visit website</a></label> |
| 204 | </div> |
| 205 | |
| 206 | </div> |
| 207 | |
| 208 | |
| 209 | |
| 210 | |
| 211 | <div class="mystickymenu-tab-documentation msm-bgbox"> |
| 212 | <h3><?php esc_html_e("Documentation","mystickymenu"); ?></h3> |
| 213 | <div class="stickymenu-box-container"> |
| 214 | <ul class="documents-wrap-list"> |
| 215 | <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> |
| 216 | <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> |
| 217 | <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> |
| 218 | <!-- <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> |
| 219 | <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> --> |
| 220 | </ul> |
| 221 | </div> |
| 222 | <div class="stickymenu-box-button"> |
| 223 | <span><?php esc_html_e("Need more help? Visit our ","mystickymenu");?></span> |
| 224 | <a href="https://premio.io/help/mystickymenu/?utm_source=msmhelp" target="_blank"><?php esc_html_e("Help Center","mystickymenu"); ?></a> |
| 225 | </div> |
| 226 | </div> |
| 227 | |
| 228 | |
| 229 | </div> |
| 230 | |
| 231 | |
| 232 | </div> |
| 233 | |
| 234 | |
| 235 | |
| 236 | <div class="mystickymenu-action-popup new-center" id="stickymenu_status_popupbox" style="display:none;"> |
| 237 | <div class="mystickymenu-action-popup-header"> |
| 238 | <h3><?php esc_html_e("Are you sure?","mystickymenu"); ?></h3> |
| 239 | <span class="dashicons dashicons-no-alt close-button" data-from = "stickymenu-status"></span> |
| 240 | </div> |
| 241 | <div class="mystickymenu-action-popup-body"> |
| 242 | <p><?php esc_html_e("You’re about to turn off the sticky menu feature. Are you sure about that?","mystickymenu"); ?></p> |
| 243 | </div> |
| 244 | <div class="mystickymenu-action-popup-footer"> |
| 245 | <button type="button" class="btn-enable btn-nevermind-status" id="stickymenu_status_nevermind" ><?php esc_html_e("Nevermind","mystickymenu"); ?></button> |
| 246 | <button type="button" class="btn-disable-cancel" id="stickymenu_status_turnoff" ><?php esc_html_e("Turn off","mystickymenu"); ?></button> |
| 247 | </div> |
| 248 | </div> |
| 249 | <div class="mystickymenupopup-overlay" id="stickymenuconfig-overlay-popup"></div> |
| 250 | </div> |
| 251 | </div> |