Ivory Search – WordPress Search Plugin - Version 4.5.6

Version Description

  • Fixed - Search form label accessibility issue.
  • Fixed - Mobile menu search issue.
  • Fixed - Whole fuzzy matching option was not working with older version of mysql.
  • Fixed - Compatibility issue with WPForms plugin on saving search form.
  • Improved - Delayed execution of the plugin and essential plugin hooks.
Download this release

Release Info

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

Code changes from version 4.5.5 to 4.5.6

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 that includes Search Form Customizer, WooCommerce Search, Image Search, Search Shortcode, AJAX Search & Live Search support!
6
- * Version: 4.5.5
7
  * Author: Ivory Search
8
  * Author URI: https://ivorysearch.com/
9
  * License: GPL2+
@@ -108,7 +108,7 @@ final class Ivory_Search {
108
  private function define_constants() {
109
 
110
  if ( ! defined( 'IS_VERSION' ) ) {
111
- define( 'IS_VERSION', '4.5.5' );
112
  }
113
  if ( ! defined( 'IS_PLUGIN_FILE' ) ) {
114
  define( 'IS_PLUGIN_FILE', __FILE__ );
@@ -178,5 +178,8 @@ final class Ivory_Search {
178
  /**
179
  * Starts plugin execution.
180
  */
181
- $is = Ivory_Search::getInstance();
182
- $is->start();
 
 
 
3
  * Plugin Name: Ivory Search
4
  * Plugin URI: https://ivorysearch.com
5
  * Description: The WordPress Search plugin that includes Search Form Customizer, WooCommerce Search, Image Search, Search Shortcode, AJAX Search & Live Search support!
6
+ * Version: 4.5.6
7
  * Author: Ivory Search
8
  * Author URI: https://ivorysearch.com/
9
  * License: GPL2+
108
  private function define_constants() {
109
 
110
  if ( ! defined( 'IS_VERSION' ) ) {
111
+ define( 'IS_VERSION', '4.5.6' );
112
  }
113
  if ( ! defined( 'IS_PLUGIN_FILE' ) ) {
114
  define( 'IS_PLUGIN_FILE', __FILE__ );
178
  /**
179
  * Starts plugin execution.
180
  */
181
+ function ivory_search_start(){
182
+ $is = Ivory_Search::getInstance();
183
+ $is->start();
184
+ }
185
+ add_action( 'plugins_loaded', 'ivory_search_start' );
admin/class-is-admin.php CHANGED
@@ -232,19 +232,6 @@ class IS_Admin
232
  if ( $hascaps ) {
233
  $screen = get_current_screen();
234
  $is_ivory = strpos( $screen->id, 'ivory-search' );
235
- if ( 0 !== $is_ivory && FALSE === $is_ivory && (!isset( $_GET['is_dismiss'] ) || 'notice_config' !== $_GET['is_dismiss']) ) {
236
-
237
- if ( !isset( $this->opt['is_notices']['config'] ) || !$this->opt['is_notices']['config'] ) {
238
- $url = ( is_network_admin() ? network_site_url() : site_url( '/' ) );
239
- echo '<div class="notice ivory-search is-notice-body"><a class="is-notice-dismiss" href="' . add_query_arg( 'is_dismiss', 'notice_config' ) . '">' . __( 'Dismiss', 'add-search-to-menu' ) . '</a><div>' ;
240
- echo __( 'Thank you for using', 'add-search-to-menu' ) . ' <strong>Ivory Search</strong> plugin. ' ;
241
- echo __( 'You can configure its', 'add-search-to-menu' ) . ' <a href="' . $url . 'wp-admin/admin.php?page=ivory-search">' . __( 'settings', 'add-search-to-menu' ) . '</a> ' ;
242
- echo __( 'and get support on', 'add-search-to-menu' ) . ' <a href="https://ivorysearch.com/support/" target="_blank">' . __( 'support forum', 'add-search-to-menu' ) . '</a> ' ;
243
- echo __( 'or', 'add-search-to-menu' ) . ' <a href="https://ivorysearch.com/contact/" target="_blank">' . __( 'contact us', 'add-search-to-menu' ) . '</a>.</div></div>' ;
244
- echo '' ;
245
- }
246
-
247
- }
248
  $display_review = true;
249
  //Don't display if dismissed
250
  if ( isset( $this->opt['is_notices']['review'] ) && $this->opt['is_notices']['review'] || isset( $_GET['is_dismiss'] ) && 'notice_review' == $_GET['is_dismiss'] ) {
@@ -339,7 +326,7 @@ class IS_Admin
339
  ?>) no-repeat center; background-size:cover; }
340
  .is-notice-body { padding:15px; background:#fff; }
341
  .is-notice-content { margin:0 0 10px; padding:0; }
342
- .is-notice-links a.button { margin-right: 10px;text-decoration: none;background: #e7f2f7 !important;color: #30667b !important;}
343
  .is-notice-links a.btn-highlight {background: #0071a1 !important;color: #FFF !important;}
344
  </style>
345
  <?php
@@ -355,15 +342,9 @@ class IS_Admin
355
 
356
  if ( isset( $_GET['is_dismiss'] ) && '' !== $_GET['is_dismiss'] ) {
357
  $is_notices = get_option( 'is_notices', array() );
358
-
359
- if ( 'notice_config' === $_GET['is_dismiss'] ) {
360
- $is_notices['is_notices']['config'] = 1;
361
- } else {
362
- if ( 'notice_review' === $_GET['is_dismiss'] ) {
363
- $is_notices['is_notices']['review'] = 1;
364
- }
365
  }
366
-
367
  update_option( 'is_notices', $is_notices );
368
  wp_redirect( remove_query_arg( 'is_dismiss' ) );
369
  }
@@ -506,14 +487,28 @@ class IS_Admin
506
  array( $this, 'search_forms_page' )
507
  );
508
  add_action( 'load-' . $edit, array( $this, 'load_admin_search_form' ) );
509
- $addnew = add_submenu_page(
510
- 'ivory-search',
511
- __( 'Add New Search Form', 'add-search-to-menu' ),
512
- __( 'New Search Form', 'add-search-to-menu' ),
513
- 'manage_options',
514
- 'ivory-search-new',
515
- array( $this, 'new_search_form_page' )
516
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
517
  add_action( 'load-' . $addnew, array( $this, 'load_admin_search_form' ) );
518
  $settings = add_submenu_page(
519
  'ivory-search',
232
  if ( $hascaps ) {
233
  $screen = get_current_screen();
234
  $is_ivory = strpos( $screen->id, 'ivory-search' );
 
 
 
 
 
 
 
 
 
 
 
 
 
235
  $display_review = true;
236
  //Don't display if dismissed
237
  if ( isset( $this->opt['is_notices']['review'] ) && $this->opt['is_notices']['review'] || isset( $_GET['is_dismiss'] ) && 'notice_review' == $_GET['is_dismiss'] ) {
326
  ?>) no-repeat center; background-size:cover; }
327
  .is-notice-body { padding:15px; background:#fff; }
328
  .is-notice-content { margin:0 0 10px; padding:0; }
329
+ .is-notice-links a.button { margin-right: 10px;text-decoration: none;background: #e7f2f7 !important;color: #30667b !important;box-shadow: none;text-shadow: none;}
330
  .is-notice-links a.btn-highlight {background: #0071a1 !important;color: #FFF !important;}
331
  </style>
332
  <?php
342
 
343
  if ( isset( $_GET['is_dismiss'] ) && '' !== $_GET['is_dismiss'] ) {
344
  $is_notices = get_option( 'is_notices', array() );
345
+ if ( 'notice_review' === $_GET['is_dismiss'] ) {
346
+ $is_notices['is_notices']['review'] = 1;
 
 
 
 
 
347
  }
 
348
  update_option( 'is_notices', $is_notices );
349
  wp_redirect( remove_query_arg( 'is_dismiss' ) );
350
  }
487
  array( $this, 'search_forms_page' )
488
  );
489
  add_action( 'load-' . $edit, array( $this, 'load_admin_search_form' ) );
490
+ $addnew = '';
491
+
492
+ if ( isset( $_GET['page'] ) && 'ivory-search-new' == $_GET['page'] ) {
493
+ $addnew = add_submenu_page(
494
+ 'ivory-search',
495
+ __( 'Add New Search Form', 'add-search-to-menu' ),
496
+ __( 'Add New', 'add-search-to-menu' ),
497
+ 'manage_options',
498
+ 'ivory-search-new',
499
+ array( $this, 'new_search_form_page' )
500
+ );
501
+ } else {
502
+ $addnew = add_submenu_page(
503
+ '',
504
+ __( 'Add New Search Form', 'add-search-to-menu' ),
505
+ __( 'Add New', 'add-search-to-menu' ),
506
+ 'manage_options',
507
+ 'ivory-search-new',
508
+ array( $this, 'new_search_form_page' )
509
+ );
510
+ }
511
+
512
  add_action( 'load-' . $addnew, array( $this, 'load_admin_search_form' ) );
513
  $settings = add_submenu_page(
514
  'ivory-search',
admin/class-is-editor.php CHANGED
@@ -177,7 +177,9 @@ class IS_Search_Editor
177
  } else {
178
  echo '<span style="display:none;" class="is-cb-select">' . __( 'Select Post Types', 'add-search-to-menu' ) . '</span><span class="is-cb-titles">' ;
179
  foreach ( $post_types2 as $post_type2 ) {
180
- echo '<span title="' . $post_type2 . '"> ' . $post_types[$post_type2]->labels->name . '</span>' ;
 
 
181
  }
182
  echo '</span>' ;
183
  }
@@ -208,6 +210,9 @@ class IS_Search_Editor
208
 
209
  <?php
210
  foreach ( $post_types2 as $post_type ) {
 
 
 
211
  $accord_title = $post_types[$post_type]->labels->name;
212
 
213
  if ( 'product' == $post_type ) {
@@ -297,9 +302,9 @@ class IS_Search_Editor
297
 
298
 
299
  if ( $posts_found ) {
300
- echo '<p class="check-radio"><label for="' . $post_type . '-post-search_all" ><input class="is-post-select" type="radio" id="' . $post_type . '-post-search_all" name="' . $post_type . '[post_search_radio]" value="all" ' . checked( 'all', $checked, false ) . '/>' ;
301
  echo '<span class="toggle-check-text"></span>' . sprintf( esc_html__( "Search all %s", 'add-search-to-menu' ), strtolower( $post_types[$post_type]->labels->name ) ) . '</label></p>' ;
302
- echo '<p class="check-radio"><label for="' . $post_type . '-post-search_selected" ><input class="is-post-select" type="radio" id="' . $post_type . '-post-search_selected" name="' . $post_type . '[post_search_radio]" value="selected" ' . checked( 'selected', $checked, false ) . '/>' ;
303
  echo '<span class="toggle-check-text"></span>' . sprintf( esc_html__( "Search only selected %s", 'add-search-to-menu' ), strtolower( $post_types[$post_type]->labels->name ) ) . '</label></p>' ;
304
  }
305
 
@@ -341,14 +346,14 @@ class IS_Search_Editor
341
  $html .= '<br /><label for="' . $id . '-tax_query" class="ctrl-multi-select">' . esc_html__( "Hold down the control (ctrl) or command button to select multiple options.", 'add-search-to-menu' ) . '</label><br />';
342
  $html .= '</div>';
343
  $checked = ( $selected_tax ? 'selected' : 'all' );
344
- echo '<br /><p class="check-radio"><label for="' . $post_type . '-tax-search_all" ><input class="is-tax-select" type="radio" id="' . $post_type . '-tax-search_all" name="' . $post_type . '[tax_search_radio]" value="all" ' . checked( 'all', $checked, false ) . '/>' ;
345
  echo '<span class="toggle-check-text"></span>' . sprintf(
346
  esc_html__( "Search %s of all taxonomies (%s categories, tags & terms %s)", 'add-search-to-menu' ),
347
  strtolower( $post_types[$post_type]->labels->name ),
348
  '<i>',
349
  '</i>'
350
  ) . '</label></p>' ;
351
- echo '<p class="check-radio"><label for="' . $post_type . '-tax-search_selected" ><input class="is-tax-select" type="radio" id="' . $post_type . '-tax-search_selected" name="' . $post_type . '[tax_search_radio]" value="selected" ' . checked( 'selected', $checked, false ) . '/>' ;
352
  echo '<span class="toggle-check-text"></span>' . sprintf(
353
  esc_html__( "Search %s of only selected taxonomies (%s categories, tags & terms %s)", 'add-search-to-menu' ),
354
  strtolower( $post_types[$post_type]->labels->name ),
@@ -378,7 +383,7 @@ class IS_Search_Editor
378
  $html .= '<br /><label for="' . $id . '-custom_field" class="ctrl-multi-select">' . esc_html__( "Hold down the control (ctrl) or command button to select multiple options.", 'add-search-to-menu' ) . '</label><br />';
379
  $html .= '</div>';
380
  $checked = ( $selected_meta ? 'selected' : 'all' );
381
- echo '<br /><p class="check-radio"><label for="' . $post_type . '-meta-search_selected" ><input class="is-meta-select" type="checkbox" id="' . $post_type . '-meta-search_selected" name="' . $post_type . '[meta_search_radio]" value="selected" ' . checked( 'selected', $checked, false ) . '/>' ;
382
  echo '<span class="toggle-check-text"></span>' . sprintf( esc_html__( "Search selected %s custom fields values", 'add-search-to-menu' ), $post_type ) . '</label></p>' ;
383
  echo $html ;
384
  }
@@ -1794,6 +1799,9 @@ class IS_Search_Editor
1794
  $post_types = array_values( $includes['post_type'] );
1795
  }
1796
  foreach ( $post_types as $key => $post_type ) {
 
 
 
1797
  $accord_title = $post_types2[$post_type]->labels->name;
1798
 
1799
  if ( 'product' == $post_type ) {
@@ -1899,9 +1907,9 @@ class IS_Search_Editor
1899
  continue;
1900
  }
1901
 
1902
- echo '<p class="check-radio"><label for="' . $post_type . '-post-search_all" ><input class="is-post-select" type="radio" id="' . $post_type . '-post-search_all" name="' . $post_type . '[post_search_radio]" value="all" ' . checked( 'all', $checked, false ) . '/>' ;
1903
  echo '<span class="toggle-check-text"></span>' . sprintf( esc_html__( "Do not exclude any %s from search", 'add-search-to-menu' ), strtolower( $post_types2[$post_type]->labels->singular_name ) ) . '</label></p>' ;
1904
- echo '<p class="check-radio"><label for="' . $post_type . '-post-search_selected" ><input class="is-post-select" type="radio" id="' . $post_type . '-post-search_selected" name="' . $post_type . '[post_search_radio]" value="selected" ' . checked( 'selected', $checked, false ) . '/>' ;
1905
  echo '<span class="toggle-check-text"></span>' . sprintf( esc_html__( "Exclude selected %s from search", 'add-search-to-menu' ), strtolower( $post_types2[$post_type]->labels->name ) ) . '</label></p>' ;
1906
  echo $html ;
1907
  } else {
@@ -1942,14 +1950,14 @@ class IS_Search_Editor
1942
  $html .= '<br /><label for="' . $id . '-tax_query" class="ctrl-multi-select">' . esc_html__( "Hold down the control (ctrl) or command button to select multiple options.", 'add-search-to-menu' ) . '</label><br />';
1943
  $html .= '</div>';
1944
  $checked = ( $selected_tax ? 'selected' : 'all' );
1945
- echo '<br /><p class="check-radio"><label for="' . $post_type . '-tax-search_all" ><input class="is-tax-select" type="radio" id="' . $post_type . '-tax-search_all" name="' . $post_type . '[tax_search_radio]" value="all" ' . checked( 'all', $checked, false ) . '/>' ;
1946
  echo '<span class="toggle-check-text"></span>' . sprintf(
1947
  esc_html__( "Do not exclude any %s from search of any taxonomies (%s categories, tags & terms %s)", 'add-search-to-menu' ),
1948
  strtolower( $post_types2[$post_type]->labels->singular_name ),
1949
  '<i>',
1950
  '</i>'
1951
  ) . '</label></p>' ;
1952
- echo '<p class="check-radio"><label for="' . $post_type . '-tax-search_selected" ><input class="is-tax-select" type="radio" id="' . $post_type . '-tax-search_selected" name="' . $post_type . '[tax_search_radio]" value="selected" ' . checked( 'selected', $checked, false ) . '/>' ;
1953
  echo '<span class="toggle-check-text"></span>' . sprintf(
1954
  esc_html__( "Exclude %s from search of selected taxonomies (%s categories, tags & terms %s)", 'add-search-to-menu' ),
1955
  strtolower( $post_types2[$post_type]->labels->name ),
@@ -1979,7 +1987,7 @@ class IS_Search_Editor
1979
  $html .= '<br /><label for="' . $id . '-custom_field" class="ctrl-multi-select">' . esc_html__( "Hold down the control (ctrl) or command button to select multiple options.", 'add-search-to-menu' ) . '</label><br />';
1980
  $html .= '</div>';
1981
  $checked = ( $selected_meta ? 'selected' : 'all' );
1982
- echo '<br /><p class="check-radio"><label for="' . $post_type . '-meta-search_selected" ><input class="is-meta-select" type="checkbox" id="' . $post_type . '-meta-search_selected" name="' . $post_type . '[meta_search_radio]" value="selected" ' . checked( 'selected', $checked, false ) . '/>' ;
1983
  echo '<span class="toggle-check-text"></span>' . sprintf( esc_html__( "Exclude %s from search having selected custom fields", 'add-search-to-menu' ), strtolower( $post_types2[$post_type]->labels->name ) ) . '</label></p>' ;
1984
  echo $html ;
1985
  }
177
  } else {
178
  echo '<span style="display:none;" class="is-cb-select">' . __( 'Select Post Types', 'add-search-to-menu' ) . '</span><span class="is-cb-titles">' ;
179
  foreach ( $post_types2 as $post_type2 ) {
180
+ if ( isset( $post_types[$post_type2] ) ) {
181
+ echo '<span title="' . $post_type2 . '"> ' . $post_types[$post_type2]->labels->name . '</span>' ;
182
+ }
183
  }
184
  echo '</span>' ;
185
  }
210
 
211
  <?php
212
  foreach ( $post_types2 as $post_type ) {
213
+ if ( !isset( $post_types[$post_type] ) ) {
214
+ continue;
215
+ }
216
  $accord_title = $post_types[$post_type]->labels->name;
217
 
218
  if ( 'product' == $post_type ) {
302
 
303
 
304
  if ( $posts_found ) {
305
+ echo '<p class="check-radio"><label for="' . $post_type . '-post-search_all" ><input class="is-post-select" type="radio" id="' . $post_type . '-post-search_all" name="' . $post_type . 'i[post_search_radio]" value="all" ' . checked( 'all', $checked, false ) . '/>' ;
306
  echo '<span class="toggle-check-text"></span>' . sprintf( esc_html__( "Search all %s", 'add-search-to-menu' ), strtolower( $post_types[$post_type]->labels->name ) ) . '</label></p>' ;
307
+ echo '<p class="check-radio"><label for="' . $post_type . '-post-search_selected" ><input class="is-post-select" type="radio" id="' . $post_type . '-post-search_selected" name="' . $post_type . 'i[post_search_radio]" value="selected" ' . checked( 'selected', $checked, false ) . '/>' ;
308
  echo '<span class="toggle-check-text"></span>' . sprintf( esc_html__( "Search only selected %s", 'add-search-to-menu' ), strtolower( $post_types[$post_type]->labels->name ) ) . '</label></p>' ;
309
  }
310
 
346
  $html .= '<br /><label for="' . $id . '-tax_query" class="ctrl-multi-select">' . esc_html__( "Hold down the control (ctrl) or command button to select multiple options.", 'add-search-to-menu' ) . '</label><br />';
347
  $html .= '</div>';
348
  $checked = ( $selected_tax ? 'selected' : 'all' );
349
+ echo '<br /><p class="check-radio"><label for="' . $post_type . '-tax-search_all" ><input class="is-tax-select" type="radio" id="' . $post_type . '-tax-search_all" name="' . $post_type . 'i[tax_search_radio]" value="all" ' . checked( 'all', $checked, false ) . '/>' ;
350
  echo '<span class="toggle-check-text"></span>' . sprintf(
351
  esc_html__( "Search %s of all taxonomies (%s categories, tags & terms %s)", 'add-search-to-menu' ),
352
  strtolower( $post_types[$post_type]->labels->name ),
353
  '<i>',
354
  '</i>'
355
  ) . '</label></p>' ;
356
+ echo '<p class="check-radio"><label for="' . $post_type . '-tax-search_selected" ><input class="is-tax-select" type="radio" id="' . $post_type . '-tax-search_selected" name="' . $post_type . 'i[tax_search_radio]" value="selected" ' . checked( 'selected', $checked, false ) . '/>' ;
357
  echo '<span class="toggle-check-text"></span>' . sprintf(
358
  esc_html__( "Search %s of only selected taxonomies (%s categories, tags & terms %s)", 'add-search-to-menu' ),
359
  strtolower( $post_types[$post_type]->labels->name ),
383
  $html .= '<br /><label for="' . $id . '-custom_field" class="ctrl-multi-select">' . esc_html__( "Hold down the control (ctrl) or command button to select multiple options.", 'add-search-to-menu' ) . '</label><br />';
384
  $html .= '</div>';
385
  $checked = ( $selected_meta ? 'selected' : 'all' );
386
+ echo '<br /><p class="check-radio"><label for="' . $post_type . '-meta-search_selected" ><input class="is-meta-select" type="checkbox" id="' . $post_type . '-meta-search_selected" name="' . $post_type . 'i[meta_search_radio]" value="selected" ' . checked( 'selected', $checked, false ) . '/>' ;
387
  echo '<span class="toggle-check-text"></span>' . sprintf( esc_html__( "Search selected %s custom fields values", 'add-search-to-menu' ), $post_type ) . '</label></p>' ;
388
  echo $html ;
389
  }
1799
  $post_types = array_values( $includes['post_type'] );
1800
  }
1801
  foreach ( $post_types as $key => $post_type ) {
1802
+ if ( !isset( $post_types2[$post_type] ) ) {
1803
+ continue;
1804
+ }
1805
  $accord_title = $post_types2[$post_type]->labels->name;
1806
 
1807
  if ( 'product' == $post_type ) {
1907
  continue;
1908
  }
1909
 
1910
+ echo '<p class="check-radio"><label for="' . $post_type . '-post-search_all" ><input class="is-post-select" type="radio" id="' . $post_type . '-post-search_all" name="' . $post_type . 'i[post_search_radio]" value="all" ' . checked( 'all', $checked, false ) . '/>' ;
1911
  echo '<span class="toggle-check-text"></span>' . sprintf( esc_html__( "Do not exclude any %s from search", 'add-search-to-menu' ), strtolower( $post_types2[$post_type]->labels->singular_name ) ) . '</label></p>' ;
1912
+ echo '<p class="check-radio"><label for="' . $post_type . '-post-search_selected" ><input class="is-post-select" type="radio" id="' . $post_type . '-post-search_selected" name="' . $post_type . 'i[post_search_radio]" value="selected" ' . checked( 'selected', $checked, false ) . '/>' ;
1913
  echo '<span class="toggle-check-text"></span>' . sprintf( esc_html__( "Exclude selected %s from search", 'add-search-to-menu' ), strtolower( $post_types2[$post_type]->labels->name ) ) . '</label></p>' ;
1914
  echo $html ;
1915
  } else {
1950
  $html .= '<br /><label for="' . $id . '-tax_query" class="ctrl-multi-select">' . esc_html__( "Hold down the control (ctrl) or command button to select multiple options.", 'add-search-to-menu' ) . '</label><br />';
1951
  $html .= '</div>';
1952
  $checked = ( $selected_tax ? 'selected' : 'all' );
1953
+ echo '<br /><p class="check-radio"><label for="' . $post_type . '-tax-search_all" ><input class="is-tax-select" type="radio" id="' . $post_type . '-tax-search_all" name="' . $post_type . 'i[tax_search_radio]" value="all" ' . checked( 'all', $checked, false ) . '/>' ;
1954
  echo '<span class="toggle-check-text"></span>' . sprintf(
1955
  esc_html__( "Do not exclude any %s from search of any taxonomies (%s categories, tags & terms %s)", 'add-search-to-menu' ),
1956
  strtolower( $post_types2[$post_type]->labels->singular_name ),
1957
  '<i>',
1958
  '</i>'
1959
  ) . '</label></p>' ;
1960
+ echo '<p class="check-radio"><label for="' . $post_type . '-tax-search_selected" ><input class="is-tax-select" type="radio" id="' . $post_type . '-tax-search_selected" name="' . $post_type . 'i[tax_search_radio]" value="selected" ' . checked( 'selected', $checked, false ) . '/>' ;
1961
  echo '<span class="toggle-check-text"></span>' . sprintf(
1962
  esc_html__( "Exclude %s from search of selected taxonomies (%s categories, tags & terms %s)", 'add-search-to-menu' ),
1963
  strtolower( $post_types2[$post_type]->labels->name ),
1987
  $html .= '<br /><label for="' . $id . '-custom_field" class="ctrl-multi-select">' . esc_html__( "Hold down the control (ctrl) or command button to select multiple options.", 'add-search-to-menu' ) . '</label><br />';
1988
  $html .= '</div>';
1989
  $checked = ( $selected_meta ? 'selected' : 'all' );
1990
+ echo '<br /><p class="check-radio"><label for="' . $post_type . '-meta-search_selected" ><input class="is-meta-select" type="checkbox" id="' . $post_type . '-meta-search_selected" name="' . $post_type . 'i[meta_search_radio]" value="selected" ' . checked( 'selected', $checked, false ) . '/>' ;
1991
  echo '<span class="toggle-check-text"></span>' . sprintf( esc_html__( "Exclude %s from search having selected custom fields", 'add-search-to-menu' ), strtolower( $post_types2[$post_type]->labels->name ) ) . '</label></p>' ;
1992
  echo $html ;
1993
  }
admin/js/ivory-search-admin.js CHANGED
@@ -46,7 +46,7 @@
46
  var args = url.split('=').pop();
47
  if ( 'menu-search' === args ) {
48
  $('#toplevel_page_ivory-search .wp-submenu-wrap li, #toplevel_page_ivory-search .wp-submenu-wrap li a').removeClass('current');
49
- $('#toplevel_page_ivory-search .wp-submenu-wrap li:nth-child(4), #toplevel_page_ivory-search .wp-submenu-wrap li:nth-child(4) a').addClass('current');
50
  }
51
  } );
52
 
@@ -358,7 +358,8 @@
358
  $( '.form-table h3.post-type-'+title ).show();
359
  $( '.form-table .post-type-'+title ).show().removeClass('is-ptype-hidden');
360
  } else {
361
- $( '.form-table .post-type-'+title ).hide().addClass('is-ptype-hidden');
 
362
  $( this ).parents(".is-cb-dropdown").find('.is-cb-titles span[title="' + title + '"]').remove();
363
  if ( 0 === $( this ).parents(".is-cb-dropdown").find( '.is-cb-titles span' ).length ) {
364
  $( this ).parents(".is-cb-dropdown").find(".is-cb-select").show();
@@ -387,7 +388,9 @@
387
  }
388
  } );
389
 
390
- $( '#search-form-editor .is-post-select, #search-form-editor .is-tax-select, #search-form-editor .is-meta-select, #search-form-editor .is-mime-select' ).on( 'click', function() {
 
 
391
  if ( $( this ).hasClass( 'is-meta-select' ) ) {
392
  if ( $( this ).is( ':checked' ) ) {
393
  $( this ).closest( 'div' ).find( '.is-metas' ).show();
46
  var args = url.split('=').pop();
47
  if ( 'menu-search' === args ) {
48
  $('#toplevel_page_ivory-search .wp-submenu-wrap li, #toplevel_page_ivory-search .wp-submenu-wrap li a').removeClass('current');
49
+ $('#toplevel_page_ivory-search .wp-submenu-wrap li:nth-child(3), #toplevel_page_ivory-search .wp-submenu-wrap li:nth-child(3) a').addClass('current');
50
  }
51
  } );
52
 
358
  $( '.form-table h3.post-type-'+title ).show();
359
  $( '.form-table .post-type-'+title ).show().removeClass('is-ptype-hidden');
360
  } else {
361
+ $( '.form-table .post-type-'+title ).hide().addClass('is-ptype-hidden');
362
+ $( '.form-table .post-type-'+title+' #'+title+'-post-search_all' ).trigger( 'click' );
363
  $( this ).parents(".is-cb-dropdown").find('.is-cb-titles span[title="' + title + '"]').remove();
364
  if ( 0 === $( this ).parents(".is-cb-dropdown").find( '.is-cb-titles span' ).length ) {
365
  $( this ).parents(".is-cb-dropdown").find(".is-cb-select").show();
388
  }
389
  } );
390
 
391
+ $( '#search-form-editor .is-post-select, #search-form-editor .is-tax-select, #search-form-editor .is-meta-select, #search-form-editor .is-mime-select' ).on( 'click', function(e) {
392
+ // Cancels the default actions.
393
+ e.stopPropagation();
394
  if ( $( this ).hasClass( 'is-meta-select' ) ) {
395
  if ( $( this ).is( ':checked' ) ) {
396
  $( this ).closest( 'div' ).find( '.is-metas' ).show();
admin/js/ivory-search-admin.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){"use strict";function t(){e.each(["image","video","audio","text","pdf"],function(t,i){0===e('.is-mime select option[value*="'+i+'"]:selected').length?e('.search-attachments[name*="'+i+'"]').prop("checked",!1):e('.search-attachments[name*="'+i+'"]').prop("checked",!0)}),0===e('.is-mime select option[value*="doc"]:selected').length&&0===e('.is-mime select option[value*="excel"]:selected').length&&0===e('.is-mime select option[value*="word"]:selected').length?e('.search-attachments[name*="doc"]').prop("checked",!1):e('.search-attachments[name*="doc"]').prop("checked",!0)}function i(){e("._is_settings-highlight_terms").is(":checked")?e(".highlight-container").removeClass("is-field-disabled").show():e(".highlight-container").addClass("is-field-disabled").hide()}function s(){e(".ivory_search_locations").is(":checked")||e(".ivory_search_menu_name").is(":checked")?e(".menu-settings-container").removeClass("is-field-disabled").show():e(".menu-settings-container").addClass("is-field-disabled").hide()}function a(t){void 0!==t&&"default"!==t||!e("#is_menu_styledefault").is(":checked")?e(".form-style-dependent").removeClass("is-field-disabled").show():e(".form-style-dependent").addClass("is-field-disabled").hide()}function o(){e("#_is_ajax-show_description").is(":checked")?e("._is_ajax-description_source_wrap, ._is_ajax-description_length_wrap").removeClass("is-field-disabled").show():e("._is_ajax-description_source_wrap, ._is_ajax-description_length_wrap").addClass("is-field-disabled").hide()}function c(){e("#_is_ajax-show_details_box").is(":checked")&&(e("#_is_ajax-show_matching_categories").is(":checked")||e("#_is_ajax-show_matching_tags").is(":checked"))?e("._is_ajax-product_list_wrap, ._is_ajax-order_by_wrap, ._is_ajax-order_wrap").removeClass("is-field-disabled").show():e("._is_ajax-product_list_wrap, ._is_ajax-order_by_wrap, ._is_ajax-order_wrap").addClass("is-field-disabled").hide()}function n(){e("#_is_ajax-show_more_result").is(":checked")?e("._is_ajax-more_result_text_wrap, ._is_ajax-show_more_func_wrap").removeClass("is-field-disabled").show():e("._is_ajax-more_result_text_wrap, ._is_ajax-show_more_func_wrap").addClass("is-field-disabled").hide()}function l(){e("#_is_ajax-view_all_results").is(":checked")?e("._is_ajax-view_all_text_wrap").removeClass("is-field-disabled").show():e("._is_ajax-view_all_text_wrap").addClass("is-field-disabled").hide()}function r(){e("#_is_ajax-show_more_result").is(":checked")?e("._is_ajax-more_result_text_wrap").removeClass("is-field-disabled").show():e("._is_ajax-more_result_text_wrap").addClass("is-field-disabled").hide()}function d(){e("#_is_customize-enable_customize").is(":checked")?e(".form-table-panel-customize .is-field-wrap").removeClass("is-field-disabled"):e(".form-table-panel-customize .is-field-wrap").addClass("is-field-disabled")}function h(){window.setTimeout(function(){1==confirm("A page reload is required for this change.")?(e("#_is_ajax-enable_ajax").is(":checked")?e(".form-table-panel-ajax .is-field-wrap").removeClass("is-field-disabled"):e(".form-table-panel-ajax .is-field-wrap").addClass("is-field-disabled"),e("#is-admin-form-element").submit()):e("#_is_ajax-enable_ajax").is(":checked")?e("#_is_ajax-enable_ajax").prop("checked",!1):e("#_is_ajax-enable_ajax").prop("checked",!0)},300)}function p(){"1"===e("#is_disable_analytics").val()?e("#is_disable_analytics").closest("div").find(".analytics-info").hide():e("#is_disable_analytics").closest("div").find(".analytics-info").show()}"undefined"!=typeof ivory_search&&null!==ivory_search&&(e(function(){e(window).on("load",function(){e(".is-cb-dropdown .is-cb-multisel").css({position:"absolute",display:"none"}),e(".col-wrapper .load-all").on("click",function(){var t=e("#post_ID").val(),i=e(this).attr("id"),s=e(this),a=e(".search-form-editor-panel").attr("id");e(this).parent().append('<span class="spinner"></span>'),e.ajax({type:"post",url:ivory_search.ajaxUrl,data:{action:"display_posts",post_id:t,post_type:i,inc_exc:a},success:function(t){e(s).parent().find("select").find("option").remove().end().append(t),e(s).parent().find("select option:selected").length&&e(s).parent().find(".col-title span").html("<strong>"+e(s).parent().find(".col-title").text()+"</strong>"),e(s).parent().find(".spinner").remove(),e(s).remove()},error:function(e,t){alert(" The posts could not be loaded. Because: "+t)}})})}),e(document).ready(function(){"menu-search"===window.location.href.split("=").pop()&&(e("#toplevel_page_ivory-search .wp-submenu-wrap li, #toplevel_page_ivory-search .wp-submenu-wrap li a").removeClass("current"),e("#toplevel_page_ivory-search .wp-submenu-wrap li:nth-child(4), #toplevel_page_ivory-search .wp-submenu-wrap li:nth-child(4) a").addClass("current"))});var t="d-m-yy",i=e("#is-after-datepicker").datepicker({dateFormat:"d-m-yy",changeMonth:!0,changeYear:!0}).on("change",function(){s.datepicker("option","minDate",a(this))}),s=e("#is-before-datepicker").datepicker({dateFormat:"d-m-yy",changeMonth:!0,changeYear:!0}).on("change",function(){i.datepicker("option","maxDate",a(this))});function a(i){var s;try{s=e.datepicker.parseDate(t,i.value)}catch(e){s=null}return s}if(1<e(".form-table h3[scope=row]").length){e(".form-table .is-actions a.expand").click(function(){if(e(".form-table .is-actions a.expand").hide(),e(".form-table .ui-accordion-header:not(.is-ptype-hidden), .form-table .ui-accordion-content:not(.is-ptype-hidden), .form-table .is-actions a.collapse").show(),e(".form-table .ui-accordion-content").addClass("ui-accordion-content-active"),e(".form-table h3").addClass("ui-state-active").removeClass("ui-accordion-header-active"),history.pushState){var t=window.location.href.split("#")[0]+"#expand";window.history.pushState({path:t},"",t),e('form input[name="_wp_http_referer"]').val(e('form input[name="_wp_http_referer"]').val().split("#")[0]+"#expand"),e("#is-admin-form-element").length&&e("#is-admin-form-element").attr("action",e("#is-admin-form-element").attr("action").split("#")[0]+"#expand")}return!1}),e(".form-table .is-actions a.collapse").click(function(){if(e(".form-table .is-actions a.expand").show(),e(".form-table .ui-accordion-content, .form-table .is-actions a.collapse").hide(),e(".form-table .ui-accordion-content").removeClass("ui-accordion-content-active"),e(".form-table h3").removeClass("ui-state-active"),history.pushState){var t=window.location.href.split("#")[0]+"#collapse";window.history.pushState({path:t},"",t),e('form input[name="_wp_http_referer"]').val(e('form input[name="_wp_http_referer"]').val().split("#")[0]+"#collapse"),e("#is-admin-form-element").length&&e("#is-admin-form-element").attr("action",e("#is-admin-form-element").attr("action").split("#")[0]+"#collapse")}return!1});var o=window.location.href.split("#");2===o.length&&(e('form input[name="_wp_http_referer"]').val(e('form input[name="_wp_http_referer"]').val().split("#")[0]+"#"+o[1]),e("#is-admin-form-element").length&&e("#is-admin-form-element").attr("action",e("#is-admin-form-element").attr("action").split("#")[0]+"#"+o[1])),e(".form-table").accordion({collapsible:!0,heightStyle:"content",icons:!1,active:!1,create:function(t,i){if(2===o.length){var s=o[1].split("-");if(3===s.length)s=s[2]/2-1,e(".form-table").accordion("option","active",s),e("html, body").animate({scrollTop:e("#"+o[1]).offset().top-200},500);else switch(o[1]){case"expand":e(".form-table .is-actions a.expand").hide(),e(".form-table .ui-accordion-content, .form-table .is-actions a.collapse").show(),e(".form-table .ui-accordion-content").addClass("ui-accordion-content-active"),e(".form-table h3").addClass("ui-state-active").removeClass("ui-accordion-header-active");break;case"collapse":e(".form-table .is-actions a.expand").show(),e(".form-table .ui-accordion-content, .form-table .is-actions a.collapse").hide(),e(".form-table .ui-accordion-content").removeClass("ui-accordion-content-active"),e(".form-table h3").removeClass("ui-state-active")}}else 1<e(".form-table h3[scope=row]").length?e(".form-table").accordion("option","active",!1):e(".form-table").accordion("option","active",0)}}),e(".form-table h3").click(function(){var t=e(this).attr("aria-controls");if(history.pushState){var i=window.location.href.split("#")[0]+"#"+t;window.history.pushState({path:i},"",i),e('form input[name="_wp_http_referer"]').val(e('form input[name="_wp_http_referer"]').val().split("#")[0]+"#"+t),e("#is-admin-form-element").length&&e("#is-admin-form-element").attr("action",e("#is-admin-form-element").attr("action").split("#")[0]+"#"+t)}})}e(".is-colorpicker").wpColorPicker(),e("#search-body select[multiple] option").mousedown(function(t){if(e(this).attr("selected"))return e(this).removeAttr("selected"),!1}),e(".col-title .list-search").keyup(function(){var t=e(this).val().toLowerCase(),i=e(this).parent().parent().find("select option");e(i).each(function(){-1===e(this).text().toLowerCase().indexOf(t)?e(this).fadeOut("fast"):e(this).fadeIn("fast")})}),e(".list-search.wide").keyup(function(){var t=e(this).val().toLowerCase(),i=e(this).parent().find("select option");e(i).each(function(){-1===e(this).text().toLowerCase().indexOf(t)?e(this).fadeOut("fast"):e(this).fadeIn("fast")})}),""===e("#title").val()&&e("#title").focus(),0!==e("#title").length&&ivory_search.titleHint();var c=!1;e(document).on("submit","form",function(t){c=!1,e(window).off("beforeunload")}),e(window).on("beforeunload",function(t){if(e('#search-body :input[type!="hidden"]').each(function(){e(this).hasClass("wp-color-result")||(e(this).is(":checkbox, :radio")?this.defaultChecked!=e(this).is(":checked")&&(c=!0):e(this).is("select")?e(this).find("option").each(function(){this.defaultSelected!=e(this).is(":selected")&&"0"!=e(this).val()&&"Default Search Form"!=e(this).text()&&(c=!0)}):this.defaultValue!=e(this).val()&&(c=!0))}),c)return t.returnValue=ivory_search.saveAlert,ivory_search.saveAlert}),e("#is-admin-form-element").submit(function(){"copy"!=this.action.value&&e(window).off("beforeunload"),"save"==this.action.value&&e("#publishing-action .spinner").addClass("is-active")}),e("#search-body #titlewrap").hover(function(){if(e(this).find("#title[disabled]").length){var t=e(this).find("#title[disabled]").attr("title");e(this).find("#title[disabled]").data("tipText",t).removeAttr("title"),e('<p class="title_tooltip"></p>').text(t).appendTo("body")}},function(){e(this).find("#title[disabled]").attr("title",e(this).find("#title[disabled]").data("tipText")),e(".title_tooltip").remove()}).mousemove(function(t){var i=t.pageX+20,s=t.pageY-40;e(".title_tooltip").css({top:s,left:i})}),e("#search-form-editor-tabs li").hover(function(){var t=e(this).find("a").attr("title");e(this).find("a").data("tipText",t).removeAttr("title"),e('<p class="title_tooltip '+e(this).attr("id")+'"></p>').text(t).appendTo("body").fadeIn("slow")},function(){e(this).find("a").attr("title",e(this).find("a").data("tipText")),e(".title_tooltip."+e(this).attr("id")).remove()}).mousemove(function(t){var i=t.pageX+20,s=t.pageY-40;e(".title_tooltip."+e(this).attr("id")).css({top:s,left:i})})}),ivory_search.titleHint=function(){var t=e("#title"),i=e("#title-prompt-text");""===t.val()&&i.removeClass("screen-reader-text"),i.click(function(){e(this).addClass("screen-reader-text"),t.focus()}),t.blur(function(){""===e(this).val()&&i.removeClass("screen-reader-text")}).focus(function(){i.addClass("screen-reader-text")}).keydown(function(t){i.addClass("screen-reader-text"),e(this).unbind(t)})},e(".is-cb-dropdown .is-cb-title").on("click",function(){e(this).hasClass("is-dropdown-toggle")?e(this).removeClass("is-dropdown-toggle"):e(this).addClass("is-dropdown-toggle"),e(this).parents(".is-cb-dropdown").find(".is-cb-multisel").slideToggle("fast")}),e(document).bind("click",function(t){e(t.target).parents().hasClass("is-cb-dropdown")||(e(".is-cb-dropdown .is-cb-multisel").hide(),e(".is-cb-title").removeClass("is-dropdown-toggle"))}),e('.is-cb-multisel input[type="checkbox"]').on("click",function(){var t=e(this).val(),i=e(this).parent().text().trim();if(e(this).is(":checked")){var s='<span title="'+t+'"> '+i+"</span>";e(this).parents(".is-cb-dropdown").find(".is-cb-titles").append(s),e(this).parents(".is-cb-dropdown").find(".is-cb-select").hide(),e(".form-table h3.post-type-"+t).show(),e(".form-table .post-type-"+t).show().removeClass("is-ptype-hidden")}else e(".form-table .post-type-"+t).hide().addClass("is-ptype-hidden"),e(this).parents(".is-cb-dropdown").find('.is-cb-titles span[title="'+t+'"]').remove(),0===e(this).parents(".is-cb-dropdown").find(".is-cb-titles span").length&&e(this).parents(".is-cb-dropdown").find(".is-cb-select").show()}),e("#search-form-editor .is-mime-select, #search-form-editor .is-post-select, #search-form-editor .is-tax-select, #search-form-editor .is-meta-select").each(function(){e(this).is(":checked")?("all"===e(this).val()&&(e(this).hasClass("is-post-select")?e(this).closest("div").find(".is-posts").hide():e(this).hasClass("is-tax-select")?e(this).closest("div").find(".is-taxes").hide():e(this).hasClass("is-mime-select")&&e(this).closest("div").find(".is-mime").hide()),e(this).hasClass("is-meta-select")&&e(this).closest("div").find(".is-metas").show()):e(this).hasClass("is-meta-select")&&e(this).closest("div").find(".is-metas").hide()}),e("#search-form-editor .is-post-select, #search-form-editor .is-tax-select, #search-form-editor .is-meta-select, #search-form-editor .is-mime-select").on("click",function(){e(this).hasClass("is-meta-select")?e(this).is(":checked")?e(this).closest("div").find(".is-metas").show():(e(this).closest("div").find(".is-metas").hide(),e(this).closest("div").find(".is-metas select option").prop("selected",!1)):"selected"===e(this).val()?e(this).hasClass("is-post-select")?(e(this).closest("div").find(".is-posts").show(),e(this).closest("div").find(".notice-is-info").hide()):e(this).hasClass("is-tax-select")?e(this).closest("div").find(".is-taxes").show():e(this).hasClass("is-mime-select")&&e(this).closest("div").find(".is-mime").show():e(this).hasClass("is-post-select")?(e(this).closest("div").find(".is-posts").hide(),e(this).closest("div").find(".notice-is-info").show(),e(this).closest("div").find(".is-posts select option").prop("selected",!1)):e(this).hasClass("is-tax-select")?(e(this).closest("div").find(".is-taxes").hide(),e(this).closest("div").find(".is-taxes select option").prop("selected",!1)):e(this).hasClass("is-mime-select")&&(e(this).closest("div").find(".is-mime").hide(),e(this).closest("div").find(".is-mime select option").prop("selected",!1))}),e('.includes_extras input[type="checkbox"]').on("click",function(){e(this).is(":checked")||e(this).closest(".includes_extras").find('input[type="checkbox"]:checked').length||alert("Please make sure that you have configured the search form to search any content")}),e("#search-form-editor .is-mime option").on("click",function(){e(this).is(":checked")?t():0===e(".is-mime select option:selected").length&&(e("#includes").length?e(".search-attachments").prop("checked",!0):e(".search-attachments").prop("checked",!1))}),e("#search-form-editor .is-mime-select").on("click",function(){"all"===e(this).val()&&(e("#excludes").length?e(".search-attachments").prop("checked",!1):e(".search-attachments").prop("checked",!0))}),0!==e(".is-mime select option:selected").length&&t(),e(".search-attachments-wrapper").show(),e(".search-attachments").on("click",function(){if(0===e(".is-mime select option:selected").length&&!e(this).hasClass("exclude"))return e(this).is(":checked")?void 0:(alert("You can configure it to exclude from search in the search form Exclude section"),!1);var t="";switch(e(this).attr("name")){case"search_images":t="image";break;case"search_videos":t="video";break;case"search_audios":t="audio";break;case"search_text":t="text";break;case"search_pdfs":t="pdf";break;case"search_docs":t=["doc","excel","word"]}if(""!==t)if(Array.isArray(t)){var i=this;e.each(t,function(t,s){e(i).is(":checked")?e('.is-mime select option[value*="'+s+'"]').attr("selected","selected"):e('.is-mime select option[value*="'+s+'"]').removeAttr("selected")})}else e(this).is(":checked")?e('.is-mime select option[value*="'+t+'"]').attr("selected","selected"):e('.is-mime select option[value*="'+t+'"]').removeAttr("selected");e(this).hasClass("exclude")||0!==e(".is-mime select option:selected").length||e(".search-attachments").prop("checked",!0)}),e("#search-form-editor .post-type-attachment .is-posts option").on("click",function(){0===e("#search-form-editor .post-type-attachment .is-posts option:selected").length?e(".is-mime-radio, .search-attachments-wrapper").show():e(".is-mime-radio, .is-mime, .search-attachments-wrapper").hide()}),e("#search-form-editor .not_load_files").each(function(){e(this).is(":checked")||e(this).parent().next(".not-load-wrapper").hide()}),e("#search-form-editor .not_load_files").on("click",function(){e(this).is(":checked")?e(this).parent().next(".not-load-wrapper").show():e(this).parent().next(".not-load-wrapper").hide()}),i(),e("._is_settings-highlight_terms").on("click",function(){i()}),s(),e(".ivory_search_locations, .ivory_search_menu_name").on("click",function(){s()}),a(),e(".ivory_search_style").on("click",function(){a(e(this).val())}),o(),e("._is_ajax-description_wrap .check-radio").on("click",function(){o()}),c(),e("#_is_ajax-show_details_box, #_is_ajax-show_matching_categories, #_is_ajax-show_matching_tags").on("click",function(){c()}),n(),e("._is_ajax-show_more_result_wrap .check-radio").on("click",function(){n()}),l(),e("._is_ajax-view_all_results_wrap .check-radio").on("click",function(){l()}),r(),e("._is_ajax-show_more_result_wrap .check-radio").on("click",function(){r()}),d(),e("#_is_customize-enable_customize").on("click",function(){window.setTimeout(function(){1==confirm("A page reload is required for this change.")?(d(),e("#is-admin-form-element").submit()):e("#_is_customize-enable_customize").is(":checked")?e("#_is_customize-enable_customize").prop("checked",!1):e("#_is_customize-enable_customize").prop("checked",!0)},300)}),e(".form-table-panel-customize .is-field-disabled-message .message").on("click",function(){e("#_is_customize-enable_customize").trigger("click")}),e("#_is_ajax-enable_ajax").on("click",function(){h()}),e(".form-table-panel-ajax .is-field-disabled-message .message").on("click",function(){e("#_is_ajax-enable_ajax").trigger("click")}),p(),e("#is_disable_analytics").on("click",function(){p()}))}(jQuery);
1
+ !function(e){"use strict";function t(){e.each(["image","video","audio","text","pdf"],function(t,i){0===e('.is-mime select option[value*="'+i+'"]:selected').length?e('.search-attachments[name*="'+i+'"]').prop("checked",!1):e('.search-attachments[name*="'+i+'"]').prop("checked",!0)}),0===e('.is-mime select option[value*="doc"]:selected').length&&0===e('.is-mime select option[value*="excel"]:selected').length&&0===e('.is-mime select option[value*="word"]:selected').length?e('.search-attachments[name*="doc"]').prop("checked",!1):e('.search-attachments[name*="doc"]').prop("checked",!0)}function i(){e("._is_settings-highlight_terms").is(":checked")?e(".highlight-container").removeClass("is-field-disabled").show():e(".highlight-container").addClass("is-field-disabled").hide()}function s(){e(".ivory_search_locations").is(":checked")||e(".ivory_search_menu_name").is(":checked")?e(".menu-settings-container").removeClass("is-field-disabled").show():e(".menu-settings-container").addClass("is-field-disabled").hide()}function a(t){void 0!==t&&"default"!==t||!e("#is_menu_styledefault").is(":checked")?e(".form-style-dependent").removeClass("is-field-disabled").show():e(".form-style-dependent").addClass("is-field-disabled").hide()}function o(){e("#_is_ajax-show_description").is(":checked")?e("._is_ajax-description_source_wrap, ._is_ajax-description_length_wrap").removeClass("is-field-disabled").show():e("._is_ajax-description_source_wrap, ._is_ajax-description_length_wrap").addClass("is-field-disabled").hide()}function c(){e("#_is_ajax-show_details_box").is(":checked")&&(e("#_is_ajax-show_matching_categories").is(":checked")||e("#_is_ajax-show_matching_tags").is(":checked"))?e("._is_ajax-product_list_wrap, ._is_ajax-order_by_wrap, ._is_ajax-order_wrap").removeClass("is-field-disabled").show():e("._is_ajax-product_list_wrap, ._is_ajax-order_by_wrap, ._is_ajax-order_wrap").addClass("is-field-disabled").hide()}function n(){e("#_is_ajax-show_more_result").is(":checked")?e("._is_ajax-more_result_text_wrap, ._is_ajax-show_more_func_wrap").removeClass("is-field-disabled").show():e("._is_ajax-more_result_text_wrap, ._is_ajax-show_more_func_wrap").addClass("is-field-disabled").hide()}function l(){e("#_is_ajax-view_all_results").is(":checked")?e("._is_ajax-view_all_text_wrap").removeClass("is-field-disabled").show():e("._is_ajax-view_all_text_wrap").addClass("is-field-disabled").hide()}function r(){e("#_is_ajax-show_more_result").is(":checked")?e("._is_ajax-more_result_text_wrap").removeClass("is-field-disabled").show():e("._is_ajax-more_result_text_wrap").addClass("is-field-disabled").hide()}function d(){e("#_is_customize-enable_customize").is(":checked")?e(".form-table-panel-customize .is-field-wrap").removeClass("is-field-disabled"):e(".form-table-panel-customize .is-field-wrap").addClass("is-field-disabled")}function h(){window.setTimeout(function(){1==confirm("A page reload is required for this change.")?(e("#_is_ajax-enable_ajax").is(":checked")?e(".form-table-panel-ajax .is-field-wrap").removeClass("is-field-disabled"):e(".form-table-panel-ajax .is-field-wrap").addClass("is-field-disabled"),e("#is-admin-form-element").submit()):e("#_is_ajax-enable_ajax").is(":checked")?e("#_is_ajax-enable_ajax").prop("checked",!1):e("#_is_ajax-enable_ajax").prop("checked",!0)},300)}function p(){"1"===e("#is_disable_analytics").val()?e("#is_disable_analytics").closest("div").find(".analytics-info").hide():e("#is_disable_analytics").closest("div").find(".analytics-info").show()}"undefined"!=typeof ivory_search&&null!==ivory_search&&(e(function(){e(window).on("load",function(){e(".is-cb-dropdown .is-cb-multisel").css({position:"absolute",display:"none"}),e(".col-wrapper .load-all").on("click",function(){var t=e("#post_ID").val(),i=e(this).attr("id"),s=e(this),a=e(".search-form-editor-panel").attr("id");e(this).parent().append('<span class="spinner"></span>'),e.ajax({type:"post",url:ivory_search.ajaxUrl,data:{action:"display_posts",post_id:t,post_type:i,inc_exc:a},success:function(t){e(s).parent().find("select").find("option").remove().end().append(t),e(s).parent().find("select option:selected").length&&e(s).parent().find(".col-title span").html("<strong>"+e(s).parent().find(".col-title").text()+"</strong>"),e(s).parent().find(".spinner").remove(),e(s).remove()},error:function(e,t){alert(" The posts could not be loaded. Because: "+t)}})})}),e(document).ready(function(){"menu-search"===window.location.href.split("=").pop()&&(e("#toplevel_page_ivory-search .wp-submenu-wrap li, #toplevel_page_ivory-search .wp-submenu-wrap li a").removeClass("current"),e("#toplevel_page_ivory-search .wp-submenu-wrap li:nth-child(3), #toplevel_page_ivory-search .wp-submenu-wrap li:nth-child(3) a").addClass("current"))});var t="d-m-yy",i=e("#is-after-datepicker").datepicker({dateFormat:"d-m-yy",changeMonth:!0,changeYear:!0}).on("change",function(){s.datepicker("option","minDate",a(this))}),s=e("#is-before-datepicker").datepicker({dateFormat:"d-m-yy",changeMonth:!0,changeYear:!0}).on("change",function(){i.datepicker("option","maxDate",a(this))});function a(i){var s;try{s=e.datepicker.parseDate(t,i.value)}catch(e){s=null}return s}if(1<e(".form-table h3[scope=row]").length){e(".form-table .is-actions a.expand").click(function(){if(e(".form-table .is-actions a.expand").hide(),e(".form-table .ui-accordion-header:not(.is-ptype-hidden), .form-table .ui-accordion-content:not(.is-ptype-hidden), .form-table .is-actions a.collapse").show(),e(".form-table .ui-accordion-content").addClass("ui-accordion-content-active"),e(".form-table h3").addClass("ui-state-active").removeClass("ui-accordion-header-active"),history.pushState){var t=window.location.href.split("#")[0]+"#expand";window.history.pushState({path:t},"",t),e('form input[name="_wp_http_referer"]').val(e('form input[name="_wp_http_referer"]').val().split("#")[0]+"#expand"),e("#is-admin-form-element").length&&e("#is-admin-form-element").attr("action",e("#is-admin-form-element").attr("action").split("#")[0]+"#expand")}return!1}),e(".form-table .is-actions a.collapse").click(function(){if(e(".form-table .is-actions a.expand").show(),e(".form-table .ui-accordion-content, .form-table .is-actions a.collapse").hide(),e(".form-table .ui-accordion-content").removeClass("ui-accordion-content-active"),e(".form-table h3").removeClass("ui-state-active"),history.pushState){var t=window.location.href.split("#")[0]+"#collapse";window.history.pushState({path:t},"",t),e('form input[name="_wp_http_referer"]').val(e('form input[name="_wp_http_referer"]').val().split("#")[0]+"#collapse"),e("#is-admin-form-element").length&&e("#is-admin-form-element").attr("action",e("#is-admin-form-element").attr("action").split("#")[0]+"#collapse")}return!1});var o=window.location.href.split("#");2===o.length&&(e('form input[name="_wp_http_referer"]').val(e('form input[name="_wp_http_referer"]').val().split("#")[0]+"#"+o[1]),e("#is-admin-form-element").length&&e("#is-admin-form-element").attr("action",e("#is-admin-form-element").attr("action").split("#")[0]+"#"+o[1])),e(".form-table").accordion({collapsible:!0,heightStyle:"content",icons:!1,active:!1,create:function(t,i){if(2===o.length){var s=o[1].split("-");if(3===s.length)s=s[2]/2-1,e(".form-table").accordion("option","active",s),e("html, body").animate({scrollTop:e("#"+o[1]).offset().top-200},500);else switch(o[1]){case"expand":e(".form-table .is-actions a.expand").hide(),e(".form-table .ui-accordion-content, .form-table .is-actions a.collapse").show(),e(".form-table .ui-accordion-content").addClass("ui-accordion-content-active"),e(".form-table h3").addClass("ui-state-active").removeClass("ui-accordion-header-active");break;case"collapse":e(".form-table .is-actions a.expand").show(),e(".form-table .ui-accordion-content, .form-table .is-actions a.collapse").hide(),e(".form-table .ui-accordion-content").removeClass("ui-accordion-content-active"),e(".form-table h3").removeClass("ui-state-active")}}else 1<e(".form-table h3[scope=row]").length?e(".form-table").accordion("option","active",!1):e(".form-table").accordion("option","active",0)}}),e(".form-table h3").click(function(){var t=e(this).attr("aria-controls");if(history.pushState){var i=window.location.href.split("#")[0]+"#"+t;window.history.pushState({path:i},"",i),e('form input[name="_wp_http_referer"]').val(e('form input[name="_wp_http_referer"]').val().split("#")[0]+"#"+t),e("#is-admin-form-element").length&&e("#is-admin-form-element").attr("action",e("#is-admin-form-element").attr("action").split("#")[0]+"#"+t)}})}e(".is-colorpicker").wpColorPicker(),e("#search-body select[multiple] option").mousedown(function(t){if(e(this).attr("selected"))return e(this).removeAttr("selected"),!1}),e(".col-title .list-search").keyup(function(){var t=e(this).val().toLowerCase(),i=e(this).parent().parent().find("select option");e(i).each(function(){-1===e(this).text().toLowerCase().indexOf(t)?e(this).fadeOut("fast"):e(this).fadeIn("fast")})}),e(".list-search.wide").keyup(function(){var t=e(this).val().toLowerCase(),i=e(this).parent().find("select option");e(i).each(function(){-1===e(this).text().toLowerCase().indexOf(t)?e(this).fadeOut("fast"):e(this).fadeIn("fast")})}),""===e("#title").val()&&e("#title").focus(),0!==e("#title").length&&ivory_search.titleHint();var c=!1;e(document).on("submit","form",function(t){c=!1,e(window).off("beforeunload")}),e(window).on("beforeunload",function(t){if(e('#search-body :input[type!="hidden"]').each(function(){e(this).hasClass("wp-color-result")||(e(this).is(":checkbox, :radio")?this.defaultChecked!=e(this).is(":checked")&&(c=!0):e(this).is("select")?e(this).find("option").each(function(){this.defaultSelected!=e(this).is(":selected")&&"0"!=e(this).val()&&"Default Search Form"!=e(this).text()&&(c=!0)}):this.defaultValue!=e(this).val()&&(c=!0))}),c)return t.returnValue=ivory_search.saveAlert,ivory_search.saveAlert}),e("#is-admin-form-element").submit(function(){"copy"!=this.action.value&&e(window).off("beforeunload"),"save"==this.action.value&&e("#publishing-action .spinner").addClass("is-active")}),e("#search-body #titlewrap").hover(function(){if(e(this).find("#title[disabled]").length){var t=e(this).find("#title[disabled]").attr("title");e(this).find("#title[disabled]").data("tipText",t).removeAttr("title"),e('<p class="title_tooltip"></p>').text(t).appendTo("body")}},function(){e(this).find("#title[disabled]").attr("title",e(this).find("#title[disabled]").data("tipText")),e(".title_tooltip").remove()}).mousemove(function(t){var i=t.pageX+20,s=t.pageY-40;e(".title_tooltip").css({top:s,left:i})}),e("#search-form-editor-tabs li").hover(function(){var t=e(this).find("a").attr("title");e(this).find("a").data("tipText",t).removeAttr("title"),e('<p class="title_tooltip '+e(this).attr("id")+'"></p>').text(t).appendTo("body").fadeIn("slow")},function(){e(this).find("a").attr("title",e(this).find("a").data("tipText")),e(".title_tooltip."+e(this).attr("id")).remove()}).mousemove(function(t){var i=t.pageX+20,s=t.pageY-40;e(".title_tooltip."+e(this).attr("id")).css({top:s,left:i})})}),ivory_search.titleHint=function(){var t=e("#title"),i=e("#title-prompt-text");""===t.val()&&i.removeClass("screen-reader-text"),i.click(function(){e(this).addClass("screen-reader-text"),t.focus()}),t.blur(function(){""===e(this).val()&&i.removeClass("screen-reader-text")}).focus(function(){i.addClass("screen-reader-text")}).keydown(function(t){i.addClass("screen-reader-text"),e(this).unbind(t)})},e(".is-cb-dropdown .is-cb-title").on("click",function(){e(this).hasClass("is-dropdown-toggle")?e(this).removeClass("is-dropdown-toggle"):e(this).addClass("is-dropdown-toggle"),e(this).parents(".is-cb-dropdown").find(".is-cb-multisel").slideToggle("fast")}),e(document).bind("click",function(t){e(t.target).parents().hasClass("is-cb-dropdown")||(e(".is-cb-dropdown .is-cb-multisel").hide(),e(".is-cb-title").removeClass("is-dropdown-toggle"))}),e('.is-cb-multisel input[type="checkbox"]').on("click",function(){var t=e(this).val(),i=e(this).parent().text().trim();if(e(this).is(":checked")){var s='<span title="'+t+'"> '+i+"</span>";e(this).parents(".is-cb-dropdown").find(".is-cb-titles").append(s),e(this).parents(".is-cb-dropdown").find(".is-cb-select").hide(),e(".form-table h3.post-type-"+t).show(),e(".form-table .post-type-"+t).show().removeClass("is-ptype-hidden")}else e(".form-table .post-type-"+t).hide().addClass("is-ptype-hidden"),e(".form-table .post-type-"+t+" #"+t+"-post-search_all").trigger("click"),e(this).parents(".is-cb-dropdown").find('.is-cb-titles span[title="'+t+'"]').remove(),0===e(this).parents(".is-cb-dropdown").find(".is-cb-titles span").length&&e(this).parents(".is-cb-dropdown").find(".is-cb-select").show()}),e("#search-form-editor .is-mime-select, #search-form-editor .is-post-select, #search-form-editor .is-tax-select, #search-form-editor .is-meta-select").each(function(){e(this).is(":checked")?("all"===e(this).val()&&(e(this).hasClass("is-post-select")?e(this).closest("div").find(".is-posts").hide():e(this).hasClass("is-tax-select")?e(this).closest("div").find(".is-taxes").hide():e(this).hasClass("is-mime-select")&&e(this).closest("div").find(".is-mime").hide()),e(this).hasClass("is-meta-select")&&e(this).closest("div").find(".is-metas").show()):e(this).hasClass("is-meta-select")&&e(this).closest("div").find(".is-metas").hide()}),e("#search-form-editor .is-post-select, #search-form-editor .is-tax-select, #search-form-editor .is-meta-select, #search-form-editor .is-mime-select").on("click",function(t){t.stopPropagation(),e(this).hasClass("is-meta-select")?e(this).is(":checked")?e(this).closest("div").find(".is-metas").show():(e(this).closest("div").find(".is-metas").hide(),e(this).closest("div").find(".is-metas select option").prop("selected",!1)):"selected"===e(this).val()?e(this).hasClass("is-post-select")?(e(this).closest("div").find(".is-posts").show(),e(this).closest("div").find(".notice-is-info").hide()):e(this).hasClass("is-tax-select")?e(this).closest("div").find(".is-taxes").show():e(this).hasClass("is-mime-select")&&e(this).closest("div").find(".is-mime").show():e(this).hasClass("is-post-select")?(e(this).closest("div").find(".is-posts").hide(),e(this).closest("div").find(".notice-is-info").show(),e(this).closest("div").find(".is-posts select option").prop("selected",!1)):e(this).hasClass("is-tax-select")?(e(this).closest("div").find(".is-taxes").hide(),e(this).closest("div").find(".is-taxes select option").prop("selected",!1)):e(this).hasClass("is-mime-select")&&(e(this).closest("div").find(".is-mime").hide(),e(this).closest("div").find(".is-mime select option").prop("selected",!1))}),e('.includes_extras input[type="checkbox"]').on("click",function(){e(this).is(":checked")||e(this).closest(".includes_extras").find('input[type="checkbox"]:checked').length||alert("Please make sure that you have configured the search form to search any content")}),e("#search-form-editor .is-mime option").on("click",function(){e(this).is(":checked")?t():0===e(".is-mime select option:selected").length&&(e("#includes").length?e(".search-attachments").prop("checked",!0):e(".search-attachments").prop("checked",!1))}),e("#search-form-editor .is-mime-select").on("click",function(){"all"===e(this).val()&&(e("#excludes").length?e(".search-attachments").prop("checked",!1):e(".search-attachments").prop("checked",!0))}),0!==e(".is-mime select option:selected").length&&t(),e(".search-attachments-wrapper").show(),e(".search-attachments").on("click",function(){if(0===e(".is-mime select option:selected").length&&!e(this).hasClass("exclude"))return e(this).is(":checked")?void 0:(alert("You can configure it to exclude from search in the search form Exclude section"),!1);var t="";switch(e(this).attr("name")){case"search_images":t="image";break;case"search_videos":t="video";break;case"search_audios":t="audio";break;case"search_text":t="text";break;case"search_pdfs":t="pdf";break;case"search_docs":t=["doc","excel","word"]}if(""!==t)if(Array.isArray(t)){var i=this;e.each(t,function(t,s){e(i).is(":checked")?e('.is-mime select option[value*="'+s+'"]').attr("selected","selected"):e('.is-mime select option[value*="'+s+'"]').removeAttr("selected")})}else e(this).is(":checked")?e('.is-mime select option[value*="'+t+'"]').attr("selected","selected"):e('.is-mime select option[value*="'+t+'"]').removeAttr("selected");e(this).hasClass("exclude")||0!==e(".is-mime select option:selected").length||e(".search-attachments").prop("checked",!0)}),e("#search-form-editor .post-type-attachment .is-posts option").on("click",function(){0===e("#search-form-editor .post-type-attachment .is-posts option:selected").length?e(".is-mime-radio, .search-attachments-wrapper").show():e(".is-mime-radio, .is-mime, .search-attachments-wrapper").hide()}),e("#search-form-editor .not_load_files").each(function(){e(this).is(":checked")||e(this).parent().next(".not-load-wrapper").hide()}),e("#search-form-editor .not_load_files").on("click",function(){e(this).is(":checked")?e(this).parent().next(".not-load-wrapper").show():e(this).parent().next(".not-load-wrapper").hide()}),i(),e("._is_settings-highlight_terms").on("click",function(){i()}),s(),e(".ivory_search_locations, .ivory_search_menu_name").on("click",function(){s()}),a(),e(".ivory_search_style").on("click",function(){a(e(this).val())}),o(),e("._is_ajax-description_wrap .check-radio").on("click",function(){o()}),c(),e("#_is_ajax-show_details_box, #_is_ajax-show_matching_categories, #_is_ajax-show_matching_tags").on("click",function(){c()}),n(),e("._is_ajax-show_more_result_wrap .check-radio").on("click",function(){n()}),l(),e("._is_ajax-view_all_results_wrap .check-radio").on("click",function(){l()}),r(),e("._is_ajax-show_more_result_wrap .check-radio").on("click",function(){r()}),d(),e("#_is_customize-enable_customize").on("click",function(){window.setTimeout(function(){1==confirm("A page reload is required for this change.")?(d(),e("#is-admin-form-element").submit()):e("#_is_customize-enable_customize").is(":checked")?e("#_is_customize-enable_customize").prop("checked",!1):e("#_is_customize-enable_customize").prop("checked",!0)},300)}),e(".form-table-panel-customize .is-field-disabled-message .message").on("click",function(){e("#_is_customize-enable_customize").trigger("click")}),e("#_is_ajax-enable_ajax").on("click",function(){h()}),e(".form-table-panel-ajax .is-field-disabled-message .message").on("click",function(){e("#_is_ajax-enable_ajax").trigger("click")}),p(),e("#is_disable_analytics").on("click",function(){p()}))}(jQuery);
includes/class-is-activator.php CHANGED
@@ -32,11 +32,9 @@ class IS_Activator {
32
  $args['_is_includes'] = '';
33
  $args['_is_excludes'] = '';
34
  $args['_is_settings'] = '';
35
-
36
  $admin->save_form( $args );
37
 
38
  $args['title'] = 'Default Search Form';
39
-
40
  $admin->save_form( $args );
41
 
42
  $args['title'] = 'AJAX Search Form';
@@ -59,7 +57,16 @@ class IS_Activator {
59
  'order_by' => 'date',
60
  'order' => 'desc',
61
  );
 
62
 
 
 
 
 
 
 
 
 
63
  $admin->save_form( $args );
64
  }
65
  }
32
  $args['_is_includes'] = '';
33
  $args['_is_excludes'] = '';
34
  $args['_is_settings'] = '';
 
35
  $admin->save_form( $args );
36
 
37
  $args['title'] = 'Default Search Form';
 
38
  $admin->save_form( $args );
39
 
40
  $args['title'] = 'AJAX Search Form';
57
  'order_by' => 'date',
58
  'order' => 'desc',
59
  );
60
+ $admin->save_form( $args );
61
 
62
+ $args['title'] = 'AJAX Search Form for WooCommerce';
63
+ $args['_is_includes'] = array(
64
+ 'post_type' => array( 'product' => 'product' ),
65
+ 'search_title' => 1,
66
+ 'search_content' => 1,
67
+ 'search_excerpt' => 1,
68
+ 'post_status' => array( 'publish' => 'publish', 'inherit' => 'inherit' ),
69
+ );
70
  $admin->save_form( $args );
71
  }
72
  }
includes/class-is-search-form.php CHANGED
@@ -524,7 +524,7 @@ class IS_Search_Form {
524
 
525
  $result = '<form '.$data_attrs.' class="is-search-form '. $classes .'" action="' . $search_url . '" method="get" role="search" >';
526
  $autocomplete = apply_filters( 'is_search_form_autocomplete', 'autocomplete="off"' );
527
- $result .= '<label><input type="search" name="s" value="' . get_search_query() . '" class="is-search-input" placeholder="' . esc_attr( $placeholder_text ) . '" '.$autocomplete.' />';
528
  // AJAX Loader.
529
  if ( isset( $_ajax['enable_ajax'] ) ) {
530
  $loader_image = isset( $settings['loader-image'] ) ? $settings['loader-image'] : IS_PLUGIN_URI . 'public/images/spinner.gif';
524
 
525
  $result = '<form '.$data_attrs.' class="is-search-form '. $classes .'" action="' . $search_url . '" method="get" role="search" >';
526
  $autocomplete = apply_filters( 'is_search_form_autocomplete', 'autocomplete="off"' );
527
+ $result .= '<label for="is-search-input-' . $args['id'] . '"><input type="search" id="is-search-input-' . $args['id'] . '" name="s" value="' . get_search_query() . '" class="is-search-input" placeholder="' . esc_attr( $placeholder_text ) . '" '.$autocomplete.' />';
528
  // AJAX Loader.
529
  if ( isset( $_ajax['enable_ajax'] ) ) {
530
  $loader_image = isset( $settings['loader-image'] ) ? $settings['loader-image'] : IS_PLUGIN_URI . 'public/images/spinner.gif';
includes/class-is.php CHANGED
@@ -152,12 +152,15 @@ class IS_Loader {
152
  add_filter( 'wp_nav_menu_items', array( $public, 'wp_nav_menu_items' ), 9999999, 2 );
153
  }
154
 
155
- add_filter( 'posts_distinct_request', array( $public, 'posts_distinct_request' ), 9999999, 2 );
156
- add_filter( 'posts_join' , array( $public, 'posts_join' ), 9999999, 2 );
157
- add_filter( 'posts_search', array( $public, 'posts_search' ), 9999999, 2 );
158
- add_action( 'pre_get_posts', array( $public, 'pre_get_posts' ), 9999999 );
159
- add_action( 'wp_footer', array( $public, 'wp_footer' ) );
160
- add_action( 'wp_head', array( $public, 'wp_head' ), 9999999 );
 
 
 
161
 
162
  $ajax = IS_Ajax::getInstance();
163
  add_action( 'wp_ajax_is_ajax_load_posts', array( $ajax, 'ajax_load_posts' ) );
152
  add_filter( 'wp_nav_menu_items', array( $public, 'wp_nav_menu_items' ), 9999999, 2 );
153
  }
154
 
155
+ add_action( 'init', function () {
156
+ $public = IS_Public::getInstance();
157
+ add_filter( 'posts_distinct_request', array( $public, 'posts_distinct_request' ), 9999999, 2 );
158
+ add_filter( 'posts_join' , array( $public, 'posts_join' ), 9999999, 2 );
159
+ add_filter( 'posts_search', array( $public, 'posts_search' ), 9999999, 2 );
160
+ add_action( 'pre_get_posts', array( $public, 'pre_get_posts' ), 9999999 );
161
+ add_action( 'wp_footer', array( $public, 'wp_footer' ) );
162
+ add_action( 'wp_head', array( $public, 'wp_head' ), 9999999 );
163
+ }, 9999999 );
164
 
165
  $ajax = IS_Ajax::getInstance();
166
  add_action( 'wp_ajax_is_ajax_load_posts', array( $ajax, 'ajax_load_posts' ) );
includes/freemius.php CHANGED
@@ -44,5 +44,8 @@ function is_fs()
44
  is_fs();
45
  // Signal that SDK was initiated.
46
  do_action( 'is_fs_loaded' );
 
 
 
47
  // Disable affiliate notice
48
  is_fs()->add_filter( 'show_affiliate_program_notice', '__return_false' );
44
  is_fs();
45
  // Signal that SDK was initiated.
46
  do_action( 'is_fs_loaded' );
47
+ is_fs()->add_filter( 'plugin_icon', function () {
48
+ return IS_PLUGIN_DIR . '/admin/assets/logo.png';
49
+ } );
50
  // Disable affiliate notice
51
  is_fs()->add_filter( 'show_affiliate_program_notice', '__return_false' );
languages/add-search-to-menu.pot CHANGED
@@ -2,7 +2,7 @@
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Ivory Search\n"
5
- "POT-Creation-Date: 2020-08-13 20:41+0530\n"
6
  "PO-Revision-Date: 2020-03-17 21:05+0530\n"
7
  "Last-Translator: \n"
8
  "Language-Team: Ivory Search <admin@ivorysearch.com>\n"
@@ -30,7 +30,7 @@ msgstr ""
30
  msgid "Click on the search form title to edit it."
31
  msgstr ""
32
 
33
- #: ../admin/class-is-admin.php:163 ../admin/class-is-admin.php:458
34
  #: ../admin/class-is-help.php:64 ../admin/class-is-help.php:97
35
  msgid "Settings"
36
  msgstr ""
@@ -51,175 +51,148 @@ msgid ""
51
  "If you like %1$s please leave us a %2$s rating. A huge thanks in advance!"
52
  msgstr ""
53
 
54
- #: ../admin/class-is-admin.php:204 ../admin/class-is-admin.php:447
55
  #: ../includes/class-is-admin-public.php:94 ../includes/class-is-widget.php:13
56
  msgid "Ivory Search"
57
  msgstr ""
58
 
59
- #: ../admin/class-is-admin.php:227 ../admin/class-is-admin.php:253
60
  msgid "Dismiss"
61
  msgstr ""
62
 
63
- #: ../admin/class-is-admin.php:228
64
- msgid "Thank you for using"
65
- msgstr ""
66
-
67
- #: ../admin/class-is-admin.php:229
68
- msgid "You can configure its"
69
- msgstr ""
70
-
71
- #: ../admin/class-is-admin.php:229
72
- msgid "settings"
73
- msgstr ""
74
-
75
- #: ../admin/class-is-admin.php:230
76
- msgid "and get support on"
77
- msgstr ""
78
-
79
- #: ../admin/class-is-admin.php:230
80
- msgid "support forum"
81
- msgstr ""
82
-
83
- #: ../admin/class-is-admin.php:231
84
- msgid "or"
85
- msgstr ""
86
-
87
- #: ../admin/class-is-admin.php:231
88
- msgid "contact us"
89
- msgstr ""
90
-
91
- #: ../admin/class-is-admin.php:255
92
  #, php-format
93
  msgid ""
94
  "Hey %s, it's Vinod Dalvi from %s. You have used this free plugin for some "
95
  "time now, and I hope you like it!"
96
  msgstr ""
97
 
98
- #: ../admin/class-is-admin.php:258
99
  #, php-format
100
  msgid ""
101
  "I have spent countless hours developing it, and it would mean a lot to me if "
102
  "you %ssupport it with a quick review on WordPress.org.%s"
103
  msgstr ""
104
 
105
- #: ../admin/class-is-admin.php:263
106
  msgid "Review Ivory Search"
107
  msgstr ""
108
 
109
- #: ../admin/class-is-admin.php:264
110
  msgid "No, thanks"
111
  msgstr ""
112
 
113
- #: ../admin/class-is-admin.php:302
114
  msgid "No posts found"
115
  msgstr ""
116
 
117
- #: ../admin/class-is-admin.php:403
118
  msgid "Search form created."
119
  msgstr ""
120
 
121
- #: ../admin/class-is-admin.php:405
122
  msgid "Search form saved."
123
  msgstr ""
124
 
125
- #: ../admin/class-is-admin.php:407
126
  msgid "Search form deleted."
127
  msgstr ""
128
 
129
- #: ../admin/class-is-admin.php:409
130
  msgid "Search form reset."
131
  msgstr ""
132
 
133
- #: ../admin/class-is-admin.php:418
134
  msgid "There was an error saving the search form."
135
  msgstr ""
136
 
137
- #: ../admin/class-is-admin.php:426
138
  msgid "Validation error occurred."
139
  msgstr ""
140
 
141
- #: ../admin/class-is-admin.php:427 ../admin/class-is-admin.php:432
142
  #: ../admin/class-is-help.php:35 ../admin/class-is-help.php:85
143
  msgid "Includes"
144
  msgstr ""
145
 
146
- #: ../admin/class-is-admin.php:428 ../admin/class-is-admin.php:434
147
  #: ../admin/class-is-help.php:40 ../admin/class-is-help.php:86
148
  msgid "Excludes"
149
  msgstr ""
150
 
151
- #: ../admin/class-is-admin.php:437
152
  #, php-format
153
  msgid ""
154
  "Please make sure you have not selected similar %s fields in the search form "
155
  "%s and %s sections."
156
  msgstr ""
157
 
158
- #: ../admin/class-is-admin.php:449 ../admin/class-is-admin.php:491
159
  #: ../includes/class-is-search-form.php:59
160
  msgid "Search Forms"
161
  msgstr ""
162
 
163
- #: ../admin/class-is-admin.php:452 ../admin/class-is-admin.php:498
164
- #: ../admin/partials/search-form.php:21 ../admin/partials/search-form.php:31
 
165
  msgid "Add New Search Form"
166
  msgstr ""
167
 
168
- #: ../admin/class-is-admin.php:452
169
- msgid "New Search Form"
170
  msgstr ""
171
 
172
- #: ../admin/class-is-admin.php:455 ../admin/class-is-help.php:59
173
  #: ../admin/class-is-help.php:96
174
  msgid "Menu Search"
175
  msgstr ""
176
 
177
- #: ../admin/class-is-admin.php:458 ../admin/partials/settings-form.php:20
178
  msgid "Ivory Search Settings"
179
  msgstr ""
180
 
181
- #: ../admin/class-is-admin.php:504
182
  #, php-format
183
  msgid "Search results for &#8220;%s&#8221;"
184
  msgstr ""
185
 
186
- #: ../admin/class-is-admin.php:515
187
  msgid "Find Search Forms"
188
  msgstr ""
189
 
190
- #: ../admin/class-is-admin.php:559
191
  msgid "You are not allowed to edit this item."
192
  msgstr ""
193
 
194
- #: ../admin/class-is-admin.php:653
195
  msgid "You are not allowed to reset this item."
196
  msgstr ""
197
 
198
- #: ../admin/class-is-admin.php:689
199
  msgid "You are not allowed to copy this item."
200
  msgstr ""
201
 
202
- #: ../admin/class-is-admin.php:730
203
  msgid "You are not allowed to delete this item."
204
  msgstr ""
205
 
206
- #: ../admin/class-is-admin.php:734
207
  msgid "Error in deleting."
208
  msgstr ""
209
 
210
- #: ../admin/class-is-admin.php:974
211
  msgid "Save Form"
212
  msgstr ""
213
 
214
- #: ../admin/class-is-admin.php:986
215
  msgid "Upgrade to Pro to Access"
216
  msgstr ""
217
 
218
- #: ../admin/class-is-admin.php:993
219
  msgid "Install Premium Version to Access"
220
  msgstr ""
221
 
222
- #: ../admin/class-is-admin.php:995
223
  msgid "Upgrade to Pro Plus to Access"
224
  msgstr ""
225
 
@@ -230,8 +203,8 @@ msgstr ""
230
  #: ../admin/class-is-editor.php:97 ../admin/partials/search-form.php:114
231
  #: ../includes/class-is-admin-public.php:186
232
  #: ../includes/class-is-search-form.php:469
233
- #: ../includes/class-is-search-form.php:537 ../public/class-is-public.php:204
234
- #: ../public/class-is-public.php:253
235
  msgid "Search"
236
  msgstr ""
237
 
@@ -247,17 +220,17 @@ msgstr ""
247
  msgid "Post Types"
248
  msgstr ""
249
 
250
- #: ../admin/class-is-editor.php:127 ../admin/class-is-editor.php:405
251
- #: ../admin/class-is-editor.php:765 ../admin/class-is-editor.php:1129
252
- #: ../admin/class-is-editor.php:1352 ../admin/class-is-editor.php:1447
253
- #: ../admin/class-is-editor.php:1563 ../admin/class-is-settings-fields.php:106
254
  msgid "Expand All"
255
  msgstr ""
256
 
257
- #: ../admin/class-is-editor.php:127 ../admin/class-is-editor.php:405
258
- #: ../admin/class-is-editor.php:766 ../admin/class-is-editor.php:1129
259
- #: ../admin/class-is-editor.php:1352 ../admin/class-is-editor.php:1447
260
- #: ../admin/class-is-editor.php:1563 ../admin/class-is-settings-fields.php:106
261
  msgid "Collapse All"
262
  msgstr ""
263
 
@@ -269,722 +242,722 @@ msgstr ""
269
  msgid "Select Post Types"
270
  msgstr ""
271
 
272
- #: ../admin/class-is-editor.php:165
273
  msgid "No post types registered on the site."
274
  msgstr ""
275
 
276
- #: ../admin/class-is-editor.php:171
277
  msgid "Do not display post_type in the search URL"
278
  msgstr ""
279
 
280
- #: ../admin/class-is-editor.php:180 ../admin/class-is-editor.php:1121
281
  msgid "( WooCommerce )"
282
  msgstr ""
283
 
284
- #: ../admin/class-is-editor.php:182 ../admin/class-is-editor.php:1123
285
  msgid "( Images, Videos, Audios, Docs, PDFs, Files & Attachments )"
286
  msgstr ""
287
 
288
- #: ../admin/class-is-editor.php:224 ../admin/class-is-editor.php:274
289
- #: ../admin/class-is-editor.php:299 ../admin/class-is-editor.php:350
290
- #: ../admin/class-is-editor.php:1172 ../admin/class-is-editor.php:1227
291
- #: ../admin/class-is-editor.php:1251 ../admin/class-is-editor.php:1298
292
  msgid "Search.."
293
  msgstr ""
294
 
295
- #: ../admin/class-is-editor.php:228 ../admin/class-is-editor.php:1176
296
  msgid "Load All"
297
  msgstr ""
298
 
299
- #: ../admin/class-is-editor.php:233 ../admin/class-is-editor.php:1182
300
  #, php-format
301
  msgid "No %s created."
302
  msgstr ""
303
 
304
- #: ../admin/class-is-editor.php:235 ../admin/class-is-editor.php:284
305
- #: ../admin/class-is-editor.php:309 ../admin/class-is-editor.php:358
306
- #: ../admin/class-is-editor.php:1184 ../admin/class-is-editor.php:1236
307
- #: ../admin/class-is-editor.php:1262 ../admin/class-is-editor.php:1306
308
  msgid ""
309
  "Hold down the control (ctrl) or command button to select multiple options."
310
  msgstr ""
311
 
312
- #: ../admin/class-is-editor.php:243
313
  #, php-format
314
  msgid ""
315
  "The %s are not searchable as the search form is configured to only search "
316
  "specific posts of another post type."
317
  msgstr ""
318
 
319
- #: ../admin/class-is-editor.php:247
320
  #, php-format
321
  msgid "Search all %s"
322
  msgstr ""
323
 
324
- #: ../admin/class-is-editor.php:249
325
  #, php-format
326
  msgid "Search only selected %s"
327
  msgstr ""
328
 
329
- #: ../admin/class-is-editor.php:288
330
  #, php-format
331
  msgid "Search %s of all taxonomies (%s categories, tags & terms %s)"
332
  msgstr ""
333
 
334
- #: ../admin/class-is-editor.php:290
335
  #, php-format
336
  msgid "Search %s of only selected taxonomies (%s categories, tags & terms %s)"
337
  msgstr ""
338
 
339
- #: ../admin/class-is-editor.php:313
340
  #, php-format
341
  msgid "Search selected %s custom fields values"
342
  msgstr ""
343
 
344
- #: ../admin/class-is-editor.php:325
345
  msgid "Search product SKU"
346
  msgstr ""
347
 
348
- #: ../admin/class-is-editor.php:328
349
  msgid "Search product variation"
350
  msgstr ""
351
 
352
- #: ../admin/class-is-editor.php:360
353
  msgid "Selected File Types :"
354
  msgstr ""
355
 
356
- #: ../admin/class-is-editor.php:368 ../admin/class-is-editor.php:1316
357
  msgid "Search all MIME types"
358
  msgstr ""
359
 
360
- #: ../admin/class-is-editor.php:370
361
  msgid "Search only selected MIME types"
362
  msgstr ""
363
 
364
- #: ../admin/class-is-editor.php:375
365
  msgid "Search Images"
366
  msgstr ""
367
 
368
- #: ../admin/class-is-editor.php:377
369
  msgid "Search Videos"
370
  msgstr ""
371
 
372
- #: ../admin/class-is-editor.php:379
373
  msgid "Search Audios"
374
  msgstr ""
375
 
376
- #: ../admin/class-is-editor.php:381
377
  msgid "Search Text Files"
378
  msgstr ""
379
 
380
- #: ../admin/class-is-editor.php:383
381
  msgid "Search PDF Files"
382
  msgstr ""
383
 
384
- #: ../admin/class-is-editor.php:385
385
  msgid "Search Document Files"
386
  msgstr ""
387
 
388
- #: ../admin/class-is-editor.php:392
389
  #, php-format
390
  msgid ""
391
  "This search form is configured in the %s section to not search specific MIME "
392
  "types."
393
  msgstr ""
394
 
395
- #: ../admin/class-is-editor.php:395 ../admin/class-is-editor.php:1342
396
  msgid ""
397
  "You are using WordPress version less than 4.9 which does not support "
398
  "searching by MIME type."
399
  msgstr ""
400
 
401
- #: ../admin/class-is-editor.php:404 ../admin/class-is-editor.php:1351
402
  msgid "Extras"
403
  msgstr ""
404
 
405
- #: ../admin/class-is-editor.php:409
406
  msgid "Search Content"
407
  msgstr ""
408
 
409
- #: ../admin/class-is-editor.php:414
410
  #, php-format
411
  msgid "Search post title %s( File title )%s"
412
  msgstr ""
413
 
414
- #: ../admin/class-is-editor.php:417
415
  #, php-format
416
  msgid "Search post content %s( File description )%s"
417
  msgstr ""
418
 
419
- #: ../admin/class-is-editor.php:420
420
  #, php-format
421
  msgid "Search post excerpt %s( File caption )%s"
422
  msgstr ""
423
 
424
- #: ../admin/class-is-editor.php:423
425
  #, php-format
426
  msgid "Search category/tag title %s( Displays posts of the category/tag )%s"
427
  msgstr ""
428
 
429
- #: ../admin/class-is-editor.php:426
430
  #, php-format
431
  msgid ""
432
  "Search category/tag description %s( Displays posts of the category/tag )%s"
433
  msgstr ""
434
 
435
- #: ../admin/class-is-editor.php:447
436
  msgid ""
437
  "Note: The below option is disabled and set to OR as you have configured the "
438
  "search form to search multiple taxonomies."
439
  msgstr ""
440
 
441
- #: ../admin/class-is-editor.php:452
442
  msgid "AND - Search posts having all the above selected category terms"
443
  msgstr ""
444
 
445
- #: ../admin/class-is-editor.php:454
446
  msgid "OR - Search posts having any one of the above selected category terms"
447
  msgstr ""
448
 
449
- #: ../admin/class-is-editor.php:460 ../admin/class-is-editor.php:1415
450
  msgid "Post Status"
451
  msgstr ""
452
 
453
- #: ../admin/class-is-editor.php:464
454
  msgid "Search posts having selected post statuses."
455
  msgstr ""
456
 
457
- #: ../admin/class-is-editor.php:481
458
  msgid "Select Post Status"
459
  msgstr ""
460
 
461
- #: ../admin/class-is-editor.php:500 ../admin/class-is-editor.php:1356
462
  msgid "Authors"
463
  msgstr ""
464
 
465
- #: ../admin/class-is-editor.php:504
466
  msgid "Search posts created by selected authors."
467
  msgstr ""
468
 
469
- #: ../admin/class-is-editor.php:523 ../admin/class-is-editor.php:525
470
  msgid "Searches all author posts"
471
  msgstr ""
472
 
473
- #: ../admin/class-is-editor.php:553
474
  #, php-format
475
  msgid ""
476
  "This search form is configured in the %s section to not search for specific "
477
  "author posts."
478
  msgstr ""
479
 
480
- #: ../admin/class-is-editor.php:561
481
  msgid "Search author Display Name and display the posts created by that author"
482
  msgstr ""
483
 
484
- #: ../admin/class-is-editor.php:566
485
  msgid "Comments"
486
  msgstr ""
487
 
488
- #: ../admin/class-is-editor.php:575
489
  msgid "Search posts having number of comments"
490
  msgstr ""
491
 
492
- #: ../admin/class-is-editor.php:585
493
  msgid "NA"
494
  msgstr ""
495
 
496
- #: ../admin/class-is-editor.php:596
497
  msgid "Search approved comment content"
498
  msgstr ""
499
 
500
- #: ../admin/class-is-editor.php:601
501
  msgid "Password Protected"
502
  msgstr ""
503
 
504
- #: ../admin/class-is-editor.php:607
505
  msgid "Search posts with or without passwords"
506
  msgstr ""
507
 
508
- #: ../admin/class-is-editor.php:609
509
  msgid "Search posts with passwords"
510
  msgstr ""
511
 
512
- #: ../admin/class-is-editor.php:611
513
  msgid "Search posts without passwords"
514
  msgstr ""
515
 
516
- #: ../admin/class-is-editor.php:615 ../admin/class-is-editor.php:852
517
- #: ../admin/class-is-editor.php:1071 ../admin/class-is-list-table.php:33
518
  msgid "Date"
519
  msgstr ""
520
 
521
- #: ../admin/class-is-editor.php:619
522
  msgid "Search posts created only in the specified date range."
523
  msgstr ""
524
 
525
- #: ../admin/class-is-editor.php:625
526
  msgid "From"
527
  msgstr ""
528
 
529
- #: ../admin/class-is-editor.php:625
530
  msgid "To"
531
  msgstr ""
532
 
533
- #: ../admin/class-is-editor.php:649 ../admin/partials/search-form.php:126
534
  msgid "Design Search Form Colors, Text and Style"
535
  msgstr ""
536
 
537
- #: ../admin/class-is-editor.php:656 ../admin/class-is-editor.php:673
538
  msgid "Enable Search Form Customization"
539
  msgstr ""
540
 
541
- #: ../admin/class-is-editor.php:669 ../includes/class-is-search-form.php:563
542
  msgid "Customizer"
543
  msgstr ""
544
 
545
- #: ../admin/class-is-editor.php:675
546
  msgid ""
547
  "Use below customizer to customize search form colors, text and search form "
548
  "style."
549
  msgstr ""
550
 
551
- #: ../admin/class-is-editor.php:683
552
  msgid "Search Form Customizer"
553
  msgstr ""
554
 
555
- #: ../admin/class-is-editor.php:731 ../public/class-is-ajax.php:68
556
  msgid "Nothing found"
557
  msgstr ""
558
 
559
- #: ../admin/class-is-editor.php:734
560
  msgid "View All"
561
  msgstr ""
562
 
563
- #: ../admin/class-is-editor.php:738
564
  msgid "More Results.."
565
  msgstr ""
566
 
567
- #: ../admin/class-is-editor.php:749 ../admin/partials/search-form.php:131
568
  msgid "Configure AJAX Search"
569
  msgstr ""
570
 
571
- #: ../admin/class-is-editor.php:756 ../admin/class-is-editor.php:770
572
- #: ../admin/class-is-editor.php:952
573
  msgid "Enable AJAX Search"
574
  msgstr ""
575
 
576
- #: ../admin/class-is-editor.php:763
577
  msgid "AJAX Search Results"
578
  msgstr ""
579
 
580
- #: ../admin/class-is-editor.php:771
581
  msgid "Display selected content in the search results."
582
  msgstr ""
583
 
584
- #: ../admin/class-is-editor.php:778
585
  msgid "Description"
586
  msgstr ""
587
 
588
- #: ../admin/class-is-editor.php:786
589
  msgid "Excerpt"
590
  msgstr ""
591
 
592
- #: ../admin/class-is-editor.php:792
593
  msgid "Content"
594
  msgstr ""
595
 
596
- #: ../admin/class-is-editor.php:800
597
  msgid "Description Length."
598
  msgstr ""
599
 
600
- #: ../admin/class-is-editor.php:808
601
  msgid "Image"
602
  msgstr ""
603
 
604
- #: ../admin/class-is-editor.php:819
605
  msgid "Categories"
606
  msgstr ""
607
 
608
- #: ../admin/class-is-editor.php:830
609
  msgid "Tags"
610
  msgstr ""
611
 
612
- #: ../admin/class-is-editor.php:841
613
  msgid "Author"
614
  msgstr ""
615
 
616
- #: ../admin/class-is-editor.php:859
617
  msgid "Minimum number of characters required to run ajax search."
618
  msgstr ""
619
 
620
- #: ../admin/class-is-editor.php:864
621
  msgid "Search results box max height."
622
  msgstr ""
623
 
624
- #: ../admin/class-is-editor.php:867
625
  msgid "Configure the plugin text displayed in the search results."
626
  msgstr ""
627
 
628
- #: ../admin/class-is-editor.php:872
629
  msgid "Text when there is no search results. HTML tags is allowed."
630
  msgstr ""
631
 
632
- #: ../admin/class-is-editor.php:881
633
  msgid "Show 'More Results..' text in the bottom of the search results box"
634
  msgstr ""
635
 
636
- #: ../admin/class-is-editor.php:889
637
  msgid "Text for the \"More Results..\"."
638
  msgstr ""
639
 
640
- #: ../admin/class-is-editor.php:898
641
  msgid "Redirect to search results page clicking on the 'More Results..' text"
642
  msgstr ""
643
 
644
- #: ../admin/class-is-editor.php:908
645
  msgid ""
646
  "View All Result - Show link to search results page at the bottom of search "
647
  "results block."
648
  msgstr ""
649
 
650
- #: ../admin/class-is-editor.php:917
651
  msgid ""
652
  "Text for the \"View All\" which shown at the bottom of the search result."
653
  msgstr ""
654
 
655
- #: ../admin/class-is-editor.php:922
656
  msgid "Configure how the search button should work clicking on it."
657
  msgstr ""
658
 
659
- #: ../admin/class-is-editor.php:928
660
  msgid "Search button displays search results page"
661
  msgstr ""
662
 
663
- #: ../admin/class-is-editor.php:935
664
  msgid "Search button displays ajax search results"
665
  msgstr ""
666
 
667
- #: ../admin/class-is-editor.php:943 ../admin/class-is-help.php:136
668
  msgid "WooCommerce"
669
  msgstr ""
670
 
671
- #: ../admin/class-is-editor.php:950
672
  #, php-format
673
  msgid ""
674
  "Please first configure this search form in the %s section to search "
675
  "WooCommerce product post type."
676
  msgstr ""
677
 
678
- #: ../admin/class-is-editor.php:953
679
  msgid "Display selected WooCommerce content in the search results."
680
  msgstr ""
681
 
682
- #: ../admin/class-is-editor.php:960 ../admin/class-is-editor.php:1072
683
  msgid "Price"
684
  msgstr ""
685
 
686
- #: ../admin/class-is-editor.php:971
687
  msgid "Hide Price for Out of Stock Products"
688
  msgstr ""
689
 
690
- #: ../admin/class-is-editor.php:982
691
  msgid "Sale Badge"
692
  msgstr ""
693
 
694
- #: ../admin/class-is-editor.php:993
695
  msgid "SKU"
696
  msgstr ""
697
 
698
- #: ../admin/class-is-editor.php:1004
699
  msgid "Stock Status"
700
  msgstr ""
701
 
702
- #: ../admin/class-is-editor.php:1015 ../public/class-is-ajax.php:410
703
  msgid "Featured Icon"
704
  msgstr ""
705
 
706
- #: ../admin/class-is-editor.php:1026
707
  msgid "Matching Categories"
708
  msgstr ""
709
 
710
- #: ../admin/class-is-editor.php:1037
711
  msgid "Matching Tags"
712
  msgstr ""
713
 
714
- #: ../admin/class-is-editor.php:1048
715
  msgid "Details Box"
716
  msgstr ""
717
 
718
- #: ../admin/class-is-editor.php:1054
719
  msgid "Below options only apply to matching categories or tags."
720
  msgstr ""
721
 
722
- #: ../admin/class-is-editor.php:1056
723
  msgid "Product List"
724
  msgstr ""
725
 
726
- #: ../admin/class-is-editor.php:1059
727
  msgid "All Product"
728
  msgstr ""
729
 
730
- #: ../admin/class-is-editor.php:1060
731
  msgid "Featured Products"
732
  msgstr ""
733
 
734
- #: ../admin/class-is-editor.php:1061
735
  msgid "On-sale Products</option>"
736
  msgstr ""
737
 
738
- #: ../admin/class-is-editor.php:1068
739
  msgid "Order by"
740
  msgstr ""
741
 
742
- #: ../admin/class-is-editor.php:1073
743
  msgid "Random"
744
  msgstr ""
745
 
746
- #: ../admin/class-is-editor.php:1074
747
  msgid "Sales"
748
  msgstr ""
749
 
750
- #: ../admin/class-is-editor.php:1081
751
  msgid "Order"
752
  msgstr ""
753
 
754
- #: ../admin/class-is-editor.php:1084
755
  msgid "ASC"
756
  msgstr ""
757
 
758
- #: ../admin/class-is-editor.php:1085
759
  msgid "DESC"
760
  msgstr ""
761
 
762
- #: ../admin/class-is-editor.php:1104 ../admin/partials/search-form.php:121
763
  msgid "Exclude Content From Search"
764
  msgstr ""
765
 
766
- #: ../admin/class-is-editor.php:1193
767
  #, php-format
768
  msgid ""
769
  "The search form is configured in the %s section to only search specific "
770
  "posts of another post type."
771
  msgstr ""
772
 
773
- #: ../admin/class-is-editor.php:1198
774
  #, php-format
775
  msgid "Do not exclude any %s from search"
776
  msgstr ""
777
 
778
- #: ../admin/class-is-editor.php:1200
779
  #, php-format
780
  msgid "Exclude selected %s from search"
781
  msgstr ""
782
 
783
- #: ../admin/class-is-editor.php:1203
784
  #, php-format
785
  msgid ""
786
  "The search form is configured in the %1$s section to only search specific "
787
  "%2$s."
788
  msgstr ""
789
 
790
- #: ../admin/class-is-editor.php:1240
791
  #, php-format
792
  msgid ""
793
  "Do not exclude any %s from search of any taxonomies (%s categories, tags & "
794
  "terms %s)"
795
  msgstr ""
796
 
797
- #: ../admin/class-is-editor.php:1242
798
  #, php-format
799
  msgid ""
800
  "Exclude %s from search of selected taxonomies (%s categories, tags & terms "
801
  "%s)"
802
  msgstr ""
803
 
804
- #: ../admin/class-is-editor.php:1266
805
  #, php-format
806
  msgid "Exclude %s from search having selected custom fields"
807
  msgstr ""
808
 
809
- #: ../admin/class-is-editor.php:1278
810
  msgid "Exclude 'Out of Stock' products from search"
811
  msgstr ""
812
 
813
- #: ../admin/class-is-editor.php:1308
814
  msgid "Excluded File Types :"
815
  msgstr ""
816
 
817
- #: ../admin/class-is-editor.php:1318
818
  msgid "Exclude selected MIME types from search"
819
  msgstr ""
820
 
821
- #: ../admin/class-is-editor.php:1322
822
  msgid "Exclude Images"
823
  msgstr ""
824
 
825
- #: ../admin/class-is-editor.php:1324
826
  msgid "Exclude Videos"
827
  msgstr ""
828
 
829
- #: ../admin/class-is-editor.php:1326
830
  msgid "Exclude Audios"
831
  msgstr ""
832
 
833
- #: ../admin/class-is-editor.php:1328
834
  msgid "Exclude Text Files"
835
  msgstr ""
836
 
837
- #: ../admin/class-is-editor.php:1330
838
  msgid "Exclude PDF Files"
839
  msgstr ""
840
 
841
- #: ../admin/class-is-editor.php:1332
842
  msgid "Exclude Document Files"
843
  msgstr ""
844
 
845
- #: ../admin/class-is-editor.php:1339
846
  #, php-format
847
  msgid ""
848
  "This search form is configured in the %s section to search specific "
849
  "attachments."
850
  msgstr ""
851
 
852
- #: ../admin/class-is-editor.php:1360
853
  msgid "Exclude posts from search created by selected authors."
854
  msgstr ""
855
 
856
- #: ../admin/class-is-editor.php:1379 ../admin/class-is-editor.php:1381
857
  msgid "Search all author posts"
858
  msgstr ""
859
 
860
- #: ../admin/class-is-editor.php:1409
861
  #, php-format
862
  msgid ""
863
  "This search form is configured in the %s section to search posts created by "
864
  "specific authors."
865
  msgstr ""
866
 
867
- #: ../admin/class-is-editor.php:1419
868
  msgid "Exclude posts from search having selected post statuses."
869
  msgstr ""
870
 
871
- #: ../admin/class-is-editor.php:1424
872
  msgid "Exclude sticky posts from search"
873
  msgstr ""
874
 
875
- #: ../admin/class-is-editor.php:1439 ../admin/partials/search-form.php:136
876
  msgid "Advanced Search Form Options"
877
  msgstr ""
878
 
879
- #: ../admin/class-is-editor.php:1446
880
  msgid "Posts Per Page"
881
  msgstr ""
882
 
883
- #: ../admin/class-is-editor.php:1450
884
  msgid "Display selected number of posts in search results."
885
  msgstr ""
886
 
887
- #: ../admin/class-is-editor.php:1467
888
  msgid "Order Search Results"
889
  msgstr ""
890
 
891
- #: ../admin/class-is-editor.php:1470
892
  msgid "Display posts on search results page ordered by selected options."
893
  msgstr ""
894
 
895
- #: ../admin/class-is-editor.php:1495
896
  msgid "Highlight Search Terms"
897
  msgstr ""
898
 
899
- #: ../admin/class-is-editor.php:1501
900
  msgid "Highlight searched terms on search results page"
901
  msgstr ""
902
 
903
- #: ../admin/class-is-editor.php:1504
904
  msgid "Select text highlight color"
905
  msgstr ""
906
 
907
- #: ../admin/class-is-editor.php:1510
908
  msgid "Search All Or Any Search Terms"
909
  msgstr ""
910
 
911
- #: ../admin/class-is-editor.php:1514
912
  msgid ""
913
  "Select whether to search posts having all or any of the words being searched."
914
  msgstr ""
915
 
916
- #: ../admin/class-is-editor.php:1519
917
  msgid "OR - Display content having any of the search terms"
918
  msgstr ""
919
 
920
- #: ../admin/class-is-editor.php:1521
921
  msgid "AND - Display content having all the search terms"
922
  msgstr ""
923
 
924
- #: ../admin/class-is-editor.php:1527
925
  msgid "Fuzzy Matching"
926
  msgstr ""
927
 
928
- #: ../admin/class-is-editor.php:1530
929
  msgid ""
930
  "Select whether to search posts having whole or partial word being searched."
931
  msgstr ""
932
 
933
- #: ../admin/class-is-editor.php:1535
934
  msgid "Whole - Search posts that include the whole search term"
935
  msgstr ""
936
 
937
- #: ../admin/class-is-editor.php:1537
938
  msgid ""
939
  "Partial - Also search words in the posts that begins or ends with the search "
940
  "term"
941
  msgstr ""
942
 
943
- #: ../admin/class-is-editor.php:1543
944
  msgid "Keyword Stemming"
945
  msgstr ""
946
 
947
- #: ../admin/class-is-editor.php:1547
948
  msgid "Select whether to search the base word of a searched keyword."
949
  msgstr ""
950
 
951
- #: ../admin/class-is-editor.php:1548
952
  msgid ""
953
  "For Example: If you search \"doing\" then it also searches base word of "
954
  "\"doing\" that is \"do\" in the specified post types."
955
  msgstr ""
956
 
957
- #: ../admin/class-is-editor.php:1549
958
  msgid "Not recommended to use when Fuzzy Matching option is set to Whole."
959
  msgstr ""
960
 
961
- #: ../admin/class-is-editor.php:1555
962
  msgid "Also search base word of searched keyword"
963
  msgstr ""
964
 
965
- #: ../admin/class-is-editor.php:1562
966
  msgid "Others"
967
  msgstr ""
968
 
969
- #: ../admin/class-is-editor.php:1568
970
  msgid "Display sticky posts to the start of the search results page"
971
  msgstr ""
972
 
973
- #: ../admin/class-is-editor.php:1572
974
  msgid "Display search form only for site administrator"
975
  msgstr ""
976
 
977
- #: ../admin/class-is-editor.php:1576
978
  msgid "Disable this search form"
979
  msgstr ""
980
 
981
- #: ../admin/class-is-editor.php:1579
982
  msgid ""
983
  "Select whether to display an error when user perform search without any "
984
  "search word."
985
  msgstr ""
986
 
987
- #: ../admin/class-is-editor.php:1583
988
  msgid "Display an error for empty search query"
989
  msgstr ""
990
 
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Ivory Search\n"
5
+ "POT-Creation-Date: 2020-09-10 23:17+0530\n"
6
  "PO-Revision-Date: 2020-03-17 21:05+0530\n"
7
  "Last-Translator: \n"
8
  "Language-Team: Ivory Search <admin@ivorysearch.com>\n"
30
  msgid "Click on the search form title to edit it."
31
  msgstr ""
32
 
33
+ #: ../admin/class-is-admin.php:163 ../admin/class-is-admin.php:449
34
  #: ../admin/class-is-help.php:64 ../admin/class-is-help.php:97
35
  msgid "Settings"
36
  msgstr ""
51
  "If you like %1$s please leave us a %2$s rating. A huge thanks in advance!"
52
  msgstr ""
53
 
54
+ #: ../admin/class-is-admin.php:204 ../admin/class-is-admin.php:433
55
  #: ../includes/class-is-admin-public.php:94 ../includes/class-is-widget.php:13
56
  msgid "Ivory Search"
57
  msgstr ""
58
 
59
+ #: ../admin/class-is-admin.php:241
60
  msgid "Dismiss"
61
  msgstr ""
62
 
63
+ #: ../admin/class-is-admin.php:243
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  #, php-format
65
  msgid ""
66
  "Hey %s, it's Vinod Dalvi from %s. You have used this free plugin for some "
67
  "time now, and I hope you like it!"
68
  msgstr ""
69
 
70
+ #: ../admin/class-is-admin.php:246
71
  #, php-format
72
  msgid ""
73
  "I have spent countless hours developing it, and it would mean a lot to me if "
74
  "you %ssupport it with a quick review on WordPress.org.%s"
75
  msgstr ""
76
 
77
+ #: ../admin/class-is-admin.php:251
78
  msgid "Review Ivory Search"
79
  msgstr ""
80
 
81
+ #: ../admin/class-is-admin.php:252
82
  msgid "No, thanks"
83
  msgstr ""
84
 
85
+ #: ../admin/class-is-admin.php:290
86
  msgid "No posts found"
87
  msgstr ""
88
 
89
+ #: ../admin/class-is-admin.php:389
90
  msgid "Search form created."
91
  msgstr ""
92
 
93
+ #: ../admin/class-is-admin.php:391
94
  msgid "Search form saved."
95
  msgstr ""
96
 
97
+ #: ../admin/class-is-admin.php:393
98
  msgid "Search form deleted."
99
  msgstr ""
100
 
101
+ #: ../admin/class-is-admin.php:395
102
  msgid "Search form reset."
103
  msgstr ""
104
 
105
+ #: ../admin/class-is-admin.php:404
106
  msgid "There was an error saving the search form."
107
  msgstr ""
108
 
109
+ #: ../admin/class-is-admin.php:412
110
  msgid "Validation error occurred."
111
  msgstr ""
112
 
113
+ #: ../admin/class-is-admin.php:413 ../admin/class-is-admin.php:418
114
  #: ../admin/class-is-help.php:35 ../admin/class-is-help.php:85
115
  msgid "Includes"
116
  msgstr ""
117
 
118
+ #: ../admin/class-is-admin.php:414 ../admin/class-is-admin.php:420
119
  #: ../admin/class-is-help.php:40 ../admin/class-is-help.php:86
120
  msgid "Excludes"
121
  msgstr ""
122
 
123
+ #: ../admin/class-is-admin.php:423
124
  #, php-format
125
  msgid ""
126
  "Please make sure you have not selected similar %s fields in the search form "
127
  "%s and %s sections."
128
  msgstr ""
129
 
130
+ #: ../admin/class-is-admin.php:435 ../admin/class-is-admin.php:482
131
  #: ../includes/class-is-search-form.php:59
132
  msgid "Search Forms"
133
  msgstr ""
134
 
135
+ #: ../admin/class-is-admin.php:440 ../admin/class-is-admin.php:442
136
+ #: ../admin/class-is-admin.php:489 ../admin/partials/search-form.php:21
137
+ #: ../admin/partials/search-form.php:31
138
  msgid "Add New Search Form"
139
  msgstr ""
140
 
141
+ #: ../admin/class-is-admin.php:440 ../admin/class-is-admin.php:442
142
+ msgid "Add New"
143
  msgstr ""
144
 
145
+ #: ../admin/class-is-admin.php:446 ../admin/class-is-help.php:59
146
  #: ../admin/class-is-help.php:96
147
  msgid "Menu Search"
148
  msgstr ""
149
 
150
+ #: ../admin/class-is-admin.php:449 ../admin/partials/settings-form.php:20
151
  msgid "Ivory Search Settings"
152
  msgstr ""
153
 
154
+ #: ../admin/class-is-admin.php:495
155
  #, php-format
156
  msgid "Search results for &#8220;%s&#8221;"
157
  msgstr ""
158
 
159
+ #: ../admin/class-is-admin.php:506
160
  msgid "Find Search Forms"
161
  msgstr ""
162
 
163
+ #: ../admin/class-is-admin.php:550
164
  msgid "You are not allowed to edit this item."
165
  msgstr ""
166
 
167
+ #: ../admin/class-is-admin.php:644
168
  msgid "You are not allowed to reset this item."
169
  msgstr ""
170
 
171
+ #: ../admin/class-is-admin.php:680
172
  msgid "You are not allowed to copy this item."
173
  msgstr ""
174
 
175
+ #: ../admin/class-is-admin.php:721
176
  msgid "You are not allowed to delete this item."
177
  msgstr ""
178
 
179
+ #: ../admin/class-is-admin.php:725
180
  msgid "Error in deleting."
181
  msgstr ""
182
 
183
+ #: ../admin/class-is-admin.php:965
184
  msgid "Save Form"
185
  msgstr ""
186
 
187
+ #: ../admin/class-is-admin.php:977
188
  msgid "Upgrade to Pro to Access"
189
  msgstr ""
190
 
191
+ #: ../admin/class-is-admin.php:984
192
  msgid "Install Premium Version to Access"
193
  msgstr ""
194
 
195
+ #: ../admin/class-is-admin.php:986
196
  msgid "Upgrade to Pro Plus to Access"
197
  msgstr ""
198
 
203
  #: ../admin/class-is-editor.php:97 ../admin/partials/search-form.php:114
204
  #: ../includes/class-is-admin-public.php:186
205
  #: ../includes/class-is-search-form.php:469
206
+ #: ../includes/class-is-search-form.php:537 ../public/class-is-public.php:207
207
+ #: ../public/class-is-public.php:256
208
  msgid "Search"
209
  msgstr ""
210
 
220
  msgid "Post Types"
221
  msgstr ""
222
 
223
+ #: ../admin/class-is-editor.php:127 ../admin/class-is-editor.php:410
224
+ #: ../admin/class-is-editor.php:770 ../admin/class-is-editor.php:1137
225
+ #: ../admin/class-is-editor.php:1360 ../admin/class-is-editor.php:1455
226
+ #: ../admin/class-is-editor.php:1571 ../admin/class-is-settings-fields.php:106
227
  msgid "Expand All"
228
  msgstr ""
229
 
230
+ #: ../admin/class-is-editor.php:127 ../admin/class-is-editor.php:410
231
+ #: ../admin/class-is-editor.php:771 ../admin/class-is-editor.php:1137
232
+ #: ../admin/class-is-editor.php:1360 ../admin/class-is-editor.php:1455
233
+ #: ../admin/class-is-editor.php:1571 ../admin/class-is-settings-fields.php:106
234
  msgid "Collapse All"
235
  msgstr ""
236
 
242
  msgid "Select Post Types"
243
  msgstr ""
244
 
245
+ #: ../admin/class-is-editor.php:167
246
  msgid "No post types registered on the site."
247
  msgstr ""
248
 
249
+ #: ../admin/class-is-editor.php:173
250
  msgid "Do not display post_type in the search URL"
251
  msgstr ""
252
 
253
+ #: ../admin/class-is-editor.php:185 ../admin/class-is-editor.php:1129
254
  msgid "( WooCommerce )"
255
  msgstr ""
256
 
257
+ #: ../admin/class-is-editor.php:187 ../admin/class-is-editor.php:1131
258
  msgid "( Images, Videos, Audios, Docs, PDFs, Files & Attachments )"
259
  msgstr ""
260
 
261
+ #: ../admin/class-is-editor.php:229 ../admin/class-is-editor.php:279
262
+ #: ../admin/class-is-editor.php:304 ../admin/class-is-editor.php:355
263
+ #: ../admin/class-is-editor.php:1180 ../admin/class-is-editor.php:1235
264
+ #: ../admin/class-is-editor.php:1259 ../admin/class-is-editor.php:1306
265
  msgid "Search.."
266
  msgstr ""
267
 
268
+ #: ../admin/class-is-editor.php:233 ../admin/class-is-editor.php:1184
269
  msgid "Load All"
270
  msgstr ""
271
 
272
+ #: ../admin/class-is-editor.php:238 ../admin/class-is-editor.php:1190
273
  #, php-format
274
  msgid "No %s created."
275
  msgstr ""
276
 
277
+ #: ../admin/class-is-editor.php:240 ../admin/class-is-editor.php:289
278
+ #: ../admin/class-is-editor.php:314 ../admin/class-is-editor.php:363
279
+ #: ../admin/class-is-editor.php:1192 ../admin/class-is-editor.php:1244
280
+ #: ../admin/class-is-editor.php:1270 ../admin/class-is-editor.php:1314
281
  msgid ""
282
  "Hold down the control (ctrl) or command button to select multiple options."
283
  msgstr ""
284
 
285
+ #: ../admin/class-is-editor.php:248
286
  #, php-format
287
  msgid ""
288
  "The %s are not searchable as the search form is configured to only search "
289
  "specific posts of another post type."
290
  msgstr ""
291
 
292
+ #: ../admin/class-is-editor.php:252
293
  #, php-format
294
  msgid "Search all %s"
295
  msgstr ""
296
 
297
+ #: ../admin/class-is-editor.php:254
298
  #, php-format
299
  msgid "Search only selected %s"
300
  msgstr ""
301
 
302
+ #: ../admin/class-is-editor.php:293
303
  #, php-format
304
  msgid "Search %s of all taxonomies (%s categories, tags & terms %s)"
305
  msgstr ""
306
 
307
+ #: ../admin/class-is-editor.php:295
308
  #, php-format
309
  msgid "Search %s of only selected taxonomies (%s categories, tags & terms %s)"
310
  msgstr ""
311
 
312
+ #: ../admin/class-is-editor.php:318
313
  #, php-format
314
  msgid "Search selected %s custom fields values"
315
  msgstr ""
316
 
317
+ #: ../admin/class-is-editor.php:330
318
  msgid "Search product SKU"
319
  msgstr ""
320
 
321
+ #: ../admin/class-is-editor.php:333
322
  msgid "Search product variation"
323
  msgstr ""
324
 
325
+ #: ../admin/class-is-editor.php:365
326
  msgid "Selected File Types :"
327
  msgstr ""
328
 
329
+ #: ../admin/class-is-editor.php:373 ../admin/class-is-editor.php:1324
330
  msgid "Search all MIME types"
331
  msgstr ""
332
 
333
+ #: ../admin/class-is-editor.php:375
334
  msgid "Search only selected MIME types"
335
  msgstr ""
336
 
337
+ #: ../admin/class-is-editor.php:380
338
  msgid "Search Images"
339
  msgstr ""
340
 
341
+ #: ../admin/class-is-editor.php:382
342
  msgid "Search Videos"
343
  msgstr ""
344
 
345
+ #: ../admin/class-is-editor.php:384
346
  msgid "Search Audios"
347
  msgstr ""
348
 
349
+ #: ../admin/class-is-editor.php:386
350
  msgid "Search Text Files"
351
  msgstr ""
352
 
353
+ #: ../admin/class-is-editor.php:388
354
  msgid "Search PDF Files"
355
  msgstr ""
356
 
357
+ #: ../admin/class-is-editor.php:390
358
  msgid "Search Document Files"
359
  msgstr ""
360
 
361
+ #: ../admin/class-is-editor.php:397
362
  #, php-format
363
  msgid ""
364
  "This search form is configured in the %s section to not search specific MIME "
365
  "types."
366
  msgstr ""
367
 
368
+ #: ../admin/class-is-editor.php:400 ../admin/class-is-editor.php:1350
369
  msgid ""
370
  "You are using WordPress version less than 4.9 which does not support "
371
  "searching by MIME type."
372
  msgstr ""
373
 
374
+ #: ../admin/class-is-editor.php:409 ../admin/class-is-editor.php:1359
375
  msgid "Extras"
376
  msgstr ""
377
 
378
+ #: ../admin/class-is-editor.php:414
379
  msgid "Search Content"
380
  msgstr ""
381
 
382
+ #: ../admin/class-is-editor.php:419
383
  #, php-format
384
  msgid "Search post title %s( File title )%s"
385
  msgstr ""
386
 
387
+ #: ../admin/class-is-editor.php:422
388
  #, php-format
389
  msgid "Search post content %s( File description )%s"
390
  msgstr ""
391
 
392
+ #: ../admin/class-is-editor.php:425
393
  #, php-format
394
  msgid "Search post excerpt %s( File caption )%s"
395
  msgstr ""
396
 
397
+ #: ../admin/class-is-editor.php:428
398
  #, php-format
399
  msgid "Search category/tag title %s( Displays posts of the category/tag )%s"
400
  msgstr ""
401
 
402
+ #: ../admin/class-is-editor.php:431
403
  #, php-format
404
  msgid ""
405
  "Search category/tag description %s( Displays posts of the category/tag )%s"
406
  msgstr ""
407
 
408
+ #: ../admin/class-is-editor.php:452
409
  msgid ""
410
  "Note: The below option is disabled and set to OR as you have configured the "
411
  "search form to search multiple taxonomies."
412
  msgstr ""
413
 
414
+ #: ../admin/class-is-editor.php:457
415
  msgid "AND - Search posts having all the above selected category terms"
416
  msgstr ""
417
 
418
+ #: ../admin/class-is-editor.php:459
419
  msgid "OR - Search posts having any one of the above selected category terms"
420
  msgstr ""
421
 
422
+ #: ../admin/class-is-editor.php:465 ../admin/class-is-editor.php:1423
423
  msgid "Post Status"
424
  msgstr ""
425
 
426
+ #: ../admin/class-is-editor.php:469
427
  msgid "Search posts having selected post statuses."
428
  msgstr ""
429
 
430
+ #: ../admin/class-is-editor.php:486
431
  msgid "Select Post Status"
432
  msgstr ""
433
 
434
+ #: ../admin/class-is-editor.php:505 ../admin/class-is-editor.php:1364
435
  msgid "Authors"
436
  msgstr ""
437
 
438
+ #: ../admin/class-is-editor.php:509
439
  msgid "Search posts created by selected authors."
440
  msgstr ""
441
 
442
+ #: ../admin/class-is-editor.php:528 ../admin/class-is-editor.php:530
443
  msgid "Searches all author posts"
444
  msgstr ""
445
 
446
+ #: ../admin/class-is-editor.php:558
447
  #, php-format
448
  msgid ""
449
  "This search form is configured in the %s section to not search for specific "
450
  "author posts."
451
  msgstr ""
452
 
453
+ #: ../admin/class-is-editor.php:566
454
  msgid "Search author Display Name and display the posts created by that author"
455
  msgstr ""
456
 
457
+ #: ../admin/class-is-editor.php:571
458
  msgid "Comments"
459
  msgstr ""
460
 
461
+ #: ../admin/class-is-editor.php:580
462
  msgid "Search posts having number of comments"
463
  msgstr ""
464
 
465
+ #: ../admin/class-is-editor.php:590
466
  msgid "NA"
467
  msgstr ""
468
 
469
+ #: ../admin/class-is-editor.php:601
470
  msgid "Search approved comment content"
471
  msgstr ""
472
 
473
+ #: ../admin/class-is-editor.php:606
474
  msgid "Password Protected"
475
  msgstr ""
476
 
477
+ #: ../admin/class-is-editor.php:612
478
  msgid "Search posts with or without passwords"
479
  msgstr ""
480
 
481
+ #: ../admin/class-is-editor.php:614
482
  msgid "Search posts with passwords"
483
  msgstr ""
484
 
485
+ #: ../admin/class-is-editor.php:616
486
  msgid "Search posts without passwords"
487
  msgstr ""
488
 
489
+ #: ../admin/class-is-editor.php:620 ../admin/class-is-editor.php:857
490
+ #: ../admin/class-is-editor.php:1076 ../admin/class-is-list-table.php:33
491
  msgid "Date"
492
  msgstr ""
493
 
494
+ #: ../admin/class-is-editor.php:624
495
  msgid "Search posts created only in the specified date range."
496
  msgstr ""
497
 
498
+ #: ../admin/class-is-editor.php:630
499
  msgid "From"
500
  msgstr ""
501
 
502
+ #: ../admin/class-is-editor.php:630
503
  msgid "To"
504
  msgstr ""
505
 
506
+ #: ../admin/class-is-editor.php:654 ../admin/partials/search-form.php:126
507
  msgid "Design Search Form Colors, Text and Style"
508
  msgstr ""
509
 
510
+ #: ../admin/class-is-editor.php:661 ../admin/class-is-editor.php:678
511
  msgid "Enable Search Form Customization"
512
  msgstr ""
513
 
514
+ #: ../admin/class-is-editor.php:674 ../includes/class-is-search-form.php:563
515
  msgid "Customizer"
516
  msgstr ""
517
 
518
+ #: ../admin/class-is-editor.php:680
519
  msgid ""
520
  "Use below customizer to customize search form colors, text and search form "
521
  "style."
522
  msgstr ""
523
 
524
+ #: ../admin/class-is-editor.php:688
525
  msgid "Search Form Customizer"
526
  msgstr ""
527
 
528
+ #: ../admin/class-is-editor.php:736 ../public/class-is-ajax.php:68
529
  msgid "Nothing found"
530
  msgstr ""
531
 
532
+ #: ../admin/class-is-editor.php:739
533
  msgid "View All"
534
  msgstr ""
535
 
536
+ #: ../admin/class-is-editor.php:743
537
  msgid "More Results.."
538
  msgstr ""
539
 
540
+ #: ../admin/class-is-editor.php:754 ../admin/partials/search-form.php:131
541
  msgid "Configure AJAX Search"
542
  msgstr ""
543
 
544
+ #: ../admin/class-is-editor.php:761 ../admin/class-is-editor.php:775
545
+ #: ../admin/class-is-editor.php:957
546
  msgid "Enable AJAX Search"
547
  msgstr ""
548
 
549
+ #: ../admin/class-is-editor.php:768
550
  msgid "AJAX Search Results"
551
  msgstr ""
552
 
553
+ #: ../admin/class-is-editor.php:776
554
  msgid "Display selected content in the search results."
555
  msgstr ""
556
 
557
+ #: ../admin/class-is-editor.php:783
558
  msgid "Description"
559
  msgstr ""
560
 
561
+ #: ../admin/class-is-editor.php:791
562
  msgid "Excerpt"
563
  msgstr ""
564
 
565
+ #: ../admin/class-is-editor.php:797
566
  msgid "Content"
567
  msgstr ""
568
 
569
+ #: ../admin/class-is-editor.php:805
570
  msgid "Description Length."
571
  msgstr ""
572
 
573
+ #: ../admin/class-is-editor.php:813
574
  msgid "Image"
575
  msgstr ""
576
 
577
+ #: ../admin/class-is-editor.php:824
578
  msgid "Categories"
579
  msgstr ""
580
 
581
+ #: ../admin/class-is-editor.php:835
582
  msgid "Tags"
583
  msgstr ""
584
 
585
+ #: ../admin/class-is-editor.php:846
586
  msgid "Author"
587
  msgstr ""
588
 
589
+ #: ../admin/class-is-editor.php:864
590
  msgid "Minimum number of characters required to run ajax search."
591
  msgstr ""
592
 
593
+ #: ../admin/class-is-editor.php:869
594
  msgid "Search results box max height."
595
  msgstr ""
596
 
597
+ #: ../admin/class-is-editor.php:872
598
  msgid "Configure the plugin text displayed in the search results."
599
  msgstr ""
600
 
601
+ #: ../admin/class-is-editor.php:877
602
  msgid "Text when there is no search results. HTML tags is allowed."
603
  msgstr ""
604
 
605
+ #: ../admin/class-is-editor.php:886
606
  msgid "Show 'More Results..' text in the bottom of the search results box"
607
  msgstr ""
608
 
609
+ #: ../admin/class-is-editor.php:894
610
  msgid "Text for the \"More Results..\"."
611
  msgstr ""
612
 
613
+ #: ../admin/class-is-editor.php:903
614
  msgid "Redirect to search results page clicking on the 'More Results..' text"
615
  msgstr ""
616
 
617
+ #: ../admin/class-is-editor.php:913
618
  msgid ""
619
  "View All Result - Show link to search results page at the bottom of search "
620
  "results block."
621
  msgstr ""
622
 
623
+ #: ../admin/class-is-editor.php:922
624
  msgid ""
625
  "Text for the \"View All\" which shown at the bottom of the search result."
626
  msgstr ""
627
 
628
+ #: ../admin/class-is-editor.php:927
629
  msgid "Configure how the search button should work clicking on it."
630
  msgstr ""
631
 
632
+ #: ../admin/class-is-editor.php:933
633
  msgid "Search button displays search results page"
634
  msgstr ""
635
 
636
+ #: ../admin/class-is-editor.php:940
637
  msgid "Search button displays ajax search results"
638
  msgstr ""
639
 
640
+ #: ../admin/class-is-editor.php:948 ../admin/class-is-help.php:136
641
  msgid "WooCommerce"
642
  msgstr ""
643
 
644
+ #: ../admin/class-is-editor.php:955
645
  #, php-format
646
  msgid ""
647
  "Please first configure this search form in the %s section to search "
648
  "WooCommerce product post type."
649
  msgstr ""
650
 
651
+ #: ../admin/class-is-editor.php:958
652
  msgid "Display selected WooCommerce content in the search results."
653
  msgstr ""
654
 
655
+ #: ../admin/class-is-editor.php:965 ../admin/class-is-editor.php:1077
656
  msgid "Price"
657
  msgstr ""
658
 
659
+ #: ../admin/class-is-editor.php:976
660
  msgid "Hide Price for Out of Stock Products"
661
  msgstr ""
662
 
663
+ #: ../admin/class-is-editor.php:987
664
  msgid "Sale Badge"
665
  msgstr ""
666
 
667
+ #: ../admin/class-is-editor.php:998
668
  msgid "SKU"
669
  msgstr ""
670
 
671
+ #: ../admin/class-is-editor.php:1009
672
  msgid "Stock Status"
673
  msgstr ""
674
 
675
+ #: ../admin/class-is-editor.php:1020 ../public/class-is-ajax.php:410
676
  msgid "Featured Icon"
677
  msgstr ""
678
 
679
+ #: ../admin/class-is-editor.php:1031
680
  msgid "Matching Categories"
681
  msgstr ""
682
 
683
+ #: ../admin/class-is-editor.php:1042
684
  msgid "Matching Tags"
685
  msgstr ""
686
 
687
+ #: ../admin/class-is-editor.php:1053
688
  msgid "Details Box"
689
  msgstr ""
690
 
691
+ #: ../admin/class-is-editor.php:1059
692
  msgid "Below options only apply to matching categories or tags."
693
  msgstr ""
694
 
695
+ #: ../admin/class-is-editor.php:1061
696
  msgid "Product List"
697
  msgstr ""
698
 
699
+ #: ../admin/class-is-editor.php:1064
700
  msgid "All Product"
701
  msgstr ""
702
 
703
+ #: ../admin/class-is-editor.php:1065
704
  msgid "Featured Products"
705
  msgstr ""
706
 
707
+ #: ../admin/class-is-editor.php:1066
708
  msgid "On-sale Products</option>"
709
  msgstr ""
710
 
711
+ #: ../admin/class-is-editor.php:1073
712
  msgid "Order by"
713
  msgstr ""
714
 
715
+ #: ../admin/class-is-editor.php:1078
716
  msgid "Random"
717
  msgstr ""
718
 
719
+ #: ../admin/class-is-editor.php:1079
720
  msgid "Sales"
721
  msgstr ""
722
 
723
+ #: ../admin/class-is-editor.php:1086
724
  msgid "Order"
725
  msgstr ""
726
 
727
+ #: ../admin/class-is-editor.php:1089
728
  msgid "ASC"
729
  msgstr ""
730
 
731
+ #: ../admin/class-is-editor.php:1090
732
  msgid "DESC"
733
  msgstr ""
734
 
735
+ #: ../admin/class-is-editor.php:1109 ../admin/partials/search-form.php:121
736
  msgid "Exclude Content From Search"
737
  msgstr ""
738
 
739
+ #: ../admin/class-is-editor.php:1201
740
  #, php-format
741
  msgid ""
742
  "The search form is configured in the %s section to only search specific "
743
  "posts of another post type."
744
  msgstr ""
745
 
746
+ #: ../admin/class-is-editor.php:1206
747
  #, php-format
748
  msgid "Do not exclude any %s from search"
749
  msgstr ""
750
 
751
+ #: ../admin/class-is-editor.php:1208
752
  #, php-format
753
  msgid "Exclude selected %s from search"
754
  msgstr ""
755
 
756
+ #: ../admin/class-is-editor.php:1211
757
  #, php-format
758
  msgid ""
759
  "The search form is configured in the %1$s section to only search specific "
760
  "%2$s."
761
  msgstr ""
762
 
763
+ #: ../admin/class-is-editor.php:1248
764
  #, php-format
765
  msgid ""
766
  "Do not exclude any %s from search of any taxonomies (%s categories, tags & "
767
  "terms %s)"
768
  msgstr ""
769
 
770
+ #: ../admin/class-is-editor.php:1250
771
  #, php-format
772
  msgid ""
773
  "Exclude %s from search of selected taxonomies (%s categories, tags & terms "
774
  "%s)"
775
  msgstr ""
776
 
777
+ #: ../admin/class-is-editor.php:1274
778
  #, php-format
779
  msgid "Exclude %s from search having selected custom fields"
780
  msgstr ""
781
 
782
+ #: ../admin/class-is-editor.php:1286
783
  msgid "Exclude 'Out of Stock' products from search"
784
  msgstr ""
785
 
786
+ #: ../admin/class-is-editor.php:1316
787
  msgid "Excluded File Types :"
788
  msgstr ""
789
 
790
+ #: ../admin/class-is-editor.php:1326
791
  msgid "Exclude selected MIME types from search"
792
  msgstr ""
793
 
794
+ #: ../admin/class-is-editor.php:1330
795
  msgid "Exclude Images"
796
  msgstr ""
797
 
798
+ #: ../admin/class-is-editor.php:1332
799
  msgid "Exclude Videos"
800
  msgstr ""
801
 
802
+ #: ../admin/class-is-editor.php:1334
803
  msgid "Exclude Audios"
804
  msgstr ""
805
 
806
+ #: ../admin/class-is-editor.php:1336
807
  msgid "Exclude Text Files"
808
  msgstr ""
809
 
810
+ #: ../admin/class-is-editor.php:1338
811
  msgid "Exclude PDF Files"
812
  msgstr ""
813
 
814
+ #: ../admin/class-is-editor.php:1340
815
  msgid "Exclude Document Files"
816
  msgstr ""
817
 
818
+ #: ../admin/class-is-editor.php:1347
819
  #, php-format
820
  msgid ""
821
  "This search form is configured in the %s section to search specific "
822
  "attachments."
823
  msgstr ""
824
 
825
+ #: ../admin/class-is-editor.php:1368
826
  msgid "Exclude posts from search created by selected authors."
827
  msgstr ""
828
 
829
+ #: ../admin/class-is-editor.php:1387 ../admin/class-is-editor.php:1389
830
  msgid "Search all author posts"
831
  msgstr ""
832
 
833
+ #: ../admin/class-is-editor.php:1417
834
  #, php-format
835
  msgid ""
836
  "This search form is configured in the %s section to search posts created by "
837
  "specific authors."
838
  msgstr ""
839
 
840
+ #: ../admin/class-is-editor.php:1427
841
  msgid "Exclude posts from search having selected post statuses."
842
  msgstr ""
843
 
844
+ #: ../admin/class-is-editor.php:1432
845
  msgid "Exclude sticky posts from search"
846
  msgstr ""
847
 
848
+ #: ../admin/class-is-editor.php:1447 ../admin/partials/search-form.php:136
849
  msgid "Advanced Search Form Options"
850
  msgstr ""
851
 
852
+ #: ../admin/class-is-editor.php:1454
853
  msgid "Posts Per Page"
854
  msgstr ""
855
 
856
+ #: ../admin/class-is-editor.php:1458
857
  msgid "Display selected number of posts in search results."
858
  msgstr ""
859
 
860
+ #: ../admin/class-is-editor.php:1475
861
  msgid "Order Search Results"
862
  msgstr ""
863
 
864
+ #: ../admin/class-is-editor.php:1478
865
  msgid "Display posts on search results page ordered by selected options."
866
  msgstr ""
867
 
868
+ #: ../admin/class-is-editor.php:1503
869
  msgid "Highlight Search Terms"
870
  msgstr ""
871
 
872
+ #: ../admin/class-is-editor.php:1509
873
  msgid "Highlight searched terms on search results page"
874
  msgstr ""
875
 
876
+ #: ../admin/class-is-editor.php:1512
877
  msgid "Select text highlight color"
878
  msgstr ""
879
 
880
+ #: ../admin/class-is-editor.php:1518
881
  msgid "Search All Or Any Search Terms"
882
  msgstr ""
883
 
884
+ #: ../admin/class-is-editor.php:1522
885
  msgid ""
886
  "Select whether to search posts having all or any of the words being searched."
887
  msgstr ""
888
 
889
+ #: ../admin/class-is-editor.php:1527
890
  msgid "OR - Display content having any of the search terms"
891
  msgstr ""
892
 
893
+ #: ../admin/class-is-editor.php:1529
894
  msgid "AND - Display content having all the search terms"
895
  msgstr ""
896
 
897
+ #: ../admin/class-is-editor.php:1535
898
  msgid "Fuzzy Matching"
899
  msgstr ""
900
 
901
+ #: ../admin/class-is-editor.php:1538
902
  msgid ""
903
  "Select whether to search posts having whole or partial word being searched."
904
  msgstr ""
905
 
906
+ #: ../admin/class-is-editor.php:1543
907
  msgid "Whole - Search posts that include the whole search term"
908
  msgstr ""
909
 
910
+ #: ../admin/class-is-editor.php:1545
911
  msgid ""
912
  "Partial - Also search words in the posts that begins or ends with the search "
913
  "term"
914
  msgstr ""
915
 
916
+ #: ../admin/class-is-editor.php:1551
917
  msgid "Keyword Stemming"
918
  msgstr ""
919
 
920
+ #: ../admin/class-is-editor.php:1555
921
  msgid "Select whether to search the base word of a searched keyword."
922
  msgstr ""
923
 
924
+ #: ../admin/class-is-editor.php:1556
925
  msgid ""
926
  "For Example: If you search \"doing\" then it also searches base word of "
927
  "\"doing\" that is \"do\" in the specified post types."
928
  msgstr ""
929
 
930
+ #: ../admin/class-is-editor.php:1557
931
  msgid "Not recommended to use when Fuzzy Matching option is set to Whole."
932
  msgstr ""
933
 
934
+ #: ../admin/class-is-editor.php:1563
935
  msgid "Also search base word of searched keyword"
936
  msgstr ""
937
 
938
+ #: ../admin/class-is-editor.php:1570
939
  msgid "Others"
940
  msgstr ""
941
 
942
+ #: ../admin/class-is-editor.php:1576
943
  msgid "Display sticky posts to the start of the search results page"
944
  msgstr ""
945
 
946
+ #: ../admin/class-is-editor.php:1580
947
  msgid "Display search form only for site administrator"
948
  msgstr ""
949
 
950
+ #: ../admin/class-is-editor.php:1584
951
  msgid "Disable this search form"
952
  msgstr ""
953
 
954
+ #: ../admin/class-is-editor.php:1587
955
  msgid ""
956
  "Select whether to display an error when user perform search without any "
957
  "search word."
958
  msgstr ""
959
 
960
+ #: ../admin/class-is-editor.php:1591
961
  msgid "Display an error for empty search query"
962
  msgstr ""
963
 
public/class-is-public.php CHANGED
@@ -231,8 +231,14 @@ class IS_Public
231
  $temp .= '<li class="' . esc_attr( $search_class ) . ' menu-item">';
232
 
233
  if ( !isset( $this->opt['menu_style'] ) || $this->opt['menu_style'] != 'default' ) {
234
- $link_title = ( apply_filters( 'is_show_menu_link_title', true ) ? 'title="' . esc_attr( $title ) . '"' : '' );
235
- $temp .= '<a ' . $link_title . ' href="#">';
 
 
 
 
 
 
236
 
237
  if ( '' == $title ) {
238
  $temp .= '<svg width="20" height="20" class="search-icon" role="img" viewBox="2 9 20 5" focusable="false" aria-label="' . __( "Search", "ivory-search" ) . '">
@@ -659,8 +665,8 @@ class IS_Public
659
 
660
  if ( isset( $q['_is_settings']['fuzzy_match'] ) && '2' !== $q['_is_settings']['fuzzy_match'] ) {
661
  $like = 'REGEXP';
662
- $f = "(^|[[\\s|.|~||!|@|#|\$|%|^|&|*|(|)|'|\"|+|=|{|}|[|]|\\||:|;|<|>|\\?|\\/|\\|]])";
663
- $l = "([[\\s|.|~||!|@|#|\$|%|^|&|*|(|)|'|\"|+|=|{|}|[|]|\\||:|;|<|>|\\?|\\/|\\|]]|\$)";
664
  }
665
 
666
  $searchand = '';
@@ -906,7 +912,9 @@ class IS_Public
906
  echo '<div class="popup-search-close"></div>' ;
907
  }
908
  echo '<div class="is-popup-search-form">' ;
 
909
  $this->get_menu_search_form();
 
910
  echo '</div></div>' ;
911
  }
912
 
231
  $temp .= '<li class="' . esc_attr( $search_class ) . ' menu-item">';
232
 
233
  if ( !isset( $this->opt['menu_style'] ) || $this->opt['menu_style'] != 'default' ) {
234
+
235
+ if ( '' !== $title ) {
236
+ $link_title = ( apply_filters( 'is_show_menu_link_title', true ) ? 'title="' . esc_attr( $title ) . '"' : '' );
237
+ $temp .= '<a ' . $link_title . ' href="#">';
238
+ } else {
239
+ $temp .= '<a href="#">';
240
+ }
241
+
242
 
243
  if ( '' == $title ) {
244
  $temp .= '<svg width="20" height="20" class="search-icon" role="img" viewBox="2 9 20 5" focusable="false" aria-label="' . __( "Search", "ivory-search" ) . '">
665
 
666
  if ( isset( $q['_is_settings']['fuzzy_match'] ) && '2' !== $q['_is_settings']['fuzzy_match'] ) {
667
  $like = 'REGEXP';
668
+ $f = '([[:blank:][:punct:]]|^)';
669
+ $l = '([[:blank:][:punct:]]|$)';
670
  }
671
 
672
  $searchand = '';
912
  echo '<div class="popup-search-close"></div>' ;
913
  }
914
  echo '<div class="is-popup-search-form">' ;
915
+ do_action( 'is_before_popup_search_form' );
916
  $this->get_menu_search_form();
917
+ do_action( 'is_after_popup_search_form' );
918
  echo '</div></div>' ;
919
  }
920
 
public/css/ivory-search.css CHANGED
@@ -323,7 +323,7 @@ form:hover + .is-link-container {
323
  border: 0;
324
  box-shadow: none !important;
325
  opacity: 1;
326
- padding: 0;
327
  margin: 0;
328
  line-height: 0;
329
  outline: 0;
323
  border: 0;
324
  box-shadow: none !important;
325
  opacity: 1;
326
+ padding: 0 !important;;
327
  margin: 0;
328
  line-height: 0;
329
  outline: 0;
public/css/ivory-search.min.css CHANGED
@@ -1 +1 @@
1
- .is-menu{position:relative}.is-menu a{background:0 0!important;line-height:1;outline:0}.is-menu a::after,.is-menu a::before{display:none!important}.is-menu a:focus,.is-menu a:hover,.is-menu:hover>a{background:0 0!important;outline:0}.is-menu.default form{max-width:310px}.is-menu.is-dropdown form{display:none;min-width:310px;max-width:100%;position:absolute;right:0;top:100%;z-index:9}.is-menu.full-width-menu form,.is-menu.sliding form{min-width:0!important;overflow:hidden;position:absolute;right:0;top:25%;width:0;z-index:9;padding:0;margin:0}.is-menu.full-width-menu form:not(.is-search-form) input[type=search],.is-menu.full-width-menu form:not(.is-search-form) input[type=text],.is-menu.is-dropdown form:not(.is-search-form) input[type=search],.is-menu.is-dropdown form:not(.is-search-form) input[type=text],.is-menu.sliding form:not(.is-search-form) input[type=search],.is-menu.sliding form:not(.is-search-form) input[type=text],.is-popup-search-form form:not(.is-search-form) input[type=search],.is-popup-search-form form:not(.is-search-form) input[type=text]{background:#fff;color:#000}.is-menu.is-first form{right:auto;left:0}.is-menu.full-width-menu:not(.open) form,.is-menu.sliding:not(.open) form{display:block}.is-menu form .screen-reader-text{display:none}.is-menu form label{margin:0;padding:0}.is-menu-wrapper{display:none;position:absolute;right:5px;top:5px;width:auto;z-index:9999}.is-menu-wrapper.is-expanded{width:100%}.admin-bar .is-menu-wrapper{top:51px}.is-menu-wrapper .is-menu{float:right}.is-menu-wrapper .is-menu form{right:0;left:auto}.gsc-cse-search-menu{max-width:310px;float:right}.gsc-cse-search-menu .cse .gsc-control-cse,.gsc-cse-search-menu .gsc-control-cse{padding:0}.is-menu .search-icon-path{fill:#848484}.search-close{cursor:pointer;display:none;height:20px;position:absolute;right:-22px;top:33%;width:20px;z-index:99999}.is-menu.is-first .search-close{right:auto;left:-22px}.is-menu.is-dropdown .search-close{top:calc(100% + 7px)}.popup-search-close{cursor:pointer;height:20px;width:20px;z-index:99999;float:right;position:relative;margin:20px 20px 0 0}#is-popup-wrapper{width:100%;height:100%;position:fixed;top:0;left:0;background:#4c4c4c;background:rgba(4,4,4,.91);z-index:999999}.is-popup-search-form form{width:80%;margin:20% auto 0}.is-popup-search-form form.is-ajax-search{margin:10% auto 0}.popup-search-close:after,.search-close:after{border-left:2px solid #848484;content:'';height:20px;left:9px;position:absolute;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);transform:rotate(45deg)}.popup-search-close:before,.search-close:before{border-left:2px solid #848484;content:'';height:20px;left:9px;position:absolute;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-ms-transform:rotate(-45deg);-o-transform:rotate(-45deg);transform:rotate(-45deg)}.is-menu.full-width-menu.open .search-close,.is-menu.is-dropdown form[style="display: block;"]+.search-close,.is-menu.sliding.open .search-close{display:block}.is-highlight{background-color:#ffffb9;color:#222}@media screen and (max-width:910px){.is-menu form{left:0;min-width:50%;right:auto}.is-menu.default form{max-width:100%}.is-menu.full-width-menu.active-search{position:relative}.is-menu-wrapper{display:block}}.is-link-container{display:none}form .is-link-container{position:relative}form .is-link-container div{position:absolute;width:200px;bottom:-25px;left:5px;z-index:99999;height:auto;line-height:14px;padding:10px 15px}form .is-link-container a{text-decoration:none;font-size:14px;font-weight:100;font-family:arial;box-shadow:none}form .is-link-container a:hover{text-decoration:underline}form .is-link-container a.is-customize-link{margin-left:15px}form:hover+.is-link-container,form:hover>.is-link-container{display:block}.is-form-style label{display:inline-block!important;padding:0;vertical-align:middle;margin:0;width:100%;line-height:1}.is-form-style{line-height:1;position:relative;padding:0!important}.is-form-style.is-form-style-3 label{width:calc(100% - 36px)!important}.is-form-style input.is-search-input{background:#fff;background-image:none!important;color:#333;padding:0 12px;margin:0;outline:0!important;font-size:14px!important;height:36px;min-height:0;line-height:1;border-radius:0;border:solid 1px #ccc!important;font-family:arial;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.is-form-style input.is-search-input::-ms-clear{display:none;width:0;height:0}.is-form-style input.is-search-input::-ms-reveal{display:none;width:0;height:0}.is-form-style input.is-search-input::-webkit-search-cancel-button,.is-form-style input.is-search-input::-webkit-search-decoration,.is-form-style input.is-search-input::-webkit-search-results-button,.is-form-style input.is-search-input::-webkit-search-results-decoration{display:none}.is-form-style.is-form-style-3 input.is-search-input{border-right:0!important}.is-form-style button.is-search-submit{background:0 0;border:0;box-shadow:none!important;opacity:1;padding:0;margin:0;line-height:0;outline:0;vertical-align:middle;width:36px;height:36px}.is-menu.full-width-menu.is-first button.is-search-submit,.is-menu.sliding.is-first button.is-search-submit{display:inline-block!important}.is-menu.full-width-menu.is-first button.is-search-submit:not([style="display: inline-block;"]),.is-menu.sliding.is-first button.is-search-submit:not([style="display: inline-block;"]){visibility:hidden}.is-form-style .is-search-submit path{fill:#555}.is-form-style input.is-search-submit{text-decoration:none;position:absolute;top:0;right:0}.is-form-style input.is-search-submit{padding:0 10px!important;width:auto}.is-search-icon{width:36px;padding-top:6px!important}.is-search-icon svg{width:22px;display:inline}.is-form-style input.is-search-submit,.is-search-icon{display:inline-block!important;color:#666;background:#ededed;box-shadow:none!important;outline:0;margin:0;font-size:14px!important;border:1px solid #ccc;border-radius:0;line-height:1;height:36px;text-transform:capitalize;vertical-align:middle;-webkit-transition:background-color .1s ease-in-out;-moz-transition:background-color .1s ease-in-out;-o-transition:background-color .1s ease-in-out;transition:background-color .1s ease-in-out;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.is-search-icon:hover,form.is-form-style input.is-search-submit:hover{background:#dcdcdc}.is-form-style-2 .is-search-submit{display:none}
1
+ .is-menu{position:relative}.is-menu a{background:0 0!important;line-height:1;outline:0}.is-menu a::after,.is-menu a::before{display:none!important}.is-menu a:focus,.is-menu a:hover,.is-menu:hover>a{background:0 0!important;outline:0}.is-menu.default form{max-width:310px}.is-menu.is-dropdown form{display:none;min-width:310px;max-width:100%;position:absolute;right:0;top:100%;z-index:9}.is-menu.full-width-menu form,.is-menu.sliding form{min-width:0!important;overflow:hidden;position:absolute;right:0;top:25%;width:0;z-index:9;padding:0;margin:0}.is-menu.full-width-menu form:not(.is-search-form) input[type=search],.is-menu.full-width-menu form:not(.is-search-form) input[type=text],.is-menu.is-dropdown form:not(.is-search-form) input[type=search],.is-menu.is-dropdown form:not(.is-search-form) input[type=text],.is-menu.sliding form:not(.is-search-form) input[type=search],.is-menu.sliding form:not(.is-search-form) input[type=text],.is-popup-search-form form:not(.is-search-form) input[type=search],.is-popup-search-form form:not(.is-search-form) input[type=text]{background:#fff;color:#000}.is-menu.is-first form{right:auto;left:0}.is-menu.full-width-menu:not(.open) form,.is-menu.sliding:not(.open) form{display:block}.is-menu form .screen-reader-text{display:none}.is-menu form label{margin:0;padding:0}.is-menu-wrapper{display:none;position:absolute;right:5px;top:5px;width:auto;z-index:9999}.is-menu-wrapper.is-expanded{width:100%}.admin-bar .is-menu-wrapper{top:51px}.is-menu-wrapper .is-menu{float:right}.is-menu-wrapper .is-menu form{right:0;left:auto}.gsc-cse-search-menu{max-width:310px;float:right}.gsc-cse-search-menu .cse .gsc-control-cse,.gsc-cse-search-menu .gsc-control-cse{padding:0}.is-menu .search-icon-path{fill:#848484}.search-close{cursor:pointer;display:none;height:20px;position:absolute;right:-22px;top:33%;width:20px;z-index:99999}.is-menu.is-first .search-close{right:auto;left:-22px}.is-menu.is-dropdown .search-close{top:calc(100% + 7px)}.popup-search-close{cursor:pointer;height:20px;width:20px;z-index:99999;float:right;position:relative;margin:20px 20px 0 0}#is-popup-wrapper{width:100%;height:100%;position:fixed;top:0;left:0;background:#4c4c4c;background:rgba(4,4,4,.91);z-index:999999}.is-popup-search-form form{width:80%;margin:20% auto 0}.is-popup-search-form form.is-ajax-search{margin:10% auto 0}.popup-search-close:after,.search-close:after{border-left:2px solid #848484;content:'';height:20px;left:9px;position:absolute;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);transform:rotate(45deg)}.popup-search-close:before,.search-close:before{border-left:2px solid #848484;content:'';height:20px;left:9px;position:absolute;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-ms-transform:rotate(-45deg);-o-transform:rotate(-45deg);transform:rotate(-45deg)}.is-menu.full-width-menu.open .search-close,.is-menu.is-dropdown form[style="display: block;"]+.search-close,.is-menu.sliding.open .search-close{display:block}.is-highlight{background-color:#ffffb9;color:#222}@media screen and (max-width:910px){.is-menu form{left:0;min-width:50%;right:auto}.is-menu.default form{max-width:100%}.is-menu.full-width-menu.active-search{position:relative}.is-menu-wrapper{display:block}}.is-link-container{display:none}form .is-link-container{position:relative}form .is-link-container div{position:absolute;width:200px;bottom:-25px;left:5px;z-index:99999;height:auto;line-height:14px;padding:10px 15px}form .is-link-container a{text-decoration:none;font-size:14px;font-weight:100;font-family:arial;box-shadow:none}form .is-link-container a:hover{text-decoration:underline}form .is-link-container a.is-customize-link{margin-left:15px}form:hover+.is-link-container,form:hover>.is-link-container{display:block}.is-form-style label{display:inline-block!important;padding:0;vertical-align:middle;margin:0;width:100%;line-height:1}.is-form-style{line-height:1;position:relative;padding:0!important}.is-form-style.is-form-style-3 label{width:calc(100% - 36px)!important}.is-form-style input.is-search-input{background:#fff;background-image:none!important;color:#333;padding:0 12px;margin:0;outline:0!important;font-size:14px!important;height:36px;min-height:0;line-height:1;border-radius:0;border:solid 1px #ccc!important;font-family:arial;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.is-form-style input.is-search-input::-ms-clear{display:none;width:0;height:0}.is-form-style input.is-search-input::-ms-reveal{display:none;width:0;height:0}.is-form-style input.is-search-input::-webkit-search-cancel-button,.is-form-style input.is-search-input::-webkit-search-decoration,.is-form-style input.is-search-input::-webkit-search-results-button,.is-form-style input.is-search-input::-webkit-search-results-decoration{display:none}.is-form-style.is-form-style-3 input.is-search-input{border-right:0!important}.is-form-style button.is-search-submit{background:0 0;border:0;box-shadow:none!important;opacity:1;padding:0!important;margin:0;line-height:0;outline:0;vertical-align:middle;width:36px;height:36px}.is-menu.full-width-menu.is-first button.is-search-submit,.is-menu.sliding.is-first button.is-search-submit{display:inline-block!important}.is-menu.full-width-menu.is-first button.is-search-submit:not([style="display: inline-block;"]),.is-menu.sliding.is-first button.is-search-submit:not([style="display: inline-block;"]){visibility:hidden}.is-form-style .is-search-submit path{fill:#555}.is-form-style input.is-search-submit{text-decoration:none;position:absolute;top:0;right:0}.is-form-style input.is-search-submit{padding:0 10px!important;width:auto}.is-search-icon{width:36px;padding-top:6px!important}.is-search-icon svg{width:22px;display:inline}.is-form-style input.is-search-submit,.is-search-icon{display:inline-block!important;color:#666;background:#ededed;box-shadow:none!important;outline:0;margin:0;font-size:14px!important;border:1px solid #ccc;border-radius:0;line-height:1;height:36px;text-transform:capitalize;vertical-align:middle;-webkit-transition:background-color .1s ease-in-out;-moz-transition:background-color .1s ease-in-out;-o-transition:background-color .1s ease-in-out;transition:background-color .1s ease-in-out;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.is-search-icon:hover,form.is-form-style input.is-search-submit:hover{background:#dcdcdc}.is-form-style-2 .is-search-submit{display:none}
public/js/ivory-ajax-search.js CHANGED
@@ -44,7 +44,7 @@
44
 
45
  $('.is-ajax-search .is-search-input').on('focusin, click', function(event) {
46
  focused = $( this ).closest('form');
47
- if ( 0 === $(event.target).closest('form.processing').length ) {
48
  var form_id = $( event.target ).closest('.is-ajax-search').attr('data-form-id');
49
  var width = $( event.target ).closest('.is-ajax-search').outerWidth();
50
  width = ( width < 500 ) ? 500 : width;
44
 
45
  $('.is-ajax-search .is-search-input').on('focusin, click', function(event) {
46
  focused = $( this ).closest('form');
47
+ if ( '' !== $( this ).val() && 0 === $(event.target).closest('form.processing').length ) {
48
  var form_id = $( event.target ).closest('.is-ajax-search').attr('data-form-id');
49
  var width = $( event.target ).closest('.is-ajax-search').outerWidth();
50
  width = ( width < 500 ) ? 500 : width;
public/js/ivory-ajax-search.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){"use strict";e(document).ready(function(){var t,a=null,i="",o=-1,s=e(document.activeElement).closest("form");function n(a,s){s||(s=1);var n=e(a),r=n.val()||"",l=n.parents(".is-ajax-search"),c=l.attr("data-min-no-for-search")||"",d=l.attr("data-result-box-max-height")||"400",h=e(l).attr("data-form-id");if(e(".is-form-id-"+h+" .is-search-input").val(r),""===i||i!==r.trim()||o!==h)i=r.trim(),o=h;else if(1===s)return void e("#is-ajax-search-result-"+h).show();if(1===s&&l.addClass("processing"),r.length>=c){if(1===s){if(e("#is-ajax-search-result-"+h+", #is-ajax-search-details-"+h).hide(),l.hasClass("is-form-style-1")){var u=l.find(".is-search-submit").outerWidth()+5;l.find(".is-loader-image").css("right",u+"px")}l.find(".is-loader-image").show()}var f={action:"is_ajax_load_posts",page:s,security:IvoryAjaxVars.ajax_nonce},m=l.serialize()+"&"+e.param(f);0===l.find('input[name="id"]').length&&(m+="&id="+h),t&&4!==t.readystate&&t.abort(),t=e.ajax({url:IvoryAjaxVars.ajaxurl,data:m,type:"POST",success:function(t){if("undefined"!=typeof IvorySearchVars&&void 0!==IvorySearchVars.is_analytics_enabled){var a=e(t).find(".is-ajax-search-no-result").length?"Nothing Found":"Results Found";ivory_search_analytics(h,r,a)}if(l.find(".is-loader-image").hide(),l.removeClass("processing"),1===s){var i=l.offset(),o=l.innerHeight(),n=l.outerWidth();n=n<500?500:n,0===e("#is-ajax-search-result-"+h).length&&e("body").append('<div id="is-ajax-search-result-'+h+'" class="is-ajax-search-result"></div>'),e("#is-ajax-search-result-"+h).css({width:n-10+"px"});var c=e("#is-ajax-search-result-"+h).outerWidth(),u=e(window).width(),f=0;if(i.left+c>u&&(f=i.left+c-u),e("#is-ajax-search-result-"+h).css({top:i.top+o+"px",left:i.left-f+"px",width:n-10+"px"}),e("#is-ajax-search-result-"+h).show().html(t),0!==e("#is-ajax-search-details-"+h).length&&e("body > #is-ajax-search-details-"+h).remove(),0!==e("#is-ajax-search-result-"+h+" .is-ajax-search-details").length){e("body").append('<div id="is-ajax-search-details-'+h+'" class="is-ajax-search-details">'+e("#is-ajax-search-result-"+h+" .is-ajax-search-details").html()+"</div>"),e("#is-ajax-search-result-"+h+" .is-ajax-search-details").remove();var m=e("#is-ajax-search-details-"+h).outerWidth(),p=i.left+c;if(i.left+c+m>u+30){var g=i.left-(f+m);g>-30&&(p=g)}e("#is-ajax-search-details-"+h).css({top:i.top+o+"px",left:p+"px"})}}else e("#is-ajax-search-result-"+h+" .is-show-more-results").remove(),e("#is-ajax-search-result-"+h+" .is-ajax-search-posts").append(t),0!==e("#is-ajax-search-result-"+h+" .is-ajax-search-posts .is-show-more-results").length&&(e("#is-ajax-search-result-"+h).append(e("#is-ajax-search-result-"+h+" .is-ajax-search-posts .is-show-more-results")[0].outerHTML),e("#is-ajax-search-result-"+h+" .is-ajax-search-posts .is-show-more-results").remove()),e("#is-ajax-search-details-"+h+" .is-ajax-search-posts-details").append(e("#is-ajax-search-result-"+h+" .is-ajax-search-items .is-ajax-search-posts-details").html()),e("#is-ajax-search-result-"+h+" .is-ajax-search-items .is-ajax-search-details").remove();var x=r.trim().split(" ");if(0!=x.length&&e.isFunction(e.fn.is_highlight)){var v,w,_,S=[".is-ajax-search-result"],b=jQuery.support.opacity?"mark":"span";for(_ in S)if(0!=(v=e(S[_])).length){for(w in x)v.is_highlight(x[w],b,"is-highlight term-"+w),v.find("*").is_highlight(x[w],b,"is-highlight term-"+w);break}}e("#is-ajax-search-result-"+h+" .is-ajax-search-items, #is-ajax-search-details-"+h+" .is-ajax-search-items").css("max-height",d+"px"),e.mCustomScrollbar.defaults.scrollButtons.enable=!0,e("#is-ajax-search-result-"+h+" .is-ajax-search-items, #is-ajax-search-details-"+h+" .is-ajax-search-items").mCustomScrollbar({theme:"dark-thick"})},error:function(e,t,a){console.log(e.statusText),"abort"!==e.statusText&&console.log("AJAX request aborted")}})}else e("#is-ajax-search-result-"+h).hide(),l.removeClass("processing")}e("body").on("mouseover",".is-ajax-search-tags > div, .is-ajax-search-categories > div, .is-ajax-search-post.is-product",function(t){var a=e(window).outerWidth();if(parseInt(a)>=910){var i=e(this).attr("data-id")||"",o=e(t.target).closest(".is-ajax-search-result").attr("id").split(/[-]+/).pop(),s=e("#is-ajax-search-result-"+o).offset(),n=e(".is-form-id-"+o).attr("data-result-box-max-height")||"400";e("#is-ajax-search-details-"+o).css({top:s.top+"px"}),e("#is-ajax-search-details-"+o+" .is-ajax-search-items").css("height",n+"px"),e("#is-ajax-search-details-"+o+" .mCSB_container > div").css("min-height",n+"px"),e(this).parents("div").hasClass("is-ajax-search-tags")&&e("#is-ajax-search-details-"+o+" .is-ajax-search-tags-details").length&&e("#is-ajax-search-details-"+o+' .is-ajax-search-tags-details > div[data-id="'+i+'"]').length?(e("#is-ajax-search-details-"+o+" .is-ajax-search-tags-details, #is-ajax-search-details-"+o).show(),e("#is-ajax-search-details-"+o+" .is-ajax-search-categories-details, #is-ajax-search-details-"+o+" .is-ajax-search-posts-details").hide(),e("#is-ajax-search-details-"+o+" .is-ajax-search-tags-details").find(" > div ").hide(),e("#is-ajax-search-details-"+o+" .is-ajax-search-tags-details").find(' > div[data-id="'+i+'"] ').show()):e(this).parents("div").hasClass("is-ajax-search-categories")&&e("#is-ajax-search-details-"+o+" .is-ajax-search-categories-details").length&&e("#is-ajax-search-details-"+o+' .is-ajax-search-categories-details > div[data-id="'+i+'"]').length?(e("#is-ajax-search-details-"+o+" .is-ajax-search-categories-details, #is-ajax-search-details-"+o).show(),e("#is-ajax-search-details-"+o+" .is-ajax-search-tags-details, #is-ajax-search-details-"+o+" .is-ajax-search-posts-details").hide(),e("#is-ajax-search-details-"+o+" .is-ajax-search-categories-details").find("> div ").hide(),e("#is-ajax-search-details-"+o+" .is-ajax-search-categories-details").find('> div[data-id="'+i+'"] ').show()):e(this).parents("div").hasClass("is-ajax-search-posts")&&(e("#is-ajax-search-details-"+o+" .is-ajax-search-tags-details, #is-ajax-search-details-"+o+" .is-ajax-search-categories-details").hide(),e("#is-ajax-search-details-"+o+" .is-ajax-search-posts-details").find("> div ").hide(),e("#is-ajax-search-details-"+o+" .is-ajax-search-posts-details, #is-ajax-search-details-"+o).show(),e("#is-ajax-search-details-"+o+" .is-ajax-search-posts-details").find('> div[data-id="'+i+'"] ').show())}}),e(".is-ajax-search .is-search-input").on("focusin, click",function(t){if(s=e(this).closest("form"),0===e(t.target).closest("form.processing").length){var a=e(t.target).closest(".is-ajax-search").attr("data-form-id"),i=e(t.target).closest(".is-ajax-search").outerWidth();i=i<500?500:i,e("#is-ajax-search-result-"+a).css({width:i-10+"px"});var o=e(t.target).closest(".is-ajax-search").offset(),n=e(t.target).closest(".is-ajax-search").innerHeight(),r=e("#is-ajax-search-result-"+a).outerWidth(),l=e(window).width(),c=0;if(o.left+r>l&&(c=o.left+r-l),e("#is-ajax-search-result-"+a).css({top:o.top+n+"px",left:o.left-c+"px"}),e(".is-ajax-search-result, .is-ajax-search-details").hide(),e("#is-ajax-search-result-"+a).show(),0!==e("#is-ajax-search-details-"+a).length){var d=e("#is-ajax-search-details-"+a).outerWidth(),h=o.left+r;if(o.left+r+d>l+30){var u=o.left-(c+d);u>-30&&(h=u)}e("#is-ajax-search-details-"+a).css({top:o.top+n+"px",left:h+"px"})}}}),e(".is-ajax-search .is-search-input").on("focusout",function(){s=!1}),e("body").on("mousedown",function(t){"s"!==e(t.target).attr("name")&&0===e(t.target).closest(".is-ajax-search-result").length&&0===e(t.target).closest(".is-ajax-search-details").length&&(e(".is-ajax-search-result, .is-ajax-search-details").hide(),s=!1)}),e(".is-disable-submit .is-search-submit").on("click",function(t){return e(this).parent().find(".is-search-input").trigger("keyup"),t.stopPropagation(),t.preventDefault(),!1}),e("form.is-disable-submit").on("submit",function(t){return e(this).find(".is-search-input").trigger("keyup"),t.stopPropagation(),t.preventDefault(),!1}),e(document).on("click",".is-show-more-results",function(t){var a=e(t.target).closest(".is-ajax-search-result").attr("id").split(/[-]+/).pop();e(this).hasClass("redirect-tosr")?e(".is-form-id-"+a).submit():(e(this).find(".is-show-more-results-text").hide(),e(this).find(".is-load-more-image").show(),n(e(".is-form-id-"+a+" .is-search-input"),e(this).attr("data-page")||""))}),e(window).on("resize scroll",function(){if(e(s).hasClass("is-ajax-search")){var t=e(s).attr("data-form-id");if(0!==e("#is-ajax-search-result-"+t).length){var a=e(s).offset(),i=e(s).innerHeight(),o=e("#is-ajax-search-result-"+t).outerWidth(),n=e(window).width(),r=0;if(a.left+o>n&&(r=a.left+o-n),e("#is-ajax-search-result-"+t).css({top:a.top+i+"px",left:a.left-r+"px"}),e(".is-ajax-search-result, .is-ajax-search-details").hide(),e("#is-ajax-search-result-"+t).show(),0!==e("#is-ajax-search-details-"+t).length){var l=e("#is-ajax-search-details-"+t).outerWidth(),c=a.left+o;if(a.left+o+l>n+30){var d=a.left-(r+l);d>-30&&(c=d)}e("#is-ajax-search-details-"+t).css({top:a.top+i+"px",left:c+"px"})}}}}),e(".is-ajax-search .is-search-input").on("paste",function(){e(this).trigger("keyup")}),e(".is-ajax-search").each(function(t,i){e(i).find(".is-search-input").on("keyup",function(t){if(s=e(this).closest("form"),32!==t.which){var i=this;window.clearTimeout(a),a=window.setTimeout(function(){a=null,n(i)},500)}})})})}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){function t(t){var n=t||window.event,r=l.call(arguments,1),c=0,h=0,u=0,f=0,m=0,p=0;if((t=e.event.fix(n)).type="mousewheel","detail"in n&&(u=-1*n.detail),"wheelDelta"in n&&(u=n.wheelDelta),"wheelDeltaY"in n&&(u=n.wheelDeltaY),"wheelDeltaX"in n&&(h=-1*n.wheelDeltaX),"axis"in n&&n.axis===n.HORIZONTAL_AXIS&&(h=-1*u,u=0),c=0===u?h:u,"deltaY"in n&&(c=u=-1*n.deltaY),"deltaX"in n&&(h=n.deltaX,0===u&&(c=-1*h)),0!==u||0!==h){if(1===n.deltaMode){var g=e.data(this,"mousewheel-line-height");c*=g,u*=g,h*=g}else if(2===n.deltaMode){var x=e.data(this,"mousewheel-page-height");c*=x,u*=x,h*=x}if(f=Math.max(Math.abs(u),Math.abs(h)),(!s||s>f)&&(s=f,i(n,f)&&(s/=40)),i(n,f)&&(c/=40,h/=40,u/=40),c=Math[c>=1?"floor":"ceil"](c/s),h=Math[h>=1?"floor":"ceil"](h/s),u=Math[u>=1?"floor":"ceil"](u/s),d.settings.normalizeOffset&&this.getBoundingClientRect){var v=this.getBoundingClientRect();m=t.clientX-v.left,p=t.clientY-v.top}return t.deltaX=h,t.deltaY=u,t.deltaFactor=s,t.offsetX=m,t.offsetY=p,t.deltaMode=0,r.unshift(t,c,h,u),o&&clearTimeout(o),o=setTimeout(a,200),(e.event.dispatch||e.event.handle).apply(this,r)}}function a(){s=null}function i(e,t){return d.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}var o,s,n=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(e.event.fixHooks)for(var c=n.length;c;)e.event.fixHooks[n[--c]]=e.event.mouseHooks;var d=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var a=r.length;a;)this.addEventListener(r[--a],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",d.getLineHeight(this)),e.data(this,"mousewheel-page-height",d.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var a=r.length;a;)this.removeEventListener(r[--a],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var a=e(t),i=a["offsetParent"in e.fn?"offsetParent":"parent"]();return i.length||(i=e("body")),parseInt(i.css("fontSize"),10)||parseInt(a.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){function t(t){var n=t||window.event,r=l.call(arguments,1),c=0,h=0,u=0,f=0,m=0,p=0;if((t=e.event.fix(n)).type="mousewheel","detail"in n&&(u=-1*n.detail),"wheelDelta"in n&&(u=n.wheelDelta),"wheelDeltaY"in n&&(u=n.wheelDeltaY),"wheelDeltaX"in n&&(h=-1*n.wheelDeltaX),"axis"in n&&n.axis===n.HORIZONTAL_AXIS&&(h=-1*u,u=0),c=0===u?h:u,"deltaY"in n&&(c=u=-1*n.deltaY),"deltaX"in n&&(h=n.deltaX,0===u&&(c=-1*h)),0!==u||0!==h){if(1===n.deltaMode){var g=e.data(this,"mousewheel-line-height");c*=g,u*=g,h*=g}else if(2===n.deltaMode){var x=e.data(this,"mousewheel-page-height");c*=x,u*=x,h*=x}if(f=Math.max(Math.abs(u),Math.abs(h)),(!s||s>f)&&(s=f,i(n,f)&&(s/=40)),i(n,f)&&(c/=40,h/=40,u/=40),c=Math[c>=1?"floor":"ceil"](c/s),h=Math[h>=1?"floor":"ceil"](h/s),u=Math[u>=1?"floor":"ceil"](u/s),d.settings.normalizeOffset&&this.getBoundingClientRect){var v=this.getBoundingClientRect();m=t.clientX-v.left,p=t.clientY-v.top}return t.deltaX=h,t.deltaY=u,t.deltaFactor=s,t.offsetX=m,t.offsetY=p,t.deltaMode=0,r.unshift(t,c,h,u),o&&clearTimeout(o),o=setTimeout(a,200),(e.event.dispatch||e.event.handle).apply(this,r)}}function a(){s=null}function i(e,t){return d.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}var o,s,n=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(e.event.fixHooks)for(var c=n.length;c;)e.event.fixHooks[n[--c]]=e.event.mouseHooks;var d=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var a=r.length;a;)this.addEventListener(r[--a],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",d.getLineHeight(this)),e.data(this,"mousewheel-page-height",d.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var a=r.length;a;)this.removeEventListener(r[--a],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var a=e(t),i=a["offsetParent"in e.fn?"offsetParent":"parent"]();return i.length||(i=e("body")),parseInt(i.css("fontSize"),10)||parseInt(a.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e:e(jQuery,window,document)}(function(e){var t,a,i;t="function"==typeof define&&define.amd,a="undefined"!=typeof module&&module.exports,i="https:"==document.location.protocol?"https:":"http:",t||(a?require("jquery-mousewheel")(e):e.event.special.mousewheel||e("head").append(decodeURI("%3Cscript src="+i+"//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js%3E%3C/script%3E"))),function(){var t,a="mCustomScrollbar",i="mCS",o=".mCustomScrollbar",s={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},n=0,r={},l=window.attachEvent&&!window.addEventListener?1:0,c=!1,d=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],h={init:function(t){var t=e.extend(!0,{},s,t),a=u.call(this);if(t.live){var l=t.liveSelector||this.selector||o,c=e(l);if("off"===t.live)return void m(l);r[l]=setTimeout(function(){c.mCustomScrollbar(t),"once"===t.live&&c.length&&m(l)},500)}else m(l);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":p(t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia,"object"!=typeof t.mouseWheel&&1==t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=g(t.scrollButtons.scrollType),f(t),e(a).each(function(){var a=e(this);if(!a.data(i)){a.data(i,{idx:++n,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:a.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var o=a.data(i),s=o.opt,r=a.data("mcs-axis"),l=a.data("mcs-scrollbar-position"),c=a.data("mcs-theme");r&&(s.axis=r),l&&(s.scrollbarPosition=l),c&&(s.theme=c,f(s)),x.call(this),o&&s.callbacks.onCreate&&"function"==typeof s.callbacks.onCreate&&s.callbacks.onCreate.call(this),e("#mCSB_"+o.idx+"_container img:not(."+d[2]+")").addClass(d[2]),h.update.call(null,a)}})},update:function(t,a){var o=t||u.call(this);return e(o).each(function(){var t=e(this);if(t.data(i)){var o=t.data(i),s=o.opt,n=e("#mCSB_"+o.idx+"_container"),r=e("#mCSB_"+o.idx),l=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];if(!n.length)return;o.tweenRunning&&V(t),a&&o&&s.callbacks.onBeforeUpdate&&"function"==typeof s.callbacks.onBeforeUpdate&&s.callbacks.onBeforeUpdate.call(this),t.hasClass(d[3])&&t.removeClass(d[3]),t.hasClass(d[4])&&t.removeClass(d[4]),r.css("max-height","none"),r.height()!==t.height()&&r.css("max-height",t.height()),w.call(this),"y"===s.axis||s.advanced.autoExpandHorizontalScroll||n.css("width",v(n)),o.overflowed=C.call(this),M.call(this),s.autoDraggerLength&&S.call(this),b.call(this),B.call(this);var c=[Math.abs(n[0].offsetTop),Math.abs(n[0].offsetLeft)];"x"!==s.axis&&(o.overflowed[0]?l[0].height()>l[0].parent().height()?j.call(this):(Q(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}),o.contentReset.y=null):(j.call(this),"y"===s.axis?T.call(this):"yx"===s.axis&&o.overflowed[1]&&Q(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==s.axis&&(o.overflowed[1]?l[1].width()>l[1].parent().width()?j.call(this):(Q(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}),o.contentReset.x=null):(j.call(this),"x"===s.axis?T.call(this):"yx"===s.axis&&o.overflowed[0]&&Q(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),a&&o&&(2===a&&s.callbacks.onImageLoad&&"function"==typeof s.callbacks.onImageLoad?s.callbacks.onImageLoad.call(this):3===a&&s.callbacks.onSelectorChange&&"function"==typeof s.callbacks.onSelectorChange?s.callbacks.onSelectorChange.call(this):s.callbacks.onUpdate&&"function"==typeof s.callbacks.onUpdate&&s.callbacks.onUpdate.call(this)),N.call(this)}})},scrollTo:function(t,a){if(void 0!==t&&null!=t){var o=u.call(this);return e(o).each(function(){var o=e(this);if(o.data(i)){var s=o.data(i),n=s.opt,r={trigger:"external",scrollInertia:n.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},l=e.extend(!0,{},r,a),c=F.call(this,t),d=l.scrollInertia>0&&l.scrollInertia<17?17:l.scrollInertia;c[0]=q.call(this,c[0],"y"),c[1]=q.call(this,c[1],"x"),l.moveDragger&&(c[0]*=s.scrollRatio.y,c[1]*=s.scrollRatio.x),l.dur=ie()?0:d,setTimeout(function(){null!==c[0]&&void 0!==c[0]&&"x"!==n.axis&&s.overflowed[0]&&(l.dir="y",l.overwrite="all",Q(o,c[0].toString(),l)),null!==c[1]&&void 0!==c[1]&&"y"!==n.axis&&s.overflowed[1]&&(l.dir="x",l.overwrite="none",Q(o,c[1].toString(),l))},l.timeout)}})}},stop:function(){var t=u.call(this);return e(t).each(function(){var t=e(this);t.data(i)&&V(t)})},disable:function(t){var a=u.call(this);return e(a).each(function(){var a=e(this);a.data(i)&&(a.data(i),N.call(this,"remove"),T.call(this),t&&j.call(this),M.call(this,!0),a.addClass(d[3]))})},destroy:function(){var t=u.call(this);return e(t).each(function(){var o=e(this);if(o.data(i)){var s=o.data(i),n=s.opt,r=e("#mCSB_"+s.idx),l=e("#mCSB_"+s.idx+"_container"),c=e(".mCSB_"+s.idx+"_scrollbar");n.live&&m(n.liveSelector||e(t).selector),N.call(this,"remove"),T.call(this),j.call(this),o.removeData(i),K(this,"mcs"),c.remove(),l.find("img."+d[2]).removeClass(d[2]),r.replaceWith(l.contents()),o.removeClass(a+" _"+i+"_"+s.idx+" "+d[6]+" "+d[7]+" "+d[5]+" "+d[3]).addClass(d[4])}})}},u=function(){return"object"!=typeof e(this)||e(this).length<1?o:this},f=function(t){t.autoDraggerLength=!(e.inArray(t.theme,["rounded","rounded-dark","rounded-dots","rounded-dots-dark"])>-1)&&t.autoDraggerLength,t.autoExpandScrollbar=!(e.inArray(t.theme,["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"])>-1)&&t.autoExpandScrollbar,t.scrollButtons.enable=!(e.inArray(t.theme,["minimal","minimal-dark"])>-1)&&t.scrollButtons.enable,t.autoHideScrollbar=e.inArray(t.theme,["minimal","minimal-dark"])>-1||t.autoHideScrollbar,t.scrollbarPosition=e.inArray(t.theme,["minimal","minimal-dark"])>-1?"outside":t.scrollbarPosition},m=function(e){r[e]&&(clearTimeout(r[e]),K(r,e))},p=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},g=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},x=function(){var t=e(this),o=t.data(i),s=o.opt,n=s.autoExpandScrollbar?" "+d[1]+"_expand":"",r=["<div id='mCSB_"+o.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+o.idx+"_scrollbar mCS-"+s.theme+" mCSB_scrollTools_vertical"+n+"'><div class='"+d[12]+"'><div id='mCSB_"+o.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+o.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+o.idx+"_scrollbar mCS-"+s.theme+" mCSB_scrollTools_horizontal"+n+"'><div class='"+d[12]+"'><div id='mCSB_"+o.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],l="yx"===s.axis?"mCSB_vertical_horizontal":"x"===s.axis?"mCSB_horizontal":"mCSB_vertical",c="yx"===s.axis?r[0]+r[1]:"x"===s.axis?r[1]:r[0],h="yx"===s.axis?"<div id='mCSB_"+o.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",u=s.autoHideScrollbar?" "+d[6]:"",f="x"!==s.axis&&"rtl"===o.langDir?" "+d[7]:"";s.setWidth&&t.css("width",s.setWidth),s.setHeight&&t.css("height",s.setHeight),s.setLeft="y"!==s.axis&&"rtl"===o.langDir?"989999px":s.setLeft,t.addClass(a+" _"+i+"_"+o.idx+u+f).wrapInner("<div id='mCSB_"+o.idx+"' class='mCustomScrollBox mCS-"+s.theme+" "+l+"'><div id='mCSB_"+o.idx+"_container' class='mCSB_container' style='position:relative; top:"+s.setTop+"; left:"+s.setLeft+";' dir='"+o.langDir+"' /></div>");var m=e("#mCSB_"+o.idx),p=e("#mCSB_"+o.idx+"_container");"y"===s.axis||s.advanced.autoExpandHorizontalScroll||p.css("width",v(p)),"outside"===s.scrollbarPosition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),m.addClass("mCSB_outside").after(c)):(m.addClass("mCSB_inside").append(c),p.wrap(h)),_.call(this);var g=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];g[0].css("min-height",g[0].height()),g[1].css("min-width",g[1].width())},v=function(t){var a=[t[0].scrollWidth,Math.max.apply(Math,t.children().map(function(){return e(this).outerWidth(!0)}).get())],i=t.parent().width();return a[0]>i?a[0]:a[1]>i?a[1]:"100%"},w=function(){var t=e(this),a=t.data(i),o=a.opt,s=e("#mCSB_"+a.idx+"_container");if(o.advanced.autoExpandHorizontalScroll&&"y"!==o.axis){s.css({width:"auto","min-width":0,"overflow-x":"scroll"});var n=Math.ceil(s[0].scrollWidth);3===o.advanced.autoExpandHorizontalScroll||2!==o.advanced.autoExpandHorizontalScroll&&n>s.parent().width()?s.css({width:n,"min-width":"100%","overflow-x":"inherit"}):s.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(s[0].getBoundingClientRect().right+.4)-Math.floor(s[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},_=function(){var t=e(this),a=t.data(i),o=a.opt,s=e(".mCSB_"+a.idx+"_scrollbar:first"),n=te(o.scrollButtons.tabindex)?"tabindex='"+o.scrollButtons.tabindex+"'":"",r=["<a href='#' class='"+d[13]+"' "+n+" />","<a href='#' class='"+d[14]+"' "+n+" />","<a href='#' class='"+d[15]+"' "+n+" />","<a href='#' class='"+d[16]+"' "+n+" />"],l=["x"===o.axis?r[2]:r[0],"x"===o.axis?r[3]:r[1],r[2],r[3]];o.scrollButtons.enable&&s.prepend(l[0]).append(l[1]).next(".mCSB_scrollTools").prepend(l[2]).append(l[3])},S=function(){var t=e(this),a=t.data(i),o=e("#mCSB_"+a.idx),s=e("#mCSB_"+a.idx+"_container"),n=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")],r=[o.height()/s.outerHeight(!1),o.width()/s.outerWidth(!1)],c=[parseInt(n[0].css("min-height")),Math.round(r[0]*n[0].parent().height()),parseInt(n[1].css("min-width")),Math.round(r[1]*n[1].parent().width())],d=l&&c[1]<c[0]?c[0]:c[1],h=l&&c[3]<c[2]?c[2]:c[3];n[0].css({height:d,"max-height":n[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":c[0]+"px"}),n[1].css({width:h,"max-width":n[1].parent().width()-10})},b=function(){var t=e(this),a=t.data(i),o=e("#mCSB_"+a.idx),s=e("#mCSB_"+a.idx+"_container"),n=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")],r=[s.outerHeight(!1)-o.height(),s.outerWidth(!1)-o.width()],l=[r[0]/(n[0].parent().height()-n[0].height()),r[1]/(n[1].parent().width()-n[1].width())];a.scrollRatio={y:l[0],x:l[1]}},y=function(e,t,a){var i=a?d[0]+"_expanded":"",o=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(d[0]+" "+i),o.toggleClass(d[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(d[0]),o.removeClass(d[1])):(e.addClass(d[0]),o.addClass(d[1])))},C=function(){var t=e(this),a=t.data(i),o=e("#mCSB_"+a.idx),s=e("#mCSB_"+a.idx+"_container"),n=null==a.overflowed?s.height():s.outerHeight(!1),r=null==a.overflowed?s.width():s.outerWidth(!1),l=s[0].scrollHeight,c=s[0].scrollWidth;return l>n&&(n=l),c>r&&(r=c),[n>o.height(),r>o.width()]},j=function(){var t=e(this),a=t.data(i),o=a.opt,s=e("#mCSB_"+a.idx),n=e("#mCSB_"+a.idx+"_container"),r=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")];if(V(t),("x"!==o.axis&&!a.overflowed[0]||"y"===o.axis&&a.overflowed[0])&&(r[0].add(n).css("top",0),Q(t,"_resetY")),"y"!==o.axis&&!a.overflowed[1]||"x"===o.axis&&a.overflowed[1]){var l=dx=0;"rtl"===a.langDir&&(l=s.width()-n.outerWidth(!1),dx=Math.abs(l/a.scrollRatio.x)),n.css("left",l),r[1].css("left",dx),Q(t,"_resetX")}},B=function(){var t,a=e(this),o=a.data(i),s=o.opt;o.bindEvents||(D.call(this),s.contentTouchScroll&&O.call(this),I.call(this),s.mouseWheel.enable&&function i(){t=setTimeout(function(){e.event.special.mousewheel?(clearTimeout(t),E.call(a[0])):i()},100)}(),z.call(this),P.call(this),s.advanced.autoScrollOnFocus&&H.call(this),s.scrollButtons.enable&&X.call(this),s.keyboard.enable&&Y.call(this),o.bindEvents=!0)},T=function(){var t=e(this),a=t.data(i),o=a.opt,s=i+"_"+a.idx,n=".mCSB_"+a.idx+"_scrollbar",r=e("#mCSB_"+a.idx+",#mCSB_"+a.idx+"_container,#mCSB_"+a.idx+"_container_wrapper,"+n+" ."+d[12]+",#mCSB_"+a.idx+"_dragger_vertical,#mCSB_"+a.idx+"_dragger_horizontal,"+n+">a"),l=e("#mCSB_"+a.idx+"_container");o.advanced.releaseDraggableSelectors&&r.add(e(o.advanced.releaseDraggableSelectors)),o.advanced.extraDraggableSelectors&&r.add(e(o.advanced.extraDraggableSelectors)),a.bindEvents&&(e(document).add(e(!L()||top.document)).unbind("."+s),r.each(function(){e(this).unbind("."+s)}),clearTimeout(t[0]._focusTimeout),K(t[0],"_focusTimeout"),clearTimeout(a.sequential.step),K(a.sequential,"step"),clearTimeout(l[0].onCompleteTimeout),K(l[0],"onCompleteTimeout"),a.bindEvents=!1)},M=function(t){var a=e(this),o=a.data(i),s=o.opt,n=e("#mCSB_"+o.idx+"_container_wrapper"),r=n.length?n:e("#mCSB_"+o.idx+"_container"),l=[e("#mCSB_"+o.idx+"_scrollbar_vertical"),e("#mCSB_"+o.idx+"_scrollbar_horizontal")],c=[l[0].find(".mCSB_dragger"),l[1].find(".mCSB_dragger")];"x"!==s.axis&&(o.overflowed[0]&&!t?(l[0].add(c[0]).add(l[0].children("a")).css("display","block"),r.removeClass(d[8]+" "+d[10])):(s.alwaysShowScrollbar?(2!==s.alwaysShowScrollbar&&c[0].css("display","none"),r.removeClass(d[10])):(l[0].css("display","none"),r.addClass(d[10])),r.addClass(d[8]))),"y"!==s.axis&&(o.overflowed[1]&&!t?(l[1].add(c[1]).add(l[1].children("a")).css("display","block"),r.removeClass(d[9]+" "+d[11])):(s.alwaysShowScrollbar?(2!==s.alwaysShowScrollbar&&c[1].css("display","none"),r.removeClass(d[11])):(l[1].css("display","none"),r.addClass(d[11])),r.addClass(d[9]))),o.overflowed[0]||o.overflowed[1]?a.removeClass(d[5]):a.addClass(d[5])},k=function(t){var a=t.type,i=t.target.ownerDocument!==document&&null!==frameElement?[e(frameElement).offset().top,e(frameElement).offset().left]:null,o=L()&&t.target.ownerDocument!==top.document&&null!==frameElement?[e(t.view.frameElement).offset().top,e(t.view.frameElement).offset().left]:[0,0];switch(a){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return i?[t.originalEvent.pageY-i[0]+o[0],t.originalEvent.pageX-i[1]+o[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var s=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],n=t.originalEvent.touches.length||t.originalEvent.changedTouches.length;return t.target.ownerDocument!==document?[s.screenY,s.screenX,n>1]:[s.pageY,s.pageX,n>1];default:return i?[t.pageY-i[0]+o[0],t.pageX-i[1]+o[1],!1]:[t.pageY,t.pageX,!1]}},D=function(){function t(e,t,i,o){if(f[0].idleTimer=d.scrollInertia<233?250:0,a.attr("id")===u[1])var s="x",l=(a[0].offsetLeft-t+o)*r.scrollRatio.x;else var s="y",l=(a[0].offsetTop-e+i)*r.scrollRatio.y;Q(n,l.toString(),{dir:s,drag:!0})}var a,o,s,n=e(this),r=n.data(i),d=r.opt,h=i+"_"+r.idx,u=["mCSB_"+r.idx+"_dragger_vertical","mCSB_"+r.idx+"_dragger_horizontal"],f=e("#mCSB_"+r.idx+"_container"),m=e("#"+u[0]+",#"+u[1]),p=d.advanced.releaseDraggableSelectors?m.add(e(d.advanced.releaseDraggableSelectors)):m,g=d.advanced.extraDraggableSelectors?e(!L()||top.document).add(e(d.advanced.extraDraggableSelectors)):e(!L()||top.document);m.bind("contextmenu."+h,function(e){e.preventDefault()}).bind("mousedown."+h+" touchstart."+h+" pointerdown."+h+" MSPointerDown."+h,function(t){if(t.stopImmediatePropagation(),t.preventDefault(),$(t)){c=!0,l&&(document.onselectstart=function(){return!1}),R.call(f,!1),V(n);var i=(a=e(this)).offset(),r=k(t)[0]-i.top,h=k(t)[1]-i.left,u=a.height()+i.top,m=a.width()+i.left;u>r&&r>0&&m>h&&h>0&&(o=r,s=h),y(a,"active",d.autoExpandScrollbar)}}).bind("touchmove."+h,function(e){e.stopImmediatePropagation(),e.preventDefault();var i=a.offset(),n=k(e)[0]-i.top,r=k(e)[1]-i.left;t(o,s,n,r)}),e(document).add(g).bind("mousemove."+h+" pointermove."+h+" MSPointerMove."+h,function(e){if(a){var i=a.offset(),n=k(e)[0]-i.top,r=k(e)[1]-i.left;if(o===n&&s===r)return;t(o,s,n,r)}}).add(p).bind("mouseup."+h+" touchend."+h+" pointerup."+h+" MSPointerUp."+h,function(){a&&(y(a,"active",d.autoExpandScrollbar),a=null),c=!1,l&&(document.onselectstart=null),R.call(f,!0)})},O=function(){function a(e){if(!ee(e)||c||k(e)[2])t=0;else{t=1,b=0,y=0,d=1,C.removeClass("mCS_touch_action");var a=D.offset();h=k(e)[0]-a.top,u=k(e)[1]-a.left,A=[k(e)[0],k(e)[1]]}}function o(e){if(ee(e)&&!c&&!k(e)[2]&&(B.documentTouchScroll||e.preventDefault(),e.stopImmediatePropagation(),(!y||b)&&d)){g=J();var t=M.offset(),a=k(e)[0]-t.top,i=k(e)[1]-t.left,o="mcsLinearOut";if(I.push(a),E.push(i),A[2]=Math.abs(k(e)[0]-A[0]),A[3]=Math.abs(k(e)[1]-A[1]),j.overflowed[0])var s=O[0].parent().height()-O[0].height(),n=h-a>0&&a-h>-s*j.scrollRatio.y&&(2*A[3]<A[2]||"yx"===B.axis);if(j.overflowed[1])var r=O[1].parent().width()-O[1].width(),f=u-i>0&&i-u>-r*j.scrollRatio.x&&(2*A[2]<A[3]||"yx"===B.axis);n||f?(P||e.preventDefault(),b=1):(y=1,C.addClass("mCS_touch_action")),P&&e.preventDefault(),_="yx"===B.axis?[h-a,u-i]:"x"===B.axis?[null,u-i]:[h-a,null],D[0].idleTimer=250,j.overflowed[0]&&l(_[0],W,o,"y","all",!0),j.overflowed[1]&&l(_[1],W,o,"x",R,!0)}}function s(e){if(!ee(e)||c||k(e)[2])t=0;else{t=1,e.stopImmediatePropagation(),V(C),p=J();var a=M.offset();f=k(e)[0]-a.top,m=k(e)[1]-a.left,I=[],E=[]}}function n(e){if(ee(e)&&!c&&!k(e)[2]){d=0,e.stopImmediatePropagation(),b=0,y=0,x=J();var t=M.offset(),a=k(e)[0]-t.top,i=k(e)[1]-t.left;if(!(x-g>30)){var o="mcsEaseOut",s=2.5>(w=1e3/(x-p)),n=s?[I[I.length-2],E[E.length-2]]:[0,0];v=s?[a-n[0],i-n[1]]:[a-f,i-m];var h=[Math.abs(v[0]),Math.abs(v[1])];w=s?[Math.abs(v[0]/4),Math.abs(v[1]/4)]:[w,w];var u=[Math.abs(D[0].offsetTop)-v[0]*r(h[0]/w[0],w[0]),Math.abs(D[0].offsetLeft)-v[1]*r(h[1]/w[1],w[1])];_="yx"===B.axis?[u[0],u[1]]:"x"===B.axis?[null,u[1]]:[u[0],null],S=[4*h[0]+B.scrollInertia,4*h[1]+B.scrollInertia];var C=parseInt(B.contentTouchScroll)||0;_[0]=h[0]>C?_[0]:0,_[1]=h[1]>C?_[1]:0,j.overflowed[0]&&l(_[0],S[0],o,"y",R,!1),j.overflowed[1]&&l(_[1],S[1],o,"x",R,!1)}}}function r(e,t){var a=[1.5*t,2*t,t/1.5,t/2];return e>90?t>4?a[0]:a[3]:e>60?t>3?a[3]:a[2]:e>30?t>8?a[1]:t>6?a[0]:t>4?t:a[2]:t>8?t:a[3]}function l(e,t,a,i,o,s){e&&Q(C,e.toString(),{dur:t,scrollEasing:a,dir:i,overwrite:o,drag:s})}var d,h,u,f,m,p,g,x,v,w,_,S,b,y,C=e(this),j=C.data(i),B=j.opt,T=i+"_"+j.idx,M=e("#mCSB_"+j.idx),D=e("#mCSB_"+j.idx+"_container"),O=[e("#mCSB_"+j.idx+"_dragger_vertical"),e("#mCSB_"+j.idx+"_dragger_horizontal")],I=[],E=[],W=0,R="yx"===B.axis?"none":"all",A=[],z=D.find("iframe"),H=["touchstart."+T+" pointerdown."+T+" MSPointerDown."+T,"touchmove."+T+" pointermove."+T+" MSPointerMove."+T,"touchend."+T+" pointerup."+T+" MSPointerUp."+T],P=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;D.bind(H[0],function(e){a(e)}).bind(H[1],function(e){o(e)}),M.bind(H[0],function(e){s(e)}).bind(H[2],function(e){n(e)}),z.length&&z.each(function(){e(this).bind("load",function(){L(this)&&e(this.contentDocument||this.contentWindow.document).bind(H[0],function(e){a(e),s(e)}).bind(H[1],function(e){o(e)}).bind(H[2],function(e){n(e)})})})},I=function(){function a(e,t,a){l.type=a&&o?"stepped":"stepless",l.scrollAmount=10,U(s,e,t,"mcsLinearOut",a?60:null)}var o,s=e(this),n=s.data(i),r=n.opt,l=n.sequential,d=i+"_"+n.idx,h=e("#mCSB_"+n.idx+"_container"),u=h.parent();h.bind("mousedown."+d,function(){t||o||(o=1,c=!0)}).add(document).bind("mousemove."+d,function(e){if(!t&&o&&(window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type&&document.selection.createRange().text)){var i=h.offset(),s=k(e)[0]-i.top+h[0].offsetTop,c=k(e)[1]-i.left+h[0].offsetLeft;s>0&&s<u.height()&&c>0&&c<u.width()?l.step&&a("off",null,"stepped"):("x"!==r.axis&&n.overflowed[0]&&(0>s?a("on",38):s>u.height()&&a("on",40)),"y"!==r.axis&&n.overflowed[1]&&(0>c?a("on",37):c>u.width()&&a("on",39)))}}).bind("mouseup."+d+" dragend."+d,function(){t||(o&&(o=0,a("off",null)),c=!1)})},E=function(){function t(t,i){if(V(a),!A(a,t.target)){var n="auto"!==s.mouseWheel.deltaFactor?parseInt(s.mouseWheel.deltaFactor):l&&t.deltaFactor<100?100:t.deltaFactor||100,d=s.scrollInertia;if("x"===s.axis||"x"===s.mouseWheel.axis)var h="x",u=[Math.round(n*o.scrollRatio.x),parseInt(s.mouseWheel.scrollAmount)],f="auto"!==s.mouseWheel.scrollAmount?u[1]:u[0]>=r.width()?.9*r.width():u[0],m=Math.abs(e("#mCSB_"+o.idx+"_container")[0].offsetLeft),p=c[1][0].offsetLeft,g=c[1].parent().width()-c[1].width(),x="y"===s.mouseWheel.axis?t.deltaY||i:t.deltaX;else var h="y",u=[Math.round(n*o.scrollRatio.y),parseInt(s.mouseWheel.scrollAmount)],f="auto"!==s.mouseWheel.scrollAmount?u[1]:u[0]>=r.height()?.9*r.height():u[0],m=Math.abs(e("#mCSB_"+o.idx+"_container")[0].offsetTop),p=c[0][0].offsetTop,g=c[0].parent().height()-c[0].height(),x=t.deltaY||i;"y"===h&&!o.overflowed[0]||"x"===h&&!o.overflowed[1]||((s.mouseWheel.invert||t.webkitDirectionInvertedFromDevice)&&(x=-x),s.mouseWheel.normalizeDelta&&(x=0>x?-1:1),(x>0&&0!==p||0>x&&p!==g||s.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),t.deltaFactor<5&&!s.mouseWheel.normalizeDelta&&(f=t.deltaFactor,d=17),Q(a,(m-x*f).toString(),{dir:h,dur:d}))}}if(e(this).data(i)){var a=e(this),o=a.data(i),s=o.opt,n=i+"_"+o.idx,r=e("#mCSB_"+o.idx),c=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],d=e("#mCSB_"+o.idx+"_container").find("iframe");d.length&&d.each(function(){e(this).bind("load",function(){L(this)&&e(this.contentDocument||this.contentWindow.document).bind("mousewheel."+n,function(e,a){t(e,a)})})}),r.bind("mousewheel."+n,function(e,a){t(e,a)})}},W=new Object,L=function(t){var a=!1,i=!1,o=null;if(void 0===t?i="#empty":void 0!==e(t).attr("id")&&(i=e(t).attr("id")),!1!==i&&void 0!==W[i])return W[i];if(t){try{var s=t.contentDocument||t.contentWindow.document;o=s.body.innerHTML}catch(e){}a=null!==o}else{try{var s=top.document;o=s.body.innerHTML}catch(e){}a=null!==o}return!1!==i&&(W[i]=a),a},R=function(e){var t=this.find("iframe");if(t.length){var a=e?"auto":"none";t.css("pointer-events",a)}},A=function(t,a){var o=a.nodeName.toLowerCase(),s=t.data(i).opt.mouseWheel.disableOver;return e.inArray(o,s)>-1&&!(e.inArray(o,["select","textarea"])>-1&&!e(a).is(":focus"))},z=function(){var t,a=e(this),o=a.data(i),s=i+"_"+o.idx,n=e("#mCSB_"+o.idx+"_container"),r=n.parent(),l=e(".mCSB_"+o.idx+"_scrollbar ."+d[12]);l.bind("mousedown."+s+" touchstart."+s+" pointerdown."+s+" MSPointerDown."+s,function(a){c=!0,e(a.target).hasClass("mCSB_dragger")||(t=1)}).bind("touchend."+s+" pointerup."+s+" MSPointerUp."+s,function(){c=!1}).bind("click."+s,function(i){if(t&&(t=0,e(i.target).hasClass(d[12])||e(i.target).hasClass("mCSB_draggerRail"))){V(a);var s=e(this),l=s.find(".mCSB_dragger");if(s.parent(".mCSB_scrollTools_horizontal").length>0){if(!o.overflowed[1])return;var c="x",h=i.pageX>l.offset().left?-1:1,u=Math.abs(n[0].offsetLeft)-h*(.9*r.width())}else{if(!o.overflowed[0])return;var c="y",h=i.pageY>l.offset().top?-1:1,u=Math.abs(n[0].offsetTop)-h*(.9*r.height())}Q(a,u.toString(),{dir:c,scrollEasing:"mcsEaseInOut"})}})},H=function(){var t=e(this),a=t.data(i),o=a.opt,s=i+"_"+a.idx,n=e("#mCSB_"+a.idx+"_container"),r=n.parent();n.bind("focusin."+s,function(){var a=e(document.activeElement),i=n.find(".mCustomScrollBox").length;a.is(o.advanced.autoScrollOnFocus)&&(V(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=i?17*i:0,t[0]._focusTimeout=setTimeout(function(){var e=[ae(a)[0],ae(a)[1]],i=[n[0].offsetTop,n[0].offsetLeft],s=[i[0]+e[0]>=0&&i[0]+e[0]<r.height()-a.outerHeight(!1),i[1]+e[1]>=0&&i[0]+e[1]<r.width()-a.outerWidth(!1)],l="yx"!==o.axis||s[0]||s[1]?"all":"none";"x"===o.axis||s[0]||Q(t,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:l,dur:0}),"y"===o.axis||s[1]||Q(t,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:l,dur:0})},t[0]._focusTimer))})},P=function(){var t=e(this),a=t.data(i),o=i+"_"+a.idx,s=e("#mCSB_"+a.idx+"_container").parent();s.bind("scroll."+o,function(){0===s.scrollTop()&&0===s.scrollLeft()||e(".mCSB_"+a.idx+"_scrollbar").css("visibility","hidden")})},X=function(){var t=e(this),a=t.data(i),o=a.opt,s=a.sequential,n=i+"_"+a.idx,r=".mCSB_"+a.idx+"_scrollbar",l=e(r+">a");l.bind("contextmenu."+n,function(e){e.preventDefault()}).bind("mousedown."+n+" touchstart."+n+" pointerdown."+n+" MSPointerDown."+n+" mouseup."+n+" touchend."+n+" pointerup."+n+" MSPointerUp."+n+" mouseout."+n+" pointerout."+n+" MSPointerOut."+n+" click."+n,function(i){function n(e,a){s.scrollAmount=o.scrollButtons.scrollAmount,U(t,e,a)}if(i.preventDefault(),$(i)){var r=e(this).attr("class");switch(s.type=o.scrollButtons.scrollType,i.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===s.type)return;c=!0,a.tweenRunning=!1,n("on",r);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===s.type)return;c=!1,s.dir&&n("off",r);break;case"click":if("stepped"!==s.type||a.tweenRunning)return;n("on",r)}}})},Y=function(){function t(t){function i(e,t){n.type=s.keyboard.scrollType,n.scrollAmount=s.keyboard.scrollAmount,"stepped"===n.type&&o.tweenRunning||U(a,e,t)}switch(t.type){case"blur":o.tweenRunning&&n.dir&&i("off",null);break;case"keydown":case"keyup":var r=t.keyCode?t.keyCode:t.which,l="on";if("x"!==s.axis&&(38===r||40===r)||"y"!==s.axis&&(37===r||39===r)){if((38===r||40===r)&&!o.overflowed[0]||(37===r||39===r)&&!o.overflowed[1])return;"keyup"===t.type&&(l="off"),e(document.activeElement).is(h)||(t.preventDefault(),t.stopImmediatePropagation(),i(l,r))}else if(33===r||34===r){if((o.overflowed[0]||o.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type){V(a);var u=34===r?-1:1;if("x"===s.axis||"yx"===s.axis&&o.overflowed[1]&&!o.overflowed[0])var f="x",m=Math.abs(c[0].offsetLeft)-u*(.9*d.width());else var f="y",m=Math.abs(c[0].offsetTop)-u*(.9*d.height());Q(a,m.toString(),{dir:f,scrollEasing:"mcsEaseInOut"})}}else if((35===r||36===r)&&!e(document.activeElement).is(h)&&((o.overflowed[0]||o.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type)){if("x"===s.axis||"yx"===s.axis&&o.overflowed[1]&&!o.overflowed[0])var f="x",m=35===r?Math.abs(d.width()-c.outerWidth(!1)):0;else var f="y",m=35===r?Math.abs(d.height()-c.outerHeight(!1)):0;Q(a,m.toString(),{dir:f,scrollEasing:"mcsEaseInOut"})}}}var a=e(this),o=a.data(i),s=o.opt,n=o.sequential,r=i+"_"+o.idx,l=e("#mCSB_"+o.idx),c=e("#mCSB_"+o.idx+"_container"),d=c.parent(),h="input,textarea,select,datalist,keygen,[contenteditable='true']",u=c.find("iframe"),f=["blur."+r+" keydown."+r+" keyup."+r];u.length&&u.each(function(){e(this).bind("load",function(){L(this)&&e(this.contentDocument||this.contentWindow.document).bind(f[0],function(e){t(e)})})}),l.attr("tabindex","0").bind(f[0],function(e){t(e)})},U=function(t,a,o,s,n){function r(e){c.snapAmount&&(h.scrollAmount=c.snapAmount instanceof Array?"x"===h.dir[0]?c.snapAmount[1]:c.snapAmount[0]:c.snapAmount);var a="stepped"!==h.type,i=n||(e?a?m/1.5:p:1e3/60),o=e?a?7.5:40:2.5,d=[Math.abs(u[0].offsetTop),Math.abs(u[0].offsetLeft)],f=[l.scrollRatio.y>10?10:l.scrollRatio.y,l.scrollRatio.x>10?10:l.scrollRatio.x],g="x"===h.dir[0]?d[1]+h.dir[1]*(f[1]*o):d[0]+h.dir[1]*(f[0]*o),x="x"===h.dir[0]?d[1]+h.dir[1]*parseInt(h.scrollAmount):d[0]+h.dir[1]*parseInt(h.scrollAmount),v="auto"!==h.scrollAmount?x:g,w=s||(e?a?"mcsLinearOut":"mcsEaseInOut":"mcsLinear"),_=!!e;return e&&17>i&&(v="x"===h.dir[0]?d[1]:d[0]),Q(t,v.toString(),{dir:h.dir[0],scrollEasing:w,dur:i,onComplete:_}),e?void(h.dir=!1):(clearTimeout(h.step),void(h.step=setTimeout(function(){r()},i)))}var l=t.data(i),c=l.opt,h=l.sequential,u=e("#mCSB_"+l.idx+"_container"),f="stepped"===h.type,m=c.scrollInertia<26?26:c.scrollInertia,p=c.scrollInertia<1?17:c.scrollInertia;switch(a){case"on":if(h.dir=[o===d[16]||o===d[15]||39===o||37===o?"x":"y",o===d[13]||o===d[15]||38===o||37===o?-1:1],V(t),te(o)&&"stepped"===h.type)return;r(f);break;case"off":clearTimeout(h.step),K(h,"step"),V(t),(f||l.tweenRunning&&h.dir)&&r(!0)}},F=function(t){var a=e(this).data(i).opt,o=[];return"function"==typeof t&&(t=t()),t instanceof Array?o=t.length>1?[t[0],t[1]]:"x"===a.axis?[null,t[0]]:[t[0],null]:(o[0]=t.y?t.y:t.x||"x"===a.axis?null:t,o[1]=t.x?t.x:t.y||"y"===a.axis?null:t),"function"==typeof o[0]&&(o[0]=o[0]()),"function"==typeof o[1]&&(o[1]=o[1]()),o},q=function(t,a){if(null!=t&&void 0!==t){var o=e(this),s=o.data(i),n=s.opt,r=e("#mCSB_"+s.idx+"_container"),l=r.parent(),c=typeof t;a||(a="x"===n.axis?"x":"y");var d="x"===a?r.outerWidth(!1)-l.width():r.outerHeight(!1)-l.height(),u="x"===a?r[0].offsetLeft:r[0].offsetTop,f="x"===a?"left":"top";switch(c){case"function":return t();case"object":var m=t.jquery?t:e(t);if(!m.length)return;return"x"===a?ae(m)[1]:ae(m)[0];case"string":case"number":if(te(t))return Math.abs(t);if(-1!==t.indexOf("%"))return Math.abs(d*parseInt(t)/100);if(-1!==t.indexOf("-="))return Math.abs(u-parseInt(t.split("-=")[1]));if(-1!==t.indexOf("+=")){var p=u+parseInt(t.split("+=")[1]);return p>=0?0:Math.abs(p)}if(-1!==t.indexOf("px")&&te(t.split("px")[0]))return Math.abs(t.split("px")[0]);if("top"===t||"left"===t)return 0;if("bottom"===t)return Math.abs(l.height()-r.outerHeight(!1));if("right"===t)return Math.abs(l.width()-r.outerWidth(!1));if("first"===t||"last"===t){var m=r.find(":"+t);return"x"===a?ae(m)[1]:ae(m)[0]}return e(t).length?"x"===a?ae(e(t))[1]:ae(e(t))[0]:(r.css(f,t),void h.update.call(null,o[0]))}}},N=function(t){function a(e){clearTimeout(r[0].autoUpdate),h.update.call(null,o[0],e)}var o=e(this),s=o.data(i),n=s.opt,r=e("#mCSB_"+s.idx+"_container");return t?(clearTimeout(r[0].autoUpdate),void K(r[0],"autoUpdate")):void function t(){return clearTimeout(r[0].autoUpdate),0===o.parents("html").length?void(o=null):void(r[0].autoUpdate=setTimeout(function(){return n.advanced.updateOnSelectorChange&&(s.poll.change.n=function(){!0===n.advanced.updateOnSelectorChange&&(n.advanced.updateOnSelectorChange="*");var e=0,t=r.find(n.advanced.updateOnSelectorChange);return n.advanced.updateOnSelectorChange&&t.length>0&&t.each(function(){e+=this.offsetHeight+this.offsetWidth}),e}(),s.poll.change.n!==s.poll.change.o)?(s.poll.change.o=s.poll.change.n,void a(3)):n.advanced.updateOnContentResize&&(s.poll.size.n=o[0].scrollHeight+o[0].scrollWidth+r[0].offsetHeight+o[0].offsetHeight+o[0].offsetWidth,s.poll.size.n!==s.poll.size.o)?(s.poll.size.o=s.poll.size.n,void a(1)):!n.advanced.updateOnImageLoad||"auto"===n.advanced.updateOnImageLoad&&"y"===n.axis||(s.poll.img.n=r.find("img").length,s.poll.img.n===s.poll.img.o)?void((n.advanced.updateOnSelectorChange||n.advanced.updateOnContentResize||n.advanced.updateOnImageLoad)&&t()):(s.poll.img.o=s.poll.img.n,void r.find("img").each(function(){!function(t){if(e(t).hasClass(d[2]))a();else{var i=new Image;i.onload=function(e,t){return function(){return t.apply(e,arguments)}}(i,function(){this.onload=null,e(t).addClass(d[2]),a(2)}),i.src=t.src}}(this)}))},n.advanced.autoUpdateTimeout))}()},V=function(t){var a=t.data(i),o=e("#mCSB_"+a.idx+"_container,#mCSB_"+a.idx+"_container_wrapper,#mCSB_"+a.idx+"_dragger_vertical,#mCSB_"+a.idx+"_dragger_horizontal");o.each(function(){G.call(this)})},Q=function(t,a,o){function s(e){return r&&l.callbacks[e]&&"function"==typeof l.callbacks[e]}function n(){var e=[u[0].offsetTop,u[0].offsetLeft],a=[x[0].offsetTop,x[0].offsetLeft],i=[u.outerHeight(!1),u.outerWidth(!1)],s=[h.height(),h.width()];t[0].mcs={content:u,top:e[0],left:e[1],draggerTop:a[0],draggerLeft:a[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(i[0])-s[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(i[1])-s[1])),direction:o.dir}}var r=t.data(i),l=r.opt,c={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:l.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},o=e.extend(c,o),d=[o.dur,o.drag?0:o.dur],h=e("#mCSB_"+r.idx),u=e("#mCSB_"+r.idx+"_container"),f=u.parent(),m=l.callbacks.onTotalScrollOffset?F.call(t,l.callbacks.onTotalScrollOffset):[0,0],p=l.callbacks.onTotalScrollBackOffset?F.call(t,l.callbacks.onTotalScrollBackOffset):[0,0];if(r.trigger=o.trigger,0===f.scrollTop()&&0===f.scrollLeft()||(e(".mCSB_"+r.idx+"_scrollbar").css("visibility","visible"),f.scrollTop(0).scrollLeft(0)),"_resetY"!==a||r.contentReset.y||(s("onOverflowYNone")&&l.callbacks.onOverflowYNone.call(t[0]),r.contentReset.y=1),"_resetX"!==a||r.contentReset.x||(s("onOverflowXNone")&&l.callbacks.onOverflowXNone.call(t[0]),r.contentReset.x=1),"_resetY"!==a&&"_resetX"!==a){if(!r.contentReset.y&&t[0].mcs||!r.overflowed[0]||(s("onOverflowY")&&l.callbacks.onOverflowY.call(t[0]),r.contentReset.x=null),!r.contentReset.x&&t[0].mcs||!r.overflowed[1]||(s("onOverflowX")&&l.callbacks.onOverflowX.call(t[0]),r.contentReset.x=null),l.snapAmount){var g=l.snapAmount instanceof Array?"x"===o.dir?l.snapAmount[1]:l.snapAmount[0]:l.snapAmount;a=function(e,t,a){return Math.round(e/t)*t-a}(a,g,l.snapOffset)}switch(o.dir){case"x":var x=e("#mCSB_"+r.idx+"_dragger_horizontal"),v="left",w=u[0].offsetLeft,_=[h.width()-u.outerWidth(!1),x.parent().width()-x.width()],S=[a,0===a?0:a/r.scrollRatio.x],b=m[1],C=p[1],j=b>0?b/r.scrollRatio.x:0,B=C>0?C/r.scrollRatio.x:0;break;case"y":var x=e("#mCSB_"+r.idx+"_dragger_vertical"),v="top",w=u[0].offsetTop,_=[h.height()-u.outerHeight(!1),x.parent().height()-x.height()],S=[a,0===a?0:a/r.scrollRatio.y],b=m[0],C=p[0],j=b>0?b/r.scrollRatio.y:0,B=C>0?C/r.scrollRatio.y:0}S[1]<0||0===S[0]&&0===S[1]?S=[0,0]:S[1]>=_[1]?S=[_[0],_[1]]:S[0]=-S[0],t[0].mcs||(n(),s("onInit")&&l.callbacks.onInit.call(t[0])),clearTimeout(u[0].onCompleteTimeout),Z(x[0],v,Math.round(S[1]),d[1],o.scrollEasing),!r.tweenRunning&&(0===w&&S[0]>=0||w===_[0]&&S[0]<=_[0])||Z(u[0],v,Math.round(S[0]),d[0],o.scrollEasing,o.overwrite,{onStart:function(){o.callbacks&&o.onStart&&!r.tweenRunning&&(s("onScrollStart")&&(n(),l.callbacks.onScrollStart.call(t[0])),r.tweenRunning=!0,y(x),r.cbOffsets=[l.callbacks.alwaysTriggerOffsets||w>=_[0]+b,l.callbacks.alwaysTriggerOffsets||-C>=w])},onUpdate:function(){o.callbacks&&o.onUpdate&&s("whileScrolling")&&(n(),l.callbacks.whileScrolling.call(t[0]))},onComplete:function(){if(o.callbacks&&o.onComplete){"yx"===l.axis&&clearTimeout(u[0].onCompleteTimeout);var e=u[0].idleTimer||0;u[0].onCompleteTimeout=setTimeout(function(){s("onScroll")&&(n(),l.callbacks.onScroll.call(t[0])),s("onTotalScroll")&&S[1]>=_[1]-j&&r.cbOffsets[0]&&(n(),l.callbacks.onTotalScroll.call(t[0])),s("onTotalScrollBack")&&S[1]<=B&&r.cbOffsets[1]&&(n(),l.callbacks.onTotalScrollBack.call(t[0])),r.tweenRunning=!1,u[0].idleTimer=0,y(x,"hide")},e)}}})}},Z=function(e,t,a,i,o,s,n){function r(){v.stop||(p||h.call(),p=J()-m,l(),p>=v.time&&(v.time=p>v.time?p+c-(p-v.time):p+c-1,v.time<p+1&&(v.time=p+1)),v.time<i?v.id=d(r):f.call())}function l(){i>0?(v.currVal=function(e,t,a,i,o){switch(o){case"linear":case"mcsLinear":return a*e/i+t;case"mcsLinearOut":return e/=i,e--,a*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return 1>(e/=i/2)?a/2*e*e+t:-a/2*(--e*(e-2)-1)+t;case"easeInOutStrong":return 1>(e/=i/2)?a/2*Math.pow(2,10*(e-1))+t:(e--,a/2*(2-Math.pow(2,-10*e))+t);case"easeInOut":case"mcsEaseInOut":return 1>(e/=i/2)?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t;case"easeOutSmooth":return e/=i,-a*(--e*e*e*e-1)+t;case"easeOutStrong":return a*(1-Math.pow(2,-10*e/i))+t;case"easeOut":case"mcsEaseOut":default:var s=(e/=i)*e,n=s*e;return t+a*(.499999999999997*n*s+-2.5*s*s+5.5*n+-6.5*s+4*e)}}(v.time,g,w,i,o),x[t]=Math.round(v.currVal)+"px"):x[t]=a+"px",u.call()}e._mTween||(e._mTween={top:{},left:{}});var c,d,n=n||{},h=n.onStart||function(){},u=n.onUpdate||function(){},f=n.onComplete||function(){},m=J(),p=0,g=e.offsetTop,x=e.style,v=e._mTween[t];"left"===t&&(g=e.offsetLeft);var w=a-g;v.stop=0,"none"!==s&&null!=v.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(v.id):clearTimeout(v.id),v.id=null),c=1e3/60,v.time=p+c,d=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return l(),setTimeout(e,.01)},v.id=d(r)},J=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},G=function(){var e=this;e._mTween||(e._mTween={top:{},left:{}});for(var t=["top","left"],a=0;a<t.length;a++){var i=t[a];e._mTween[i].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._mTween[i].id):clearTimeout(e._mTween[i].id),e._mTween[i].id=null,e._mTween[i].stop=1)}},K=function(e,t){try{delete e[t]}catch(a){e[t]=null}},$=function(e){return!(e.which&&1!==e.which)},ee=function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},te=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ae=function(e){var t=e.parents(".mCSB_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]},ie=function(){var e=function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}();return!!e&&document[e]};e.fn[a]=function(t){return h[t]?h[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):h.init.apply(this,arguments)},e[a]=function(t){return h[t]?h[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):h.init.apply(this,arguments)},e[a].defaults=s,window[a]=!0,e(window).bind("load",function(){e(o)[a](),e.extend(e.expr[":"],{mcsInView:e.expr[":"].mcsInView||function(t){var a,i,o=e(t),s=o.parents(".mCSB_container");if(s.length)return a=s.parent(),(i=[s[0].offsetTop,s[0].offsetLeft])[0]+ae(o)[0]>=0&&i[0]+ae(o)[0]<a.height()-o.outerHeight(!1)&&i[1]+ae(o)[1]>=0&&i[1]+ae(o)[1]<a.width()-o.outerWidth(!1)},mcsInSight:e.expr[":"].mcsInSight||function(t,a,i){var o,s,n,r,l=e(t),c=l.parents(".mCSB_container"),d="exact"===i[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(c.length)return o=[l.outerHeight(!1),l.outerWidth(!1)],n=[c[0].offsetTop+ae(l)[0],c[0].offsetLeft+ae(l)[1]],s=[c.parent()[0].offsetHeight,c.parent()[0].offsetWidth],n[0]-s[0]*(r=[o[0]<s[0]?d[0]:d[1],o[1]<s[1]?d[0]:d[1]])[0][0]<0&&n[0]+o[0]-s[0]*r[0][1]>=0&&n[1]-s[1]*r[1][0]<0&&n[1]+o[1]-s[1]*r[1][1]>=0},mcsOverflow:e.expr[":"].mcsOverflow||function(t){var a=e(t).data(i);if(a)return a.overflowed[0]||a.overflowed[1]}})})}()});
1
+ !function(e){"use strict";e(document).ready(function(){var t,a=null,i="",o=-1,s=e(document.activeElement).closest("form");function n(a,s){s||(s=1);var n=e(a),r=n.val()||"",l=n.parents(".is-ajax-search"),c=l.attr("data-min-no-for-search")||"",d=l.attr("data-result-box-max-height")||"400",h=e(l).attr("data-form-id");if(e(".is-form-id-"+h+" .is-search-input").val(r),""===i||i!==r.trim()||o!==h)i=r.trim(),o=h;else if(1===s)return void e("#is-ajax-search-result-"+h).show();if(1===s&&l.addClass("processing"),r.length>=c){if(1===s){if(e("#is-ajax-search-result-"+h+", #is-ajax-search-details-"+h).hide(),l.hasClass("is-form-style-1")){var u=l.find(".is-search-submit").outerWidth()+5;l.find(".is-loader-image").css("right",u+"px")}l.find(".is-loader-image").show()}var f={action:"is_ajax_load_posts",page:s,security:IvoryAjaxVars.ajax_nonce},m=l.serialize()+"&"+e.param(f);0===l.find('input[name="id"]').length&&(m+="&id="+h),t&&4!==t.readystate&&t.abort(),t=e.ajax({url:IvoryAjaxVars.ajaxurl,data:m,type:"POST",success:function(t){if("undefined"!=typeof IvorySearchVars&&void 0!==IvorySearchVars.is_analytics_enabled){var a=e(t).find(".is-ajax-search-no-result").length?"Nothing Found":"Results Found";ivory_search_analytics(h,r,a)}if(l.find(".is-loader-image").hide(),l.removeClass("processing"),1===s){var i=l.offset(),o=l.innerHeight(),n=l.outerWidth();n=n<500?500:n,0===e("#is-ajax-search-result-"+h).length&&e("body").append('<div id="is-ajax-search-result-'+h+'" class="is-ajax-search-result"></div>'),e("#is-ajax-search-result-"+h).css({width:n-10+"px"});var c=e("#is-ajax-search-result-"+h).outerWidth(),u=e(window).width(),f=0;if(i.left+c>u&&(f=i.left+c-u),e("#is-ajax-search-result-"+h).css({top:i.top+o+"px",left:i.left-f+"px",width:n-10+"px"}),e("#is-ajax-search-result-"+h).show().html(t),0!==e("#is-ajax-search-details-"+h).length&&e("body > #is-ajax-search-details-"+h).remove(),0!==e("#is-ajax-search-result-"+h+" .is-ajax-search-details").length){e("body").append('<div id="is-ajax-search-details-'+h+'" class="is-ajax-search-details">'+e("#is-ajax-search-result-"+h+" .is-ajax-search-details").html()+"</div>"),e("#is-ajax-search-result-"+h+" .is-ajax-search-details").remove();var m=e("#is-ajax-search-details-"+h).outerWidth(),p=i.left+c;if(i.left+c+m>u+30){var g=i.left-(f+m);g>-30&&(p=g)}e("#is-ajax-search-details-"+h).css({top:i.top+o+"px",left:p+"px"})}}else e("#is-ajax-search-result-"+h+" .is-show-more-results").remove(),e("#is-ajax-search-result-"+h+" .is-ajax-search-posts").append(t),0!==e("#is-ajax-search-result-"+h+" .is-ajax-search-posts .is-show-more-results").length&&(e("#is-ajax-search-result-"+h).append(e("#is-ajax-search-result-"+h+" .is-ajax-search-posts .is-show-more-results")[0].outerHTML),e("#is-ajax-search-result-"+h+" .is-ajax-search-posts .is-show-more-results").remove()),e("#is-ajax-search-details-"+h+" .is-ajax-search-posts-details").append(e("#is-ajax-search-result-"+h+" .is-ajax-search-items .is-ajax-search-posts-details").html()),e("#is-ajax-search-result-"+h+" .is-ajax-search-items .is-ajax-search-details").remove();var x=r.trim().split(" ");if(0!=x.length&&e.isFunction(e.fn.is_highlight)){var v,w,_,S=[".is-ajax-search-result"],b=jQuery.support.opacity?"mark":"span";for(_ in S)if(0!=(v=e(S[_])).length){for(w in x)v.is_highlight(x[w],b,"is-highlight term-"+w),v.find("*").is_highlight(x[w],b,"is-highlight term-"+w);break}}e("#is-ajax-search-result-"+h+" .is-ajax-search-items, #is-ajax-search-details-"+h+" .is-ajax-search-items").css("max-height",d+"px"),e.mCustomScrollbar.defaults.scrollButtons.enable=!0,e("#is-ajax-search-result-"+h+" .is-ajax-search-items, #is-ajax-search-details-"+h+" .is-ajax-search-items").mCustomScrollbar({theme:"dark-thick"})},error:function(e,t,a){console.log(e.statusText),"abort"!==e.statusText&&console.log("AJAX request aborted")}})}else e("#is-ajax-search-result-"+h).hide(),l.removeClass("processing")}e("body").on("mouseover",".is-ajax-search-tags > div, .is-ajax-search-categories > div, .is-ajax-search-post.is-product",function(t){var a=e(window).outerWidth();if(parseInt(a)>=910){var i=e(this).attr("data-id")||"",o=e(t.target).closest(".is-ajax-search-result").attr("id").split(/[-]+/).pop(),s=e("#is-ajax-search-result-"+o).offset(),n=e(".is-form-id-"+o).attr("data-result-box-max-height")||"400";e("#is-ajax-search-details-"+o).css({top:s.top+"px"}),e("#is-ajax-search-details-"+o+" .is-ajax-search-items").css("height",n+"px"),e("#is-ajax-search-details-"+o+" .mCSB_container > div").css("min-height",n+"px"),e(this).parents("div").hasClass("is-ajax-search-tags")&&e("#is-ajax-search-details-"+o+" .is-ajax-search-tags-details").length&&e("#is-ajax-search-details-"+o+' .is-ajax-search-tags-details > div[data-id="'+i+'"]').length?(e("#is-ajax-search-details-"+o+" .is-ajax-search-tags-details, #is-ajax-search-details-"+o).show(),e("#is-ajax-search-details-"+o+" .is-ajax-search-categories-details, #is-ajax-search-details-"+o+" .is-ajax-search-posts-details").hide(),e("#is-ajax-search-details-"+o+" .is-ajax-search-tags-details").find(" > div ").hide(),e("#is-ajax-search-details-"+o+" .is-ajax-search-tags-details").find(' > div[data-id="'+i+'"] ').show()):e(this).parents("div").hasClass("is-ajax-search-categories")&&e("#is-ajax-search-details-"+o+" .is-ajax-search-categories-details").length&&e("#is-ajax-search-details-"+o+' .is-ajax-search-categories-details > div[data-id="'+i+'"]').length?(e("#is-ajax-search-details-"+o+" .is-ajax-search-categories-details, #is-ajax-search-details-"+o).show(),e("#is-ajax-search-details-"+o+" .is-ajax-search-tags-details, #is-ajax-search-details-"+o+" .is-ajax-search-posts-details").hide(),e("#is-ajax-search-details-"+o+" .is-ajax-search-categories-details").find("> div ").hide(),e("#is-ajax-search-details-"+o+" .is-ajax-search-categories-details").find('> div[data-id="'+i+'"] ').show()):e(this).parents("div").hasClass("is-ajax-search-posts")&&(e("#is-ajax-search-details-"+o+" .is-ajax-search-tags-details, #is-ajax-search-details-"+o+" .is-ajax-search-categories-details").hide(),e("#is-ajax-search-details-"+o+" .is-ajax-search-posts-details").find("> div ").hide(),e("#is-ajax-search-details-"+o+" .is-ajax-search-posts-details, #is-ajax-search-details-"+o).show(),e("#is-ajax-search-details-"+o+" .is-ajax-search-posts-details").find('> div[data-id="'+i+'"] ').show())}}),e(".is-ajax-search .is-search-input").on("focusin, click",function(t){if(s=e(this).closest("form"),""!==e(this).val()&&0===e(t.target).closest("form.processing").length){var a=e(t.target).closest(".is-ajax-search").attr("data-form-id"),i=e(t.target).closest(".is-ajax-search").outerWidth();i=i<500?500:i,e("#is-ajax-search-result-"+a).css({width:i-10+"px"});var o=e(t.target).closest(".is-ajax-search").offset(),n=e(t.target).closest(".is-ajax-search").innerHeight(),r=e("#is-ajax-search-result-"+a).outerWidth(),l=e(window).width(),c=0;if(o.left+r>l&&(c=o.left+r-l),e("#is-ajax-search-result-"+a).css({top:o.top+n+"px",left:o.left-c+"px"}),e(".is-ajax-search-result, .is-ajax-search-details").hide(),e("#is-ajax-search-result-"+a).show(),0!==e("#is-ajax-search-details-"+a).length){var d=e("#is-ajax-search-details-"+a).outerWidth(),h=o.left+r;if(o.left+r+d>l+30){var u=o.left-(c+d);u>-30&&(h=u)}e("#is-ajax-search-details-"+a).css({top:o.top+n+"px",left:h+"px"})}}}),e(".is-ajax-search .is-search-input").on("focusout",function(){s=!1}),e("body").on("mousedown",function(t){"s"!==e(t.target).attr("name")&&0===e(t.target).closest(".is-ajax-search-result").length&&0===e(t.target).closest(".is-ajax-search-details").length&&(e(".is-ajax-search-result, .is-ajax-search-details").hide(),s=!1)}),e(".is-disable-submit .is-search-submit").on("click",function(t){return e(this).parent().find(".is-search-input").trigger("keyup"),t.stopPropagation(),t.preventDefault(),!1}),e("form.is-disable-submit").on("submit",function(t){return e(this).find(".is-search-input").trigger("keyup"),t.stopPropagation(),t.preventDefault(),!1}),e(document).on("click",".is-show-more-results",function(t){var a=e(t.target).closest(".is-ajax-search-result").attr("id").split(/[-]+/).pop();e(this).hasClass("redirect-tosr")?e(".is-form-id-"+a).submit():(e(this).find(".is-show-more-results-text").hide(),e(this).find(".is-load-more-image").show(),n(e(".is-form-id-"+a+" .is-search-input"),e(this).attr("data-page")||""))}),e(window).on("resize scroll",function(){if(e(s).hasClass("is-ajax-search")){var t=e(s).attr("data-form-id");if(0!==e("#is-ajax-search-result-"+t).length){var a=e(s).offset(),i=e(s).innerHeight(),o=e("#is-ajax-search-result-"+t).outerWidth(),n=e(window).width(),r=0;if(a.left+o>n&&(r=a.left+o-n),e("#is-ajax-search-result-"+t).css({top:a.top+i+"px",left:a.left-r+"px"}),e(".is-ajax-search-result, .is-ajax-search-details").hide(),e("#is-ajax-search-result-"+t).show(),0!==e("#is-ajax-search-details-"+t).length){var l=e("#is-ajax-search-details-"+t).outerWidth(),c=a.left+o;if(a.left+o+l>n+30){var d=a.left-(r+l);d>-30&&(c=d)}e("#is-ajax-search-details-"+t).css({top:a.top+i+"px",left:c+"px"})}}}}),e(".is-ajax-search .is-search-input").on("paste",function(){e(this).trigger("keyup")}),e(".is-ajax-search").each(function(t,i){e(i).find(".is-search-input").on("keyup",function(t){if(s=e(this).closest("form"),32!==t.which){var i=this;window.clearTimeout(a),a=window.setTimeout(function(){a=null,n(i)},500)}})})})}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){function t(t){var n=t||window.event,r=l.call(arguments,1),c=0,h=0,u=0,f=0,m=0,p=0;if((t=e.event.fix(n)).type="mousewheel","detail"in n&&(u=-1*n.detail),"wheelDelta"in n&&(u=n.wheelDelta),"wheelDeltaY"in n&&(u=n.wheelDeltaY),"wheelDeltaX"in n&&(h=-1*n.wheelDeltaX),"axis"in n&&n.axis===n.HORIZONTAL_AXIS&&(h=-1*u,u=0),c=0===u?h:u,"deltaY"in n&&(c=u=-1*n.deltaY),"deltaX"in n&&(h=n.deltaX,0===u&&(c=-1*h)),0!==u||0!==h){if(1===n.deltaMode){var g=e.data(this,"mousewheel-line-height");c*=g,u*=g,h*=g}else if(2===n.deltaMode){var x=e.data(this,"mousewheel-page-height");c*=x,u*=x,h*=x}if(f=Math.max(Math.abs(u),Math.abs(h)),(!s||s>f)&&(s=f,i(n,f)&&(s/=40)),i(n,f)&&(c/=40,h/=40,u/=40),c=Math[c>=1?"floor":"ceil"](c/s),h=Math[h>=1?"floor":"ceil"](h/s),u=Math[u>=1?"floor":"ceil"](u/s),d.settings.normalizeOffset&&this.getBoundingClientRect){var v=this.getBoundingClientRect();m=t.clientX-v.left,p=t.clientY-v.top}return t.deltaX=h,t.deltaY=u,t.deltaFactor=s,t.offsetX=m,t.offsetY=p,t.deltaMode=0,r.unshift(t,c,h,u),o&&clearTimeout(o),o=setTimeout(a,200),(e.event.dispatch||e.event.handle).apply(this,r)}}function a(){s=null}function i(e,t){return d.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}var o,s,n=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(e.event.fixHooks)for(var c=n.length;c;)e.event.fixHooks[n[--c]]=e.event.mouseHooks;var d=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var a=r.length;a;)this.addEventListener(r[--a],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",d.getLineHeight(this)),e.data(this,"mousewheel-page-height",d.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var a=r.length;a;)this.removeEventListener(r[--a],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var a=e(t),i=a["offsetParent"in e.fn?"offsetParent":"parent"]();return i.length||(i=e("body")),parseInt(i.css("fontSize"),10)||parseInt(a.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){function t(t){var n=t||window.event,r=l.call(arguments,1),c=0,h=0,u=0,f=0,m=0,p=0;if((t=e.event.fix(n)).type="mousewheel","detail"in n&&(u=-1*n.detail),"wheelDelta"in n&&(u=n.wheelDelta),"wheelDeltaY"in n&&(u=n.wheelDeltaY),"wheelDeltaX"in n&&(h=-1*n.wheelDeltaX),"axis"in n&&n.axis===n.HORIZONTAL_AXIS&&(h=-1*u,u=0),c=0===u?h:u,"deltaY"in n&&(c=u=-1*n.deltaY),"deltaX"in n&&(h=n.deltaX,0===u&&(c=-1*h)),0!==u||0!==h){if(1===n.deltaMode){var g=e.data(this,"mousewheel-line-height");c*=g,u*=g,h*=g}else if(2===n.deltaMode){var x=e.data(this,"mousewheel-page-height");c*=x,u*=x,h*=x}if(f=Math.max(Math.abs(u),Math.abs(h)),(!s||s>f)&&(s=f,i(n,f)&&(s/=40)),i(n,f)&&(c/=40,h/=40,u/=40),c=Math[c>=1?"floor":"ceil"](c/s),h=Math[h>=1?"floor":"ceil"](h/s),u=Math[u>=1?"floor":"ceil"](u/s),d.settings.normalizeOffset&&this.getBoundingClientRect){var v=this.getBoundingClientRect();m=t.clientX-v.left,p=t.clientY-v.top}return t.deltaX=h,t.deltaY=u,t.deltaFactor=s,t.offsetX=m,t.offsetY=p,t.deltaMode=0,r.unshift(t,c,h,u),o&&clearTimeout(o),o=setTimeout(a,200),(e.event.dispatch||e.event.handle).apply(this,r)}}function a(){s=null}function i(e,t){return d.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}var o,s,n=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(e.event.fixHooks)for(var c=n.length;c;)e.event.fixHooks[n[--c]]=e.event.mouseHooks;var d=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var a=r.length;a;)this.addEventListener(r[--a],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",d.getLineHeight(this)),e.data(this,"mousewheel-page-height",d.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var a=r.length;a;)this.removeEventListener(r[--a],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var a=e(t),i=a["offsetParent"in e.fn?"offsetParent":"parent"]();return i.length||(i=e("body")),parseInt(i.css("fontSize"),10)||parseInt(a.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e:e(jQuery,window,document)}(function(e){var t,a,i;t="function"==typeof define&&define.amd,a="undefined"!=typeof module&&module.exports,i="https:"==document.location.protocol?"https:":"http:",t||(a?require("jquery-mousewheel")(e):e.event.special.mousewheel||e("head").append(decodeURI("%3Cscript src="+i+"//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js%3E%3C/script%3E"))),function(){var t,a="mCustomScrollbar",i="mCS",o=".mCustomScrollbar",s={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},n=0,r={},l=window.attachEvent&&!window.addEventListener?1:0,c=!1,d=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],h={init:function(t){var t=e.extend(!0,{},s,t),a=u.call(this);if(t.live){var l=t.liveSelector||this.selector||o,c=e(l);if("off"===t.live)return void m(l);r[l]=setTimeout(function(){c.mCustomScrollbar(t),"once"===t.live&&c.length&&m(l)},500)}else m(l);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":p(t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia,"object"!=typeof t.mouseWheel&&1==t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=g(t.scrollButtons.scrollType),f(t),e(a).each(function(){var a=e(this);if(!a.data(i)){a.data(i,{idx:++n,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:a.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var o=a.data(i),s=o.opt,r=a.data("mcs-axis"),l=a.data("mcs-scrollbar-position"),c=a.data("mcs-theme");r&&(s.axis=r),l&&(s.scrollbarPosition=l),c&&(s.theme=c,f(s)),x.call(this),o&&s.callbacks.onCreate&&"function"==typeof s.callbacks.onCreate&&s.callbacks.onCreate.call(this),e("#mCSB_"+o.idx+"_container img:not(."+d[2]+")").addClass(d[2]),h.update.call(null,a)}})},update:function(t,a){var o=t||u.call(this);return e(o).each(function(){var t=e(this);if(t.data(i)){var o=t.data(i),s=o.opt,n=e("#mCSB_"+o.idx+"_container"),r=e("#mCSB_"+o.idx),l=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];if(!n.length)return;o.tweenRunning&&V(t),a&&o&&s.callbacks.onBeforeUpdate&&"function"==typeof s.callbacks.onBeforeUpdate&&s.callbacks.onBeforeUpdate.call(this),t.hasClass(d[3])&&t.removeClass(d[3]),t.hasClass(d[4])&&t.removeClass(d[4]),r.css("max-height","none"),r.height()!==t.height()&&r.css("max-height",t.height()),w.call(this),"y"===s.axis||s.advanced.autoExpandHorizontalScroll||n.css("width",v(n)),o.overflowed=C.call(this),M.call(this),s.autoDraggerLength&&S.call(this),b.call(this),B.call(this);var c=[Math.abs(n[0].offsetTop),Math.abs(n[0].offsetLeft)];"x"!==s.axis&&(o.overflowed[0]?l[0].height()>l[0].parent().height()?j.call(this):(Q(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}),o.contentReset.y=null):(j.call(this),"y"===s.axis?T.call(this):"yx"===s.axis&&o.overflowed[1]&&Q(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==s.axis&&(o.overflowed[1]?l[1].width()>l[1].parent().width()?j.call(this):(Q(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}),o.contentReset.x=null):(j.call(this),"x"===s.axis?T.call(this):"yx"===s.axis&&o.overflowed[0]&&Q(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),a&&o&&(2===a&&s.callbacks.onImageLoad&&"function"==typeof s.callbacks.onImageLoad?s.callbacks.onImageLoad.call(this):3===a&&s.callbacks.onSelectorChange&&"function"==typeof s.callbacks.onSelectorChange?s.callbacks.onSelectorChange.call(this):s.callbacks.onUpdate&&"function"==typeof s.callbacks.onUpdate&&s.callbacks.onUpdate.call(this)),N.call(this)}})},scrollTo:function(t,a){if(void 0!==t&&null!=t){var o=u.call(this);return e(o).each(function(){var o=e(this);if(o.data(i)){var s=o.data(i),n=s.opt,r={trigger:"external",scrollInertia:n.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},l=e.extend(!0,{},r,a),c=F.call(this,t),d=l.scrollInertia>0&&l.scrollInertia<17?17:l.scrollInertia;c[0]=q.call(this,c[0],"y"),c[1]=q.call(this,c[1],"x"),l.moveDragger&&(c[0]*=s.scrollRatio.y,c[1]*=s.scrollRatio.x),l.dur=ie()?0:d,setTimeout(function(){null!==c[0]&&void 0!==c[0]&&"x"!==n.axis&&s.overflowed[0]&&(l.dir="y",l.overwrite="all",Q(o,c[0].toString(),l)),null!==c[1]&&void 0!==c[1]&&"y"!==n.axis&&s.overflowed[1]&&(l.dir="x",l.overwrite="none",Q(o,c[1].toString(),l))},l.timeout)}})}},stop:function(){var t=u.call(this);return e(t).each(function(){var t=e(this);t.data(i)&&V(t)})},disable:function(t){var a=u.call(this);return e(a).each(function(){var a=e(this);a.data(i)&&(a.data(i),N.call(this,"remove"),T.call(this),t&&j.call(this),M.call(this,!0),a.addClass(d[3]))})},destroy:function(){var t=u.call(this);return e(t).each(function(){var o=e(this);if(o.data(i)){var s=o.data(i),n=s.opt,r=e("#mCSB_"+s.idx),l=e("#mCSB_"+s.idx+"_container"),c=e(".mCSB_"+s.idx+"_scrollbar");n.live&&m(n.liveSelector||e(t).selector),N.call(this,"remove"),T.call(this),j.call(this),o.removeData(i),K(this,"mcs"),c.remove(),l.find("img."+d[2]).removeClass(d[2]),r.replaceWith(l.contents()),o.removeClass(a+" _"+i+"_"+s.idx+" "+d[6]+" "+d[7]+" "+d[5]+" "+d[3]).addClass(d[4])}})}},u=function(){return"object"!=typeof e(this)||e(this).length<1?o:this},f=function(t){t.autoDraggerLength=!(e.inArray(t.theme,["rounded","rounded-dark","rounded-dots","rounded-dots-dark"])>-1)&&t.autoDraggerLength,t.autoExpandScrollbar=!(e.inArray(t.theme,["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"])>-1)&&t.autoExpandScrollbar,t.scrollButtons.enable=!(e.inArray(t.theme,["minimal","minimal-dark"])>-1)&&t.scrollButtons.enable,t.autoHideScrollbar=e.inArray(t.theme,["minimal","minimal-dark"])>-1||t.autoHideScrollbar,t.scrollbarPosition=e.inArray(t.theme,["minimal","minimal-dark"])>-1?"outside":t.scrollbarPosition},m=function(e){r[e]&&(clearTimeout(r[e]),K(r,e))},p=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},g=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},x=function(){var t=e(this),o=t.data(i),s=o.opt,n=s.autoExpandScrollbar?" "+d[1]+"_expand":"",r=["<div id='mCSB_"+o.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+o.idx+"_scrollbar mCS-"+s.theme+" mCSB_scrollTools_vertical"+n+"'><div class='"+d[12]+"'><div id='mCSB_"+o.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+o.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+o.idx+"_scrollbar mCS-"+s.theme+" mCSB_scrollTools_horizontal"+n+"'><div class='"+d[12]+"'><div id='mCSB_"+o.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],l="yx"===s.axis?"mCSB_vertical_horizontal":"x"===s.axis?"mCSB_horizontal":"mCSB_vertical",c="yx"===s.axis?r[0]+r[1]:"x"===s.axis?r[1]:r[0],h="yx"===s.axis?"<div id='mCSB_"+o.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",u=s.autoHideScrollbar?" "+d[6]:"",f="x"!==s.axis&&"rtl"===o.langDir?" "+d[7]:"";s.setWidth&&t.css("width",s.setWidth),s.setHeight&&t.css("height",s.setHeight),s.setLeft="y"!==s.axis&&"rtl"===o.langDir?"989999px":s.setLeft,t.addClass(a+" _"+i+"_"+o.idx+u+f).wrapInner("<div id='mCSB_"+o.idx+"' class='mCustomScrollBox mCS-"+s.theme+" "+l+"'><div id='mCSB_"+o.idx+"_container' class='mCSB_container' style='position:relative; top:"+s.setTop+"; left:"+s.setLeft+";' dir='"+o.langDir+"' /></div>");var m=e("#mCSB_"+o.idx),p=e("#mCSB_"+o.idx+"_container");"y"===s.axis||s.advanced.autoExpandHorizontalScroll||p.css("width",v(p)),"outside"===s.scrollbarPosition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),m.addClass("mCSB_outside").after(c)):(m.addClass("mCSB_inside").append(c),p.wrap(h)),_.call(this);var g=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];g[0].css("min-height",g[0].height()),g[1].css("min-width",g[1].width())},v=function(t){var a=[t[0].scrollWidth,Math.max.apply(Math,t.children().map(function(){return e(this).outerWidth(!0)}).get())],i=t.parent().width();return a[0]>i?a[0]:a[1]>i?a[1]:"100%"},w=function(){var t=e(this),a=t.data(i),o=a.opt,s=e("#mCSB_"+a.idx+"_container");if(o.advanced.autoExpandHorizontalScroll&&"y"!==o.axis){s.css({width:"auto","min-width":0,"overflow-x":"scroll"});var n=Math.ceil(s[0].scrollWidth);3===o.advanced.autoExpandHorizontalScroll||2!==o.advanced.autoExpandHorizontalScroll&&n>s.parent().width()?s.css({width:n,"min-width":"100%","overflow-x":"inherit"}):s.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(s[0].getBoundingClientRect().right+.4)-Math.floor(s[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},_=function(){var t=e(this),a=t.data(i),o=a.opt,s=e(".mCSB_"+a.idx+"_scrollbar:first"),n=te(o.scrollButtons.tabindex)?"tabindex='"+o.scrollButtons.tabindex+"'":"",r=["<a href='#' class='"+d[13]+"' "+n+" />","<a href='#' class='"+d[14]+"' "+n+" />","<a href='#' class='"+d[15]+"' "+n+" />","<a href='#' class='"+d[16]+"' "+n+" />"],l=["x"===o.axis?r[2]:r[0],"x"===o.axis?r[3]:r[1],r[2],r[3]];o.scrollButtons.enable&&s.prepend(l[0]).append(l[1]).next(".mCSB_scrollTools").prepend(l[2]).append(l[3])},S=function(){var t=e(this),a=t.data(i),o=e("#mCSB_"+a.idx),s=e("#mCSB_"+a.idx+"_container"),n=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")],r=[o.height()/s.outerHeight(!1),o.width()/s.outerWidth(!1)],c=[parseInt(n[0].css("min-height")),Math.round(r[0]*n[0].parent().height()),parseInt(n[1].css("min-width")),Math.round(r[1]*n[1].parent().width())],d=l&&c[1]<c[0]?c[0]:c[1],h=l&&c[3]<c[2]?c[2]:c[3];n[0].css({height:d,"max-height":n[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":c[0]+"px"}),n[1].css({width:h,"max-width":n[1].parent().width()-10})},b=function(){var t=e(this),a=t.data(i),o=e("#mCSB_"+a.idx),s=e("#mCSB_"+a.idx+"_container"),n=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")],r=[s.outerHeight(!1)-o.height(),s.outerWidth(!1)-o.width()],l=[r[0]/(n[0].parent().height()-n[0].height()),r[1]/(n[1].parent().width()-n[1].width())];a.scrollRatio={y:l[0],x:l[1]}},y=function(e,t,a){var i=a?d[0]+"_expanded":"",o=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(d[0]+" "+i),o.toggleClass(d[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(d[0]),o.removeClass(d[1])):(e.addClass(d[0]),o.addClass(d[1])))},C=function(){var t=e(this),a=t.data(i),o=e("#mCSB_"+a.idx),s=e("#mCSB_"+a.idx+"_container"),n=null==a.overflowed?s.height():s.outerHeight(!1),r=null==a.overflowed?s.width():s.outerWidth(!1),l=s[0].scrollHeight,c=s[0].scrollWidth;return l>n&&(n=l),c>r&&(r=c),[n>o.height(),r>o.width()]},j=function(){var t=e(this),a=t.data(i),o=a.opt,s=e("#mCSB_"+a.idx),n=e("#mCSB_"+a.idx+"_container"),r=[e("#mCSB_"+a.idx+"_dragger_vertical"),e("#mCSB_"+a.idx+"_dragger_horizontal")];if(V(t),("x"!==o.axis&&!a.overflowed[0]||"y"===o.axis&&a.overflowed[0])&&(r[0].add(n).css("top",0),Q(t,"_resetY")),"y"!==o.axis&&!a.overflowed[1]||"x"===o.axis&&a.overflowed[1]){var l=dx=0;"rtl"===a.langDir&&(l=s.width()-n.outerWidth(!1),dx=Math.abs(l/a.scrollRatio.x)),n.css("left",l),r[1].css("left",dx),Q(t,"_resetX")}},B=function(){var t,a=e(this),o=a.data(i),s=o.opt;o.bindEvents||(D.call(this),s.contentTouchScroll&&O.call(this),I.call(this),s.mouseWheel.enable&&function i(){t=setTimeout(function(){e.event.special.mousewheel?(clearTimeout(t),E.call(a[0])):i()},100)}(),z.call(this),P.call(this),s.advanced.autoScrollOnFocus&&H.call(this),s.scrollButtons.enable&&X.call(this),s.keyboard.enable&&Y.call(this),o.bindEvents=!0)},T=function(){var t=e(this),a=t.data(i),o=a.opt,s=i+"_"+a.idx,n=".mCSB_"+a.idx+"_scrollbar",r=e("#mCSB_"+a.idx+",#mCSB_"+a.idx+"_container,#mCSB_"+a.idx+"_container_wrapper,"+n+" ."+d[12]+",#mCSB_"+a.idx+"_dragger_vertical,#mCSB_"+a.idx+"_dragger_horizontal,"+n+">a"),l=e("#mCSB_"+a.idx+"_container");o.advanced.releaseDraggableSelectors&&r.add(e(o.advanced.releaseDraggableSelectors)),o.advanced.extraDraggableSelectors&&r.add(e(o.advanced.extraDraggableSelectors)),a.bindEvents&&(e(document).add(e(!L()||top.document)).unbind("."+s),r.each(function(){e(this).unbind("."+s)}),clearTimeout(t[0]._focusTimeout),K(t[0],"_focusTimeout"),clearTimeout(a.sequential.step),K(a.sequential,"step"),clearTimeout(l[0].onCompleteTimeout),K(l[0],"onCompleteTimeout"),a.bindEvents=!1)},M=function(t){var a=e(this),o=a.data(i),s=o.opt,n=e("#mCSB_"+o.idx+"_container_wrapper"),r=n.length?n:e("#mCSB_"+o.idx+"_container"),l=[e("#mCSB_"+o.idx+"_scrollbar_vertical"),e("#mCSB_"+o.idx+"_scrollbar_horizontal")],c=[l[0].find(".mCSB_dragger"),l[1].find(".mCSB_dragger")];"x"!==s.axis&&(o.overflowed[0]&&!t?(l[0].add(c[0]).add(l[0].children("a")).css("display","block"),r.removeClass(d[8]+" "+d[10])):(s.alwaysShowScrollbar?(2!==s.alwaysShowScrollbar&&c[0].css("display","none"),r.removeClass(d[10])):(l[0].css("display","none"),r.addClass(d[10])),r.addClass(d[8]))),"y"!==s.axis&&(o.overflowed[1]&&!t?(l[1].add(c[1]).add(l[1].children("a")).css("display","block"),r.removeClass(d[9]+" "+d[11])):(s.alwaysShowScrollbar?(2!==s.alwaysShowScrollbar&&c[1].css("display","none"),r.removeClass(d[11])):(l[1].css("display","none"),r.addClass(d[11])),r.addClass(d[9]))),o.overflowed[0]||o.overflowed[1]?a.removeClass(d[5]):a.addClass(d[5])},k=function(t){var a=t.type,i=t.target.ownerDocument!==document&&null!==frameElement?[e(frameElement).offset().top,e(frameElement).offset().left]:null,o=L()&&t.target.ownerDocument!==top.document&&null!==frameElement?[e(t.view.frameElement).offset().top,e(t.view.frameElement).offset().left]:[0,0];switch(a){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return i?[t.originalEvent.pageY-i[0]+o[0],t.originalEvent.pageX-i[1]+o[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var s=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],n=t.originalEvent.touches.length||t.originalEvent.changedTouches.length;return t.target.ownerDocument!==document?[s.screenY,s.screenX,n>1]:[s.pageY,s.pageX,n>1];default:return i?[t.pageY-i[0]+o[0],t.pageX-i[1]+o[1],!1]:[t.pageY,t.pageX,!1]}},D=function(){function t(e,t,i,o){if(f[0].idleTimer=d.scrollInertia<233?250:0,a.attr("id")===u[1])var s="x",l=(a[0].offsetLeft-t+o)*r.scrollRatio.x;else var s="y",l=(a[0].offsetTop-e+i)*r.scrollRatio.y;Q(n,l.toString(),{dir:s,drag:!0})}var a,o,s,n=e(this),r=n.data(i),d=r.opt,h=i+"_"+r.idx,u=["mCSB_"+r.idx+"_dragger_vertical","mCSB_"+r.idx+"_dragger_horizontal"],f=e("#mCSB_"+r.idx+"_container"),m=e("#"+u[0]+",#"+u[1]),p=d.advanced.releaseDraggableSelectors?m.add(e(d.advanced.releaseDraggableSelectors)):m,g=d.advanced.extraDraggableSelectors?e(!L()||top.document).add(e(d.advanced.extraDraggableSelectors)):e(!L()||top.document);m.bind("contextmenu."+h,function(e){e.preventDefault()}).bind("mousedown."+h+" touchstart."+h+" pointerdown."+h+" MSPointerDown."+h,function(t){if(t.stopImmediatePropagation(),t.preventDefault(),$(t)){c=!0,l&&(document.onselectstart=function(){return!1}),R.call(f,!1),V(n);var i=(a=e(this)).offset(),r=k(t)[0]-i.top,h=k(t)[1]-i.left,u=a.height()+i.top,m=a.width()+i.left;u>r&&r>0&&m>h&&h>0&&(o=r,s=h),y(a,"active",d.autoExpandScrollbar)}}).bind("touchmove."+h,function(e){e.stopImmediatePropagation(),e.preventDefault();var i=a.offset(),n=k(e)[0]-i.top,r=k(e)[1]-i.left;t(o,s,n,r)}),e(document).add(g).bind("mousemove."+h+" pointermove."+h+" MSPointerMove."+h,function(e){if(a){var i=a.offset(),n=k(e)[0]-i.top,r=k(e)[1]-i.left;if(o===n&&s===r)return;t(o,s,n,r)}}).add(p).bind("mouseup."+h+" touchend."+h+" pointerup."+h+" MSPointerUp."+h,function(){a&&(y(a,"active",d.autoExpandScrollbar),a=null),c=!1,l&&(document.onselectstart=null),R.call(f,!0)})},O=function(){function a(e){if(!ee(e)||c||k(e)[2])t=0;else{t=1,b=0,y=0,d=1,C.removeClass("mCS_touch_action");var a=D.offset();h=k(e)[0]-a.top,u=k(e)[1]-a.left,A=[k(e)[0],k(e)[1]]}}function o(e){if(ee(e)&&!c&&!k(e)[2]&&(B.documentTouchScroll||e.preventDefault(),e.stopImmediatePropagation(),(!y||b)&&d)){g=J();var t=M.offset(),a=k(e)[0]-t.top,i=k(e)[1]-t.left,o="mcsLinearOut";if(I.push(a),E.push(i),A[2]=Math.abs(k(e)[0]-A[0]),A[3]=Math.abs(k(e)[1]-A[1]),j.overflowed[0])var s=O[0].parent().height()-O[0].height(),n=h-a>0&&a-h>-s*j.scrollRatio.y&&(2*A[3]<A[2]||"yx"===B.axis);if(j.overflowed[1])var r=O[1].parent().width()-O[1].width(),f=u-i>0&&i-u>-r*j.scrollRatio.x&&(2*A[2]<A[3]||"yx"===B.axis);n||f?(P||e.preventDefault(),b=1):(y=1,C.addClass("mCS_touch_action")),P&&e.preventDefault(),_="yx"===B.axis?[h-a,u-i]:"x"===B.axis?[null,u-i]:[h-a,null],D[0].idleTimer=250,j.overflowed[0]&&l(_[0],W,o,"y","all",!0),j.overflowed[1]&&l(_[1],W,o,"x",R,!0)}}function s(e){if(!ee(e)||c||k(e)[2])t=0;else{t=1,e.stopImmediatePropagation(),V(C),p=J();var a=M.offset();f=k(e)[0]-a.top,m=k(e)[1]-a.left,I=[],E=[]}}function n(e){if(ee(e)&&!c&&!k(e)[2]){d=0,e.stopImmediatePropagation(),b=0,y=0,x=J();var t=M.offset(),a=k(e)[0]-t.top,i=k(e)[1]-t.left;if(!(x-g>30)){var o="mcsEaseOut",s=2.5>(w=1e3/(x-p)),n=s?[I[I.length-2],E[E.length-2]]:[0,0];v=s?[a-n[0],i-n[1]]:[a-f,i-m];var h=[Math.abs(v[0]),Math.abs(v[1])];w=s?[Math.abs(v[0]/4),Math.abs(v[1]/4)]:[w,w];var u=[Math.abs(D[0].offsetTop)-v[0]*r(h[0]/w[0],w[0]),Math.abs(D[0].offsetLeft)-v[1]*r(h[1]/w[1],w[1])];_="yx"===B.axis?[u[0],u[1]]:"x"===B.axis?[null,u[1]]:[u[0],null],S=[4*h[0]+B.scrollInertia,4*h[1]+B.scrollInertia];var C=parseInt(B.contentTouchScroll)||0;_[0]=h[0]>C?_[0]:0,_[1]=h[1]>C?_[1]:0,j.overflowed[0]&&l(_[0],S[0],o,"y",R,!1),j.overflowed[1]&&l(_[1],S[1],o,"x",R,!1)}}}function r(e,t){var a=[1.5*t,2*t,t/1.5,t/2];return e>90?t>4?a[0]:a[3]:e>60?t>3?a[3]:a[2]:e>30?t>8?a[1]:t>6?a[0]:t>4?t:a[2]:t>8?t:a[3]}function l(e,t,a,i,o,s){e&&Q(C,e.toString(),{dur:t,scrollEasing:a,dir:i,overwrite:o,drag:s})}var d,h,u,f,m,p,g,x,v,w,_,S,b,y,C=e(this),j=C.data(i),B=j.opt,T=i+"_"+j.idx,M=e("#mCSB_"+j.idx),D=e("#mCSB_"+j.idx+"_container"),O=[e("#mCSB_"+j.idx+"_dragger_vertical"),e("#mCSB_"+j.idx+"_dragger_horizontal")],I=[],E=[],W=0,R="yx"===B.axis?"none":"all",A=[],z=D.find("iframe"),H=["touchstart."+T+" pointerdown."+T+" MSPointerDown."+T,"touchmove."+T+" pointermove."+T+" MSPointerMove."+T,"touchend."+T+" pointerup."+T+" MSPointerUp."+T],P=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;D.bind(H[0],function(e){a(e)}).bind(H[1],function(e){o(e)}),M.bind(H[0],function(e){s(e)}).bind(H[2],function(e){n(e)}),z.length&&z.each(function(){e(this).bind("load",function(){L(this)&&e(this.contentDocument||this.contentWindow.document).bind(H[0],function(e){a(e),s(e)}).bind(H[1],function(e){o(e)}).bind(H[2],function(e){n(e)})})})},I=function(){function a(e,t,a){l.type=a&&o?"stepped":"stepless",l.scrollAmount=10,U(s,e,t,"mcsLinearOut",a?60:null)}var o,s=e(this),n=s.data(i),r=n.opt,l=n.sequential,d=i+"_"+n.idx,h=e("#mCSB_"+n.idx+"_container"),u=h.parent();h.bind("mousedown."+d,function(){t||o||(o=1,c=!0)}).add(document).bind("mousemove."+d,function(e){if(!t&&o&&(window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type&&document.selection.createRange().text)){var i=h.offset(),s=k(e)[0]-i.top+h[0].offsetTop,c=k(e)[1]-i.left+h[0].offsetLeft;s>0&&s<u.height()&&c>0&&c<u.width()?l.step&&a("off",null,"stepped"):("x"!==r.axis&&n.overflowed[0]&&(0>s?a("on",38):s>u.height()&&a("on",40)),"y"!==r.axis&&n.overflowed[1]&&(0>c?a("on",37):c>u.width()&&a("on",39)))}}).bind("mouseup."+d+" dragend."+d,function(){t||(o&&(o=0,a("off",null)),c=!1)})},E=function(){function t(t,i){if(V(a),!A(a,t.target)){var n="auto"!==s.mouseWheel.deltaFactor?parseInt(s.mouseWheel.deltaFactor):l&&t.deltaFactor<100?100:t.deltaFactor||100,d=s.scrollInertia;if("x"===s.axis||"x"===s.mouseWheel.axis)var h="x",u=[Math.round(n*o.scrollRatio.x),parseInt(s.mouseWheel.scrollAmount)],f="auto"!==s.mouseWheel.scrollAmount?u[1]:u[0]>=r.width()?.9*r.width():u[0],m=Math.abs(e("#mCSB_"+o.idx+"_container")[0].offsetLeft),p=c[1][0].offsetLeft,g=c[1].parent().width()-c[1].width(),x="y"===s.mouseWheel.axis?t.deltaY||i:t.deltaX;else var h="y",u=[Math.round(n*o.scrollRatio.y),parseInt(s.mouseWheel.scrollAmount)],f="auto"!==s.mouseWheel.scrollAmount?u[1]:u[0]>=r.height()?.9*r.height():u[0],m=Math.abs(e("#mCSB_"+o.idx+"_container")[0].offsetTop),p=c[0][0].offsetTop,g=c[0].parent().height()-c[0].height(),x=t.deltaY||i;"y"===h&&!o.overflowed[0]||"x"===h&&!o.overflowed[1]||((s.mouseWheel.invert||t.webkitDirectionInvertedFromDevice)&&(x=-x),s.mouseWheel.normalizeDelta&&(x=0>x?-1:1),(x>0&&0!==p||0>x&&p!==g||s.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),t.deltaFactor<5&&!s.mouseWheel.normalizeDelta&&(f=t.deltaFactor,d=17),Q(a,(m-x*f).toString(),{dir:h,dur:d}))}}if(e(this).data(i)){var a=e(this),o=a.data(i),s=o.opt,n=i+"_"+o.idx,r=e("#mCSB_"+o.idx),c=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],d=e("#mCSB_"+o.idx+"_container").find("iframe");d.length&&d.each(function(){e(this).bind("load",function(){L(this)&&e(this.contentDocument||this.contentWindow.document).bind("mousewheel."+n,function(e,a){t(e,a)})})}),r.bind("mousewheel."+n,function(e,a){t(e,a)})}},W=new Object,L=function(t){var a=!1,i=!1,o=null;if(void 0===t?i="#empty":void 0!==e(t).attr("id")&&(i=e(t).attr("id")),!1!==i&&void 0!==W[i])return W[i];if(t){try{var s=t.contentDocument||t.contentWindow.document;o=s.body.innerHTML}catch(e){}a=null!==o}else{try{var s=top.document;o=s.body.innerHTML}catch(e){}a=null!==o}return!1!==i&&(W[i]=a),a},R=function(e){var t=this.find("iframe");if(t.length){var a=e?"auto":"none";t.css("pointer-events",a)}},A=function(t,a){var o=a.nodeName.toLowerCase(),s=t.data(i).opt.mouseWheel.disableOver;return e.inArray(o,s)>-1&&!(e.inArray(o,["select","textarea"])>-1&&!e(a).is(":focus"))},z=function(){var t,a=e(this),o=a.data(i),s=i+"_"+o.idx,n=e("#mCSB_"+o.idx+"_container"),r=n.parent(),l=e(".mCSB_"+o.idx+"_scrollbar ."+d[12]);l.bind("mousedown."+s+" touchstart."+s+" pointerdown."+s+" MSPointerDown."+s,function(a){c=!0,e(a.target).hasClass("mCSB_dragger")||(t=1)}).bind("touchend."+s+" pointerup."+s+" MSPointerUp."+s,function(){c=!1}).bind("click."+s,function(i){if(t&&(t=0,e(i.target).hasClass(d[12])||e(i.target).hasClass("mCSB_draggerRail"))){V(a);var s=e(this),l=s.find(".mCSB_dragger");if(s.parent(".mCSB_scrollTools_horizontal").length>0){if(!o.overflowed[1])return;var c="x",h=i.pageX>l.offset().left?-1:1,u=Math.abs(n[0].offsetLeft)-h*(.9*r.width())}else{if(!o.overflowed[0])return;var c="y",h=i.pageY>l.offset().top?-1:1,u=Math.abs(n[0].offsetTop)-h*(.9*r.height())}Q(a,u.toString(),{dir:c,scrollEasing:"mcsEaseInOut"})}})},H=function(){var t=e(this),a=t.data(i),o=a.opt,s=i+"_"+a.idx,n=e("#mCSB_"+a.idx+"_container"),r=n.parent();n.bind("focusin."+s,function(){var a=e(document.activeElement),i=n.find(".mCustomScrollBox").length;a.is(o.advanced.autoScrollOnFocus)&&(V(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=i?17*i:0,t[0]._focusTimeout=setTimeout(function(){var e=[ae(a)[0],ae(a)[1]],i=[n[0].offsetTop,n[0].offsetLeft],s=[i[0]+e[0]>=0&&i[0]+e[0]<r.height()-a.outerHeight(!1),i[1]+e[1]>=0&&i[0]+e[1]<r.width()-a.outerWidth(!1)],l="yx"!==o.axis||s[0]||s[1]?"all":"none";"x"===o.axis||s[0]||Q(t,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:l,dur:0}),"y"===o.axis||s[1]||Q(t,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:l,dur:0})},t[0]._focusTimer))})},P=function(){var t=e(this),a=t.data(i),o=i+"_"+a.idx,s=e("#mCSB_"+a.idx+"_container").parent();s.bind("scroll."+o,function(){0===s.scrollTop()&&0===s.scrollLeft()||e(".mCSB_"+a.idx+"_scrollbar").css("visibility","hidden")})},X=function(){var t=e(this),a=t.data(i),o=a.opt,s=a.sequential,n=i+"_"+a.idx,r=".mCSB_"+a.idx+"_scrollbar",l=e(r+">a");l.bind("contextmenu."+n,function(e){e.preventDefault()}).bind("mousedown."+n+" touchstart."+n+" pointerdown."+n+" MSPointerDown."+n+" mouseup."+n+" touchend."+n+" pointerup."+n+" MSPointerUp."+n+" mouseout."+n+" pointerout."+n+" MSPointerOut."+n+" click."+n,function(i){function n(e,a){s.scrollAmount=o.scrollButtons.scrollAmount,U(t,e,a)}if(i.preventDefault(),$(i)){var r=e(this).attr("class");switch(s.type=o.scrollButtons.scrollType,i.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===s.type)return;c=!0,a.tweenRunning=!1,n("on",r);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===s.type)return;c=!1,s.dir&&n("off",r);break;case"click":if("stepped"!==s.type||a.tweenRunning)return;n("on",r)}}})},Y=function(){function t(t){function i(e,t){n.type=s.keyboard.scrollType,n.scrollAmount=s.keyboard.scrollAmount,"stepped"===n.type&&o.tweenRunning||U(a,e,t)}switch(t.type){case"blur":o.tweenRunning&&n.dir&&i("off",null);break;case"keydown":case"keyup":var r=t.keyCode?t.keyCode:t.which,l="on";if("x"!==s.axis&&(38===r||40===r)||"y"!==s.axis&&(37===r||39===r)){if((38===r||40===r)&&!o.overflowed[0]||(37===r||39===r)&&!o.overflowed[1])return;"keyup"===t.type&&(l="off"),e(document.activeElement).is(h)||(t.preventDefault(),t.stopImmediatePropagation(),i(l,r))}else if(33===r||34===r){if((o.overflowed[0]||o.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type){V(a);var u=34===r?-1:1;if("x"===s.axis||"yx"===s.axis&&o.overflowed[1]&&!o.overflowed[0])var f="x",m=Math.abs(c[0].offsetLeft)-u*(.9*d.width());else var f="y",m=Math.abs(c[0].offsetTop)-u*(.9*d.height());Q(a,m.toString(),{dir:f,scrollEasing:"mcsEaseInOut"})}}else if((35===r||36===r)&&!e(document.activeElement).is(h)&&((o.overflowed[0]||o.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type)){if("x"===s.axis||"yx"===s.axis&&o.overflowed[1]&&!o.overflowed[0])var f="x",m=35===r?Math.abs(d.width()-c.outerWidth(!1)):0;else var f="y",m=35===r?Math.abs(d.height()-c.outerHeight(!1)):0;Q(a,m.toString(),{dir:f,scrollEasing:"mcsEaseInOut"})}}}var a=e(this),o=a.data(i),s=o.opt,n=o.sequential,r=i+"_"+o.idx,l=e("#mCSB_"+o.idx),c=e("#mCSB_"+o.idx+"_container"),d=c.parent(),h="input,textarea,select,datalist,keygen,[contenteditable='true']",u=c.find("iframe"),f=["blur."+r+" keydown."+r+" keyup."+r];u.length&&u.each(function(){e(this).bind("load",function(){L(this)&&e(this.contentDocument||this.contentWindow.document).bind(f[0],function(e){t(e)})})}),l.attr("tabindex","0").bind(f[0],function(e){t(e)})},U=function(t,a,o,s,n){function r(e){c.snapAmount&&(h.scrollAmount=c.snapAmount instanceof Array?"x"===h.dir[0]?c.snapAmount[1]:c.snapAmount[0]:c.snapAmount);var a="stepped"!==h.type,i=n||(e?a?m/1.5:p:1e3/60),o=e?a?7.5:40:2.5,d=[Math.abs(u[0].offsetTop),Math.abs(u[0].offsetLeft)],f=[l.scrollRatio.y>10?10:l.scrollRatio.y,l.scrollRatio.x>10?10:l.scrollRatio.x],g="x"===h.dir[0]?d[1]+h.dir[1]*(f[1]*o):d[0]+h.dir[1]*(f[0]*o),x="x"===h.dir[0]?d[1]+h.dir[1]*parseInt(h.scrollAmount):d[0]+h.dir[1]*parseInt(h.scrollAmount),v="auto"!==h.scrollAmount?x:g,w=s||(e?a?"mcsLinearOut":"mcsEaseInOut":"mcsLinear"),_=!!e;return e&&17>i&&(v="x"===h.dir[0]?d[1]:d[0]),Q(t,v.toString(),{dir:h.dir[0],scrollEasing:w,dur:i,onComplete:_}),e?void(h.dir=!1):(clearTimeout(h.step),void(h.step=setTimeout(function(){r()},i)))}var l=t.data(i),c=l.opt,h=l.sequential,u=e("#mCSB_"+l.idx+"_container"),f="stepped"===h.type,m=c.scrollInertia<26?26:c.scrollInertia,p=c.scrollInertia<1?17:c.scrollInertia;switch(a){case"on":if(h.dir=[o===d[16]||o===d[15]||39===o||37===o?"x":"y",o===d[13]||o===d[15]||38===o||37===o?-1:1],V(t),te(o)&&"stepped"===h.type)return;r(f);break;case"off":clearTimeout(h.step),K(h,"step"),V(t),(f||l.tweenRunning&&h.dir)&&r(!0)}},F=function(t){var a=e(this).data(i).opt,o=[];return"function"==typeof t&&(t=t()),t instanceof Array?o=t.length>1?[t[0],t[1]]:"x"===a.axis?[null,t[0]]:[t[0],null]:(o[0]=t.y?t.y:t.x||"x"===a.axis?null:t,o[1]=t.x?t.x:t.y||"y"===a.axis?null:t),"function"==typeof o[0]&&(o[0]=o[0]()),"function"==typeof o[1]&&(o[1]=o[1]()),o},q=function(t,a){if(null!=t&&void 0!==t){var o=e(this),s=o.data(i),n=s.opt,r=e("#mCSB_"+s.idx+"_container"),l=r.parent(),c=typeof t;a||(a="x"===n.axis?"x":"y");var d="x"===a?r.outerWidth(!1)-l.width():r.outerHeight(!1)-l.height(),u="x"===a?r[0].offsetLeft:r[0].offsetTop,f="x"===a?"left":"top";switch(c){case"function":return t();case"object":var m=t.jquery?t:e(t);if(!m.length)return;return"x"===a?ae(m)[1]:ae(m)[0];case"string":case"number":if(te(t))return Math.abs(t);if(-1!==t.indexOf("%"))return Math.abs(d*parseInt(t)/100);if(-1!==t.indexOf("-="))return Math.abs(u-parseInt(t.split("-=")[1]));if(-1!==t.indexOf("+=")){var p=u+parseInt(t.split("+=")[1]);return p>=0?0:Math.abs(p)}if(-1!==t.indexOf("px")&&te(t.split("px")[0]))return Math.abs(t.split("px")[0]);if("top"===t||"left"===t)return 0;if("bottom"===t)return Math.abs(l.height()-r.outerHeight(!1));if("right"===t)return Math.abs(l.width()-r.outerWidth(!1));if("first"===t||"last"===t){var m=r.find(":"+t);return"x"===a?ae(m)[1]:ae(m)[0]}return e(t).length?"x"===a?ae(e(t))[1]:ae(e(t))[0]:(r.css(f,t),void h.update.call(null,o[0]))}}},N=function(t){function a(e){clearTimeout(r[0].autoUpdate),h.update.call(null,o[0],e)}var o=e(this),s=o.data(i),n=s.opt,r=e("#mCSB_"+s.idx+"_container");return t?(clearTimeout(r[0].autoUpdate),void K(r[0],"autoUpdate")):void function t(){return clearTimeout(r[0].autoUpdate),0===o.parents("html").length?void(o=null):void(r[0].autoUpdate=setTimeout(function(){return n.advanced.updateOnSelectorChange&&(s.poll.change.n=function(){!0===n.advanced.updateOnSelectorChange&&(n.advanced.updateOnSelectorChange="*");var e=0,t=r.find(n.advanced.updateOnSelectorChange);return n.advanced.updateOnSelectorChange&&t.length>0&&t.each(function(){e+=this.offsetHeight+this.offsetWidth}),e}(),s.poll.change.n!==s.poll.change.o)?(s.poll.change.o=s.poll.change.n,void a(3)):n.advanced.updateOnContentResize&&(s.poll.size.n=o[0].scrollHeight+o[0].scrollWidth+r[0].offsetHeight+o[0].offsetHeight+o[0].offsetWidth,s.poll.size.n!==s.poll.size.o)?(s.poll.size.o=s.poll.size.n,void a(1)):!n.advanced.updateOnImageLoad||"auto"===n.advanced.updateOnImageLoad&&"y"===n.axis||(s.poll.img.n=r.find("img").length,s.poll.img.n===s.poll.img.o)?void((n.advanced.updateOnSelectorChange||n.advanced.updateOnContentResize||n.advanced.updateOnImageLoad)&&t()):(s.poll.img.o=s.poll.img.n,void r.find("img").each(function(){!function(t){if(e(t).hasClass(d[2]))a();else{var i=new Image;i.onload=function(e,t){return function(){return t.apply(e,arguments)}}(i,function(){this.onload=null,e(t).addClass(d[2]),a(2)}),i.src=t.src}}(this)}))},n.advanced.autoUpdateTimeout))}()},V=function(t){var a=t.data(i),o=e("#mCSB_"+a.idx+"_container,#mCSB_"+a.idx+"_container_wrapper,#mCSB_"+a.idx+"_dragger_vertical,#mCSB_"+a.idx+"_dragger_horizontal");o.each(function(){G.call(this)})},Q=function(t,a,o){function s(e){return r&&l.callbacks[e]&&"function"==typeof l.callbacks[e]}function n(){var e=[u[0].offsetTop,u[0].offsetLeft],a=[x[0].offsetTop,x[0].offsetLeft],i=[u.outerHeight(!1),u.outerWidth(!1)],s=[h.height(),h.width()];t[0].mcs={content:u,top:e[0],left:e[1],draggerTop:a[0],draggerLeft:a[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(i[0])-s[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(i[1])-s[1])),direction:o.dir}}var r=t.data(i),l=r.opt,c={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:l.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},o=e.extend(c,o),d=[o.dur,o.drag?0:o.dur],h=e("#mCSB_"+r.idx),u=e("#mCSB_"+r.idx+"_container"),f=u.parent(),m=l.callbacks.onTotalScrollOffset?F.call(t,l.callbacks.onTotalScrollOffset):[0,0],p=l.callbacks.onTotalScrollBackOffset?F.call(t,l.callbacks.onTotalScrollBackOffset):[0,0];if(r.trigger=o.trigger,0===f.scrollTop()&&0===f.scrollLeft()||(e(".mCSB_"+r.idx+"_scrollbar").css("visibility","visible"),f.scrollTop(0).scrollLeft(0)),"_resetY"!==a||r.contentReset.y||(s("onOverflowYNone")&&l.callbacks.onOverflowYNone.call(t[0]),r.contentReset.y=1),"_resetX"!==a||r.contentReset.x||(s("onOverflowXNone")&&l.callbacks.onOverflowXNone.call(t[0]),r.contentReset.x=1),"_resetY"!==a&&"_resetX"!==a){if(!r.contentReset.y&&t[0].mcs||!r.overflowed[0]||(s("onOverflowY")&&l.callbacks.onOverflowY.call(t[0]),r.contentReset.x=null),!r.contentReset.x&&t[0].mcs||!r.overflowed[1]||(s("onOverflowX")&&l.callbacks.onOverflowX.call(t[0]),r.contentReset.x=null),l.snapAmount){var g=l.snapAmount instanceof Array?"x"===o.dir?l.snapAmount[1]:l.snapAmount[0]:l.snapAmount;a=function(e,t,a){return Math.round(e/t)*t-a}(a,g,l.snapOffset)}switch(o.dir){case"x":var x=e("#mCSB_"+r.idx+"_dragger_horizontal"),v="left",w=u[0].offsetLeft,_=[h.width()-u.outerWidth(!1),x.parent().width()-x.width()],S=[a,0===a?0:a/r.scrollRatio.x],b=m[1],C=p[1],j=b>0?b/r.scrollRatio.x:0,B=C>0?C/r.scrollRatio.x:0;break;case"y":var x=e("#mCSB_"+r.idx+"_dragger_vertical"),v="top",w=u[0].offsetTop,_=[h.height()-u.outerHeight(!1),x.parent().height()-x.height()],S=[a,0===a?0:a/r.scrollRatio.y],b=m[0],C=p[0],j=b>0?b/r.scrollRatio.y:0,B=C>0?C/r.scrollRatio.y:0}S[1]<0||0===S[0]&&0===S[1]?S=[0,0]:S[1]>=_[1]?S=[_[0],_[1]]:S[0]=-S[0],t[0].mcs||(n(),s("onInit")&&l.callbacks.onInit.call(t[0])),clearTimeout(u[0].onCompleteTimeout),Z(x[0],v,Math.round(S[1]),d[1],o.scrollEasing),!r.tweenRunning&&(0===w&&S[0]>=0||w===_[0]&&S[0]<=_[0])||Z(u[0],v,Math.round(S[0]),d[0],o.scrollEasing,o.overwrite,{onStart:function(){o.callbacks&&o.onStart&&!r.tweenRunning&&(s("onScrollStart")&&(n(),l.callbacks.onScrollStart.call(t[0])),r.tweenRunning=!0,y(x),r.cbOffsets=[l.callbacks.alwaysTriggerOffsets||w>=_[0]+b,l.callbacks.alwaysTriggerOffsets||-C>=w])},onUpdate:function(){o.callbacks&&o.onUpdate&&s("whileScrolling")&&(n(),l.callbacks.whileScrolling.call(t[0]))},onComplete:function(){if(o.callbacks&&o.onComplete){"yx"===l.axis&&clearTimeout(u[0].onCompleteTimeout);var e=u[0].idleTimer||0;u[0].onCompleteTimeout=setTimeout(function(){s("onScroll")&&(n(),l.callbacks.onScroll.call(t[0])),s("onTotalScroll")&&S[1]>=_[1]-j&&r.cbOffsets[0]&&(n(),l.callbacks.onTotalScroll.call(t[0])),s("onTotalScrollBack")&&S[1]<=B&&r.cbOffsets[1]&&(n(),l.callbacks.onTotalScrollBack.call(t[0])),r.tweenRunning=!1,u[0].idleTimer=0,y(x,"hide")},e)}}})}},Z=function(e,t,a,i,o,s,n){function r(){v.stop||(p||h.call(),p=J()-m,l(),p>=v.time&&(v.time=p>v.time?p+c-(p-v.time):p+c-1,v.time<p+1&&(v.time=p+1)),v.time<i?v.id=d(r):f.call())}function l(){i>0?(v.currVal=function(e,t,a,i,o){switch(o){case"linear":case"mcsLinear":return a*e/i+t;case"mcsLinearOut":return e/=i,e--,a*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return 1>(e/=i/2)?a/2*e*e+t:-a/2*(--e*(e-2)-1)+t;case"easeInOutStrong":return 1>(e/=i/2)?a/2*Math.pow(2,10*(e-1))+t:(e--,a/2*(2-Math.pow(2,-10*e))+t);case"easeInOut":case"mcsEaseInOut":return 1>(e/=i/2)?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t;case"easeOutSmooth":return e/=i,-a*(--e*e*e*e-1)+t;case"easeOutStrong":return a*(1-Math.pow(2,-10*e/i))+t;case"easeOut":case"mcsEaseOut":default:var s=(e/=i)*e,n=s*e;return t+a*(.499999999999997*n*s+-2.5*s*s+5.5*n+-6.5*s+4*e)}}(v.time,g,w,i,o),x[t]=Math.round(v.currVal)+"px"):x[t]=a+"px",u.call()}e._mTween||(e._mTween={top:{},left:{}});var c,d,n=n||{},h=n.onStart||function(){},u=n.onUpdate||function(){},f=n.onComplete||function(){},m=J(),p=0,g=e.offsetTop,x=e.style,v=e._mTween[t];"left"===t&&(g=e.offsetLeft);var w=a-g;v.stop=0,"none"!==s&&null!=v.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(v.id):clearTimeout(v.id),v.id=null),c=1e3/60,v.time=p+c,d=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return l(),setTimeout(e,.01)},v.id=d(r)},J=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},G=function(){var e=this;e._mTween||(e._mTween={top:{},left:{}});for(var t=["top","left"],a=0;a<t.length;a++){var i=t[a];e._mTween[i].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._mTween[i].id):clearTimeout(e._mTween[i].id),e._mTween[i].id=null,e._mTween[i].stop=1)}},K=function(e,t){try{delete e[t]}catch(a){e[t]=null}},$=function(e){return!(e.which&&1!==e.which)},ee=function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},te=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ae=function(e){var t=e.parents(".mCSB_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]},ie=function(){var e=function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}();return!!e&&document[e]};e.fn[a]=function(t){return h[t]?h[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):h.init.apply(this,arguments)},e[a]=function(t){return h[t]?h[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):h.init.apply(this,arguments)},e[a].defaults=s,window[a]=!0,e(window).bind("load",function(){e(o)[a](),e.extend(e.expr[":"],{mcsInView:e.expr[":"].mcsInView||function(t){var a,i,o=e(t),s=o.parents(".mCSB_container");if(s.length)return a=s.parent(),(i=[s[0].offsetTop,s[0].offsetLeft])[0]+ae(o)[0]>=0&&i[0]+ae(o)[0]<a.height()-o.outerHeight(!1)&&i[1]+ae(o)[1]>=0&&i[1]+ae(o)[1]<a.width()-o.outerWidth(!1)},mcsInSight:e.expr[":"].mcsInSight||function(t,a,i){var o,s,n,r,l=e(t),c=l.parents(".mCSB_container"),d="exact"===i[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(c.length)return o=[l.outerHeight(!1),l.outerWidth(!1)],n=[c[0].offsetTop+ae(l)[0],c[0].offsetLeft+ae(l)[1]],s=[c.parent()[0].offsetHeight,c.parent()[0].offsetWidth],n[0]-s[0]*(r=[o[0]<s[0]?d[0]:d[1],o[1]<s[1]?d[0]:d[1]])[0][0]<0&&n[0]+o[0]-s[0]*r[0][1]>=0&&n[1]-s[1]*r[1][0]<0&&n[1]+o[1]-s[1]*r[1][1]>=0},mcsOverflow:e.expr[":"].mcsOverflow||function(t){var a=e(t).data(i);if(a)return a.overflowed[0]||a.overflowed[1]}})})}()});
public/js/ivory-search.js CHANGED
@@ -3,67 +3,75 @@
3
 
4
  $( window ).on( 'load', function() {
5
 
6
- $( '.is-menu a' ).on( 'click', function( e ) {
 
 
 
 
7
 
8
  // Cancels the default actions.
9
  e.stopPropagation();
10
  e.preventDefault();
11
 
12
- if ( 'static' === $( this ).parent().parent().css( 'position' ) ) {
13
- $( this ).parent().parent().css( 'position', 'relative' );
14
  }
15
 
16
  if ( $( this ).closest( '.is-menu-wrapper' ).length ) {
17
- if ( $( this ).parent().hasClass( 'sliding' ) || $( this ).parent().hasClass( 'full-width-menu' ) ) {
18
  $( this ).closest( '.is-menu-wrapper' ).addClass( 'is-expanded' );
19
  }
20
  }
21
 
22
- if ( $( this ).parent().hasClass( 'sliding' ) || $( this ).parent().hasClass( 'full-width-menu' ) ) {
23
- $( this ).parent().find( 'button.is-search-submit' ).hide();
24
- var is_menu_height = $( this ).parent('li.is-menu').outerHeight();
25
  is_menu_height = ( is_menu_height / 2 );
26
- $( this ).parent().find( 'form' ).css({
27
  top: ( is_menu_height - 18 ) + "px"
28
  });
29
- $( this ).parent().find( '.search-close' ).css({
30
  top: ( is_menu_height - 10 ) + "px"
31
  });
32
  }
33
- if ( $( this ).parent().hasClass( 'is-dropdown' ) ) {
34
- $( this ).parent().find( 'form' ).fadeToggle();
35
- } else if ( $( this ).parent().hasClass( 'sliding' ) ) {
36
- $( this ).parent().find( 'form' ).animate( {
37
  width: '310'
38
  }, function() {
39
- $( this ).parent().find( 'button.is-search-submit' ).show();
40
  } );
41
- } else if ( $( this ).parent().hasClass( 'full-width-menu' ) ) {
42
- $( this ).parent().addClass( 'active-search' );
43
- var menu_width = $( this ).parent().parent().outerWidth();
44
  var menu_pos = $( this ).offset();
45
- if ( ! $( this ).parent().hasClass( 'is-first' ) && menu_pos.left < menu_width ) {
46
  menu_width = menu_pos.left;
 
 
 
 
47
  }
48
- $( this ).parent().find( 'form' ).animate( {
49
  width: menu_width+'px'
50
  }, function() {
51
- $( this ).parent().find( 'button.is-search-submit' ).show();
52
  } );
53
- } else if ( $( this ).parent().hasClass( 'popup' ) ) {
54
- $( '#is-popup-wrapper' ).show();
55
  $( '#is-popup-wrapper form input[type="text"], #is-popup-wrapper form input[type="search"]' ).focus();
56
  }
57
- if ( $( this ).parent().hasClass( 'sliding' ) || $( this ).parent().hasClass( 'full-width-menu' ) ) {
58
- $( this ).parent().addClass( 'open' );
59
- $( this ).parent().find( 'form input[type="search"], form input[type="text"]' ).focus();
60
  }
61
  $(this).closest('.is-menu').find( 'form input[type="search"], form input[type="text"]' ).focus();
62
  } );
63
 
64
  $( '#is-popup-wrapper' ).on( 'click', function( e ) {
65
  if ( ! $(e.target).closest('form').length ) {
66
- $( '#is-popup-wrapper, .is-ajax-search-result, .is-ajax-search-details' ).hide();
67
  }
68
  } );
69
  if ( typeof IvorySearchVars !== "undefined" && typeof IvorySearchVars.is_analytics_enabled !== "undefined" ) {
@@ -72,6 +80,16 @@
72
  var category = ( typeof IvorySearchVars.is_cat !== "undefined" ) ? IvorySearchVars.is_cat : '';
73
  ivory_search_analytics( id, label, category );
74
  }
 
 
 
 
 
 
 
 
 
 
75
  } );
76
 
77
  $( document ).keyup( function( e ) {
@@ -92,7 +110,7 @@
92
  } );
93
 
94
  $( window ).click( function( e ) {
95
- if ( 0 === e.button && 0 === $( e.target ).closest( '.is-ajax-search-result' ).length && 0 === $( e.target ).closest( '.is-ajax-search-details' ).length ) {
96
  if ( $( '.is-menu' ).hasClass( 'open' ) ) {
97
  $( '.is-menu button.is-search-submit' ).hide();
98
  $( '.is-menu form' ).animate(
@@ -105,7 +123,7 @@
105
  }
106
  );
107
  } else if ( $( '.is-menu' ).hasClass( 'is-dropdown' ) ) {
108
- $( '.is-menu form' ).fadeOut();
109
  }
110
  }
111
  });
3
 
4
  $( window ).on( 'load', function() {
5
 
6
+ $.fn.slideFadeToggle = function(speed, easing, callback) {
7
+ return this.animate({opacity: 'toggle', height: 'toggle'}, speed, easing, callback);
8
+ };
9
+
10
+ $( '.is-menu a, .is-menu a svg' ).on( 'click', function( e ) {
11
 
12
  // Cancels the default actions.
13
  e.stopPropagation();
14
  e.preventDefault();
15
 
16
+ if ( 'static' === $( this ).closest('ul').css( 'position' ) ) {
17
+ $( this ).closest('ul').css( 'position', 'relative' );
18
  }
19
 
20
  if ( $( this ).closest( '.is-menu-wrapper' ).length ) {
21
+ if ( $( this ).closest('.is-menu').hasClass( 'sliding' ) || $( this ).closest('.is-menu').hasClass( 'full-width-menu' ) ) {
22
  $( this ).closest( '.is-menu-wrapper' ).addClass( 'is-expanded' );
23
  }
24
  }
25
 
26
+ if ( $( this ).closest('.is-menu').hasClass( 'sliding' ) || $( this ).closest('.is-menu').hasClass( 'full-width-menu' ) ) {
27
+ $( this ).closest('.is-menu').find( 'button.is-search-submit' ).hide();
28
+ var is_menu_height = $( this ).closest('li.is-menu').outerHeight();
29
  is_menu_height = ( is_menu_height / 2 );
30
+ $( this ).closest('.is-menu').find( 'form' ).css({
31
  top: ( is_menu_height - 18 ) + "px"
32
  });
33
+ $( this ).closest('.is-menu').find( '.search-close' ).css({
34
  top: ( is_menu_height - 10 ) + "px"
35
  });
36
  }
37
+ if ( $( this ).closest('.is-menu').hasClass( 'is-dropdown' ) ) {
38
+ $( this ).closest('.is-menu').find( 'form' ).slideFadeToggle();
39
+ } else if ( $( this ).closest('.is-menu').hasClass( 'sliding' ) ) {
40
+ $( this ).closest('.is-menu').find( 'form' ).animate( {
41
  width: '310'
42
  }, function() {
43
+ $( this ).closest('.is-menu').find( 'button.is-search-submit' ).show();
44
  } );
45
+ } else if ( $( this ).closest('.is-menu').hasClass( 'full-width-menu' ) ) {
46
+ $( this ).closest('.is-menu').addClass( 'active-search' );
47
+ var menu_width = $( this ).closest('ul').outerWidth();
48
  var menu_pos = $( this ).offset();
49
+ if ( ! $( this ).closest('.is-menu').hasClass( 'is-first' ) && menu_pos.left < menu_width ) {
50
  menu_width = menu_pos.left;
51
+ var menu_item_width = $( this ).closest('li').outerWidth();
52
+ if ( menu_item_width > menu_width ) {
53
+ menu_width = menu_item_width;
54
+ }
55
  }
56
+ $( this ).closest('.is-menu').find( 'form' ).animate( {
57
  width: menu_width+'px'
58
  }, function() {
59
+ $( this ).closest('.is-menu').find( 'button.is-search-submit' ).show();
60
  } );
61
+ } else if ( $( this ).closest('.is-menu').hasClass( 'popup' ) ) {
62
+ $( '#is-popup-wrapper' ).slideFadeToggle();
63
  $( '#is-popup-wrapper form input[type="text"], #is-popup-wrapper form input[type="search"]' ).focus();
64
  }
65
+ if ( $( this ).closest('.is-menu').hasClass( 'sliding' ) || $( this ).closest('.is-menu').hasClass( 'full-width-menu' ) ) {
66
+ $( this ).closest('.is-menu').addClass( 'open' );
67
+ $( this ).closest('.is-menu').find( 'form input[type="search"], form input[type="text"]' ).focus();
68
  }
69
  $(this).closest('.is-menu').find( 'form input[type="search"], form input[type="text"]' ).focus();
70
  } );
71
 
72
  $( '#is-popup-wrapper' ).on( 'click', function( e ) {
73
  if ( ! $(e.target).closest('form').length ) {
74
+ $( '#is-popup-wrapper, .is-ajax-search-result, .is-ajax-search-details' ).slideFadeToggle();
75
  }
76
  } );
77
  if ( typeof IvorySearchVars !== "undefined" && typeof IvorySearchVars.is_analytics_enabled !== "undefined" ) {
80
  var category = ( typeof IvorySearchVars.is_cat !== "undefined" ) ? IvorySearchVars.is_cat : '';
81
  ivory_search_analytics( id, label, category );
82
  }
83
+
84
+ if ( window.matchMedia( '(max-width: 1024px)' ).matches ) {
85
+ $( '.is-menu a' ).attr( 'href', '' );
86
+ }
87
+ $( window ).resize( function() {
88
+ if ( window.matchMedia( '(max-width: 1024px)' ).matches ) {
89
+ $( '.is-menu a' ).attr( 'href', '' );
90
+ }
91
+ } );
92
+
93
  } );
94
 
95
  $( document ).keyup( function( e ) {
110
  } );
111
 
112
  $( window ).click( function( e ) {
113
+ if ( 0 === e.button && 0 === $( e.target ).closest( '.is-search-input' ).length && 0 === $( e.target ).closest( '.is-search-submit' ).length && 0 === $( e.target ).closest( '.is-ajax-search-result' ).length && 0 === $( e.target ).closest( '.is-ajax-search-details' ).length ) {
114
  if ( $( '.is-menu' ).hasClass( 'open' ) ) {
115
  $( '.is-menu button.is-search-submit' ).hide();
116
  $( '.is-menu form' ).animate(
123
  }
124
  );
125
  } else if ( $( '.is-menu' ).hasClass( 'is-dropdown' ) ) {
126
+ $( '.is-menu form' ).slideFadeToggle();
127
  }
128
  }
129
  });
public/js/ivory-search.min.js CHANGED
@@ -1 +1 @@
1
- function ivory_search_analytics(s,e,t){try{var i="function"==typeof __gaTracker?__gaTracker:"function"==typeof ga&&ga,a="function"==typeof gtag&&gtag;if(!1!==a)return void a("event","Ivory Search - "+s,{event_label:e,event_category:t});!1!==i&&i("send",{hitType:"event",eventCategory:t,eventAction:"Ivory Search - "+s,eventLabel:e})}catch(s){}}!function(s){"use strict";s(window).on("load",function(){(s(".is-menu a").on("click",function(e){if(e.stopPropagation(),e.preventDefault(),"static"===s(this).parent().parent().css("position")&&s(this).parent().parent().css("position","relative"),s(this).closest(".is-menu-wrapper").length&&(s(this).parent().hasClass("sliding")||s(this).parent().hasClass("full-width-menu"))&&s(this).closest(".is-menu-wrapper").addClass("is-expanded"),s(this).parent().hasClass("sliding")||s(this).parent().hasClass("full-width-menu")){s(this).parent().find("button.is-search-submit").hide();var t=s(this).parent("li.is-menu").outerHeight();t/=2,s(this).parent().find("form").css({top:t-18+"px"}),s(this).parent().find(".search-close").css({top:t-10+"px"})}if(s(this).parent().hasClass("is-dropdown"))s(this).parent().find("form").fadeToggle();else if(s(this).parent().hasClass("sliding"))s(this).parent().find("form").animate({width:"310"},function(){s(this).parent().find("button.is-search-submit").show()});else if(s(this).parent().hasClass("full-width-menu")){s(this).parent().addClass("active-search");var i=s(this).parent().parent().outerWidth(),a=s(this).offset();!s(this).parent().hasClass("is-first")&&a.left<i&&(i=a.left),s(this).parent().find("form").animate({width:i+"px"},function(){s(this).parent().find("button.is-search-submit").show()})}else s(this).parent().hasClass("popup")&&(s("#is-popup-wrapper").show(),s('#is-popup-wrapper form input[type="text"], #is-popup-wrapper form input[type="search"]').focus());(s(this).parent().hasClass("sliding")||s(this).parent().hasClass("full-width-menu"))&&(s(this).parent().addClass("open"),s(this).parent().find('form input[type="search"], form input[type="text"]').focus()),s(this).closest(".is-menu").find('form input[type="search"], form input[type="text"]').focus()}),s("#is-popup-wrapper").on("click",function(e){s(e.target).closest("form").length||s("#is-popup-wrapper, .is-ajax-search-result, .is-ajax-search-details").hide()}),"undefined"!=typeof IvorySearchVars&&void 0!==IvorySearchVars.is_analytics_enabled)&&ivory_search_analytics(void 0!==IvorySearchVars.is_id?IvorySearchVars.is_id:"Default",void 0!==IvorySearchVars.is_label?IvorySearchVars.is_label:"",void 0!==IvorySearchVars.is_cat?IvorySearchVars.is_cat:"")}),s(document).keyup(function(e){27===e.keyCode&&s("#is-popup-wrapper, .is-ajax-search-result, .is-ajax-search-details").hide()}),s('.is-menu form input[type="search"], .is-menu form input[type="text"]').on("click",function(s){return s.stopPropagation(),!1}),s("form.is-search-form, form.search-form").on("mouseover",function(e){s(this).next(".is-link-container").length&&s(this).append(s(this).next(".is-link-container").remove())}),s(window).click(function(e){0===e.button&&0===s(e.target).closest(".is-ajax-search-result").length&&0===s(e.target).closest(".is-ajax-search-details").length&&(s(".is-menu").hasClass("open")?(s(".is-menu button.is-search-submit").hide(),s(".is-menu form").animate({width:"0"},400,function(){s(".is-menu").removeClass("active-search"),s(".is-menu").removeClass("open"),s(".is-menu-wrapper").removeClass("is-expanded")})):s(".is-menu").hasClass("is-dropdown")&&s(".is-menu form").fadeOut())})}(jQuery);
1
+ function ivory_search_analytics(s,e,i){try{var t="function"==typeof __gaTracker?__gaTracker:"function"==typeof ga&&ga,a="function"==typeof gtag&&gtag;if(!1!==a)return void a("event","Ivory Search - "+s,{event_label:e,event_category:i});!1!==t&&t("send",{hitType:"event",eventCategory:i,eventAction:"Ivory Search - "+s,eventLabel:e})}catch(s){}}!function(s){"use strict";s(window).on("load",function(){(s.fn.slideFadeToggle=function(s,e,i){return this.animate({opacity:"toggle",height:"toggle"},s,e,i)},s(".is-menu a, .is-menu a svg").on("click",function(e){if(e.stopPropagation(),e.preventDefault(),"static"===s(this).closest("ul").css("position")&&s(this).closest("ul").css("position","relative"),s(this).closest(".is-menu-wrapper").length&&(s(this).closest(".is-menu").hasClass("sliding")||s(this).closest(".is-menu").hasClass("full-width-menu"))&&s(this).closest(".is-menu-wrapper").addClass("is-expanded"),s(this).closest(".is-menu").hasClass("sliding")||s(this).closest(".is-menu").hasClass("full-width-menu")){s(this).closest(".is-menu").find("button.is-search-submit").hide();var i=s(this).closest("li.is-menu").outerHeight();i/=2,s(this).closest(".is-menu").find("form").css({top:i-18+"px"}),s(this).closest(".is-menu").find(".search-close").css({top:i-10+"px"})}if(s(this).closest(".is-menu").hasClass("is-dropdown"))s(this).closest(".is-menu").find("form").slideFadeToggle();else if(s(this).closest(".is-menu").hasClass("sliding"))s(this).closest(".is-menu").find("form").animate({width:"310"},function(){s(this).closest(".is-menu").find("button.is-search-submit").show()});else if(s(this).closest(".is-menu").hasClass("full-width-menu")){s(this).closest(".is-menu").addClass("active-search");var t=s(this).closest("ul").outerWidth(),a=s(this).offset();if(!s(this).closest(".is-menu").hasClass("is-first")&&a.left<t){t=a.left;var n=s(this).closest("li").outerWidth();n>t&&(t=n)}s(this).closest(".is-menu").find("form").animate({width:t+"px"},function(){s(this).closest(".is-menu").find("button.is-search-submit").show()})}else s(this).closest(".is-menu").hasClass("popup")&&(s("#is-popup-wrapper").slideFadeToggle(),s('#is-popup-wrapper form input[type="text"], #is-popup-wrapper form input[type="search"]').focus());(s(this).closest(".is-menu").hasClass("sliding")||s(this).closest(".is-menu").hasClass("full-width-menu"))&&(s(this).closest(".is-menu").addClass("open"),s(this).closest(".is-menu").find('form input[type="search"], form input[type="text"]').focus()),s(this).closest(".is-menu").find('form input[type="search"], form input[type="text"]').focus()}),s("#is-popup-wrapper").on("click",function(e){s(e.target).closest("form").length||s("#is-popup-wrapper, .is-ajax-search-result, .is-ajax-search-details").slideFadeToggle()}),"undefined"!=typeof IvorySearchVars&&void 0!==IvorySearchVars.is_analytics_enabled)&&ivory_search_analytics(void 0!==IvorySearchVars.is_id?IvorySearchVars.is_id:"Default",void 0!==IvorySearchVars.is_label?IvorySearchVars.is_label:"",void 0!==IvorySearchVars.is_cat?IvorySearchVars.is_cat:"");window.matchMedia("(max-width: 1024px)").matches&&s(".is-menu a").attr("href",""),s(window).resize(function(){window.matchMedia("(max-width: 1024px)").matches&&s(".is-menu a").attr("href","")})}),s(document).keyup(function(e){27===e.keyCode&&s("#is-popup-wrapper, .is-ajax-search-result, .is-ajax-search-details").hide()}),s('.is-menu form input[type="search"], .is-menu form input[type="text"]').on("click",function(s){return s.stopPropagation(),!1}),s("form.is-search-form, form.search-form").on("mouseover",function(e){s(this).next(".is-link-container").length&&s(this).append(s(this).next(".is-link-container").remove())}),s(window).click(function(e){0===e.button&&0===s(e.target).closest(".is-search-input").length&&0===s(e.target).closest(".is-search-submit").length&&0===s(e.target).closest(".is-ajax-search-result").length&&0===s(e.target).closest(".is-ajax-search-details").length&&(s(".is-menu").hasClass("open")?(s(".is-menu button.is-search-submit").hide(),s(".is-menu form").animate({width:"0"},400,function(){s(".is-menu").removeClass("active-search"),s(".is-menu").removeClass("open"),s(".is-menu-wrapper").removeClass("is-expanded")})):s(".is-menu").hasClass("is-dropdown")&&s(".is-menu form").slideFadeToggle())})}(jQuery);
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: search, woocommerce search, image search, ajax search, search shortcode, l
5
  Requires at least: 3.9
6
  Tested up to: 5.5
7
  Requires PHP: 5.2.4
8
- Stable tag: 4.5.5
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -193,6 +193,13 @@ Yes we do. We try our best to help free users with customisation requests and we
193
 
194
  == Changelog ==
195
 
 
 
 
 
 
 
 
196
  = 4.5.5 =
197
  * Fixed - Latest jQuery version compatibility issue.
198
 
5
  Requires at least: 3.9
6
  Tested up to: 5.5
7
  Requires PHP: 5.2.4
8
+ Stable tag: 4.5.6
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
193
 
194
  == Changelog ==
195
 
196
+ = 4.5.6 =
197
+ * Fixed - Search form label accessibility issue.
198
+ * Fixed - Mobile menu search issue.
199
+ * Fixed - Whole fuzzy matching option was not working with older version of mysql.
200
+ * Fixed - Compatibility issue with WPForms plugin on saving search form.
201
+ * Improved - Delayed execution of the plugin and essential plugin hooks.
202
+
203
  = 4.5.5 =
204
  * Fixed - Latest jQuery version compatibility issue.
205