Ivory Search – WordPress Search Plugin - Version 2.0

Version Description

  • Resolved scrolling issue in fixed menu and made magnifying glass icon resizable.

=

Download this release

Release Info

Developer vinod dalvi
Plugin Icon 128x128 Ivory Search – WordPress Search Plugin
Version 2.0
Comparing to
See all releases

Code changes from version 1.0 to 2.0

add-search-to-menu.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Add Search To Menu
4
  Plugin URI: http://freewptp.com/plugins/add-search-to-menu/
5
  Description: The plugin displays search form in the navigation bar which can be configured from the admin area.
6
- Version: 1.0
7
  Author: Vinod Dalvi
8
  Author URI: http://freewptp.com
9
  License: GPL-2.0+
@@ -28,6 +28,7 @@ along with Add Search To Menu plugin. If not, see https://www.gnu.org/licenses/g
28
  /**
29
  * Changelog :
30
  * 1.0 - Intial release.
 
31
  */
32
 
33
  /**
3
  Plugin Name: Add Search To Menu
4
  Plugin URI: http://freewptp.com/plugins/add-search-to-menu/
5
  Description: The plugin displays search form in the navigation bar which can be configured from the admin area.
6
+ Version: 2.0
7
  Author: Vinod Dalvi
8
  Author URI: http://freewptp.com
9
  License: GPL-2.0+
28
  /**
29
  * Changelog :
30
  * 1.0 - Intial release.
31
+ * 2.0 - Resolved scrolling issue in fixed menu and made magnifying glass icon resizable.
32
  */
33
 
34
  /**
admin/class-add-search-to-menu-admin.php CHANGED
File without changes
admin/js/add-search-to-menu-admin.js CHANGED
File without changes
includes/class-add-search-to-menu-activator.php CHANGED
File without changes
includes/class-add-search-to-menu-deactivator.php CHANGED
File without changes
includes/class-add-search-to-menu-i18n.php CHANGED
File without changes
includes/class-add-search-to-menu-loader.php CHANGED
File without changes
includes/class-add-search-to-menu.php CHANGED
File without changes
languages/default.po CHANGED
File without changes
public/class-add-search-to-menu-public.php CHANGED
@@ -79,13 +79,13 @@ class Add_Search_To_Menu_Public {
79
 
80
  if ( $options['add_search_to_menu_style'] != 'default' ){
81
  if ( $title == '' ) {
82
- $items .= '<svg width="20" height="20" class="search-icon" role="img">
83
  <path class="search-icon-path" d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path></svg>';
84
  } else {
85
  $items .= $title;
86
  }
87
  }
88
- $items .= get_search_form( false ) . '</a></li>';
89
 
90
  $items .= '</li>';
91
  }
79
 
80
  if ( $options['add_search_to_menu_style'] != 'default' ){
81
  if ( $title == '' ) {
82
+ $items .= '<svg width="20" height="20" class="search-icon" role="img" viewBox="2 9 20 5">
83
  <path class="search-icon-path" d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path></svg>';
84
  } else {
85
  $items .= $title;
86
  }
87
  }
88
+ $items .= '</a>' . get_search_form( false ) . '</li>';
89
 
90
  $items .= '</li>';
91
  }
public/css/add-search-to-menu.css CHANGED
File without changes
public/js/add-search-to-menu.js CHANGED
@@ -7,6 +7,7 @@
7
 
8
  // Cancel the default action
9
  e.stopPropagation();
 
10
 
11
  if ( $( this ).parent().parent().css( 'position' ) === 'static' ) {
12
  $( this ).parent().parent().css( 'position', 'relative' );
@@ -28,7 +29,7 @@
28
  } );
29
 
30
  $( 'li.search-menu form input[type="search"], li.search-menu form input[type="text"]' ).on( 'click', function( e ) {
31
- e.stopPropagation(); // This is the preferred method.
32
  return false;
33
  } );
34
 
7
 
8
  // Cancel the default action
9
  e.stopPropagation();
10
+ e.preventDefault();
11
 
12
  if ( $( this ).parent().parent().css( 'position' ) === 'static' ) {
13
  $( this ).parent().parent().css( 'position', 'relative' );
29
  } );
30
 
31
  $( 'li.search-menu form input[type="search"], li.search-menu form input[type="text"]' ).on( 'click', function( e ) {
32
+ e.stopPropagation();
33
  return false;
34
  } );
35
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: vinod dalvi, freewptp
3
  Donate link: http://freewptp.com/contact/
4
  Tags: menu, search menu, plugin, search box to navigation bar, search to navigation menu, navigation bar search menu, search form to navigation bar
5
  Requires at least: 3.0
6
- Tested up to: 4.7.3
7
- Stable tag: 1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -52,6 +52,9 @@ Please make sure you have configured the plugin settings from Settings -> Add Se
52
  = 1.0 =
53
  * Initial release.
54
 
 
 
 
55
  == Upgrade Notice ==
56
 
57
  = 1.0 =
3
  Donate link: http://freewptp.com/contact/
4
  Tags: menu, search menu, plugin, search box to navigation bar, search to navigation menu, navigation bar search menu, search form to navigation bar
5
  Requires at least: 3.0
6
+ Tested up to: 4.8
7
+ Stable tag: 2.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
52
  = 1.0 =
53
  * Initial release.
54
 
55
+ = 2.0 =
56
+ * Resolved scrolling issue in fixed menu and made magnifying glass icon resizable.
57
+
58
  == Upgrade Notice ==
59
 
60
  = 1.0 =
uninstall.php CHANGED
File without changes