myStickymenu - Version 1.9

Version Description

  • Fixed: enable / disable at search pages
Download this release

Release Info

Developer damiroquai
Plugin Icon 128x128 myStickymenu
Version 1.9
Comparing to
See all releases

Code changes from version 1.8.9 to 1.9

Files changed (2) hide show
  1. mystickymenu.php +30 -7
  2. readme.txt +5 -2
mystickymenu.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: myStickymenu
4
  Plugin URI: http://wordpress.transformnews.com/plugins/mystickymenu-simple-sticky-fixed-on-top-menu-implementation-for-twentythirteen-menu-269
5
  Description: Simple sticky (fixed on top) menu implementation for default Twentythirteen navigation menu. For other themes, after install go to Settings / myStickymenu and change Sticky Class to .your_navbar_class or #your_navbar_id.
6
- Version: 1.8.9
7
  Author: m.r.d.a
8
  Author URI: http://wordpress.transformnews.com/
9
  Text Domain: mystickymenu
@@ -215,7 +215,12 @@ class MyStickyMenuBackend
215
  'my-stickymenu-settings',
216
  'setting_section_id'
217
  );
218
-
 
 
 
 
 
219
 
220
 
221
 
@@ -279,17 +284,20 @@ class MyStickyMenuBackend
279
  $new_input['mysticky_disable_at_category'] = sanitize_text_field( $input['mysticky_disable_at_category'] );
280
 
281
  if( isset( $input['mysticky_disable_at_single'] ) )
282
- $new_input['mysticky_disable_at_single'] = sanitize_text_field( $input['mysticky_disable_at_single'] );
283
 
284
  if( isset( $input['mysticky_disable_at_archive'] ) )
285
  $new_input['mysticky_disable_at_archive'] = sanitize_text_field( $input['mysticky_disable_at_archive'] );
286
 
287
  if( isset( $input['mysticky_enable_at_pages'] ) )
288
- $new_input['mysticky_enable_at_pages'] = sanitize_text_field( $input['mysticky_enable_at_pages'] );
289
 
290
  if( isset( $input['mysticky_enable_at_posts'] ) )
291
- $new_input['mysticky_enable_at_posts'] = sanitize_text_field( $input['mysticky_enable_at_posts'] );
292
-
 
 
 
293
 
294
 
295
 
@@ -517,6 +525,13 @@ class MyStickyMenuBackend
517
  'mysticky_disable_at_archive',
518
  checked( isset( $this->options['mysticky_disable_at_archive'] ), true, false )
519
  );
 
 
 
 
 
 
 
520
 
521
  if (isset ( $this->options['mysticky_disable_at_page'] ) == true ) {
522
 
@@ -697,7 +712,7 @@ class MyStickyMenuFrontend
697
  $mysticky_disable_at_category = isset($mysticky_options['mysticky_disable_at_category']);
698
  $mysticky_disable_at_single = isset($mysticky_options['mysticky_disable_at_single']);
699
  $mysticky_disable_at_archive = isset($mysticky_options['mysticky_disable_at_archive']);
700
-
701
  $mysticky_enable_at_pages = isset($mysticky_options['mysticky_enable_at_pages']) ? $mysticky_options['mysticky_enable_at_pages'] : '';
702
  $mysticky_enable_at_posts = isset($mysticky_options['mysticky_enable_at_posts']) ? $mysticky_options['mysticky_enable_at_posts'] : '';
703
  //$mystickymenu_enable_at_pages_exp = explode( ',', $mystickymenu_enable_at_pages );
@@ -776,7 +791,15 @@ class MyStickyMenuFrontend
776
  $this->mystickymenu_script();
777
  };
778
 
 
 
 
 
 
 
 
779
  }
 
780
 
781
  }
782
 
3
  Plugin Name: myStickymenu
4
  Plugin URI: http://wordpress.transformnews.com/plugins/mystickymenu-simple-sticky-fixed-on-top-menu-implementation-for-twentythirteen-menu-269
5
  Description: Simple sticky (fixed on top) menu implementation for default Twentythirteen navigation menu. For other themes, after install go to Settings / myStickymenu and change Sticky Class to .your_navbar_class or #your_navbar_id.
6
+ Version: 1.9
7
  Author: m.r.d.a
8
  Author URI: http://wordpress.transformnews.com/
9
  Text Domain: mystickymenu
215
  'my-stickymenu-settings',
216
  'setting_section_id'
217
  );
218
+ add_settings_field(
219
+ 'mysticky_disable_at_search',
220
+ __("Disable at", 'mystickysidebar'),
221
+ 'my-stickymenu-settings',
222
+ 'setting_section_id'
223
+ );
224
 
225
 
226
 
284
  $new_input['mysticky_disable_at_category'] = sanitize_text_field( $input['mysticky_disable_at_category'] );
285
 
286
  if( isset( $input['mysticky_disable_at_single'] ) )
287
+ $new_input['mysticky_disable_at_single'] = sanitize_text_field( $input['mysticky_disable_at_single'] );
288
 
289
  if( isset( $input['mysticky_disable_at_archive'] ) )
290
  $new_input['mysticky_disable_at_archive'] = sanitize_text_field( $input['mysticky_disable_at_archive'] );
291
 
292
  if( isset( $input['mysticky_enable_at_pages'] ) )
293
+ $new_input['mysticky_enable_at_pages'] = sanitize_text_field( $input['mysticky_enable_at_pages'] );
294
 
295
  if( isset( $input['mysticky_enable_at_posts'] ) )
296
+ $new_input['mysticky_enable_at_posts'] = sanitize_text_field( $input['mysticky_enable_at_posts'] );
297
+
298
+ if( isset( $input['mysticky_disable_at_search'] ) )
299
+ $new_input['mysticky_disable_at_search'] = sanitize_text_field( $input['mysticky_disable_at_search'] );
300
+
301
 
302
 
303
 
525
  'mysticky_disable_at_archive',
526
  checked( isset( $this->options['mysticky_disable_at_archive'] ), true, false )
527
  );
528
+
529
+ _e('<span>search </span>', 'mystickysidebar');
530
+ printf(
531
+ '<input id="%1$s" name="mysticky_option_name[mysticky_disable_at_search]" type="checkbox" %2$s /> ',
532
+ 'mysticky_disable_at_search',
533
+ checked( isset( $this->options['mysticky_disable_at_search'] ), true, false )
534
+ );
535
 
536
  if (isset ( $this->options['mysticky_disable_at_page'] ) == true ) {
537
 
712
  $mysticky_disable_at_category = isset($mysticky_options['mysticky_disable_at_category']);
713
  $mysticky_disable_at_single = isset($mysticky_options['mysticky_disable_at_single']);
714
  $mysticky_disable_at_archive = isset($mysticky_options['mysticky_disable_at_archive']);
715
+ $mysticky_disable_at_search = isset($mysticky_options['mysticky_disable_at_search']);
716
  $mysticky_enable_at_pages = isset($mysticky_options['mysticky_enable_at_pages']) ? $mysticky_options['mysticky_enable_at_pages'] : '';
717
  $mysticky_enable_at_posts = isset($mysticky_options['mysticky_enable_at_posts']) ? $mysticky_options['mysticky_enable_at_posts'] : '';
718
  //$mystickymenu_enable_at_pages_exp = explode( ',', $mystickymenu_enable_at_pages );
791
  $this->mystickymenu_script();
792
  };
793
 
794
+ } elseif ( is_search()){
795
+
796
+ //Archive
797
+ if ( $mysticky_disable_at_search == false ) {
798
+ $this->mystickymenu_script();
799
+ };
800
+
801
  }
802
+
803
 
804
  }
805
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: damiroquai
3
  Donate link: http://wordpress.transformnews.com/contact
4
  Tags: sticky, menu, header, sticky menu, sticky header, floating, floating menu
5
  Requires at least: 3.5.1
6
- Tested up to: 4.8
7
- Stable tag: 1.8.9
8
  License: GPLv2 or later
9
 
10
  This lightweight plugin will made your menu or header sticky on top of page, after desired number of pixels when scrolled.
@@ -56,6 +56,9 @@ In some cases you can use the whole header div and than just style it different
56
 
57
  == Changelog ==
58
 
 
 
 
59
  = 1.8.9 =
60
  * Added: New option - Disable at certain posts and pages.
61
 
3
  Donate link: http://wordpress.transformnews.com/contact
4
  Tags: sticky, menu, header, sticky menu, sticky header, floating, floating menu
5
  Requires at least: 3.5.1
6
+ Tested up to: 4.8.1
7
+ Stable tag: 1.9
8
  License: GPLv2 or later
9
 
10
  This lightweight plugin will made your menu or header sticky on top of page, after desired number of pixels when scrolled.
56
 
57
  == Changelog ==
58
 
59
+ = 1.9 =
60
+ * Fixed: enable / disable at search pages
61
+
62
  = 1.8.9 =
63
  * Added: New option - Disable at certain posts and pages.
64