Business Directory Plugin - Version 4.1.1

Version Description

Download this release

Release Info

Developer businessdirectoryplugin
Plugin Icon 128x128 Business Directory Plugin
Version 4.1.1
Comparing to
See all releases

Code changes from version 4.1 to 4.1.1

README.TXT CHANGED
@@ -4,8 +4,8 @@ Donate link: http://businessdirectoryplugin.com/premium-modules/
4
  Tags: address book, business directory, chamber of commerce business directory, church directory, company business directory, contact directory, custom business directory, directory, listings directory, local business directory, link directory, member directory, staff directory, directory plugin
5
  Requires at least: 4.1
6
  Tested up to: 4.6
7
- Last Updated: 2016-Aug-16
8
- Stable tag: tags/4.1
9
  License: GPLv2 or later
10
 
11
  Build any kind of local directory, directory of business providers, a Yellow-Pages business directory, Yelp-like review directory and much more!
@@ -131,6 +131,13 @@ If you are having problems please visit [support forum](http://www.businessdirec
131
 
132
  == Changelog ==
133
 
 
 
 
 
 
 
 
134
  = Version 4.1 =
135
  * Show width/height/size constraints for images in the image upload form.
136
  * Allow disabling of frontend listing submission.
4
  Tags: address book, business directory, chamber of commerce business directory, church directory, company business directory, contact directory, custom business directory, directory, listings directory, local business directory, link directory, member directory, staff directory, directory plugin
5
  Requires at least: 4.1
6
  Tested up to: 4.6
7
+ Last Updated: 2016-Aug-25
8
+ Stable tag: tags/4.1.1
9
  License: GPLv2 or later
10
 
11
  Build any kind of local directory, directory of business providers, a Yellow-Pages business directory, Yelp-like review directory and much more!
131
 
132
  == Changelog ==
133
 
134
+ = Version 4.1.1 =
135
+ * Fix searching involving multivalued fields.
136
+ * Re-enable user template overrides for core and theme templates
137
+ * Fix: "Show search listings" setting wasn't being honored.
138
+ * Fix searches involving category fields.
139
+ * Fix searches involving meta fields.
140
+
141
  = Version 4.1 =
142
  * Show width/height/size constraints for images in the image upload form.
143
  * Allow disabling of frontend listing submission.
business-directory-plugin.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Business Directory Plugin
4
  * Plugin URI: http://www.businessdirectoryplugin.com
5
  * Description: Provides the ability to maintain a free or paid business directory on your WordPress powered site.
6
- * Version: 4.1
7
  * Author: D. Rodenbaugh
8
  * Author URI: http://businessdirectoryplugin.com
9
  * Text Domain: WPBDM
@@ -31,7 +31,7 @@
31
  if( preg_match( '#' . basename( __FILE__ ) . '#', $_SERVER['PHP_SELF'] ) )
32
  exit();
33
 
34
- define( 'WPBDP_VERSION', '4.1' );
35
 
36
  define( 'WPBDP_PATH', wp_normalize_path( plugin_dir_path( __FILE__ ) ) );
37
  define( 'WPBDP_URL', trailingslashit( plugins_url( '/', __FILE__ ) ) );
3
  * Plugin Name: Business Directory Plugin
4
  * Plugin URI: http://www.businessdirectoryplugin.com
5
  * Description: Provides the ability to maintain a free or paid business directory on your WordPress powered site.
6
+ * Version: 4.1.1
7
  * Author: D. Rodenbaugh
8
  * Author URI: http://businessdirectoryplugin.com
9
  * Text Domain: WPBDM
31
  if( preg_match( '#' . basename( __FILE__ ) . '#', $_SERVER['PHP_SELF'] ) )
32
  exit();
33
 
34
+ define( 'WPBDP_VERSION', '4.1.1' );
35
 
36
  define( 'WPBDP_PATH', wp_normalize_path( plugin_dir_path( __FILE__ ) ) );
37
  define( 'WPBDP_URL', trailingslashit( plugins_url( '/', __FILE__ ) ) );
core/class-form-field-type.php CHANGED
@@ -272,7 +272,7 @@ class WPBDP_Form_Field_Type {
272
  * @since next-release
273
  */
274
  public function configure_search( &$field, $query, &$search ) {
275
- return array();
276
  }
277
 
278
 
272
  * @since next-release
273
  */
274
  public function configure_search( &$field, $query, &$search ) {
275
+ return false;
276
  }
277
 
278
 
core/class-form-field.php CHANGED
@@ -661,7 +661,7 @@ class WPBDP_Form_Field {
661
  // If there's a field type specific handling, use it.
662
  $search_res = $this->type->configure_search( $this, $query, $search );
663
 
664
- if ( $search_res ) {
665
  $search_res = apply_filters_ref_array( 'wpbdp_configure_search', array( $search_res, $this, $query, $search ) );
666
  return $search_res;
667
  }
@@ -691,14 +691,7 @@ class WPBDP_Form_Field {
691
  break;
692
 
693
  foreach ( $query as $term_ ) {
694
- if ( is_string( $term_ ) && WPBDP_TAGS_TAX == $tax ) {
695
- $term = get_term_by( 'name', $term_, $tax );
696
-
697
- if ( ! $term )
698
- continue;
699
-
700
- $tt_ids[] = $term->term_taxonomy_id;
701
- } elseif ( is_numeric( $term_ ) ) {
702
  $term = get_term( intval( $term_ ), $tax );
703
 
704
  if ( ! $term )
@@ -707,18 +700,15 @@ class WPBDP_Form_Field {
707
  $t_ids = array_merge( array( $term->term_id ), get_term_children( $term->term_id, $tax ) );
708
  $tt_ids = array_merge( $tt_ids,
709
  $wpdb->get_col( "SELECT DISTINCT tt.term_taxonomy_id FROM {$wpdb->term_taxonomy} tt WHERE tt.taxonomy = '{$tax}' AND tt.term_id IN (" . implode( ',', $t_ids ) . ")" ) );
 
 
 
 
710
  }
711
-
712
- // if ( is_string( $term_ ) && 'quick-search' == $search->mode ) {
713
- // $tt_ids = $wpdb->get_col( $wpdb->prepare( "SELECT DISTINCT tt.term_taxonomy_id FROM {$wpdb->term_taxonomy} tt JOIN {$wpdb->terms} t ON t.term_id = tt.term_id WHERE tt.taxonomy = %s AND t.name LIKE '%%%s%%'",
714
- // $tax,
715
- // $query ) );
716
- // }
717
- //
718
  }
719
 
720
  if ( $tt_ids ) {
721
- list( $alias, $reused ) = $search->join_alias( $wpdb->term_relationships, false );
722
 
723
  if ( ! $reused )
724
  $search_res['join'] = " LEFT JOIN {$wpdb->term_relationships} AS {$alias} ON {$wpdb->posts}.ID = {$alias}.object_id";
@@ -733,7 +723,7 @@ class WPBDP_Form_Field {
733
  if ( ! $query )
734
  break;
735
 
736
- list( $alias, $reused ) = $search->join_alias( $wpdb->postmeta, 'advanced' == $search->mode ? false : true );
737
 
738
  if ( ! $reused )
739
  $search_res['join'] = " LEFT JOIN {$wpdb->postmeta} AS {$alias} ON {$wpdb->posts}.ID = {$alias}.post_id";
661
  // If there's a field type specific handling, use it.
662
  $search_res = $this->type->configure_search( $this, $query, $search );
663
 
664
+ if ( is_array( $search_res ) ) {
665
  $search_res = apply_filters_ref_array( 'wpbdp_configure_search', array( $search_res, $this, $query, $search ) );
666
  return $search_res;
667
  }
691
  break;
692
 
693
  foreach ( $query as $term_ ) {
694
+ if ( is_numeric( $term_ ) ) {
 
 
 
 
 
 
 
695
  $term = get_term( intval( $term_ ), $tax );
696
 
697
  if ( ! $term )
700
  $t_ids = array_merge( array( $term->term_id ), get_term_children( $term->term_id, $tax ) );
701
  $tt_ids = array_merge( $tt_ids,
702
  $wpdb->get_col( "SELECT DISTINCT tt.term_taxonomy_id FROM {$wpdb->term_taxonomy} tt WHERE tt.taxonomy = '{$tax}' AND tt.term_id IN (" . implode( ',', $t_ids ) . ")" ) );
703
+ } elseif ( is_string( $term_ ) ) {
704
+ $tt_ids = $wpdb->get_col( $wpdb->prepare( "SELECT DISTINCT tt.term_taxonomy_id FROM {$wpdb->term_taxonomy} tt JOIN {$wpdb->terms} t ON t.term_id = tt.term_id WHERE tt.taxonomy = %s AND t.name LIKE '%%%s%%'",
705
+ $tax,
706
+ $term_ ) );
707
  }
 
 
 
 
 
 
 
708
  }
709
 
710
  if ( $tt_ids ) {
711
+ list( $alias, $reused ) = $search->join_alias( $wpdb->term_relationships );
712
 
713
  if ( ! $reused )
714
  $search_res['join'] = " LEFT JOIN {$wpdb->term_relationships} AS {$alias} ON {$wpdb->posts}.ID = {$alias}.object_id";
723
  if ( ! $query )
724
  break;
725
 
726
+ list( $alias, $reused ) = $search->join_alias( $wpdb->postmeta );
727
 
728
  if ( ! $reused )
729
  $search_res['join'] = " LEFT JOIN {$wpdb->postmeta} AS {$alias} ON {$wpdb->posts}.ID = {$alias}.post_id";
core/fieldtypes/class-fieldtypes-checkbox.php CHANGED
@@ -172,7 +172,7 @@ class WPBDP_FieldTypes_Checkbox extends WPBDP_Form_Field_Type {
172
  $query = array_map( 'preg_quote', array_diff( is_array( $query ) ? $query : array( $query ), array( -1, '' ) ) );
173
 
174
  if ( ! $query )
175
- return false;
176
 
177
  $search_res = array();
178
  list( $alias, $reused ) = $search->join_alias( $wpdb->postmeta, false );
172
  $query = array_map( 'preg_quote', array_diff( is_array( $query ) ? $query : array( $query ), array( -1, '' ) ) );
173
 
174
  if ( ! $query )
175
+ return array();
176
 
177
  $search_res = array();
178
  list( $alias, $reused ) = $search->join_alias( $wpdb->postmeta, false );
core/fieldtypes/class-fieldtypes-date.php CHANGED
@@ -183,7 +183,7 @@ class WPBDP_FieldTypes_Date extends WPBDP_FieldTypes_TextField {
183
  $query = $this->date_to_storage_format( $field, $query );
184
 
185
  if ( ! $query )
186
- return false;
187
 
188
  $search_res = array();
189
  list( $alias, $reused ) = $search->join_alias( $wpdb->postmeta, false );
183
  $query = $this->date_to_storage_format( $field, $query );
184
 
185
  if ( ! $query )
186
+ return array();
187
 
188
  $search_res = array();
189
  list( $alias, $reused ) = $search->join_alias( $wpdb->postmeta, false );
core/fieldtypes/class-fieldtypes-select.php CHANGED
@@ -252,7 +252,7 @@ class WPBDP_FieldTypes_Select extends WPBDP_Form_Field_Type {
252
  $query = array_map( 'preg_quote', array_diff( is_array( $query ) ? $query : array( $query ), array( -1, '' ) ) );
253
 
254
  if ( ! $query )
255
- return false;
256
 
257
  $search_res = array();
258
  list( $alias, $reused ) = $search->join_alias( $wpdb->postmeta, false );
252
  $query = array_map( 'preg_quote', array_diff( is_array( $query ) ? $query : array( $query ), array( -1, '' ) ) );
253
 
254
  if ( ! $query )
255
+ return array();
256
 
257
  $search_res = array();
258
  list( $alias, $reused ) = $search->join_alias( $wpdb->postmeta, false );
core/helpers/class-listing-search.php CHANGED
@@ -60,11 +60,18 @@ class WPBDP__Listing_Search {
60
  'distinct' => '',
61
  'fields' => "{$wpdb->posts}.ID",
62
  'limits' => '' );
 
63
  foreach ( $this->parts as $key => $data ) {
64
  $field = wpbdp_get_form_field( $data[0] );
65
  $res = $field->configure_search( $data[1], $this );
66
 
67
- $query_pieces['where'] = str_replace( '%' . $key . '%', ! empty( $res['where'] ) ? $res['where'] : '', $query_pieces['where'] );
 
 
 
 
 
 
68
 
69
  foreach ( $res as $k => $v ) {
70
  if ( 'where' == $k )
60
  'distinct' => '',
61
  'fields' => "{$wpdb->posts}.ID",
62
  'limits' => '' );
63
+
64
  foreach ( $this->parts as $key => $data ) {
65
  $field = wpbdp_get_form_field( $data[0] );
66
  $res = $field->configure_search( $data[1], $this );
67
 
68
+ if ( ! empty( $res['where'] ) ) {
69
+ $query_pieces['where'] = str_replace( '%' . $key . '%', $res['where'], $query_pieces['where'] );
70
+ } else {
71
+ // This prevents incorrect queries from being created.
72
+ $query_pieces['where'] = str_replace( 'AND %' . $key . '%', '', $query_pieces['where'] );
73
+ $query_pieces['where'] = str_replace( 'OR %' . $key . '%', '', $query_pieces['where'] );
74
+ }
75
 
76
  foreach ( $res as $k => $v ) {
77
  if ( 'where' == $k )
core/themes.php CHANGED
@@ -14,6 +14,12 @@ class WPBDP_Themes {
14
  function __construct() {
15
  $this->find_themes();
16
 
 
 
 
 
 
 
17
  // Theme template dir is priority 1.
18
  $theme = $this->get_active_theme_data();
19
  $this->template_dirs[] = $theme->path . 'templates/';
14
  function __construct() {
15
  $this->find_themes();
16
 
17
+ // Overrides dir is priority 0.
18
+ $this->template_dirs[] = trailingslashit( get_stylesheet_directory() ) . 'business-directory/';
19
+
20
+ if ( get_stylesheet_directory() != get_template_directory() )
21
+ $this->template_dirs[] = trailingslashit( get_template_directory() ) . 'business-directory/';
22
+
23
  // Theme template dir is priority 1.
24
  $theme = $this->get_active_theme_data();
25
  $this->template_dirs[] = $theme->path . 'templates/';
core/widget-search.php CHANGED
@@ -99,9 +99,9 @@ class WPBDP_SearchWidget extends WP_Widget {
99
  }
100
  }
101
 
102
- echo '<input type="hidden" name="q" value="" />';
103
  } else {
104
- echo '<input type="text" name="q" value="" />';
105
  }
106
 
107
  echo sprintf('<p><input type="submit" value="%s" class="submit wpbdp-search-widget-submit" /></p>', _x('Search', 'widgets', 'WPBDM'));
99
  }
100
  }
101
 
102
+ echo '<input type="hidden" name="kw" value="" />';
103
  } else {
104
+ echo '<input type="text" name="kw" value="" />';
105
  }
106
 
107
  echo sprintf('<p><input type="submit" value="%s" class="submit wpbdp-search-widget-submit" /></p>', _x('Search', 'widgets', 'WPBDM'));
languages/WPBDM-de_DE.mo CHANGED
Binary file
languages/WPBDM-de_DE.po CHANGED
@@ -4,7 +4,7 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Business Directory Plugin 3.5.4\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/business-directory-plugin\n"
7
- "POT-Creation-Date: 2016-08-16 14:58:52+00:00\n"
8
  "PO-Revision-Date: 2016-01-21 08:45-0500\n"
9
  "Last-Translator: BD Team <support@businessdirectoryplugin.com>\n"
10
  "Language-Team: Business Directory Plugin <support@businessdirectoryplugin."
@@ -2231,7 +2231,7 @@ msgctxt "form-fields admin"
2231
  msgid "Please see the <a>Form Fields documentation</a> for more details."
2232
  msgstr ""
2233
 
2234
- #. #-#-#-#-# WPBDM.pot (Business Directory Plugin 4.1) #-#-#-#-#
2235
  #. Plugin Name of the plugin/theme
2236
  #: admin/templates/header.tpl.php:4
2237
  msgid "Business Directory Plugin"
@@ -5870,25 +5870,25 @@ msgctxt "sort"
5870
  msgid "(Reset)"
5871
  msgstr "Zurücksetzen"
5872
 
5873
- #: core/themes.php:629
5874
  #, fuzzy
5875
  msgctxt "themes"
5876
  msgid "ZIP file is not a valid BD theme file."
5877
  msgstr "Bitte eine gültige E-mailadresse eingeben."
5878
 
5879
- #: core/themes.php:635
5880
  #, fuzzy
5881
  msgctxt "themes"
5882
  msgid "Could not create themes directory."
5883
  msgstr "wpbdp-csv-exports Verzeichnis konnte nicht erstellt werden."
5884
 
5885
- #: core/themes.php:643
5886
  #, fuzzy
5887
  msgctxt "themes"
5888
  msgid "Could not remove previous theme directory \"%s\"."
5889
  msgstr "Konnte Eintragskategorie nicht erstellen \"%s\""
5890
 
5891
- #: core/themes.php:649
5892
  #, fuzzy
5893
  msgctxt "themes"
5894
  msgid "Could not move new theme into theme directory."
@@ -6778,13 +6778,13 @@ msgctxt "templates"
6778
  msgid "Upgrade listing to %s for %s."
6779
  msgstr "Eintrag aktualisieren zu %s für %s."
6780
 
6781
- #: templates/main-box.tpl.php:15
6782
  #, fuzzy
6783
  msgctxt "main box"
6784
  msgid "Find Listings"
6785
  msgstr "Eintrag finden"
6786
 
6787
- #: templates/main-box.tpl.php:16
6788
  #, fuzzy
6789
  msgctxt "main box"
6790
  msgid "Advanced Search"
4
  msgstr ""
5
  "Project-Id-Version: Business Directory Plugin 3.5.4\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/business-directory-plugin\n"
7
+ "POT-Creation-Date: 2016-08-24 22:42:45+00:00\n"
8
  "PO-Revision-Date: 2016-01-21 08:45-0500\n"
9
  "Last-Translator: BD Team <support@businessdirectoryplugin.com>\n"
10
  "Language-Team: Business Directory Plugin <support@businessdirectoryplugin."
2231
  msgid "Please see the <a>Form Fields documentation</a> for more details."
2232
  msgstr ""
2233
 
2234
+ #. #-#-#-#-# WPBDM.pot (Business Directory Plugin 4.1.1) #-#-#-#-#
2235
  #. Plugin Name of the plugin/theme
2236
  #: admin/templates/header.tpl.php:4
2237
  msgid "Business Directory Plugin"
5870
  msgid "(Reset)"
5871
  msgstr "Zurücksetzen"
5872
 
5873
+ #: core/themes.php:635
5874
  #, fuzzy
5875
  msgctxt "themes"
5876
  msgid "ZIP file is not a valid BD theme file."
5877
  msgstr "Bitte eine gültige E-mailadresse eingeben."
5878
 
5879
+ #: core/themes.php:641
5880
  #, fuzzy
5881
  msgctxt "themes"
5882
  msgid "Could not create themes directory."
5883
  msgstr "wpbdp-csv-exports Verzeichnis konnte nicht erstellt werden."
5884
 
5885
+ #: core/themes.php:649
5886
  #, fuzzy
5887
  msgctxt "themes"
5888
  msgid "Could not remove previous theme directory \"%s\"."
5889
  msgstr "Konnte Eintragskategorie nicht erstellen \"%s\""
5890
 
5891
+ #: core/themes.php:655
5892
  #, fuzzy
5893
  msgctxt "themes"
5894
  msgid "Could not move new theme into theme directory."
6778
  msgid "Upgrade listing to %s for %s."
6779
  msgstr "Eintrag aktualisieren zu %s für %s."
6780
 
6781
+ #: templates/main-box.tpl.php:16
6782
  #, fuzzy
6783
  msgctxt "main box"
6784
  msgid "Find Listings"
6785
  msgstr "Eintrag finden"
6786
 
6787
+ #: templates/main-box.tpl.php:17
6788
  #, fuzzy
6789
  msgctxt "main box"
6790
  msgid "Advanced Search"
languages/WPBDM-en_US.mo CHANGED
Binary file
languages/WPBDM-en_US.po CHANGED
@@ -4,7 +4,7 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Business Directory Plugin 3.6\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/business-directory-plugin\n"
7
- "POT-Creation-Date: 2016-08-16 14:58:52+00:00\n"
8
  "PO-Revision-Date: 2015-04-07 11:11-0500\n"
9
  "Last-Translator: BD Team <support@businessdirectoryplugin.com>\n"
10
  "Language-Team: BD Team <support@businessdirectoryplugin.com>\n"
@@ -2091,7 +2091,7 @@ msgctxt "form-fields admin"
2091
  msgid "Please see the <a>Form Fields documentation</a> for more details."
2092
  msgstr ""
2093
 
2094
- #. #-#-#-#-# WPBDM.pot (Business Directory Plugin 4.1) #-#-#-#-#
2095
  #. Plugin Name of the plugin/theme
2096
  #: admin/templates/header.tpl.php:4
2097
  msgid "Business Directory Plugin"
@@ -5476,22 +5476,22 @@ msgctxt "sort"
5476
  msgid "(Reset)"
5477
  msgstr ""
5478
 
5479
- #: core/themes.php:629
5480
  msgctxt "themes"
5481
  msgid "ZIP file is not a valid BD theme file."
5482
  msgstr ""
5483
 
5484
- #: core/themes.php:635
5485
  msgctxt "themes"
5486
  msgid "Could not create themes directory."
5487
  msgstr ""
5488
 
5489
- #: core/themes.php:643
5490
  msgctxt "themes"
5491
  msgid "Could not remove previous theme directory \"%s\"."
5492
  msgstr ""
5493
 
5494
- #: core/themes.php:649
5495
  msgctxt "themes"
5496
  msgid "Could not move new theme into theme directory."
5497
  msgstr ""
@@ -6303,12 +6303,12 @@ msgctxt "templates"
6303
  msgid "Upgrade listing to %s for %s."
6304
  msgstr ""
6305
 
6306
- #: templates/main-box.tpl.php:15
6307
  msgctxt "main box"
6308
  msgid "Find Listings"
6309
  msgstr ""
6310
 
6311
- #: templates/main-box.tpl.php:16
6312
  msgctxt "main box"
6313
  msgid "Advanced Search"
6314
  msgstr ""
4
  msgstr ""
5
  "Project-Id-Version: Business Directory Plugin 3.6\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/business-directory-plugin\n"
7
+ "POT-Creation-Date: 2016-08-24 22:42:45+00:00\n"
8
  "PO-Revision-Date: 2015-04-07 11:11-0500\n"
9
  "Last-Translator: BD Team <support@businessdirectoryplugin.com>\n"
10
  "Language-Team: BD Team <support@businessdirectoryplugin.com>\n"
2091
  msgid "Please see the <a>Form Fields documentation</a> for more details."
2092
  msgstr ""
2093
 
2094
+ #. #-#-#-#-# WPBDM.pot (Business Directory Plugin 4.1.1) #-#-#-#-#
2095
  #. Plugin Name of the plugin/theme
2096
  #: admin/templates/header.tpl.php:4
2097
  msgid "Business Directory Plugin"
5476
  msgid "(Reset)"
5477
  msgstr ""
5478
 
5479
+ #: core/themes.php:635
5480
  msgctxt "themes"
5481
  msgid "ZIP file is not a valid BD theme file."
5482
  msgstr ""
5483
 
5484
+ #: core/themes.php:641
5485
  msgctxt "themes"
5486
  msgid "Could not create themes directory."
5487
  msgstr ""
5488
 
5489
+ #: core/themes.php:649
5490
  msgctxt "themes"
5491
  msgid "Could not remove previous theme directory \"%s\"."
5492
  msgstr ""
5493
 
5494
+ #: core/themes.php:655
5495
  msgctxt "themes"
5496
  msgid "Could not move new theme into theme directory."
5497
  msgstr ""
6303
  msgid "Upgrade listing to %s for %s."
6304
  msgstr ""
6305
 
6306
+ #: templates/main-box.tpl.php:16
6307
  msgctxt "main box"
6308
  msgid "Find Listings"
6309
  msgstr ""
6310
 
6311
+ #: templates/main-box.tpl.php:17
6312
  msgctxt "main box"
6313
  msgid "Advanced Search"
6314
  msgstr ""
languages/WPBDM-es_ES.mo CHANGED
Binary file
languages/WPBDM-es_ES.po CHANGED
@@ -4,7 +4,7 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Business Directory Plugin 4.0.6\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/business-directory-plugin\n"
7
- "POT-Creation-Date: 2016-08-16 14:58:52+00:00\n"
8
  "PO-Revision-Date: 2016-06-14 15:52-0500\n"
9
  "Last-Translator: BD Team <support@businessdirectoryplugin.com>\n"
10
  "Language-Team: BD Team <support@businessdirectoryplugin.com>\n"
@@ -2217,7 +2217,7 @@ msgstr ""
2217
  "Por favor vea la <a>documentación de Campos de Formulario</a> para más "
2218
  "detalles."
2219
 
2220
- #. #-#-#-#-# WPBDM.pot (Business Directory Plugin 4.1) #-#-#-#-#
2221
  #. Plugin Name of the plugin/theme
2222
  #: admin/templates/header.tpl.php:4
2223
  msgid "Business Directory Plugin"
@@ -5840,22 +5840,22 @@ msgctxt "sort"
5840
  msgid "(Reset)"
5841
  msgstr "(Reestablecer)"
5842
 
5843
- #: core/themes.php:629
5844
  msgctxt "themes"
5845
  msgid "ZIP file is not a valid BD theme file."
5846
  msgstr ""
5847
 
5848
- #: core/themes.php:635
5849
  msgctxt "themes"
5850
  msgid "Could not create themes directory."
5851
  msgstr ""
5852
 
5853
- #: core/themes.php:643
5854
  msgctxt "themes"
5855
  msgid "Could not remove previous theme directory \"%s\"."
5856
  msgstr ""
5857
 
5858
- #: core/themes.php:649
5859
  msgctxt "themes"
5860
  msgid "Could not move new theme into theme directory."
5861
  msgstr ""
@@ -6730,13 +6730,13 @@ msgctxt "templates"
6730
  msgid "Upgrade listing to %s for %s."
6731
  msgstr "Mejorar listado a %s por %s."
6732
 
6733
- #: templates/main-box.tpl.php:15
6734
  #, fuzzy
6735
  msgctxt "main box"
6736
  msgid "Find Listings"
6737
  msgstr "Encontrar un listado"
6738
 
6739
- #: templates/main-box.tpl.php:16
6740
  #, fuzzy
6741
  msgctxt "main box"
6742
  msgid "Advanced Search"
4
  msgstr ""
5
  "Project-Id-Version: Business Directory Plugin 4.0.6\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/business-directory-plugin\n"
7
+ "POT-Creation-Date: 2016-08-24 22:42:45+00:00\n"
8
  "PO-Revision-Date: 2016-06-14 15:52-0500\n"
9
  "Last-Translator: BD Team <support@businessdirectoryplugin.com>\n"
10
  "Language-Team: BD Team <support@businessdirectoryplugin.com>\n"
2217
  "Por favor vea la <a>documentación de Campos de Formulario</a> para más "
2218
  "detalles."
2219
 
2220
+ #. #-#-#-#-# WPBDM.pot (Business Directory Plugin 4.1.1) #-#-#-#-#
2221
  #. Plugin Name of the plugin/theme
2222
  #: admin/templates/header.tpl.php:4
2223
  msgid "Business Directory Plugin"
5840
  msgid "(Reset)"
5841
  msgstr "(Reestablecer)"
5842
 
5843
+ #: core/themes.php:635
5844
  msgctxt "themes"
5845
  msgid "ZIP file is not a valid BD theme file."
5846
  msgstr ""
5847
 
5848
+ #: core/themes.php:641
5849
  msgctxt "themes"
5850
  msgid "Could not create themes directory."
5851
  msgstr ""
5852
 
5853
+ #: core/themes.php:649
5854
  msgctxt "themes"
5855
  msgid "Could not remove previous theme directory \"%s\"."
5856
  msgstr ""
5857
 
5858
+ #: core/themes.php:655
5859
  msgctxt "themes"
5860
  msgid "Could not move new theme into theme directory."
5861
  msgstr ""
6730
  msgid "Upgrade listing to %s for %s."
6731
  msgstr "Mejorar listado a %s por %s."
6732
 
6733
+ #: templates/main-box.tpl.php:16
6734
  #, fuzzy
6735
  msgctxt "main box"
6736
  msgid "Find Listings"
6737
  msgstr "Encontrar un listado"
6738
 
6739
+ #: templates/main-box.tpl.php:17
6740
  #, fuzzy
6741
  msgctxt "main box"
6742
  msgid "Advanced Search"
languages/WPBDM-fr_FR.mo CHANGED
Binary file
languages/WPBDM-fr_FR.po CHANGED
@@ -4,7 +4,7 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Business Directory Plugin 3.6\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/business-directory-plugin\n"
7
- "POT-Creation-Date: 2016-08-16 14:58:52+00:00\n"
8
  "PO-Revision-Date: 2016-02-24 15:34-0500\n"
9
  "Last-Translator: BD Team <support@businessdirectoryplugin.com>\n"
10
  "Language-Team: BD Team <support@businessdirectoryplugin.com>\n"
@@ -2223,7 +2223,7 @@ msgstr ""
2223
  "Veuillez voir la <a>Documentation de champs de formulaire</a> pour plus de "
2224
  "détails."
2225
 
2226
- #. #-#-#-#-# WPBDM.pot (Business Directory Plugin 4.1) #-#-#-#-#
2227
  #. Plugin Name of the plugin/theme
2228
  #: admin/templates/header.tpl.php:4
2229
  msgid "Business Directory Plugin"
@@ -5891,22 +5891,22 @@ msgctxt "sort"
5891
  msgid "(Reset)"
5892
  msgstr "(Réinitialiser)"
5893
 
5894
- #: core/themes.php:629
5895
  msgctxt "themes"
5896
  msgid "ZIP file is not a valid BD theme file."
5897
  msgstr "Le fichier ZIP n'est pas un fichier de thème valide"
5898
 
5899
- #: core/themes.php:635
5900
  msgctxt "themes"
5901
  msgid "Could not create themes directory."
5902
  msgstr "Impossible de créer le répertoire de thèmes"
5903
 
5904
- #: core/themes.php:643
5905
  msgctxt "themes"
5906
  msgid "Could not remove previous theme directory \"%s\"."
5907
  msgstr "Impossible de supprimer le dossier de thème précédent \"%s\"."
5908
 
5909
- #: core/themes.php:649
5910
  msgctxt "themes"
5911
  msgid "Could not move new theme into theme directory."
5912
  msgstr "Impossible de déplacer le nouveau thème dans le dossier à thèmes"
@@ -6800,13 +6800,13 @@ msgctxt "templates"
6800
  msgid "Upgrade listing to %s for %s."
6801
  msgstr "Mettre à jour l'annonce de %s vers %s."
6802
 
6803
- #: templates/main-box.tpl.php:15
6804
  #, fuzzy
6805
  msgctxt "main box"
6806
  msgid "Find Listings"
6807
  msgstr "Trouver une annonce"
6808
 
6809
- #: templates/main-box.tpl.php:16
6810
  #, fuzzy
6811
  msgctxt "main box"
6812
  msgid "Advanced Search"
4
  msgstr ""
5
  "Project-Id-Version: Business Directory Plugin 3.6\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/business-directory-plugin\n"
7
+ "POT-Creation-Date: 2016-08-24 22:42:45+00:00\n"
8
  "PO-Revision-Date: 2016-02-24 15:34-0500\n"
9
  "Last-Translator: BD Team <support@businessdirectoryplugin.com>\n"
10
  "Language-Team: BD Team <support@businessdirectoryplugin.com>\n"
2223
  "Veuillez voir la <a>Documentation de champs de formulaire</a> pour plus de "
2224
  "détails."
2225
 
2226
+ #. #-#-#-#-# WPBDM.pot (Business Directory Plugin 4.1.1) #-#-#-#-#
2227
  #. Plugin Name of the plugin/theme
2228
  #: admin/templates/header.tpl.php:4
2229
  msgid "Business Directory Plugin"
5891
  msgid "(Reset)"
5892
  msgstr "(Réinitialiser)"
5893
 
5894
+ #: core/themes.php:635
5895
  msgctxt "themes"
5896
  msgid "ZIP file is not a valid BD theme file."
5897
  msgstr "Le fichier ZIP n'est pas un fichier de thème valide"
5898
 
5899
+ #: core/themes.php:641
5900
  msgctxt "themes"
5901
  msgid "Could not create themes directory."
5902
  msgstr "Impossible de créer le répertoire de thèmes"
5903
 
5904
+ #: core/themes.php:649
5905
  msgctxt "themes"
5906
  msgid "Could not remove previous theme directory \"%s\"."
5907
  msgstr "Impossible de supprimer le dossier de thème précédent \"%s\"."
5908
 
5909
+ #: core/themes.php:655
5910
  msgctxt "themes"
5911
  msgid "Could not move new theme into theme directory."
5912
  msgstr "Impossible de déplacer le nouveau thème dans le dossier à thèmes"
6800
  msgid "Upgrade listing to %s for %s."
6801
  msgstr "Mettre à jour l'annonce de %s vers %s."
6802
 
6803
+ #: templates/main-box.tpl.php:16
6804
  #, fuzzy
6805
  msgctxt "main box"
6806
  msgid "Find Listings"
6807
  msgstr "Trouver une annonce"
6808
 
6809
+ #: templates/main-box.tpl.php:17
6810
  #, fuzzy
6811
  msgctxt "main box"
6812
  msgid "Advanced Search"
languages/WPBDM.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the Business Directory Plugin package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Business Directory Plugin 4.1\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/business-directory-plugin\n"
7
- "POT-Creation-Date: 2016-08-16 14:58:52+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -2087,7 +2087,7 @@ msgctxt "form-fields admin"
2087
  msgid "Please see the <a>Form Fields documentation</a> for more details."
2088
  msgstr ""
2089
 
2090
- #. #-#-#-#-# WPBDM.pot (Business Directory Plugin 4.1) #-#-#-#-#
2091
  #. Plugin Name of the plugin/theme
2092
  #: admin/templates/header.tpl.php:4
2093
  msgid "Business Directory Plugin"
@@ -5472,22 +5472,22 @@ msgctxt "sort"
5472
  msgid "(Reset)"
5473
  msgstr ""
5474
 
5475
- #: core/themes.php:629
5476
  msgctxt "themes"
5477
  msgid "ZIP file is not a valid BD theme file."
5478
  msgstr ""
5479
 
5480
- #: core/themes.php:635
5481
  msgctxt "themes"
5482
  msgid "Could not create themes directory."
5483
  msgstr ""
5484
 
5485
- #: core/themes.php:643
5486
  msgctxt "themes"
5487
  msgid "Could not remove previous theme directory \"%s\"."
5488
  msgstr ""
5489
 
5490
- #: core/themes.php:649
5491
  msgctxt "themes"
5492
  msgid "Could not move new theme into theme directory."
5493
  msgstr ""
@@ -6299,12 +6299,12 @@ msgctxt "templates"
6299
  msgid "Upgrade listing to %s for %s."
6300
  msgstr ""
6301
 
6302
- #: templates/main-box.tpl.php:15
6303
  msgctxt "main box"
6304
  msgid "Find Listings"
6305
  msgstr ""
6306
 
6307
- #: templates/main-box.tpl.php:16
6308
  msgctxt "main box"
6309
  msgid "Advanced Search"
6310
  msgstr ""
2
  # This file is distributed under the same license as the Business Directory Plugin package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Business Directory Plugin 4.1.1\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/business-directory-plugin\n"
7
+ "POT-Creation-Date: 2016-08-24 22:42:45+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
2087
  msgid "Please see the <a>Form Fields documentation</a> for more details."
2088
  msgstr ""
2089
 
2090
+ #. #-#-#-#-# WPBDM.pot (Business Directory Plugin 4.1.1) #-#-#-#-#
2091
  #. Plugin Name of the plugin/theme
2092
  #: admin/templates/header.tpl.php:4
2093
  msgid "Business Directory Plugin"
5472
  msgid "(Reset)"
5473
  msgstr ""
5474
 
5475
+ #: core/themes.php:635
5476
  msgctxt "themes"
5477
  msgid "ZIP file is not a valid BD theme file."
5478
  msgstr ""
5479
 
5480
+ #: core/themes.php:641
5481
  msgctxt "themes"
5482
  msgid "Could not create themes directory."
5483
  msgstr ""
5484
 
5485
+ #: core/themes.php:649
5486
  msgctxt "themes"
5487
  msgid "Could not remove previous theme directory \"%s\"."
5488
  msgstr ""
5489
 
5490
+ #: core/themes.php:655
5491
  msgctxt "themes"
5492
  msgid "Could not move new theme into theme directory."
5493
  msgstr ""
6299
  msgid "Upgrade listing to %s for %s."
6300
  msgstr ""
6301
 
6302
+ #: templates/main-box.tpl.php:16
6303
  msgctxt "main box"
6304
  msgid "Find Listings"
6305
  msgstr ""
6306
 
6307
+ #: templates/main-box.tpl.php:17
6308
  msgctxt "main box"
6309
  msgid "Advanced Search"
6310
  msgstr ""
templates/main-box.tpl.php CHANGED
@@ -1,5 +1,6 @@
1
  <div id="wpbdp-main-box">
2
 
 
3
  <div class="main-fields box-row cols-2">
4
  <form action="<?php echo $search_url; ?>" method="get">
5
  <input type="hidden" name="wpbdp_view" value="search" />
@@ -19,6 +20,7 @@
19
  </div>
20
 
21
  <div class="box-row separator"></div>
 
22
 
23
  <div class="box-row">
24
  <?php wpbdp_the_main_links(); ?>
1
  <div id="wpbdp-main-box">
2
 
3
+ <?php if ( wpbdp_get_option( 'show-search-listings' ) ): ?>
4
  <div class="main-fields box-row cols-2">
5
  <form action="<?php echo $search_url; ?>" method="get">
6
  <input type="hidden" name="wpbdp_view" value="search" />
20
  </div>
21
 
22
  <div class="box-row separator"></div>
23
+ <?php endif; ?>
24
 
25
  <div class="box-row">
26
  <?php wpbdp_the_main_links(); ?>