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
sticky-header-settings.php
488 lines
| 1 | <?php |
| 2 | if (defined('ABSPATH') === false) { |
| 3 | exit; |
| 4 | } |
| 5 | $mysticky_options = get_option( 'mysticky_option_name'); |
| 6 | $is_old = get_option("has_sticky_header_old_version"); |
| 7 | $is_old = ($is_old == "yes")?true:false; |
| 8 | $nonce = wp_create_nonce('mysticky_option_backend_update'); |
| 9 | $pro_url = "https://go.premio.io/?edd_action=add_to_cart&download_id=2199&edd_options[price_id]="; |
| 10 | $upgarde_url = admin_url("admin.php?page=my-stickymenu-upgrade"); |
| 11 | |
| 12 | $mysticky_options['stickymenu_enable'] = isset($mysticky_options['stickymenu_enable']) ? $mysticky_options['stickymenu_enable'] : ''; |
| 13 | $mysticky_options['myfixed_disable_scroll_down'] = isset($mysticky_options['myfixed_disable_scroll_down']) ? $mysticky_options['myfixed_disable_scroll_down'] : ''; |
| 14 | $mysticky_options['disable_css'] = isset($mysticky_options['disable_css']) ? $mysticky_options['disable_css'] : ''; |
| 15 | $mysticky_options['mysticky_disable_at_front_home'] = isset($mysticky_options['mysticky_disable_at_front_home']) ? $mysticky_options['mysticky_disable_at_front_home'] : ''; |
| 16 | $mysticky_options['mysticky_disable_at_blog'] = isset($mysticky_options['mysticky_disable_at_blog']) ? $mysticky_options['mysticky_disable_at_blog'] : ''; |
| 17 | $mysticky_options['mysticky_disable_at_page'] = isset($mysticky_options['mysticky_disable_at_page']) ? $mysticky_options['mysticky_disable_at_page'] : ''; |
| 18 | $mysticky_options['mysticky_disable_at_tag'] = isset($mysticky_options['mysticky_disable_at_tag']) ? $mysticky_options['mysticky_disable_at_tag'] : ''; |
| 19 | $mysticky_options['mysticky_disable_at_category'] = isset($mysticky_options['mysticky_disable_at_category']) ? $mysticky_options['mysticky_disable_at_category'] : ''; |
| 20 | $mysticky_options['mysticky_disable_at_single'] = isset($mysticky_options['mysticky_disable_at_single']) ? $mysticky_options['mysticky_disable_at_single'] : ''; |
| 21 | $mysticky_options['mysticky_disable_at_archive'] = isset($mysticky_options['mysticky_disable_at_archive']) ? $mysticky_options['mysticky_disable_at_archive'] : ''; |
| 22 | $mysticky_options['mysticky_disable_at_search'] = isset($mysticky_options['mysticky_disable_at_search']) ? $mysticky_options['mysticky_disable_at_search'] : ''; |
| 23 | $mysticky_options['mysticky_disable_at_404'] = isset($mysticky_options['mysticky_disable_at_404']) ? $mysticky_options['mysticky_disable_at_404'] : ''; |
| 24 | ?> |
| 25 | <div id="mystickymenu" class="wrap mystickymenu msb-wrap"> |
| 26 | <div id="sticky-header-settings" class="sticky-header-content"> |
| 27 | <form class="mysticky-form" id="mystickymenuform" method="post" action="#"> |
| 28 | <div class="mystickymenu-heading"> |
| 29 | <div class="mysticky-stickymenu-header-title mystickymenu-content-section"> |
| 30 | <h3><?php esc_html_e('Sticky menu', 'mystickymenu'); ?></h3> |
| 31 | <label for="mysticky-stickymenu-form-enabled" class="mysticky-welcomebar-switch stickymenu-switch"> |
| 32 | <input type="checkbox" id="mysticky-stickymenu-form-enabled" name="mysticky_option_name[stickymenu_enable]" value="1" <?php checked( @$mysticky_options['stickymenu_enable'], '1' );?> /> |
| 33 | <span class="slider"></span> |
| 34 | </label> |
| 35 | <div class="mysticky-stickymenu-backword-page"> |
| 36 | <a href="<?php echo esc_url(admin_url("admin.php?page=my-stickymenu-welcomebar"));?>"><span class="dashicons dashicons-arrow-left-alt2 back-dashboard" style="color: unset;font-size: 17px;"></span> <?php esc_html_e('Back to Dashboard', 'mystickymenu'); ?></a> |
| 37 | </div> |
| 38 | </div> |
| 39 | <div class="myStickymenu-header-title"> |
| 40 | <h3><?php esc_html_e('How To Make a Sticky Header', 'mystickymenu'); ?></h3> |
| 41 | </div> |
| 42 | <p><?php esc_html_e("Add sticky menu / header to any theme. <br />Simply change 'Sticky Class' to HTML element class desired to be sticky (div id can be used as well).", 'mystickymenu'); ?></p> |
| 43 | </div> |
| 44 | <div class="mystickymenu-content-section sticky-class-sec p-5"> |
| 45 | <div class="flex flex-col md:flex-row gap-5 w-full md:items-center"> |
| 46 | <div class="msb-form-field-wrap flex-1/2"> |
| 47 | <?php |
| 48 | $nav_menus = wp_get_nav_menus(); |
| 49 | $menu_locations = get_nav_menu_locations(); |
| 50 | $locations = get_registered_nav_menus(); |
| 51 | ?> |
| 52 | <div class="msb-form-label"> |
| 53 | <label class="mysticky_title text-base!"><?php esc_html_e("Sticky Class", 'mystickymenu')?></label> |
| 54 | </div> |
| 55 | <div class="msb-form-field"> |
| 56 | <div class="flex sm:items-center gap-2 flex flex-col sm:flex-row"> |
| 57 | <div class="flex-1/2"> |
| 58 | <select name="mysticky_option_name[mysticky_class_id_selector]" id="mystickymenu-select"> |
| 59 | <option value=""><?php esc_html_e( 'Select Sticky Menu', 'mystickymenu' ); ?></option> |
| 60 | |
| 61 | <?php foreach ( (array) $nav_menus as $_nav_menu ) : ?> |
| 62 | <option value="<?php echo esc_attr( $_nav_menu->slug ); ?>" <?php selected( $_nav_menu->slug, $mysticky_options['mysticky_class_id_selector'] ); ?>> |
| 63 | <?php |
| 64 | echo esc_html( $_nav_menu->name ); |
| 65 | |
| 66 | if ( ! empty( $menu_locations ) && in_array( $_nav_menu->term_id, $menu_locations ) ) { |
| 67 | $locations_assigned_to_this_menu = array(); |
| 68 | foreach ( array_keys( $menu_locations, $_nav_menu->term_id ) as $menu_location_key ) { |
| 69 | if ( isset( $locations[ $menu_location_key ] ) ) { |
| 70 | $locations_assigned_to_this_menu[] = $locations[ $menu_location_key ]; |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * Filters the number of locations listed per menu in the drop-down select. |
| 76 | * |
| 77 | * @since 3.6.0 |
| 78 | * |
| 79 | * @param int $locations Number of menu locations to list. Default 3. |
| 80 | */ |
| 81 | $assigned_locations = array_slice( $locations_assigned_to_this_menu, 0, absint( apply_filters( 'wp_nav_locations_listed_per_menu', 3 ) ) ); |
| 82 | |
| 83 | // Adds ellipses following the number of locations defined in $assigned_locations. |
| 84 | if ( ! empty( $assigned_locations ) ) { |
| 85 | printf( |
| 86 | ' (%1$s%2$s)', |
| 87 | implode( ', ', $assigned_locations ), |
| 88 | count( $locations_assigned_to_this_menu ) > count( $assigned_locations ) ? ' …' : '' |
| 89 | ); |
| 90 | } |
| 91 | } |
| 92 | ?> |
| 93 | </option> |
| 94 | <?php endforeach; ?> |
| 95 | <option value="custom" <?php selected( 'custom', $mysticky_options['mysticky_class_id_selector'] ); ?>><?php esc_html_e( 'Other Class Or ID', 'mystickymenu' );?></option> |
| 96 | </select> |
| 97 | </div> |
| 98 | <div class="flex-1/2"> |
| 99 | <label for="mysticky_class_selector" class="sr-only"><?php esc_html_e('Enter id or class', 'mystickymenu'); ?></label> |
| 100 | <input type="text" size="18" id="mysticky_class_selector" class="mystickyinput" name="mysticky_option_name[mysticky_class_selector]" value="<?php echo esc_attr($mysticky_options['mysticky_class_selector']);?>" /> |
| 101 | </div> |
| 102 | </div> |
| 103 | <div class="pt-1.5 flex items-center gap-1.5 text-xs"> |
| 104 | <span class="dashicons dashicons-info"></span> |
| 105 | <span class="text-xs"> |
| 106 | <?php echo sprintf(__('Need help finding your ID/Class? Install <a href="%s" target="_blank">CSS Peeper</a> to quickly get your navigation menu ID/Class. Here\'s a quick <a href="%s" target="_blank">video <span class="dashicons dashicons-controls-play"></span></a> of how you can do it.', 'mystickymenu'), 'https://chrome.google.com/webstore/detail/css-peeper/mbnbehikldjhnfehhnaidhjhoofhpehk?hl=en', 'https://www.youtube.com/watch?v=uuNqSkBPnLU');?> |
| 107 | </span> |
| 108 | </div> |
| 109 | </div> |
| 110 | </div> |
| 111 | <div class="msb-form-field-wrap flex-1/2"> |
| 112 | <div class="mysticky_device_upgrade"> |
| 113 | <label class="mysticky_title"><?php esc_html_e("Devices", 'mystickymenu')?></label> |
| 114 | <span class="myStickymenu-upgrade"> |
| 115 | <a class="sticky-header-upgrade bg-[#dcd9ff]!" href="<?php echo esc_url($upgarde_url); ?>" target="_blank"> |
| 116 | <?php esc_html_e( 'Upgrade Now', 'mystickymenu' );?> |
| 117 | </a> |
| 118 | </span> |
| 119 | <ul class="mystickymenu-input-multicheckbox pt-3 flex items-center gap-1.5"> |
| 120 | <li> |
| 121 | <label> |
| 122 | <input id="disable_css" name="mysticky_option_name[device_desktop]" type="checkbox" checked disabled /> |
| 123 | <?php esc_html_e( 'Desktop', 'mystickymenu' );?> |
| 124 | </label> |
| 125 | </li> |
| 126 | <li> |
| 127 | <label> |
| 128 | <input id="disable_css" name="mysticky_option_name[device_mobile]" type="checkbox" checked disabled /> |
| 129 | <?php esc_html_e( 'Mobile', 'mystickymenu' );?> |
| 130 | </label> |
| 131 | </li> |
| 132 | </ul> |
| 133 | </div> |
| 134 | </div> |
| 135 | </div> |
| 136 | </div> |
| 137 | |
| 138 | <div class="mystickymenu-content-section p-5"> |
| 139 | <div class="text-xl pb-4"> |
| 140 | <?php esc_html_e( 'Settings', 'mystickymenu' );?> |
| 141 | </div> |
| 142 | <div class="flex flex-col gap-5 w-full"> |
| 143 | <div class="flex flex-col md:flex-row gap-5 w-full"> |
| 144 | <div class="msb-form-field-wrap inline-field flex flex-col sm:items-center gap-1 sm:gap-2.5 sm:flex-row sm:flex-1/2"> |
| 145 | <div class="msb-form-label flex-1 sm:flex-[0_0_250px]"> |
| 146 | <label for="myfixed_zindex" class="mysticky_title"><?php esc_html_e("Sticky z-index", 'mystickymenu')?></label> |
| 147 | </div> |
| 148 | <div class="msb-form-field"> |
| 149 | <input type="number" min="0" max="2147483647" step="1" class="mysticky-number" id="myfixed_zindex" name="mysticky_option_name[myfixed_zindex]" value="<?php echo esc_attr($mysticky_options['myfixed_zindex']);?>" /> |
| 150 | </div> |
| 151 | </div> |
| 152 | <div class="msb-form-field-wrap inline-field flex flex-col sm:items-center gap-1 sm:gap-2.5 sm:flex-row sm:flex-1/2"> |
| 153 | <div class="msb-form-label flex-1 sm:flex-[0_0_250px]"> |
| 154 | <label class="mysticky_title myssticky-remove-hand"><?php esc_html_e("Fade or slide effect", 'mystickymenu')?></label> |
| 155 | </div> |
| 156 | <div class="msb-form-field"> |
| 157 | <label> |
| 158 | <input name="mysticky_option_name[myfixed_fade]" value= "slide" type="radio" <?php checked( @$mysticky_options['myfixed_fade'], 'slide' );?> /> |
| 159 | <?php esc_html_e("Slide", 'mystickymenu'); ?> |
| 160 | </label> |
| 161 | <label> |
| 162 | <input name="mysticky_option_name[myfixed_fade]" value="fade" type="radio" <?php checked( @$mysticky_options['myfixed_fade'], 'fade' );?> /> |
| 163 | <?php esc_html_e("Fade", 'mystickymenu'); ?> |
| 164 | </label> |
| 165 | </div> |
| 166 | </div> |
| 167 | </div> |
| 168 | <div class="flex flex-col md:flex-row gap-5 w-full"> |
| 169 | <div class="msb-form-field-wrap inline-field flex flex-col sm:items-center gap-1 sm:gap-2.5 sm:flex-row sm:flex-1/2"> |
| 170 | <div class="msb-form-label flex-1 sm:flex-[0_0_250px]"> |
| 171 | <label for="myfixed_disable_small_screen"><?php esc_html_e("Disable at Small Screen Sizes", 'mystickymenu')?></label> |
| 172 | <p class="description"><?php esc_html_e('Less than chosen screen width, set 0 to disable','mystickymenu');?></p> |
| 173 | </div> |
| 174 | <div class="msb-form-field"> |
| 175 | <div class="px-wrap"> |
| 176 | <input type="number" class="" min="0" step="1" id="myfixed_disable_small_screen" name="mysticky_option_name[myfixed_disable_small_screen]" value="<?php echo esc_attr($mysticky_options['myfixed_disable_small_screen']);?>" /> |
| 177 | <span class="input-px">PX</span> |
| 178 | </div> |
| 179 | </div> |
| 180 | </div> |
| 181 | <div class="msb-form-field-wrap inline-field flex flex-col sm:items-center gap-1 sm:gap-2.5 sm:flex-row sm:flex-1/2"> |
| 182 | <div class="msb-form-label flex-1 sm:flex-[0_0_250px]"> |
| 183 | <label for="mysticky_active_on_height"><?php esc_html_e("Make visible on Scroll", 'mystickymenu')?></label> |
| 184 | <p class="description"><?php esc_html_e('If set to 0 auto calculate will be used.','mystickymenu');?></p> |
| 185 | </div> |
| 186 | <div class="msb-form-field"> |
| 187 | <div class="px-wrap"> |
| 188 | <input type="number" class="small-text" min="0" step="1" id="mysticky_active_on_height" name="mysticky_option_name[mysticky_active_on_height]" value="<?php echo esc_attr($mysticky_options['mysticky_active_on_height']);?>" /> |
| 189 | <span class="input-px">PX</span> |
| 190 | </div> |
| 191 | </div> |
| 192 | </div> |
| 193 | </div> |
| 194 | <div class="flex flex-col md:flex-row gap-5 w-full"> |
| 195 | <div class="msb-form-field-wrap inline-field flex flex-col sm:items-center gap-1 sm:gap-2.5 sm:flex-row sm:flex-1/2"> |
| 196 | <div class="msb-form-label flex-1 sm:flex-[0_0_250px]"> |
| 197 | <label for="mysticky_active_on_height_home" class="mysticky_title"><?php esc_html_e("Make visible on Scroll at homepage", 'mystickymenu')?></label> |
| 198 | <p class="description"><?php esc_html_e( 'If set to 0 it will use initial Make visible on Scroll value.', 'mystickymenu' );?></p> |
| 199 | </div> |
| 200 | <div class="msb-form-field"> |
| 201 | <div class="px-wrap"> |
| 202 | <input type="number" class="small-text" min="0" step="1" id="mysticky_active_on_height_home" name="mysticky_option_name[mysticky_active_on_height_home]" value="<?php echo esc_attr($mysticky_options['mysticky_active_on_height_home']);?>" /> |
| 203 | <span class="input-px">PX</span> |
| 204 | </div> |
| 205 | </div> |
| 206 | </div> |
| 207 | <div class="msb-form-field-wrap inline-field flex flex-col sm:items-center gap-1 sm:gap-2.5 sm:flex-row sm:flex-1/2"> |
| 208 | <div class="msb-form-label flex-1 sm:flex-[0_0_250px]"> |
| 209 | <label for="myfixed_bgcolor" class="mysticky_title myssticky-remove-hand"><?php esc_html_e("Sticky Background Color", 'mystickymenu')?></label> |
| 210 | </div> |
| 211 | <div class="msb-form-field"> |
| 212 | <input type="text" id="myfixed_bgcolor" name="mysticky_option_name[myfixed_bgcolor]" class="my-color-field" data-alpha="true" value="<?php echo esc_attr($mysticky_options['myfixed_bgcolor']);?>" /> |
| 213 | </div> |
| 214 | </div> |
| 215 | </div> |
| 216 | <div class="flex flex-col md:flex-row gap-5 w-full"> |
| 217 | <div class="msb-form-field-wrap inline-field flex flex-col sm:items-center gap-1 sm:gap-2.5 sm:flex-row sm:flex-1/2"> |
| 218 | <div class="msb-form-label flex-1 sm:flex-[0_0_250px]"> |
| 219 | <label for="myfixed_transition_time" class="mysticky_title"><?php esc_html_e("Sticky Transition Time", 'mystickymenu')?></label> |
| 220 | </div> |
| 221 | <div class="msb-form-field"> |
| 222 | <input type="number" class="small-text" min="0" step="0.1" id="myfixed_transition_time" name="mysticky_option_name[myfixed_transition_time]" value="<?php echo esc_attr($mysticky_options['myfixed_transition_time']);?>" /> |
| 223 | </div> |
| 224 | </div> |
| 225 | <div class="msb-form-field-wrap inline-field flex flex-col sm:items-center gap-1 sm:gap-2.5 sm:flex-row sm:flex-1/2"> |
| 226 | <div class="msb-form-label flex-1 sm:flex-[0_0_250px]"> |
| 227 | <label for="myfixed_textcolor" class="mysticky_title myssticky-remove-hand"><?php esc_html_e("Sticky Text Color", 'mystickymenu')?></label> |
| 228 | </div> |
| 229 | <div class="msb-form-field"> |
| 230 | <input type="text" id="myfixed_textcolor" name="mysticky_option_name[myfixed_textcolor]" class="my-color-field" data-alpha="true" value="<?php echo (isset($mysticky_options['myfixed_textcolor'])) ? esc_attr($mysticky_options['myfixed_textcolor']) : '';?>" /> |
| 231 | </div> |
| 232 | </div> |
| 233 | </div> |
| 234 | <div class="flex flex-col md:flex-row gap-5 w-full"> |
| 235 | <div class="msb-form-field-wrap inline-field flex flex-col sm:items-center gap-1 sm:gap-2.5 sm:flex-row sm:flex-1/2"> |
| 236 | <div class="msb-form-label flex-1 sm:flex-[0_0_250px]"> |
| 237 | <label for="myfixed_opacity" class="mysticky_title myssticky-remove-hand"><?php esc_html_e("Sticky Opacity", 'mystickymenu')?></label> |
| 238 | <p class="description"><?php esc_html_e( 'numbers 1-100.', 'mystickymenu');?></p> |
| 239 | </div> |
| 240 | <div class="msb-form-field"> |
| 241 | <input type="hidden" class="small-text mysticky-slider" min="0" step="1" max="100" id="myfixed_opacity" name="mysticky_option_name[myfixed_opacity]" value="<?php echo esc_attr($mysticky_options['myfixed_opacity']);?>" /> |
| 242 | <div id="slider" class="w-full! relative!"> |
| 243 | <div class="slider-range bg-[#7761DF] h-0.5 absolute left-0" id="slider-range"></div> |
| 244 | <div id="custom-handle" class="ui-slider-handle"></div> |
| 245 | </div> |
| 246 | </div> |
| 247 | </div> |
| 248 | <div class="msb-form-field-wrap inline-field flex flex-col sm:items-center gap-1 sm:gap-2.5 sm:flex-row sm:flex-1/2"> |
| 249 | |
| 250 | </div> |
| 251 | </div> |
| 252 | </div> |
| 253 | </div> |
| 254 | |
| 255 | <div class="mystickymenu-content-section p-5 <?php echo !$is_old?"mystickymenu-content-upgrade":""?>" > |
| 256 | <div class="pb-4 flex justify-between"> |
| 257 | <div class="text-xl"> |
| 258 | <?php esc_html_e( 'Hide on Scroll Down', 'mystickymenu' );?> |
| 259 | </div> |
| 260 | <div> |
| 261 | <div class="myStickymenu-upgrade"> |
| 262 | <a class="sticky-header-activate-key" href="<?php echo esc_url($upgarde_url); ?>" target="_blank"> |
| 263 | <?php esc_html_e( 'Upgrade now', 'mystickymenu' );?> |
| 264 | </a> |
| 265 | </div> |
| 266 | </div> |
| 267 | </div> |
| 268 | <div class="flex"> |
| 269 | <label class="mysticky_text m-0!" for="myfixed_disable_scroll_down"> |
| 270 | <input disabled id="myfixed_disable_scroll_down" name="mysticky_option_name[myfixed_disable_scroll_down]" type="checkbox" /> |
| 271 | <?php esc_html_e("Disable sticky menu at scroll down", 'mystickymenu'); ?> |
| 272 | </label> |
| 273 | </div> |
| 274 | <div class="text-lg pt-4 pb-0"> |
| 275 | <?php esc_html_e( 'Page targeting', 'mystickymenu' );?> |
| 276 | </div> |
| 277 | <div class="mysticky-page-target-setting mystickymenu-content-option p-0!"> |
| 278 | <div class="mystickymenu-input-section mystickymenu-page-target-wrap"> |
| 279 | <div class="mysticky-welcomebar-setting-content-right gap-0!"> |
| 280 | <div class="mysticky-page-options" id="mysticky-welcomebar-page-options"> |
| 281 | |
| 282 | </div> |
| 283 | <a href="#" class="create-rule m-0!" id="mysticky_create-rule"><?php esc_html_e( "Add Rule", "mystickymenu" );?></a> |
| 284 | </div> |
| 285 | <input type="hidden" id="mysticky_welcomebar_site_url" value="<?php echo esc_url(site_url("/")) ?>" /> |
| 286 | <div class="mysticky-page-options-html" style="display: none;"> |
| 287 | <div class="mysticky-page-option mb-0!"> |
| 288 | <div class="url-content flex gap-4 w-full flex-col sm:flex-row"> |
| 289 | <div class="flex gap-4 flex-col sm:flex-row flex-1"> |
| 290 | <div class="mysticky-welcomebar-url-select flex-1"> |
| 291 | <select name="" id="url_shown_on___count___option"> |
| 292 | <option value="show_on"><?php esc_html_e("Show on", "mystickymenu" );?></option> |
| 293 | <option value="not_show_on"><?php esc_html_e("Don't show on", "mystickymenu" );?></option> |
| 294 | </select> |
| 295 | </div> |
| 296 | <div class="mysticky-welcomebar-url-option flex-1"> |
| 297 | <select class="mysticky-url-options" name="" id="url_rules___count___option"> |
| 298 | <option selected="selected" disabled value=""><?php esc_html_e("Select Rule", "mystickymenu" );?></option> |
| 299 | </select> |
| 300 | </div> |
| 301 | </div> |
| 302 | <div class="flex gap-4 flex-col sm:flex-row sm:items-center flex-1"> |
| 303 | <div class="mysticky-welcomebar-url-box flex-1"> |
| 304 | <span class='mysticky-welcomebar-url'><?php echo esc_url(site_url("/")); ?></span> |
| 305 | </div> |
| 306 | <div class="mysticky-welcomebar-url-values flex-1"> |
| 307 | <input type="text" value="" name="mysticky_option_name[mysticky_page_settings][__count__][value]" id="url_rules___count___value" disabled /> |
| 308 | </div> |
| 309 | </div> |
| 310 | </div> |
| 311 | <span class="myStickymenu-upgrade"><a class="sticky-header-upgrade" href="<?php echo esc_url($upgarde_url); ?>" target="_blank"><?php esc_html_e( 'Upgrade Now', 'mystickymenu' );?></a></span> |
| 312 | </div> |
| 313 | </div> |
| 314 | </div> |
| 315 | </div> |
| 316 | <div class="text-lg pb-0 pt-4"> |
| 317 | <?php esc_html_e( 'CSS style', 'mystickymenu' );?> |
| 318 | </div> |
| 319 | <div class="mystickymenu-content-option p-0!"> |
| 320 | <span class="mysticky_text m-0! text-[#3C434A]!"><?php esc_html_e( 'Add/edit CSS style. Leave it blank for default style.', 'mystickymenu');?></span> |
| 321 | <div class="mystickymenu-input-section"> |
| 322 | <label for="myfixed_cssstyle" class="sr-only"><?php esc_html_e('Custom CSS', 'mystickymenu'); ?></label> |
| 323 | <textarea class="min-h-20" type="text" rows="4" cols="60" id="myfixed_cssstyle" name="mysticky_option_name[myfixed_cssstyle]" disabled></textarea> |
| 324 | </div> |
| 325 | <p class="p-0 m-0!"><?php esc_html_e( "CSS ID's and Classes to use:", "mystickymenu" );?></p> |
| 326 | <p class="p-0 m-0! mt-1!"> |
| 327 | #mysticky-wrap { }<br/> |
| 328 | #mysticky-nav.wrapfixed { }<br/> |
| 329 | #mysticky-nav.wrapfixed.up { }<br/> |
| 330 | #mysticky-nav.wrapfixed.down { }<br/> |
| 331 | #mysticky-nav .navbar { }<br/> |
| 332 | #mysticky-nav .navbar.myfixed { }<br/> |
| 333 | </p> |
| 334 | </div> |
| 335 | |
| 336 | <div class="mystickymenu-content-option p-0! pt-4!"> |
| 337 | <div class="text-lg pb-0"> |
| 338 | <?php esc_html_e( 'Disable CSS style', 'mystickymenu' );?> |
| 339 | </div> |
| 340 | <div class="mystickymenu-input-section p-0! m-0!"> |
| 341 | <label> |
| 342 | <input id="disable_css" name="mysticky_option_name[disable_css]" type="checkbox" disabled /> |
| 343 | <?php esc_html_e( 'Use this option if you plan to include CSS Style manually', 'mystickymenu' );?> |
| 344 | </label> |
| 345 | </div> |
| 346 | <p></p> |
| 347 | </div> |
| 348 | |
| 349 | <div class="mystickymenu-content-option p-0!"> |
| 350 | <div class="text-lg pb-0.5"> |
| 351 | <?php esc_html_e( 'Disable at', 'mystickymenu' );?> |
| 352 | </div> |
| 353 | <?php if(!$is_old) { ?><span class="myStickymenu-upgrade"><a class="sticky-header-upgrade" href="<?php echo esc_url($upgarde_url); ?>" target="_blank"><?php esc_html_e( 'Upgrade Now', 'mystickymenu' );?></a></span><?php } ?> |
| 354 | <div class="mystickymenu-input-section p-0! m-0!"> |
| 355 | <ul class="mystickymenu-input-multicheckbox"> |
| 356 | <li> |
| 357 | <label> |
| 358 | <input id="mysticky_disable_at_front_home" name="mysticky_option_name[mysticky_disable_at_front_home]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( @$mysticky_options['mysticky_disable_at_front_home'], 'on' );?>/> |
| 359 | <span><?php esc_attr_e('front page', 'mystickymenu' );?></span> |
| 360 | </label> |
| 361 | </li> |
| 362 | <li> |
| 363 | <label> |
| 364 | <input id="mysticky_disable_at_blog" name="mysticky_option_name[mysticky_disable_at_blog]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( @$mysticky_options['mysticky_disable_at_blog'], 'on' );?>/> |
| 365 | <span><?php esc_attr_e('blog page', 'mystickymenu' );?></span> |
| 366 | </label> |
| 367 | </li> |
| 368 | <li> |
| 369 | <label> |
| 370 | <input id="mysticky_disable_at_page" name="mysticky_option_name[mysticky_disable_at_page]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( @$mysticky_options['mysticky_disable_at_page'], 'on' );?> /> |
| 371 | <span><?php esc_attr_e('pages', 'mystickymenu' );?> </span> |
| 372 | </label> |
| 373 | </li> |
| 374 | <li> |
| 375 | <label> |
| 376 | <input id="mysticky_disable_at_tag" name="mysticky_option_name[mysticky_disable_at_tag]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( @$mysticky_options['mysticky_disable_at_tag'], 'on' );?> /> |
| 377 | <span><?php esc_attr_e('tags', 'mystickymenu' );?> </span> |
| 378 | </label> |
| 379 | </li> |
| 380 | <li> |
| 381 | <label> |
| 382 | <input id="mysticky_disable_at_category" name="mysticky_option_name[mysticky_disable_at_category]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( @$mysticky_options['mysticky_disable_at_category'], 'on' );?>/> |
| 383 | <span><?php esc_attr_e('categories', 'mystickymenu' );?></span> |
| 384 | </label> |
| 385 | </li> |
| 386 | <li> |
| 387 | <label> |
| 388 | <input id="mysticky_disable_at_single" name="mysticky_option_name[mysticky_disable_at_single]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( @$mysticky_options['mysticky_disable_at_single'], 'on' );?> /> |
| 389 | <span><?php esc_attr_e('posts', 'mystickymenu' );?> </span> |
| 390 | </label> |
| 391 | </li> |
| 392 | <li> |
| 393 | <label> |
| 394 | <input id="mysticky_disable_at_archive" name="mysticky_option_name[mysticky_disable_at_archive]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( @$mysticky_options['mysticky_disable_at_archive'], 'on' );?> /> |
| 395 | <span><?php esc_attr_e('archives', 'mystickymenu' );?> </span> |
| 396 | </label> |
| 397 | </li> |
| 398 | <li> |
| 399 | <label> |
| 400 | <input id="mysticky_disable_at_search" name="mysticky_option_name[mysticky_disable_at_search]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( @$mysticky_options['mysticky_disable_at_search'], 'on' );?> /> |
| 401 | <span><?php esc_attr_e('search', 'mystickymenu' );?> </span> |
| 402 | </label> |
| 403 | </li> |
| 404 | <li> |
| 405 | <label> |
| 406 | <input id="mysticky_disable_at_404" name="mysticky_option_name[mysticky_disable_at_404]" type="checkbox" <?php echo !$is_old?"disabled":"" ?> <?php checked( @$mysticky_options['mysticky_disable_at_404'], 'on' );?>/> |
| 407 | <span><?php esc_attr_e('404', 'mystickymenu' );?> </span> |
| 408 | </label> |
| 409 | </li> |
| 410 | </ul> |
| 411 | |
| 412 | <?php |
| 413 | if (isset ( $mysticky_options['mysticky_disable_at_page'] ) == true ) { |
| 414 | echo '<div class="mystickymenu-input-section">'; |
| 415 | echo '<span class="description"><strong>'; |
| 416 | esc_html_e('Except for this pages:', 'mystickymenu'); |
| 417 | echo '</strong></span>'; |
| 418 | |
| 419 | printf( |
| 420 | '<input disabled type="text" size="26" class="mystickymenu_normal_text max-w-50! mx-2!" id="mysticky_enable_at_pages" name="mysticky_option_name[mysticky_enable_at_pages]" value="%s" /> ', |
| 421 | isset( $mysticky_options['mysticky_enable_at_pages'] ) ? esc_attr( $mysticky_options['mysticky_enable_at_pages']) : '' |
| 422 | ); |
| 423 | echo '<span class="description">'; |
| 424 | esc_html_e('Comma separated list of pages to enable. It should be page name, id or slug. Example: about-us, 1134, Contact Us. Leave blank if you realy want to disable sticky menu for all pages.', 'mystickymenu'); |
| 425 | echo '</span>'; |
| 426 | echo '</div>'; |
| 427 | } |
| 428 | |
| 429 | if (isset ( $mysticky_options['mysticky_disable_at_single'] ) == true ) { |
| 430 | |
| 431 | echo '<div class="mystickymenu-input-section pt-4">'; |
| 432 | echo '<span class="description"><strong>'; |
| 433 | esc_html_e('Except for this posts:', 'mystickymenu'); |
| 434 | echo '</strong> </span>'; |
| 435 | |
| 436 | printf( |
| 437 | '<input disabled type="text" size="26" class="mystickymenu_normal_text max-w-50! mx-2!" id="mysticky_enable_at_posts" name="mysticky_option_name[mysticky_enable_at_posts]" value="%s" /> ', |
| 438 | isset( $mysticky_options['mysticky_enable_at_posts'] ) ? esc_attr( $mysticky_options['mysticky_enable_at_posts']) : '' |
| 439 | ); |
| 440 | |
| 441 | echo '<span class="description">'; |
| 442 | esc_html_e('Comma separated list of posts to enable. It should be post name, id or slug. Example: about-us, 1134, Contact Us. Leave blank if you realy want to disable sticky menu for all posts.', 'mystickymenu'); |
| 443 | echo '</span>'; |
| 444 | echo '</div>'; |
| 445 | |
| 446 | } |
| 447 | ?> |
| 448 | <p></p> |
| 449 | </div> |
| 450 | </div> |
| 451 | </div> |
| 452 | |
| 453 | <!-- Mysticky Menu: Save & Save Dashbaord Submission Validation Popup --> |
| 454 | |
| 455 | <div class="mystickymenu-action-popup new-center" id="mysticky-sticky-save-confirm" style="display:none;"> |
| 456 | <div class="mystickymenu-action-popup-header"> |
| 457 | <h3><?php esc_html_e("Turn on Sticky Menu","mystickymenu"); ?></h3> |
| 458 | <span class="dashicons dashicons-no-alt close-button" data-from = "stickymenu-confirm"></span> |
| 459 | </div> |
| 460 | <div class="mystickymenu-action-popup-body"> |
| 461 | <p><?php esc_html_e("Sticky Menu is not turned on. Turn on Sticky Menu to activate sticky menu on your website.","mystickymenu"); ?></p> |
| 462 | </div> |
| 463 | <div class="mystickymenu-action-popup-footer"> |
| 464 | <button type="button" class="btn-enable btn-nevermind-status" id="stickymenu_status_dolater" ><?php esc_html_e("Just save & keep it off","mystickymenu"); ?></button> |
| 465 | <button type="button" class="btn-disable-cancel" id="stickymenu_status_ok" ><?php esc_html_e("Save & Turn on Sticky Menu","mystickymenu"); ?></button> |
| 466 | </div> |
| 467 | </div> |
| 468 | <div class="mystickymenupopup-overlay" id="stickymenu-option-overlay-popup"></div> |
| 469 | |
| 470 | <!-- End Save & Save Dashbaord Submission Validation Popup --> |
| 471 | |
| 472 | <p class="submit"> |
| 473 | <input type="submit" name="submit" id="submit" class="button button-primary btn-save-stickymenu" value="<?php esc_attr_e('Save', 'mystickymenu');?>"> |
| 474 | |
| 475 | <input type="submit" name="submit_dashboard" id="submit_dashboard" class="button button-primary save_view_dashboard" style="width: auto;" value="<?php esc_html_e('Save & View Dashboard', 'mystickymenu');?>"> |
| 476 | </p> |
| 477 | <input type="hidden" name="nonce" value="<?php echo esc_attr($nonce); ?>"> |
| 478 | <input type="hidden" id="save_stickymenu" value=""/> |
| 479 | </form> |
| 480 | <form class="mysticky-hideformreset" method="post" action=""> |
| 481 | <input name="reset_mysticky_options" class="button button-secondary confirm" type="submit" value="<?php esc_attr_e('Reset', 'mystickymenu');?>" > |
| 482 | <input type="hidden" name="action" value="reset" /> |
| 483 | <?php $nonce = wp_create_nonce('mysticky_option_backend_reset_nonce'); ?> |
| 484 | <input type="hidden" name="nonce" value="<?php echo esc_attr($nonce); ?>"> |
| 485 | </form> |
| 486 | <p class="myStickymenu-review"><a href="https://wordpress.org/support/plugin/mystickymenu/reviews/" target="_blank"><?php esc_attr_e('Leave a review','mystickymenu'); ?></a></p> |
| 487 | </div> |
| 488 | </div> |