Business Directory Plugin - Version 4.1.13.2

Version Description

Download this release

Release Info

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

Code changes from version 4.1.13.1 to 4.1.13.2

README.TXT CHANGED
@@ -4,8 +4,8 @@ Donate link: http://businessdirectoryplugin.com/premium-modules/
4
  Tags: business directory, directory plugin, company business directory, chamber of commerce business directory, church directory, address book, contact directory, custom business directory, local business directory, listings directory, link directory, member directory, staff directory
5
  Requires at least: 4.3
6
  Tested up to: 4.7.6
7
- Last Updated: 2017-Jun-5
8
- Stable tag: 4.1.13.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!
@@ -143,8 +143,12 @@ If you are having problems please visit [support forum](http://www.businessdirec
143
 
144
  == Changelog ==
145
 
 
 
 
 
146
  = Version 4.1.13.1 =
147
- - Fix theme compatibility problems introduced in 4.1.13.
148
 
149
  = Version 4.1.13 =
150
  * Add shortcode to output Quick Search.
4
  Tags: business directory, directory plugin, company business directory, chamber of commerce business directory, church directory, address book, contact directory, custom business directory, local business directory, listings directory, link directory, member directory, staff directory
5
  Requires at least: 4.3
6
  Tested up to: 4.7.6
7
+ Last Updated: 2017-Jun-7
8
+ Stable tag: 4.1.13.2
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!
143
 
144
  == Changelog ==
145
 
146
+ = Version 4.1.13.2 =
147
+ * Fix buttons in main box ignoring settings.
148
+ * Restore missing Country part in address field.
149
+
150
  = Version 4.1.13.1 =
151
+ * Fix theme compatibility problems introduced in 4.1.13.
152
 
153
  = Version 4.1.13 =
154
  * Add shortcode to output Quick Search.
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.13.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.13.1' );
35
 
36
  define( 'WPBDP_PATH', wp_normalize_path( plugin_dir_path( __FILE__ ) ) );
37
  define( 'WPBDP_INC', trailingslashit( WPBDP_PATH . 'includes' ) );
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.13.2
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.13.2' );
35
 
36
  define( 'WPBDP_PATH', wp_normalize_path( plugin_dir_path( __FILE__ ) ) );
37
  define( 'WPBDP_INC', trailingslashit( WPBDP_PATH . 'includes' ) );
includes/helpers/class-field-display-list.php CHANGED
@@ -174,7 +174,7 @@ class WPBDP_Field_Display_List implements IteratorAggregate {
174
  $second_line.= ( $city && $state ) ? ', ' . $state : $state;
175
  $second_line.= $zip ? ' ' . $zip : '';
176
 
177
- return implode( '<br />', array_filter( array( $first_line, $second_line ) ) );
178
  }
179
 
180
  public function helper__address_nobr() {
174
  $second_line.= ( $city && $state ) ? ', ' . $state : $state;
175
  $second_line.= $zip ? ' ' . $zip : '';
176
 
177
+ return implode( '<br />', array_filter( array( $first_line, $second_line, $country ) ) );
178
  }
179
 
180
  public function helper__address_nobr() {
includes/templates-ui.php CHANGED
@@ -219,6 +219,10 @@ function wpbdp_main_links( $buttons = null ) {
219
 
220
  $buttons = array_filter( array_unique( $buttons ) );
221
 
 
 
 
 
222
  if ( wpbdp_get_option( 'disable-submit-listing' ) ) {
223
  $buttons = array_diff( $buttons, array( 'create' ) );
224
  }
@@ -567,7 +571,7 @@ function wpbdp_the_main_box( $args = array() ) {
567
  */
568
  function wpbdp_main_box( $args = null ) {
569
  $defaults = array(
570
- 'buttons' => 'all'
571
  );
572
  $args = wp_parse_args( $args, $defaults );
573
 
219
 
220
  $buttons = array_filter( array_unique( $buttons ) );
221
 
222
+ if ( ! $buttons ) {
223
+ return '';
224
+ }
225
+
226
  if ( wpbdp_get_option( 'disable-submit-listing' ) ) {
227
  $buttons = array_diff( $buttons, array( 'create' ) );
228
  }
571
  */
572
  function wpbdp_main_box( $args = null ) {
573
  $defaults = array(
574
+ 'buttons' => null,
575
  );
576
  $args = wp_parse_args( $args, $defaults );
577
 
templates/main-box.tpl.php CHANGED
@@ -25,10 +25,8 @@
25
  <div class="box-row separator"></div>
26
  <?php endif; ?>
27
 
28
- <?php if ( 'none' != $buttons && ! empty( $buttons ) ): ?>
29
- <div class="box-row">
30
- <?php wpbdp_the_main_links( $buttons ); ?>
31
- </div>
32
  <?php endif; ?>
33
 
34
  </div>
25
  <div class="box-row separator"></div>
26
  <?php endif; ?>
27
 
28
+ <?php if ( $main_links = wpbdp_the_main_links( $buttons ) ): ?>
29
+ <div class="box-row"><?php echo $main_links; ?></div>
 
 
30
  <?php endif; ?>
31
 
32
  </div>