Ivory Search – WordPress Search Plugin - Version 4.1.5

Version Description

  • Fixed - Firefox browser right mouse click closing search form issue.
Download this release

Release Info

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

Code changes from version 4.1.4 to 4.1.5

add-search-to-menu.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Ivory Search
4
  * Plugin URI: https://ivorysearch.com
5
  * Description: The WordPress Search plugin to power your WordPress site custom search. Helping you build a better search. Includes WooCommerce Search support!
6
- * Version: 4.1.4
7
  * Author: Ivory Search
8
  * Author URI: https://ivorysearch.com/
9
  * License: GPL2+
@@ -13,7 +13,7 @@
13
  *
14
  * @fs_premium_only /includes/class-is-stemmer.php
15
  *
16
- * WC tested up to: 3.5
17
  *
18
  * Ivory Search is free software: you can redistribute it and/or modify
19
  * it under the terms of the GNU General Public License as published by
@@ -94,8 +94,9 @@ final class Ivory_Search {
94
  $is_menu_search = get_option( 'is_menu_search', array() );
95
  $temp2 = array_merge( $temp, (array)$is_menu_search );
96
  $is_settings = get_option( 'is_settings', array() );
97
-
98
- return array_merge( $temp2, (array)$is_settings );
 
99
  }
100
 
101
  /**
3
  * Plugin Name: Ivory Search
4
  * Plugin URI: https://ivorysearch.com
5
  * Description: The WordPress Search plugin to power your WordPress site custom search. Helping you build a better search. Includes WooCommerce Search support!
6
+ * Version: 4.1.5
7
  * Author: Ivory Search
8
  * Author URI: https://ivorysearch.com/
9
  * License: GPL2+
13
  *
14
  * @fs_premium_only /includes/class-is-stemmer.php
15
  *
16
+ * WC tested up to: 3.5.3
17
  *
18
  * Ivory Search is free software: you can redistribute it and/or modify
19
  * it under the terms of the GNU General Public License as published by
94
  $is_menu_search = get_option( 'is_menu_search', array() );
95
  $temp2 = array_merge( $temp, (array)$is_menu_search );
96
  $is_settings = get_option( 'is_settings', array() );
97
+ $temp3 = array_merge( $temp2, (array)$is_settings );
98
+ $is_notices = get_option( 'is_notices', array() );
99
+ return array_merge( $temp3, (array)$is_notices );
100
  }
101
 
102
  /**
admin/assets/logo.jpg ADDED
Binary file
admin/class-is-admin.php CHANGED
@@ -104,36 +104,55 @@ class IS_Admin
104
  */
105
  function all_admin_notices()
106
  {
107
- $strpos = strpos( get_current_screen()->id, 'ivory-search' );
108
- if ( 0 === $strpos || 0 < $strpos ) {
109
- return;
110
- }
111
  $hascaps = ( $this->networkactive ? is_network_admin() && current_user_can( 'manage_network_plugins' ) : current_user_can( 'manage_options' ) );
112
 
113
  if ( $hascaps ) {
114
- $url = ( is_network_admin() ? network_site_url() : site_url( '/' ) );
115
- echo '<div class="notice notice-info is-dismissible ivory-search"><p>' . sprintf(
116
- __( 'To configure <em>Ivory Search plugin</em> please visit its <a href="%1$s">configuration page</a> and to get plugin support contact us on <a href="%2$s" target="_blank">plugin support forum</a> or <a href="%3$s" target="_blank">contact us page</a>.', 'ivory-search' ),
117
- $url . 'wp-admin/admin.php?page=ivory-search',
118
- 'https://ivorysearch.com/support/',
119
- 'https://ivorysearch.com/contact/'
120
- ) . '</p></div>' ;
121
- }
122
-
123
- }
124
-
125
- /**
126
- * Handles plugin notice dismiss functionality using AJAX.
127
- */
128
- function dismiss_notice()
129
- {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
 
131
- if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
132
- $this->opt['dismiss_admin_notices'] = 1;
133
- update_option( 'is_settings', $this->opt );
134
  }
135
-
136
- die;
137
  }
138
 
139
  /**
@@ -187,29 +206,19 @@ class IS_Admin
187
  */
188
  function admin_footer()
189
  {
190
- $strpos = strpos( get_current_screen()->id, 'ivory-search' );
191
- if ( 0 === $strpos || 0 < $strpos ) {
192
- return;
193
- }
194
  ?>
195
- <script>
196
- // Dismisses plugin notices.
197
- ( function( $ ) {
198
- 'use strict';
199
- $( window ).load( function() {
200
- $( '.notice.is-dismissible.ivory-search .notice-dismiss' ).on( 'click', function() {
201
- $.ajax( {
202
- url: "<?php
203
- echo admin_url( 'admin-ajax.php' ) ;
204
- ?>",
205
- data: {
206
- action: 'dismiss_notice'
207
- }
208
- } );
209
- } );
210
- } );
211
- } )( jQuery );
212
- </script>
213
  <?php
214
  }
215
 
@@ -219,6 +228,25 @@ class IS_Admin
219
  function admin_init()
220
  {
221
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
222
  if ( !empty($GLOBALS['pagenow']) && ('admin.php' === $GLOBALS['pagenow'] || 'options.php' === $GLOBALS['pagenow']) ) {
223
  $settings_fields = new IS_Settings_Fields( $this->opt );
224
  $settings_fields->register_settings_fields();
104
  */
105
  function all_admin_notices()
106
  {
 
 
 
 
107
  $hascaps = ( $this->networkactive ? is_network_admin() && current_user_can( 'manage_network_plugins' ) : current_user_can( 'manage_options' ) );
108
 
109
  if ( $hascaps ) {
110
+ $screen = get_current_screen();
111
+ $is_ivory = strpos( $screen->id, 'ivory-search' );
112
+ if ( 0 !== $is_ivory && FALSE === $is_ivory && (!isset( $_GET['is_dismiss'] ) || 'notice_config' !== $_GET['is_dismiss']) ) {
113
+
114
+ if ( !isset( $this->opt['is_notices']['config'] ) || !$this->opt['is_notices']['config'] ) {
115
+ $url = ( is_network_admin() ? network_site_url() : site_url( '/' ) );
116
+ echo '<div class="notice ivory-search"><p>' . sprintf(
117
+ __( 'To configure <em>Ivory Search plugin</em> please visit its <a href="%1$s">configuration page</a> and to get plugin support contact us on <a href="%2$s" target="_blank">plugin support forum</a> or <a href="%3$s" target="_blank">contact us page</a>.', 'ivory-search' ),
118
+ $url . 'wp-admin/admin.php?page=ivory-search',
119
+ 'https://ivorysearch.com/support/',
120
+ 'https://ivorysearch.com/contact/'
121
+ ) ;
122
+ echo '<a class="is-notice-dismiss" href="' . add_query_arg( 'is_dismiss', 'notice_config' ) . '">' . __( 'Dismiss', 'iovry-search' ) . '</a></p></div>' ;
123
+ }
124
+
125
+ }
126
+ $display_review = true;
127
+ //Don't display if dismissed
128
+ if ( isset( $this->opt['is_notices']['review'] ) && $this->opt['is_notices']['review'] ) {
129
+ $display_review = false;
130
+ }
131
+ //Don't display on seoncary screens, don't be too nagging
132
+ if ( isset( $_GET['action'] ) && $_GET['action'] == 'edit' || $screen->action == 'add' || $screen->base == 'plugins' || $screen->base == 'widgets' ) {
133
+ $display_review = false;
134
+ }
135
+ $date = get_option( 'is_install', false );
136
+
137
+ if ( $date && $display_review ) {
138
+ $diff = time() - strtotime( $date );
139
+
140
+ if ( $diff > 900000 ) {
141
+ echo '<div class="is-notice notice"><div class="is-notice-image"></div><div class="is-notice-body">' ;
142
+ echo '<a class="is-notice-dismiss" href="' . add_query_arg( 'is_dismiss', 'notice_review' ) . '">' . esc_html__( 'Dismiss', 'iovry-search' ) . '</a>' ;
143
+ echo '<div class="is-notice-title">' . esc_html__( 'Have you found Ivory Search plugin useful?', 'iovry-search' ) . '</div>' ;
144
+ echo '<div class="is-notice-content">' . esc_html__( 'We poured a lot of hours into creating it, and we\'d love it if you could give us a nice rating on the official plugin directory.', 'iovry-search' ) . '</div>' ;
145
+ echo '<div class="is-notice-links">' ;
146
+ echo '<a href="' . esc_url( 'https://wordpress.org/support/plugin/add-search-to-menu/reviews/?filter=5#new-post' ) . '" class="button button-primary" target="_blank" >' . esc_html__( 'Rate Ivory Search and Help Us Out', 'iovry-search' ) . '</a>' ;
147
+ echo '<a href="' . esc_url( 'https://ivorysearch.com/support/' ) . '" class="button button-primary" target="_blank">' . esc_html__( 'Get Support', 'iovry-search' ) . '</a>' ;
148
+ echo '<a href="' . esc_url( 'https://ivorysearch.com/contact/' ) . '" class="button button-primary" target="_blank">' . esc_html__( 'Say Hi', 'iovry-search' ) . '</a>' ;
149
+ echo '</div></div></div>' ;
150
+ }
151
+
152
+ }
153
 
 
 
 
154
  }
155
+
 
156
  }
157
 
158
  /**
206
  */
207
  function admin_footer()
208
  {
 
 
 
 
209
  ?>
210
+ <style type="text/css">
211
+ /* ADMIN NOTICES */
212
+ .is-notice { margin:20px 0; border:none; padding:0; overflow:hidden; background:#e6e9ec; max-width:900px; }
213
+ .is-notice-dismiss { display:block; float:right; color:#999; line-height:1; margin:0 0 0 15px; text-decoration:none; }
214
+ .is-notice-image { float:left; margin:10px; width:90px; height:90px; background:url(<?php
215
+ echo esc_url( plugins_url( 'assets/logo.jpg', __FILE__ ) ) ;
216
+ ?>) no-repeat center; background-size:cover; }
217
+ .is-notice-body { margin:0 0 0 110px; padding:15px; background:#fff; }
218
+ .is-notice-title { font-size:16px; font-weight:bold; margin:0 0 5px; }
219
+ .is-notice-content { margin:0 0 10px; padding:0; }
220
+ .is-notice-links a.button { margin-right: 10px;text-decoration: none;}
221
+ </style>
 
 
 
 
 
 
222
  <?php
223
  }
224
 
228
  function admin_init()
229
  {
230
 
231
+ if ( isset( $_GET['is_dismiss'] ) && '' !== $_GET['is_dismiss'] ) {
232
+ $is_notices = get_option( 'is_notices', array() );
233
+
234
+ if ( 'notice_config' === $_GET['is_dismiss'] ) {
235
+ $is_notices['is_notices']['config'] = 1;
236
+ } else {
237
+ if ( 'notice_review' === $_GET['is_dismiss'] ) {
238
+ $is_notices['is_notices']['review'] = 1;
239
+ }
240
+ }
241
+
242
+ update_option( 'is_notices', $is_notices );
243
+ wp_redirect( remove_query_arg( 'is_dismiss' ) );
244
+ }
245
+
246
+ if ( !get_option( 'is_install', false ) ) {
247
+ update_option( 'is_install', date( 'Y-m-d' ) );
248
+ }
249
+
250
  if ( !empty($GLOBALS['pagenow']) && ('admin.php' === $GLOBALS['pagenow'] || 'options.php' === $GLOBALS['pagenow']) ) {
251
  $settings_fields = new IS_Settings_Fields( $this->opt );
252
  $settings_fields->register_settings_fields();
admin/class-is-editor.php CHANGED
@@ -327,7 +327,7 @@ class IS_Search_Editor
327
  echo '<span class="ind-status ' . $id . '-tax_query"></span>' ;
328
  }
329
  } else {
330
- _e( 'No taxonomies registered for slected post types.', 'ivory-search' );
331
  }
332
 
333
  ?>
@@ -826,7 +826,7 @@ class IS_Search_Editor
826
  foreach ( $post_types as $post_type ) {
827
  $posts = get_posts( array(
828
  'post_type' => $post_type,
829
- 'posts_per_page' => 3,
830
  'orderby' => 'title',
831
  'order' => 'ASC',
832
  ) );
@@ -850,7 +850,7 @@ class IS_Search_Editor
850
  $html .= $col_title . '<input class="list-search" placeholder="' . __( "Search..", 'ivory-search' ) . '" type="text"></div>';
851
  $html .= '<select class="_is_excludes-post__not_in" name="' . $id . '[post__not_in][]" multiple size="8" >';
852
  $html .= $temp . '</select>';
853
- if ( count( $posts ) >= 3 ) {
854
  $html .= '<div id="' . $post_type . '" class="load-all">' . __( 'Load All', 'ivory-search' ) . '</div>';
855
  }
856
  $html .= '</div>';
@@ -918,7 +918,7 @@ class IS_Search_Editor
918
  echo '<span class="ind-status ' . $id . '-tax_query"></span>' ;
919
  }
920
  } else {
921
- _e( 'No taxonomies registered for slected post types.', 'ivory-search' );
922
  }
923
 
924
  ?>
@@ -1036,7 +1036,7 @@ class IS_Search_Editor
1036
  ?></a></span></h3>
1037
  <div>
1038
  <?php
1039
- $content = __( 'Exclude posts from the search created by slected authors.', 'ivory-search' );
1040
  IS_Help::help_info( $content );
1041
  echo '<div>' ;
1042
 
327
  echo '<span class="ind-status ' . $id . '-tax_query"></span>' ;
328
  }
329
  } else {
330
+ _e( 'No taxonomies registered for selected post types.', 'ivory-search' );
331
  }
332
 
333
  ?>
826
  foreach ( $post_types as $post_type ) {
827
  $posts = get_posts( array(
828
  'post_type' => $post_type,
829
+ 'posts_per_page' => 100,
830
  'orderby' => 'title',
831
  'order' => 'ASC',
832
  ) );
850
  $html .= $col_title . '<input class="list-search" placeholder="' . __( "Search..", 'ivory-search' ) . '" type="text"></div>';
851
  $html .= '<select class="_is_excludes-post__not_in" name="' . $id . '[post__not_in][]" multiple size="8" >';
852
  $html .= $temp . '</select>';
853
+ if ( count( $posts ) >= 100 ) {
854
  $html .= '<div id="' . $post_type . '" class="load-all">' . __( 'Load All', 'ivory-search' ) . '</div>';
855
  }
856
  $html .= '</div>';
918
  echo '<span class="ind-status ' . $id . '-tax_query"></span>' ;
919
  }
920
  } else {
921
+ _e( 'No taxonomies registered for selected post types.', 'ivory-search' );
922
  }
923
 
924
  ?>
1036
  ?></a></span></h3>
1037
  <div>
1038
  <?php
1039
+ $content = __( 'Exclude posts from the search created by selected authors.', 'ivory-search' );
1040
  IS_Help::help_info( $content );
1041
  echo '<div>' ;
1042
 
admin/class-is-settings-fields.php CHANGED
@@ -34,7 +34,8 @@ class IS_Settings_Fields
34
  public function __construct( $is = null )
35
  {
36
  $new_opt = get_option( 'ivory_search' );
37
- if ( !empty($new_opt) ) {
 
38
  $this->ivory_search = true;
39
  }
40
 
@@ -367,12 +368,9 @@ class IS_Settings_Fields
367
  'popup' => __( 'Popup', 'ivory-search' ),
368
  );
369
  $popup_disable = ( is_fs()->is_plan_or_trial( 'pro' ) && $this->is_premium_plugin ? false : true );
370
-
371
  if ( empty($this->opt) || !isset( $this->opt['add_search_to_menu_style'] ) && !isset( $this->opt['menu_style'] ) ) {
372
  $this->opt['menu_style'] = 'default';
373
- update_option( 'ivory_search', $this->opt );
374
  }
375
-
376
  $html = '';
377
  $check_value = ( isset( $this->opt['add_search_to_menu_style'] ) ? $this->opt['add_search_to_menu_style'] : 'default' );
378
  $check_value = ( isset( $this->opt['menu_style'] ) ? $this->opt['menu_style'] : $check_value );
34
  public function __construct( $is = null )
35
  {
36
  $new_opt = get_option( 'ivory_search' );
37
+ $new_opt2 = get_option( 'is_menu_search' );
38
+ if ( !empty($new_opt) || !empty($new_opt2) ) {
39
  $this->ivory_search = true;
40
  }
41
 
368
  'popup' => __( 'Popup', 'ivory-search' ),
369
  );
370
  $popup_disable = ( is_fs()->is_plan_or_trial( 'pro' ) && $this->is_premium_plugin ? false : true );
 
371
  if ( empty($this->opt) || !isset( $this->opt['add_search_to_menu_style'] ) && !isset( $this->opt['menu_style'] ) ) {
372
  $this->opt['menu_style'] = 'default';
 
373
  }
 
374
  $html = '';
375
  $check_value = ( isset( $this->opt['add_search_to_menu_style'] ) ? $this->opt['add_search_to_menu_style'] : 'default' );
376
  $check_value = ( isset( $this->opt['menu_style'] ) ? $this->opt['menu_style'] : $check_value );
admin/css/ivory-search-admin.css CHANGED
@@ -669,4 +669,4 @@ h4.panel-desc {
669
  .col-wrapper {
670
  width: 100%;
671
  }
672
- }
669
  .col-wrapper {
670
  width: 100%;
671
  }
672
+ }
includes/class-is-deactivator.php CHANGED
@@ -19,11 +19,12 @@ class IS_Deactivator {
19
  */
20
  public static function deactivate() {
21
 
22
- $opt = Ivory_Search::load_options();
23
 
24
- if ( isset( $opt['dismiss_admin_notices'] ) ) {
25
- unset( $opt['dismiss_admin_notices'] );
26
- update_option( 'is_settings', $opt );
 
27
  }
28
  }
29
  }
19
  */
20
  public static function deactivate() {
21
 
22
+ $is = Ivory_Search::getInstance();
23
 
24
+ if ( isset( $is->opt['is_notices']['config'] ) ) {
25
+ $is_notices = get_option( 'is_notices', array() );
26
+ unset( $is_notices['is_notices']['config'] );
27
+ update_option( 'is_notices', $is_notices );
28
  }
29
  }
30
  }
includes/class-is.php CHANGED
@@ -102,15 +102,11 @@ class IS_Loader {
102
  private function admin_hooks() {
103
  $admin = IS_Admin::getInstance();
104
 
105
- if ( ! defined( 'DISMISS_ADMIN_NOTICES' ) && ( ! isset( $this->opt['dismiss_admin_notices'] ) || ! $this->opt['dismiss_admin_notices'] ) ) {
106
- add_action( 'all_admin_notices', array( $admin, 'all_admin_notices' ) );
107
- add_action( 'admin_footer', array( $admin, 'admin_footer' ), 100 );
108
- }
109
 
110
  add_action( 'plugin_action_links', array( $admin, 'plugin_action_links' ), 10, 2 );
111
  add_action( 'admin_menu', array( $admin, 'admin_menu' ) );
112
- add_action( 'wp_ajax_nopriv_dismiss_notice', array( $admin, 'dismiss_notice' ) );
113
- add_action( 'wp_ajax_dismiss_notice', array( $admin, 'dismiss_notice' ) );
114
  add_action( 'wp_ajax_nopriv_display_posts', array( $admin, 'display_posts' ) );
115
  add_action( 'wp_ajax_display_posts', array( $admin, 'display_posts' ) );
116
  add_action( 'admin_enqueue_scripts', array( $admin, 'admin_enqueue_scripts' ) );
102
  private function admin_hooks() {
103
  $admin = IS_Admin::getInstance();
104
 
105
+ add_action( 'all_admin_notices', array( $admin, 'all_admin_notices' ) );
106
+ add_action( 'admin_footer', array( $admin, 'admin_footer' ), 100 );
 
 
107
 
108
  add_action( 'plugin_action_links', array( $admin, 'plugin_action_links' ), 10, 2 );
109
  add_action( 'admin_menu', array( $admin, 'admin_menu' ) );
 
 
110
  add_action( 'wp_ajax_nopriv_display_posts', array( $admin, 'display_posts' ) );
111
  add_action( 'wp_ajax_display_posts', array( $admin, 'display_posts' ) );
112
  add_action( 'admin_enqueue_scripts', array( $admin, 'admin_enqueue_scripts' ) );
languages/default.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Ivory Search\n"
4
- "POT-Creation-Date: 2018-11-29 20:10+0530\n"
5
- "PO-Revision-Date: 2018-11-29 20:10+0530\n"
6
  "Last-Translator: \n"
7
  "Language-Team: Ivory Search <admin@ivorysearch.com>\n"
8
  "Language: en_US\n"
@@ -34,106 +34,132 @@ msgid ""
34
  "target=\"_blank\">contact us page</a>."
35
  msgstr ""
36
 
37
- #: ../admin/class-is-admin.php:160
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  msgid "No posts found"
39
  msgstr ""
40
 
41
- #: ../admin/class-is-admin.php:258
42
  msgid "Search form created."
43
  msgstr ""
44
 
45
- #: ../admin/class-is-admin.php:260
46
  msgid "Search form saved."
47
  msgstr ""
48
 
49
- #: ../admin/class-is-admin.php:262
50
  msgid "Search form deleted."
51
  msgstr ""
52
 
53
- #: ../admin/class-is-admin.php:264
54
  msgid "Search form reset."
55
  msgstr ""
56
 
57
- #: ../admin/class-is-admin.php:273
58
  msgid "There was an error saving the search form."
59
  msgstr ""
60
 
61
- #: ../admin/class-is-admin.php:281
62
  msgid "There was a validation error saving the search form."
63
  msgstr ""
64
 
65
- #: ../admin/class-is-admin.php:283
66
  #, php-format
67
  msgid ""
68
  "Please make sure you have not selected similar %s fields in the search form "
69
  "Includes and Excludes sections."
70
  msgstr ""
71
 
72
- #: ../admin/class-is-admin.php:293 ../includes/class-is-widget.php:13
73
  #: ../includes/class-is-widget.php:45
74
  msgid "Ivory Search"
75
  msgstr ""
76
 
77
- #: ../admin/class-is-admin.php:295 ../admin/class-is-admin.php:333
78
  #: ../includes/class-is-search-form.php:59
79
  msgid "Search Forms"
80
  msgstr ""
81
 
82
- #: ../admin/class-is-admin.php:298 ../admin/partials/search-form.php:21
83
  msgid "Add New Search Form"
84
  msgstr ""
85
 
86
- #: ../admin/class-is-admin.php:298 ../admin/class-is-admin.php:340
87
  #: ../admin/partials/search-form.php:31
88
  msgid "Add New"
89
  msgstr ""
90
 
91
- #: ../admin/class-is-admin.php:301 ../admin/partials/settings-form.php:20
92
  msgid "Ivory Search Settings"
93
  msgstr ""
94
 
95
- #: ../admin/class-is-admin.php:301 ../admin/class-is-help.php:64
96
  msgid "Settings"
97
  msgstr ""
98
 
99
- #: ../admin/class-is-admin.php:346
100
  #, php-format
101
  msgid "Search results for &#8220;%s&#8221;"
102
  msgstr ""
103
 
104
- #: ../admin/class-is-admin.php:357
105
  msgid "Search Search Forms"
106
  msgstr ""
107
 
108
- #: ../admin/class-is-admin.php:401
109
  msgid "You are not allowed to edit this item."
110
  msgstr ""
111
 
112
- #: ../admin/class-is-admin.php:483
113
  msgid "You are not allowed to reset this item."
114
  msgstr ""
115
 
116
- #: ../admin/class-is-admin.php:517
117
  msgid "You are not allowed to copy this item."
118
  msgstr ""
119
 
120
- #: ../admin/class-is-admin.php:558
121
  msgid "You are not allowed to delete this item."
122
  msgstr ""
123
 
124
- #: ../admin/class-is-admin.php:562
125
  msgid "Error in deleting."
126
  msgstr ""
127
 
128
- #: ../admin/class-is-admin.php:774
129
  msgid "Save Form"
130
  msgstr ""
131
 
132
- #: ../admin/class-is-admin.php:786
133
  msgid "Upgrade To Access"
134
  msgstr ""
135
 
136
- #: ../admin/class-is-admin.php:793
137
  msgid "Install Pro Version To Access"
138
  msgstr ""
139
 
@@ -159,7 +185,7 @@ msgstr ""
159
  #: ../admin/class-is-editor.php:1106 ../admin/class-is-editor.php:1123
160
  #: ../admin/class-is-editor.php:1146 ../admin/class-is-editor.php:1161
161
  #: ../admin/class-is-editor.php:1176 ../admin/class-is-editor.php:1191
162
- #: ../admin/class-is-editor.php:1206 ../admin/class-is-settings-fields.php:117
163
  msgid "Expand All"
164
  msgstr ""
165
 
@@ -177,7 +203,7 @@ msgstr ""
177
  #: ../admin/class-is-editor.php:1106 ../admin/class-is-editor.php:1123
178
  #: ../admin/class-is-editor.php:1146 ../admin/class-is-editor.php:1161
179
  #: ../admin/class-is-editor.php:1176 ../admin/class-is-editor.php:1191
180
- #: ../admin/class-is-editor.php:1206 ../admin/class-is-settings-fields.php:117
181
  msgid "Collapse All"
182
  msgstr ""
183
 
@@ -284,7 +310,7 @@ msgid "Search in taxonomy terms description."
284
  msgstr ""
285
 
286
  #: ../admin/class-is-editor.php:305 ../admin/class-is-editor.php:777
287
- msgid "No taxonomies registered for slected post types."
288
  msgstr ""
289
 
290
  #: ../admin/class-is-editor.php:312 ../admin/class-is-editor.php:784
@@ -487,7 +513,7 @@ msgid "Exclude 'out of stock' WooCommerce products."
487
  msgstr ""
488
 
489
  #: ../admin/class-is-editor.php:858
490
- msgid "Exclude posts from the search created by slected authors."
491
  msgstr ""
492
 
493
  #: ../admin/class-is-editor.php:893
@@ -641,7 +667,7 @@ msgstr ""
641
  msgid "Display search form only for site administrator."
642
  msgstr ""
643
 
644
- #: ../admin/class-is-editor.php:1205 ../admin/class-is-settings-fields.php:162
645
  msgid "Disable"
646
  msgstr ""
647
 
@@ -822,7 +848,7 @@ msgid "Edit &#8220;%s&#8221;"
822
  msgstr ""
823
 
824
  #: ../admin/class-is-list-table.php:150
825
- #: ../admin/class-is-settings-fields.php:250
826
  #: ../admin/class-is-settings-fields.php:381
827
  #: ../admin/class-is-settings-fields.php:413 ../includes/class-is-widget.php:69
828
  msgid "Edit"
@@ -851,115 +877,115 @@ msgstr ""
851
  msgid "d/m/Y"
852
  msgstr ""
853
 
854
- #: ../admin/class-is-settings-fields.php:141
855
  msgid "Select Menu"
856
  msgstr ""
857
 
858
- #: ../admin/class-is-settings-fields.php:142
859
  #: ../includes/class-is-search-form.php:60
860
  msgid "Search Form"
861
  msgstr ""
862
 
863
- #: ../admin/class-is-settings-fields.php:143
864
  msgid "Form Style"
865
  msgstr ""
866
 
867
- #: ../admin/class-is-settings-fields.php:144
868
  msgid "Menu Title"
869
  msgstr ""
870
 
871
- #: ../admin/class-is-settings-fields.php:145
872
  msgid "Menu Classes"
873
  msgstr ""
874
 
875
- #: ../admin/class-is-settings-fields.php:146
876
  msgid "Google CSE"
877
  msgstr ""
878
 
879
- #: ../admin/class-is-settings-fields.php:147
880
  msgid "Close Icon"
881
  msgstr ""
882
 
883
- #: ../admin/class-is-settings-fields.php:155
884
  msgid "Header"
885
  msgstr ""
886
 
887
- #: ../admin/class-is-settings-fields.php:156
888
  msgid "Footer"
889
  msgstr ""
890
 
891
- #: ../admin/class-is-settings-fields.php:157
892
  msgid "Mobile Display"
893
  msgstr ""
894
 
895
- #: ../admin/class-is-settings-fields.php:158
896
  msgid "Custom CSS"
897
  msgstr ""
898
 
899
- #: ../admin/class-is-settings-fields.php:159
900
  msgid "Stopwords"
901
  msgstr ""
902
 
903
- #: ../admin/class-is-settings-fields.php:160
904
  msgid "Synonyms"
905
  msgstr ""
906
 
907
- #: ../admin/class-is-settings-fields.php:161
908
  msgid "Not load files"
909
  msgstr ""
910
 
911
- #: ../admin/class-is-settings-fields.php:163
912
  msgid "Default Search"
913
  msgstr ""
914
 
915
- #: ../admin/class-is-settings-fields.php:173
916
  msgid "Use below options to display search in menu and configure it."
917
  msgstr ""
918
 
919
- #: ../admin/class-is-settings-fields.php:180
920
  msgid "Use below options to make sitewide changes in search."
921
  msgstr ""
922
 
923
- #: ../admin/class-is-settings-fields.php:188
924
  msgid "Select menu here where you want to display search form."
925
  msgstr ""
926
 
927
- #: ../admin/class-is-settings-fields.php:208
928
  msgid "No navigation menu registered on your site."
929
  msgstr ""
930
 
931
- #: ../admin/class-is-settings-fields.php:218
932
  msgid ""
933
  "Select search form that will control search performed using menu search."
934
  msgstr ""
935
 
936
- #: ../admin/class-is-settings-fields.php:252
937
  #: ../admin/class-is-settings-fields.php:383
938
  #: ../admin/class-is-settings-fields.php:415 ../includes/class-is-widget.php:71
939
  msgid "Create New"
940
  msgstr ""
941
 
942
- #: ../admin/class-is-settings-fields.php:264
943
  msgid "Select form style for the search form displayed in the menu."
944
  msgstr ""
945
 
946
- #: ../admin/class-is-settings-fields.php:268
947
  msgid "Default"
948
  msgstr ""
949
 
950
- #: ../admin/class-is-settings-fields.php:269
951
  msgid "Dropdown"
952
  msgstr ""
953
 
954
- #: ../admin/class-is-settings-fields.php:270
955
  msgid "Sliding"
956
  msgstr ""
957
 
958
- #: ../admin/class-is-settings-fields.php:271
959
  msgid "Full Width"
960
  msgstr ""
961
 
962
- #: ../admin/class-is-settings-fields.php:272
963
  msgid "Popup"
964
  msgstr ""
965
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Ivory Search\n"
4
+ "POT-Creation-Date: 2018-12-10 15:03+0530\n"
5
+ "PO-Revision-Date: 2018-12-10 15:03+0530\n"
6
  "Last-Translator: \n"
7
  "Language-Team: Ivory Search <admin@ivorysearch.com>\n"
8
  "Language: en_US\n"
34
  "target=\"_blank\">contact us page</a>."
35
  msgstr ""
36
 
37
+ #: ../admin/class-is-admin.php:115 ../admin/class-is-admin.php:136
38
+ msgid "Dismiss"
39
+ msgstr ""
40
+
41
+ #: ../admin/class-is-admin.php:137
42
+ msgid "Have you found Ivory Search plugin useful?"
43
+ msgstr ""
44
+
45
+ #: ../admin/class-is-admin.php:138
46
+ msgid ""
47
+ "We poured a lot of hours into creating it, and we'd love it if you could "
48
+ "give us a nice rating on the official plugin directory."
49
+ msgstr ""
50
+
51
+ #: ../admin/class-is-admin.php:140
52
+ msgid "Rate Ivory Search and Help Us Out"
53
+ msgstr ""
54
+
55
+ #: ../admin/class-is-admin.php:141
56
+ msgid "Get Support"
57
+ msgstr ""
58
+
59
+ #: ../admin/class-is-admin.php:142
60
+ msgid "Say Hi"
61
+ msgstr ""
62
+
63
+ #: ../admin/class-is-admin.php:180
64
  msgid "No posts found"
65
  msgstr ""
66
 
67
+ #: ../admin/class-is-admin.php:283
68
  msgid "Search form created."
69
  msgstr ""
70
 
71
+ #: ../admin/class-is-admin.php:285
72
  msgid "Search form saved."
73
  msgstr ""
74
 
75
+ #: ../admin/class-is-admin.php:287
76
  msgid "Search form deleted."
77
  msgstr ""
78
 
79
+ #: ../admin/class-is-admin.php:289
80
  msgid "Search form reset."
81
  msgstr ""
82
 
83
+ #: ../admin/class-is-admin.php:298
84
  msgid "There was an error saving the search form."
85
  msgstr ""
86
 
87
+ #: ../admin/class-is-admin.php:306
88
  msgid "There was a validation error saving the search form."
89
  msgstr ""
90
 
91
+ #: ../admin/class-is-admin.php:308
92
  #, php-format
93
  msgid ""
94
  "Please make sure you have not selected similar %s fields in the search form "
95
  "Includes and Excludes sections."
96
  msgstr ""
97
 
98
+ #: ../admin/class-is-admin.php:318 ../includes/class-is-widget.php:13
99
  #: ../includes/class-is-widget.php:45
100
  msgid "Ivory Search"
101
  msgstr ""
102
 
103
+ #: ../admin/class-is-admin.php:320 ../admin/class-is-admin.php:358
104
  #: ../includes/class-is-search-form.php:59
105
  msgid "Search Forms"
106
  msgstr ""
107
 
108
+ #: ../admin/class-is-admin.php:323 ../admin/partials/search-form.php:21
109
  msgid "Add New Search Form"
110
  msgstr ""
111
 
112
+ #: ../admin/class-is-admin.php:323 ../admin/class-is-admin.php:365
113
  #: ../admin/partials/search-form.php:31
114
  msgid "Add New"
115
  msgstr ""
116
 
117
+ #: ../admin/class-is-admin.php:326 ../admin/partials/settings-form.php:20
118
  msgid "Ivory Search Settings"
119
  msgstr ""
120
 
121
+ #: ../admin/class-is-admin.php:326 ../admin/class-is-help.php:64
122
  msgid "Settings"
123
  msgstr ""
124
 
125
+ #: ../admin/class-is-admin.php:371
126
  #, php-format
127
  msgid "Search results for &#8220;%s&#8221;"
128
  msgstr ""
129
 
130
+ #: ../admin/class-is-admin.php:382
131
  msgid "Search Search Forms"
132
  msgstr ""
133
 
134
+ #: ../admin/class-is-admin.php:426
135
  msgid "You are not allowed to edit this item."
136
  msgstr ""
137
 
138
+ #: ../admin/class-is-admin.php:508
139
  msgid "You are not allowed to reset this item."
140
  msgstr ""
141
 
142
+ #: ../admin/class-is-admin.php:542
143
  msgid "You are not allowed to copy this item."
144
  msgstr ""
145
 
146
+ #: ../admin/class-is-admin.php:583
147
  msgid "You are not allowed to delete this item."
148
  msgstr ""
149
 
150
+ #: ../admin/class-is-admin.php:587
151
  msgid "Error in deleting."
152
  msgstr ""
153
 
154
+ #: ../admin/class-is-admin.php:799
155
  msgid "Save Form"
156
  msgstr ""
157
 
158
+ #: ../admin/class-is-admin.php:811
159
  msgid "Upgrade To Access"
160
  msgstr ""
161
 
162
+ #: ../admin/class-is-admin.php:818
163
  msgid "Install Pro Version To Access"
164
  msgstr ""
165
 
185
  #: ../admin/class-is-editor.php:1106 ../admin/class-is-editor.php:1123
186
  #: ../admin/class-is-editor.php:1146 ../admin/class-is-editor.php:1161
187
  #: ../admin/class-is-editor.php:1176 ../admin/class-is-editor.php:1191
188
+ #: ../admin/class-is-editor.php:1206 ../admin/class-is-settings-fields.php:118
189
  msgid "Expand All"
190
  msgstr ""
191
 
203
  #: ../admin/class-is-editor.php:1106 ../admin/class-is-editor.php:1123
204
  #: ../admin/class-is-editor.php:1146 ../admin/class-is-editor.php:1161
205
  #: ../admin/class-is-editor.php:1176 ../admin/class-is-editor.php:1191
206
+ #: ../admin/class-is-editor.php:1206 ../admin/class-is-settings-fields.php:118
207
  msgid "Collapse All"
208
  msgstr ""
209
 
310
  msgstr ""
311
 
312
  #: ../admin/class-is-editor.php:305 ../admin/class-is-editor.php:777
313
+ msgid "No taxonomies registered for selected post types."
314
  msgstr ""
315
 
316
  #: ../admin/class-is-editor.php:312 ../admin/class-is-editor.php:784
513
  msgstr ""
514
 
515
  #: ../admin/class-is-editor.php:858
516
+ msgid "Exclude posts from the search created by selected authors."
517
  msgstr ""
518
 
519
  #: ../admin/class-is-editor.php:893
667
  msgid "Display search form only for site administrator."
668
  msgstr ""
669
 
670
+ #: ../admin/class-is-editor.php:1205 ../admin/class-is-settings-fields.php:163
671
  msgid "Disable"
672
  msgstr ""
673
 
848
  msgstr ""
849
 
850
  #: ../admin/class-is-list-table.php:150
851
+ #: ../admin/class-is-settings-fields.php:251
852
  #: ../admin/class-is-settings-fields.php:381
853
  #: ../admin/class-is-settings-fields.php:413 ../includes/class-is-widget.php:69
854
  msgid "Edit"
877
  msgid "d/m/Y"
878
  msgstr ""
879
 
880
+ #: ../admin/class-is-settings-fields.php:142
881
  msgid "Select Menu"
882
  msgstr ""
883
 
884
+ #: ../admin/class-is-settings-fields.php:143
885
  #: ../includes/class-is-search-form.php:60
886
  msgid "Search Form"
887
  msgstr ""
888
 
889
+ #: ../admin/class-is-settings-fields.php:144
890
  msgid "Form Style"
891
  msgstr ""
892
 
893
+ #: ../admin/class-is-settings-fields.php:145
894
  msgid "Menu Title"
895
  msgstr ""
896
 
897
+ #: ../admin/class-is-settings-fields.php:146
898
  msgid "Menu Classes"
899
  msgstr ""
900
 
901
+ #: ../admin/class-is-settings-fields.php:147
902
  msgid "Google CSE"
903
  msgstr ""
904
 
905
+ #: ../admin/class-is-settings-fields.php:148
906
  msgid "Close Icon"
907
  msgstr ""
908
 
909
+ #: ../admin/class-is-settings-fields.php:156
910
  msgid "Header"
911
  msgstr ""
912
 
913
+ #: ../admin/class-is-settings-fields.php:157
914
  msgid "Footer"
915
  msgstr ""
916
 
917
+ #: ../admin/class-is-settings-fields.php:158
918
  msgid "Mobile Display"
919
  msgstr ""
920
 
921
+ #: ../admin/class-is-settings-fields.php:159
922
  msgid "Custom CSS"
923
  msgstr ""
924
 
925
+ #: ../admin/class-is-settings-fields.php:160
926
  msgid "Stopwords"
927
  msgstr ""
928
 
929
+ #: ../admin/class-is-settings-fields.php:161
930
  msgid "Synonyms"
931
  msgstr ""
932
 
933
+ #: ../admin/class-is-settings-fields.php:162
934
  msgid "Not load files"
935
  msgstr ""
936
 
937
+ #: ../admin/class-is-settings-fields.php:164
938
  msgid "Default Search"
939
  msgstr ""
940
 
941
+ #: ../admin/class-is-settings-fields.php:174
942
  msgid "Use below options to display search in menu and configure it."
943
  msgstr ""
944
 
945
+ #: ../admin/class-is-settings-fields.php:181
946
  msgid "Use below options to make sitewide changes in search."
947
  msgstr ""
948
 
949
+ #: ../admin/class-is-settings-fields.php:189
950
  msgid "Select menu here where you want to display search form."
951
  msgstr ""
952
 
953
+ #: ../admin/class-is-settings-fields.php:209
954
  msgid "No navigation menu registered on your site."
955
  msgstr ""
956
 
957
+ #: ../admin/class-is-settings-fields.php:219
958
  msgid ""
959
  "Select search form that will control search performed using menu search."
960
  msgstr ""
961
 
962
+ #: ../admin/class-is-settings-fields.php:253
963
  #: ../admin/class-is-settings-fields.php:383
964
  #: ../admin/class-is-settings-fields.php:415 ../includes/class-is-widget.php:71
965
  msgid "Create New"
966
  msgstr ""
967
 
968
+ #: ../admin/class-is-settings-fields.php:265
969
  msgid "Select form style for the search form displayed in the menu."
970
  msgstr ""
971
 
972
+ #: ../admin/class-is-settings-fields.php:269
973
  msgid "Default"
974
  msgstr ""
975
 
976
+ #: ../admin/class-is-settings-fields.php:270
977
  msgid "Dropdown"
978
  msgstr ""
979
 
980
+ #: ../admin/class-is-settings-fields.php:271
981
  msgid "Sliding"
982
  msgstr ""
983
 
984
+ #: ../admin/class-is-settings-fields.php:272
985
  msgid "Full Width"
986
  msgstr ""
987
 
988
+ #: ../admin/class-is-settings-fields.php:273
989
  msgid "Popup"
990
  msgstr ""
991
 
public/class-is-public.php CHANGED
@@ -28,7 +28,8 @@ class IS_Public
28
  {
29
  $is = Ivory_Search::getInstance();
30
  $new_opt = get_option( 'ivory_search' );
31
- if ( !empty($new_opt) ) {
 
32
  $this->ivory_search = true;
33
  }
34
 
28
  {
29
  $is = Ivory_Search::getInstance();
30
  $new_opt = get_option( 'ivory_search' );
31
+ $new_opt2 = get_option( 'is_menu_search' );
32
+ if ( !empty($new_opt) || !empty($new_opt2) ) {
33
  $this->ivory_search = true;
34
  }
35
 
public/js/ivory-search.js CHANGED
@@ -45,18 +45,20 @@
45
  return false;
46
  } );
47
 
48
- $( window ).click( function() {
49
- if ( $( '.is-menu' ).hasClass( 'open' ) ) {
50
- $( '.is-menu form' ).animate(
51
- { width: '0' },
52
- 400,
53
- function() {
54
- $( '.is-menu' ).removeClass( 'active-search' );
55
- $( '.is-menu' ).removeClass( 'open' );
56
- }
57
- );
58
- } else if ( $( '.is-menu' ).hasClass( 'dropdown' ) ) {
59
- $( '.is-menu form' ).fadeOut();
 
 
60
  }
61
  });
62
  } )( jQuery );
45
  return false;
46
  } );
47
 
48
+ $( window ).click( function( e ) {
49
+ if ( 0 === e.button ) {
50
+ if ( $( '.is-menu' ).hasClass( 'open' ) ) {
51
+ $( '.is-menu form' ).animate(
52
+ { width: '0' },
53
+ 400,
54
+ function() {
55
+ $( '.is-menu' ).removeClass( 'active-search' );
56
+ $( '.is-menu' ).removeClass( 'open' );
57
+ }
58
+ );
59
+ } else if ( $( '.is-menu' ).hasClass( 'dropdown' ) ) {
60
+ $( '.is-menu form' ).fadeOut();
61
+ }
62
  }
63
  });
64
  } )( jQuery );
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: search, search menu, woocommerce search, search plugin, search shortcode,
5
  Requires at least: 3.9
6
  Tested up to: 5.0
7
  Requires PHP: 5.2.4
8
- Stable tag: 4.1.4
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -55,6 +55,7 @@ Feel free to ask it using [Contact Form](https://ivorysearch.com/contact/).
55
  <li> Search in category or taxonomy terms description.</li>
56
  <li> Search posts having specific custom fields or metadata.</li>
57
  <li> Search WooCommerce products SKU. [Premium]</li>
 
58
  <li> Search posts created by specific authors. [Premium]</li>
59
  <li> Search in author Display name and display the posts created by that author.</li>
60
  <li> Search posts having specific statuses. [Premium]</li>
@@ -177,9 +178,12 @@ Yes we do. We try our best to help free users with customisation requests and we
177
 
178
  == Changelog ==
179
 
 
 
 
180
  = 4.1.4 =
181
  * Searches in WooCommerce products variation.
182
- * Fixed - Firefox browser dropdown select issue
183
  * Optimized plugin admin options.
184
 
185
  = 4.1.3 =
5
  Requires at least: 3.9
6
  Tested up to: 5.0
7
  Requires PHP: 5.2.4
8
+ Stable tag: 4.1.5
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
55
  <li> Search in category or taxonomy terms description.</li>
56
  <li> Search posts having specific custom fields or metadata.</li>
57
  <li> Search WooCommerce products SKU. [Premium]</li>
58
+ <li> Search WooCommerce products variation. [Premium]</li>
59
  <li> Search posts created by specific authors. [Premium]</li>
60
  <li> Search in author Display name and display the posts created by that author.</li>
61
  <li> Search posts having specific statuses. [Premium]</li>
178
 
179
  == Changelog ==
180
 
181
+ = 4.1.5 =
182
+ * Fixed - Firefox browser right mouse click closing search form issue.
183
+
184
  = 4.1.4 =
185
  * Searches in WooCommerce products variation.
186
+ * Fixed - Firefox browser dropdown select issue.
187
  * Optimized plugin admin options.
188
 
189
  = 4.1.3 =