Version Description
Download this release
Release Info
Developer | businessdirectoryplugin |
Plugin | Business Directory Plugin |
Version | 3.6.10.1 |
Comparing to | |
See all releases |
Code changes from version 3.6.10 to 3.6.10.1
- README.TXT +7 -2
- admin/csv-export.php +1 -1
- business-directory-plugin.php +6 -6
- core/class-form-field-type.php +1 -1
- core/class-listing.php +11 -3
- core/css/wpbdp.css +11 -5
- core/css/wpbdp.min.css +1 -1
- core/installer.php +9 -4
README.TXT
CHANGED
@@ -4,8 +4,8 @@ Donate link: http://businessdirectoryplugin.com/premium-modules/
|
|
4 |
Tags: business directory,directory,wordpress directory,wordpress directory plugin, wordpress directory theme,wordpress business directory,wordpress local directory,classified ads,classifieds,directory plugin,business directory plugin,directory widget,church directory,address book,address,member directory,members directory,city portal,city portal plugin,city guide plugin,city guide
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.3.1
|
7 |
-
Last Updated: 2015-Nov-
|
8 |
-
Stable tag: tags/3.6.10
|
9 |
License: GPLv2 or later
|
10 |
|
11 |
Build local directories, business provider listings, Yellow-Pages directories, Yelp-like review sections and much more!
|
@@ -117,6 +117,11 @@ If you are having problems please visit [support forum](http://www.businessdirec
|
|
117 |
|
118 |
== Changelog ==
|
119 |
|
|
|
|
|
|
|
|
|
|
|
120 |
= Version 3.6.10 =
|
121 |
* Fixes for recurring payments.
|
122 |
* New "Login URL" setting to control registration redirects
|
4 |
Tags: business directory,directory,wordpress directory,wordpress directory plugin, wordpress directory theme,wordpress business directory,wordpress local directory,classified ads,classifieds,directory plugin,business directory plugin,directory widget,church directory,address book,address,member directory,members directory,city portal,city portal plugin,city guide plugin,city guide
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.3.1
|
7 |
+
Last Updated: 2015-Nov-23
|
8 |
+
Stable tag: tags/3.6.10.1
|
9 |
License: GPLv2 or later
|
10 |
|
11 |
Build local directories, business provider listings, Yellow-Pages directories, Yelp-like review sections and much more!
|
117 |
|
118 |
== Changelog ==
|
119 |
|
120 |
+
= Version 3.6.10.1 =
|
121 |
+
* Fixes "no listings found" bug on some setups
|
122 |
+
* Performance improvements on search queries
|
123 |
+
* Sorting problem fix (paid first)
|
124 |
+
|
125 |
= Version 3.6.10 =
|
126 |
* Fixes for recurring payments.
|
127 |
* New "Login URL" setting to control registration redirects
|
admin/csv-export.php
CHANGED
@@ -365,7 +365,7 @@ class WPBDP_CSVExporter {
|
|
365 |
WPBDP_CATEGORY_TAX,
|
366 |
'fields=ids' );
|
367 |
$expiresdata = $wpdb->get_results( $wpdb->prepare( "SELECT category_id, expires_on FROM {$wpdb->prefix}wpbdp_listing_fees WHERE listing_id = %d", $post->ID ) );
|
368 |
-
$expiresdata = wp_list_pluck( $
|
369 |
$expiration_dates = array();
|
370 |
|
371 |
foreach ( $terms as $term_id ) {
|
365 |
WPBDP_CATEGORY_TAX,
|
366 |
'fields=ids' );
|
367 |
$expiresdata = $wpdb->get_results( $wpdb->prepare( "SELECT category_id, expires_on FROM {$wpdb->prefix}wpbdp_listing_fees WHERE listing_id = %d", $post->ID ) );
|
368 |
+
$expiresdata = wp_list_pluck( $expiresdata, 'expires_on', 'category_id' );
|
369 |
$expiration_dates = array();
|
370 |
|
371 |
foreach ( $terms as $term_id ) {
|
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: 3.6.10
|
7 |
* Author: D. Rodenbaugh
|
8 |
* Author URI: http://businessdirectoryplugin.com
|
9 |
* License: GPLv2 or any later version
|
@@ -29,7 +29,7 @@
|
|
29 |
if( preg_match( '#' . basename( __FILE__ ) . '#', $_SERVER['PHP_SELF'] ) )
|
30 |
exit();
|
31 |
|
32 |
-
define( 'WPBDP_VERSION', '3.6.10' );
|
33 |
|
34 |
define( 'WPBDP_PATH', plugin_dir_path( __FILE__ ) );
|
35 |
define( 'WPBDP_URL', trailingslashit( plugins_url( '/', __FILE__ ) ) );
|
@@ -289,7 +289,7 @@ class WPBDP_Plugin {
|
|
289 |
}
|
290 |
|
291 |
function _posts_clauses( $pieces, $query ) {
|
292 |
-
if ( is_admin() || ! isset( $query->query_vars['post_type'] ) || WPBDP_POST_TYPE != $query->query_vars['post_type'] )
|
293 |
return $pieces;
|
294 |
|
295 |
return apply_filters( 'wpbdp_query_clauses', $pieces, $query );
|
@@ -298,7 +298,7 @@ class WPBDP_Plugin {
|
|
298 |
public function _posts_fields($fields, $query) {
|
299 |
global $wpdb;
|
300 |
|
301 |
-
if (!is_admin() && isset($query->query_vars['post_type']) && $query->query_vars['post_type'] == WPBDP_POST_TYPE) {
|
302 |
$is_sticky_query = $wpdb->prepare("(SELECT 1 FROM {$wpdb->postmeta} WHERE {$wpdb->postmeta}.post_id = {$wpdb->posts}.ID AND {$wpdb->postmeta}.meta_key = %s AND {$wpdb->postmeta}.meta_value = %s LIMIT 1 ) AS wpbdp_is_sticky",
|
303 |
'_wpbdp[sticky]', 'sticky');
|
304 |
|
@@ -334,12 +334,12 @@ class WPBDP_Plugin {
|
|
334 |
public function _posts_orderby($orderby, $query) {
|
335 |
global $wpdb;
|
336 |
|
337 |
-
if (!is_admin() && isset($query->query_vars['post_type']) && $query->query_vars['post_type'] == WPBDP_POST_TYPE) {
|
338 |
$wpbdp_orderby = apply_filters('wpbdp_query_orderby', '');
|
339 |
|
340 |
if ( in_array( wpbdp_get_option( 'listings-order-by' ), array( 'paid', 'paid-title' ), true ) ) {
|
341 |
if ( 'paid-title' == wpbdp_get_option( 'listings-order-by' ) )
|
342 |
-
$orderby = "{$wpdb->posts}post_title ASC, " . $orderby;
|
343 |
|
344 |
$orderby = 'wpbdp_is_sticky DESC, wpbdp_cat_sticky DESC, wpbdp_is_paid DESC' . $wpbdp_orderby . ', ' . $orderby;
|
345 |
} else {
|
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: 3.6.10.1
|
7 |
* Author: D. Rodenbaugh
|
8 |
* Author URI: http://businessdirectoryplugin.com
|
9 |
* License: GPLv2 or any later version
|
29 |
if( preg_match( '#' . basename( __FILE__ ) . '#', $_SERVER['PHP_SELF'] ) )
|
30 |
exit();
|
31 |
|
32 |
+
define( 'WPBDP_VERSION', '3.6.10.1' );
|
33 |
|
34 |
define( 'WPBDP_PATH', plugin_dir_path( __FILE__ ) );
|
35 |
define( 'WPBDP_URL', trailingslashit( plugins_url( '/', __FILE__ ) ) );
|
289 |
}
|
290 |
|
291 |
function _posts_clauses( $pieces, $query ) {
|
292 |
+
if ( is_admin() || ! isset( $query->query_vars['post_type'] ) || WPBDP_POST_TYPE != $query->query_vars['post_type'] || $query->query_vars['p'] )
|
293 |
return $pieces;
|
294 |
|
295 |
return apply_filters( 'wpbdp_query_clauses', $pieces, $query );
|
298 |
public function _posts_fields($fields, $query) {
|
299 |
global $wpdb;
|
300 |
|
301 |
+
if ( ! is_admin() && isset($query->query_vars['post_type']) && $query->query_vars['post_type'] == WPBDP_POST_TYPE && ! $query->query_vars['p'] ) {
|
302 |
$is_sticky_query = $wpdb->prepare("(SELECT 1 FROM {$wpdb->postmeta} WHERE {$wpdb->postmeta}.post_id = {$wpdb->posts}.ID AND {$wpdb->postmeta}.meta_key = %s AND {$wpdb->postmeta}.meta_value = %s LIMIT 1 ) AS wpbdp_is_sticky",
|
303 |
'_wpbdp[sticky]', 'sticky');
|
304 |
|
334 |
public function _posts_orderby($orderby, $query) {
|
335 |
global $wpdb;
|
336 |
|
337 |
+
if ( ! is_admin() && isset($query->query_vars['post_type']) && $query->query_vars['post_type'] == WPBDP_POST_TYPE && ! $query->query_vars['p'] ) {
|
338 |
$wpbdp_orderby = apply_filters('wpbdp_query_orderby', '');
|
339 |
|
340 |
if ( in_array( wpbdp_get_option( 'listings-order-by' ), array( 'paid', 'paid-title' ), true ) ) {
|
341 |
if ( 'paid-title' == wpbdp_get_option( 'listings-order-by' ) )
|
342 |
+
$orderby = "{$wpdb->posts}.post_title ASC, " . $orderby;
|
343 |
|
344 |
$orderby = 'wpbdp_is_sticky DESC, wpbdp_cat_sticky DESC, wpbdp_is_paid DESC' . $wpbdp_orderby . ', ' . $orderby;
|
345 |
} else {
|
core/class-form-field-type.php
CHANGED
@@ -171,7 +171,7 @@ class WPBDP_Form_Field_Type {
|
|
171 |
$field->get_field_type()->get_id(),
|
172 |
implode(' ', $field->get_css_classes( $render_context ) ),
|
173 |
$this->html_attributes( $field->html_attributes ) );
|
174 |
-
$html .= sprintf( '<div class="label"><label>%s</label></div>', esc_html( apply_filters( 'wpbdp_render_field_label', $field->get_label(), $field ) ) );
|
175 |
$html .= '<div class="field inner">';
|
176 |
|
177 |
$field_inner = $this->render_field_inner( $field, $value, $render_context, $extra, $field_settings );
|
171 |
$field->get_field_type()->get_id(),
|
172 |
implode(' ', $field->get_css_classes( $render_context ) ),
|
173 |
$this->html_attributes( $field->html_attributes ) );
|
174 |
+
$html .= sprintf( '<div class="wpbdp-search-field-label"><label>%s</label></div>', esc_html( apply_filters( 'wpbdp_render_field_label', $field->get_label(), $field ) ) );
|
175 |
$html .= '<div class="field inner">';
|
176 |
|
177 |
$field_inner = $this->render_field_inner( $field, $value, $render_context, $extra, $field_settings );
|
core/class-listing.php
CHANGED
@@ -401,9 +401,17 @@ class WPBDP_Listing {
|
|
401 |
}
|
402 |
|
403 |
public function get_total_cost() {
|
404 |
-
|
405 |
-
|
406 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
407 |
}
|
408 |
|
409 |
public function is_published() {
|
401 |
}
|
402 |
|
403 |
public function get_total_cost() {
|
404 |
+
$cost = 0.0;
|
405 |
+
|
406 |
+
foreach ( $this->get_categories( 'current' ) as $c ) {
|
407 |
+
if ( $c->fee )
|
408 |
+
$cost += floatval( $c->fee->amount );
|
409 |
+
}
|
410 |
+
|
411 |
+
return $cost;
|
412 |
+
// global $wpdb;
|
413 |
+
// $cost = floatval( $wpdb->get_var( $wpdb->prepare( "SELECT SUM(amount) FROM {$wpdb->prefix}wpbdp_payments WHERE listing_id = %d", $this->id ) ) );
|
414 |
+
// return round( $cost, 2 );
|
415 |
}
|
416 |
|
417 |
public function is_published() {
|
core/css/wpbdp.css
CHANGED
@@ -28,7 +28,7 @@ form#wpbdmsearchform a.advanced-search-link {
|
|
28 |
clear: both;
|
29 |
}
|
30 |
|
31 |
-
#wpbdp-search-form .wpbdp-search-filter >
|
32 |
display: block;
|
33 |
width: 40%;
|
34 |
float: left;
|
@@ -243,10 +243,16 @@ form#wpbdmsearchform a.advanced-search-link {
|
|
243 |
}
|
244 |
|
245 |
/* Work-around a known FB like button CSS issue (http://stackoverflow.com/questions/8311012/facebook-like-button-dialog-overflow-issue) */
|
246 |
-
.social-field.facebook .fb-like > span {
|
247 |
-
|
248 |
-
|
249 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
250 |
}
|
251 |
|
252 |
/* listing contact form */
|
28 |
clear: both;
|
29 |
}
|
30 |
|
31 |
+
#wpbdp-search-form .wpbdp-search-filter > .wpbdp-search-field-label {
|
32 |
display: block;
|
33 |
width: 40%;
|
34 |
float: left;
|
243 |
}
|
244 |
|
245 |
/* Work-around a known FB like button CSS issue (http://stackoverflow.com/questions/8311012/facebook-like-button-dialog-overflow-issue) */
|
246 |
+
.social-field.facebook .fb-like > span {
|
247 |
+
overflow: visible !important;
|
248 |
+
width: 450px !important;
|
249 |
+
/* margin-right: -375px;*/
|
250 |
+
}
|
251 |
+
|
252 |
+
@media screen and (max-width: 500px) {
|
253 |
+
.social-field.facebook .fb-like > span {
|
254 |
+
width: 100% !important;
|
255 |
+
}
|
256 |
}
|
257 |
|
258 |
/* listing contact form */
|
core/css/wpbdp.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
form#wpbdmsearchform{padding:12px 0;text-align:center}form#wpbdmsearchform input{display:inline}form#wpbdmsearchform .wpbdmsearchbutton{margin-top:5px}form#wpbdmsearchform a.advanced-search-link{font-size:70%;display:block}#wpbdp-search-form{padding-left:10px}#wpbdp-search-form .wpbdp-search-filter{margin-bottom:10px;clear:both}#wpbdp-search-form .wpbdp-search-filter>div.label{display:block;width:40%;float:left}#wpbdp-search-form .wpbdp-search-filter>div.field{display:block;width:60%;margin-left:40%;padding-left:5px}#wpbdp-search-form .wpbdp-search-filter>div.field>input[type="text"]{width:90%}#wpbdp-search-form .wpbdp-search-filter>div.field>select{width:90%}#wpbdp-search-form input[type="submit"]{width:100px;float:none;margin:auto}.cf:before,.cf:after{content:" ";display:table}.cf:after{clear:both}.cf{*zoom:1}.wpbdp-pagination{margin:25px 0 0 0}.wpbdp-pagination .next{float:right}.listing-actions form{margin:0;padding:0;display:inline}.listing-actions input{margin:0}.listing-actions input.delete-listing{margin-left:5px;margin-right:30px;color:#f00 !important}.listing-actions a.button{padding:5px 10px;font-size:11px;text-decoration:none;background-color:#e6e6e6;color:#7c7c7c;background-repeat:repeat-x;background-image:-moz-linear-gradient(top,#f4f4f4,#e6e6e6);background-image:-ms-linear-gradient(top,#f4f4f4,#e6e6e6);background-image:-webkit-linear-gradient(top,#f4f4f4,#e6e6e6);background-image:-o-linear-gradient(top,#f4f4f4,#e6e6e6);background-image:linear-gradient(top,#f4f4f4,#e6e6e6);border:1px solid #d2d2d2;border-radius:3px;box-shadow:0 1px 2px rgba(64,64,64,0.1);margin-right:3px}.listing-actions a.button:hover{color:#5e5e5e;background-color:#ebebeb;background-repeat:repeat-x;background-image:-moz-linear-gradient(top,#f9f9f9,#ebebeb);background-image:-ms-linear-gradient(top,#f9f9f9,#ebebeb);background-image:-webkit-linear-gradient(top,#f9f9f9,#ebebeb);background-image:-o-linear-gradient(top,#f9f9f9,#ebebeb);background-image:linear-gradient(top,#f9f9f9,#ebebeb)}.listing-actions a.delete-listing{margin-left:20px;color:red}.wpbdp-listing .listing-details .field-value{margin-bottom:10px;width:100%;float:none}.wpbdmsingledetails .singledetailsview .field-value{margin-bottom:10px}.field-value label{color:#444;font-weight:bold}.wpbdp-listing-excerpt{padding:10px;border-bottom:dotted 1px #ddd}.wpbdp-listing-excerpt.odd{background:#eee}.wpbdp-listing-excerpt.sticky{background:#fff0cf;border-bottom:solid 1px #b37800}.wpbdp-listing-excerpt .listing-thumbnail{float:right;margin:0 10px 0 0}.wpbdp-listing-excerpt .listing-actions{margin-top:15px}.wpbdp-listing-single .listing-actions{margin-bottom:25px}.wpbdp-listing-single .stickytag{float:right;margin-top:-68px}.wpbdp-listing-single .stickytag img{border:0;box-shadow:none;background:transparent}.wpbdp-listing-single .listing-title{padding:2px 8px;background:#efefef;border:dotted 1px #ddd;margin-bottom:7px}.wpbdp-listing-single .listing-title h2{clear:none;margin:0}.wpbdp-listing-single .main-image{float:right;margin-left:10px;padding:5px}.wpbdp-listing-single .main-image a{position:relative !important}.wpbdp-listing-single .main-image img{border:solid 1px #333}.wpbdp-listing-single .extra-images{margin-top:10px;clear:both}.wpbdp-listing-single .extra-images ul{margin:0 auto;width:100%}.wpbdp-listing-single .extra-images ul li{list-style-type:none;display:inline;margin-left:5px}.wpbdp-listing-single .extra-images ul li img{display:inline;vertical-align:top;margin:0 auto;max-width:150px;border:solid 1px #333}.wpbdp-listing .social-fields{margin:20px 0}.wpbdp-listing .social-field{margin:5px 0;height:30px;vertical-align:middle}.social-field.facebook .fb-like>span{overflow:visible !important;width:450px !important;margin-right:-375px}.wpbdp-listing .contact-form{margin-top:20px;border-top:dotted 1px #ddd;padding-top:20px;padding-left:10px}.wpbdp-listing .contact-form .send-message-button{margin-left:-10px}.wpbdp-listing .contact-form h3{margin-left:-10px}.wpbdp-listing .contact-form textarea{width:98% !important}.wpbdp-listing .comments{margin-top:20px}.wpbdp-bar{background:#f7f7f7;margin:10px 0 20px 0;padding:5px 10px}.wpbdp-bar .wpbdp-main-links{float:left}.wpbdp-bar .wpbdp-search-form{margin:0;padding:0 !important;margin-left:50%}.wpbdp-main-links a{margin-right:15px}.wpbdp-bar .left{float:left;text-align:center}.wpbdp-bar .right{width:300px;float:right}.wpbdp-listings-sort-options{font-size:90%;margin:5px 0;text-align:right}.wpbdp-listings-sort-options .current{font-weight:bold}.wpbdp-main-page #wpbdp-categories{clear:both;margin-bottom:20px}ul.wpbdp-categories{margin:0 0 10px 15px;padding:0 10px}ul.wpbdp-categories>li{width:50%;float:left;margin:0}@media screen and (max-width:704px){ul.wpbdp-categories>li{float:none;width:initial}}@media screen and (max-width:500px){ul.wpbdp-categories{font-size:90%}ul.wpbdp-categories ul.children li.cat-item{margin-left:10px;padding:0}}.wpbdp-submit-page h3{margin-bottom:10px}.wpbdp-submit-page .wpbdmp{margin:0}.wpbdp-submit-page legend{font-size:85%;margin-bottom:20px}.wpbdp-submit-page .wpbdp-form-field{margin-bottom:8px}.wpbdp-submit-page .wpbdp-form-field .wpbdmcheckboxclass checkbox{margin-left:0}.wpbdp-submit-page .wpbdp-form-field.required .wpbdp-form-field-label:after{content:' *';font-size:80%}.wpbdp-form-field .field-description{font-size:90%;color:#696969;float:right}.wpbdp-form-field span.sublabel{font-size:90%;margin-left:10px;margin-right:10px}.wpbdp-form-field.image a.delete{margin-left:10px}ul.validation-errors{margin:15px 0 15px 0}ul.validation-errors li{color:red;margin:3px 0;list-style-position:inside}.wpbdp-submit-page.step-fees h4{background:#ddd;color:#333;padding:10px;margin-bottom:5px}.wpbdp-submit-page.step-images #image-upload-form{margin:15px 10px}.wpbdp-submit-page.step-images .wpbdp-image{float:left;border-bottom:dotted 1px #efefef;margin-right:10px;margin-bottom:10px;vertical-align:top}.wpbdp-submit-page.step-images .wpbdp-image img{vertical-align:top;text-align:center;max-width:150px;height:auto}.wpbdp-submit-page.step-images .area-and-conditions #image-upload-dnd-area{float:left;width:72%}.wpbdp-submit-page.step-images .area-and-conditions #image-upload-conditions{float:right;width:25%;color:#666}.wpbdp-submit-page.step-images .area-and-conditions #image-upload-conditions dl{margin:0}.wpbdp-submit-page.step-images #image-upload-form-no-js{width:0;height:0;overflow:hidden;visibility:hidden}.wpbdp-submit-page.step-images .wpbdp-image .delete-image{color:red}.wpbdp-submit-page .upgrade-to-featured-option{border:solid 1px #666;padding:5px 10px;margin:25px 0 25px 0;font-size:90%}.wpbdp-msg{font-size:85%;padding:.6em;border:solid 1px #e6db55;color:#555;margin:5px 0;background:#fffbcc;border-radius:3px}.wpbdp-msg.error{background-color:#ffebe8;border-color:#C00}.wpbdp-submit-page table.fee-options{width:100%}.wpbdp-submit-page table.fee-options th,.wpbdp-submit-page table.fee-options td{text-align:center}.wpbdp-submit-page table.fee-options .fee-selection{width:5%}.wpbdp-submit-page table.fee-options tr.fee-option td.fee-label{font-weight:bold}.wpbdp-submit-page table.fee-options td.fee-description{font-size:90%;color:#666}#wpbdp-renewal-page .do-not-renew-listing{margin:40px 0;border:solid 1px #eee;font-size:95%}#wpbdp-renewal-page .do-not-renew-listing .header{background:#bc0b0b;color:#fff;text-align:center;font-weight:bold;padding:2px 0}#wpbdp-renewal-page .do-not-renew-listing input[type="submit"]{color:#900000}.wpbdp-recaptcha-error{color:red}#wpbdp-delete-listing-page form.confirm-form{margin-top:30px}#wpbdp-delete-listing-page input.delete-listing-confirm{margin-left:20px;color:#c00}#googlewallet-buy img{border:0;box-shadow:none}table#wpbdp-manage-recurring th.listing-title,table#wpbdp-manage-recurring td.listing-title{min-width:200px}table#wpbdp-manage-recurring a.cancel-subscription{color:red}#wpbdp-manage-recurring-cancel dl dd{margin-left:10px}.wpbdp-cc-form{padding:0;width:90%}.wpbdp-cc-form h4{margin:0}.wpbdp-cc-field input{width:auto}.wpbdp-cc-field label{display:block;font-weight:bold;text-align:right;padding-right:10px}#wpbdp-billing-information .billing-info-section h4{margin-bottom:5px}#wpbdp-billing-information .billing-info-section table{margin:10px 0 0 20px}#wpbdp-billing-information .form-buttons{margin:15px 0}.wpbdp-show-on-mobile{display:none}@media screen and (max-width:500px){.wpbdp-show-on-mobile{display:inline !important}.wpbdp-hide-on-mobile{display:none}.wpbdp-bar .wpbdp-main-links{display:block}.wpbdp-bar .wpbdp-main-links input[type="button"]{display:block;margin-bottom:2px}.wpbdp-bar form.wpbdp-search-form{width:49%;display:block}.wpbdp-bar form.wpbdp-search-form input[type="text"]{padding:4px 0;margin:0 0 2px 0}.wpbdp-listings-sort-options{font-size:90%}.wpbdp-listing.wpbdp-listing{font-size:90%}.wpbdp-listing.wpbdp-listing-excerpt .field-value>label{display:block}.wpbdp-listing.wpbdp-listing-excerpt .listing-thumbnail{padding:5px}.wpbdp-listing .listing-actions input{font-size:85%}.wpbdp-listing .listing-actions input.back-to-dir{float:right}.wpbdp-listing.wpbdp-listing-single .main-image{display:block;float:none;padding:0;margin:0 0 10px 0;text-align:center;max-width:90%}.wpbdp-listing.wpbdp-listing-single .field-value>label{display:block}.wpbdp-submit-page.step-images #image-upload-dnd-area{font-size:90%;float:none !important;width:100% !important}.wpbdp-submit-page.step-images .dnd-area-inside-error{margin-top:30px}.wpbdp-submit-page.step-images #image-upload-conditions{width:100% !important;float:none !important;font-size:90%}.wpbdp-submit-page.step-images #image-upload-conditions dl{margin:0;padding:0}.wpbdp-submit-page.step-images #image-upload-conditions dl dt{margin:0;margin-right:5px;padding:0;float:left}.wpbdp-submit-page.step-images #image-upload-conditions dl dd{margin:0;padding:0;display:block}.wpbdp-submit-page.step-images .wpbdp-image img{max-width:50%}.wpbdp-listings-sort-options.wpbdp-show-on-mobile{margin-bottom:10px}}body.business-directory #TB_ImageOff .screen-reader-text,body.business-directory #TB_closeWindowButton .screen-reader-text{visibility:hidden}body.business-directory #TB_next{float:right}body.business-directory #TB_prev{float:left}body.business-directory #TB_caption{float:none !important}body.business-directory #TB_closeWindow{padding:0;height:0}body.business-directory #TB_closeWindow .screen-reader-text{display:none}body.business-directory #TB_secondLine{text-align:center}
|
1 |
+
form#wpbdmsearchform{padding:12px 0;text-align:center}form#wpbdmsearchform input{display:inline}form#wpbdmsearchform .wpbdmsearchbutton{margin-top:5px}form#wpbdmsearchform a.advanced-search-link{font-size:70%;display:block}#wpbdp-search-form{padding-left:10px}#wpbdp-search-form .wpbdp-search-filter{margin-bottom:10px;clear:both}#wpbdp-search-form .wpbdp-search-filter>.wpbdp-search-field-label{display:block;width:40%;float:left}#wpbdp-search-form .wpbdp-search-filter>div.field{display:block;width:60%;margin-left:40%;padding-left:5px}#wpbdp-search-form .wpbdp-search-filter>div.field>input[type="text"]{width:90%}#wpbdp-search-form .wpbdp-search-filter>div.field>select{width:90%}#wpbdp-search-form input[type="submit"]{width:100px;float:none;margin:auto}.cf:before,.cf:after{content:" ";display:table}.cf:after{clear:both}.cf{*zoom:1}.wpbdp-pagination{margin:25px 0 0 0}.wpbdp-pagination .next{float:right}.listing-actions form{margin:0;padding:0;display:inline}.listing-actions input{margin:0}.listing-actions input.delete-listing{margin-left:5px;margin-right:30px;color:#f00 !important}.listing-actions a.button{padding:5px 10px;font-size:11px;text-decoration:none;background-color:#e6e6e6;color:#7c7c7c;background-repeat:repeat-x;background-image:-moz-linear-gradient(top,#f4f4f4,#e6e6e6);background-image:-ms-linear-gradient(top,#f4f4f4,#e6e6e6);background-image:-webkit-linear-gradient(top,#f4f4f4,#e6e6e6);background-image:-o-linear-gradient(top,#f4f4f4,#e6e6e6);background-image:linear-gradient(top,#f4f4f4,#e6e6e6);border:1px solid #d2d2d2;border-radius:3px;box-shadow:0 1px 2px rgba(64,64,64,0.1);margin-right:3px}.listing-actions a.button:hover{color:#5e5e5e;background-color:#ebebeb;background-repeat:repeat-x;background-image:-moz-linear-gradient(top,#f9f9f9,#ebebeb);background-image:-ms-linear-gradient(top,#f9f9f9,#ebebeb);background-image:-webkit-linear-gradient(top,#f9f9f9,#ebebeb);background-image:-o-linear-gradient(top,#f9f9f9,#ebebeb);background-image:linear-gradient(top,#f9f9f9,#ebebeb)}.listing-actions a.delete-listing{margin-left:20px;color:red}.wpbdp-listing .listing-details .field-value{margin-bottom:10px;width:100%;float:none}.wpbdmsingledetails .singledetailsview .field-value{margin-bottom:10px}.field-value label{color:#444;font-weight:bold}.wpbdp-listing-excerpt{padding:10px;border-bottom:dotted 1px #ddd}.wpbdp-listing-excerpt.odd{background:#eee}.wpbdp-listing-excerpt.sticky{background:#fff0cf;border-bottom:solid 1px #b37800}.wpbdp-listing-excerpt .listing-thumbnail{float:right;margin:0 10px 0 0}.wpbdp-listing-excerpt .listing-actions{margin-top:15px}.wpbdp-listing-single .listing-actions{margin-bottom:25px}.wpbdp-listing-single .stickytag{float:right;margin-top:-68px}.wpbdp-listing-single .stickytag img{border:0;box-shadow:none;background:transparent}.wpbdp-listing-single .listing-title{padding:2px 8px;background:#efefef;border:dotted 1px #ddd;margin-bottom:7px}.wpbdp-listing-single .listing-title h2{clear:none;margin:0}.wpbdp-listing-single .main-image{float:right;margin-left:10px;padding:5px}.wpbdp-listing-single .main-image a{position:relative !important}.wpbdp-listing-single .main-image img{border:solid 1px #333}.wpbdp-listing-single .extra-images{margin-top:10px;clear:both}.wpbdp-listing-single .extra-images ul{margin:0 auto;width:100%}.wpbdp-listing-single .extra-images ul li{list-style-type:none;display:inline;margin-left:5px}.wpbdp-listing-single .extra-images ul li img{display:inline;vertical-align:top;margin:0 auto;max-width:150px;border:solid 1px #333}.wpbdp-listing .social-fields{margin:20px 0}.wpbdp-listing .social-field{margin:5px 0;height:30px;vertical-align:middle}.social-field.facebook .fb-like>span{overflow:visible !important;width:450px !important}@media screen and (max-width:500px){.social-field.facebook .fb-like>span{width:100% !important}}.wpbdp-listing .contact-form{margin-top:20px;border-top:dotted 1px #ddd;padding-top:20px;padding-left:10px}.wpbdp-listing .contact-form .send-message-button{margin-left:-10px}.wpbdp-listing .contact-form h3{margin-left:-10px}.wpbdp-listing .contact-form textarea{width:98% !important}.wpbdp-listing .comments{margin-top:20px}.wpbdp-bar{background:#f7f7f7;margin:10px 0 20px 0;padding:5px 10px}.wpbdp-bar .wpbdp-main-links{float:left}.wpbdp-bar .wpbdp-search-form{margin:0;padding:0 !important;margin-left:50%}.wpbdp-main-links a{margin-right:15px}.wpbdp-bar .left{float:left;text-align:center}.wpbdp-bar .right{width:300px;float:right}.wpbdp-listings-sort-options{font-size:90%;margin:5px 0;text-align:right}.wpbdp-listings-sort-options .current{font-weight:bold}.wpbdp-main-page #wpbdp-categories{clear:both;margin-bottom:20px}ul.wpbdp-categories{margin:0 0 10px 15px;padding:0 10px}ul.wpbdp-categories>li{width:50%;float:left;margin:0}@media screen and (max-width:704px){ul.wpbdp-categories>li{float:none;width:initial}}@media screen and (max-width:500px){ul.wpbdp-categories{font-size:90%}ul.wpbdp-categories ul.children li.cat-item{margin-left:10px;padding:0}}.wpbdp-submit-page h3{margin-bottom:10px}.wpbdp-submit-page .wpbdmp{margin:0}.wpbdp-submit-page legend{font-size:85%;margin-bottom:20px}.wpbdp-submit-page .wpbdp-form-field{margin-bottom:8px}.wpbdp-submit-page .wpbdp-form-field .wpbdmcheckboxclass checkbox{margin-left:0}.wpbdp-submit-page .wpbdp-form-field.required .wpbdp-form-field-label:after{content:' *';font-size:80%}.wpbdp-form-field .field-description{font-size:90%;color:#696969;float:right}.wpbdp-form-field span.sublabel{font-size:90%;margin-left:10px;margin-right:10px}.wpbdp-form-field.image a.delete{margin-left:10px}ul.validation-errors{margin:15px 0 15px 0}ul.validation-errors li{color:red;margin:3px 0;list-style-position:inside}.wpbdp-submit-page.step-fees h4{background:#ddd;color:#333;padding:10px;margin-bottom:5px}.wpbdp-submit-page.step-images #image-upload-form{margin:15px 10px}.wpbdp-submit-page.step-images .wpbdp-image{float:left;border-bottom:dotted 1px #efefef;margin-right:10px;margin-bottom:10px;vertical-align:top}.wpbdp-submit-page.step-images .wpbdp-image img{vertical-align:top;text-align:center;max-width:150px;height:auto}.wpbdp-submit-page.step-images .area-and-conditions #image-upload-dnd-area{float:left;width:72%}.wpbdp-submit-page.step-images .area-and-conditions #image-upload-conditions{float:right;width:25%;color:#666}.wpbdp-submit-page.step-images .area-and-conditions #image-upload-conditions dl{margin:0}.wpbdp-submit-page.step-images #image-upload-form-no-js{width:0;height:0;overflow:hidden;visibility:hidden}.wpbdp-submit-page.step-images .wpbdp-image .delete-image{color:red}.wpbdp-submit-page .upgrade-to-featured-option{border:solid 1px #666;padding:5px 10px;margin:25px 0 25px 0;font-size:90%}.wpbdp-msg{font-size:85%;padding:.6em;border:solid 1px #e6db55;color:#555;margin:5px 0;background:#fffbcc;border-radius:3px}.wpbdp-msg.error{background-color:#ffebe8;border-color:#C00}.wpbdp-submit-page table.fee-options{width:100%}.wpbdp-submit-page table.fee-options th,.wpbdp-submit-page table.fee-options td{text-align:center}.wpbdp-submit-page table.fee-options .fee-selection{width:5%}.wpbdp-submit-page table.fee-options tr.fee-option td.fee-label{font-weight:bold}.wpbdp-submit-page table.fee-options td.fee-description{font-size:90%;color:#666}#wpbdp-renewal-page .do-not-renew-listing{margin:40px 0;border:solid 1px #eee;font-size:95%}#wpbdp-renewal-page .do-not-renew-listing .header{background:#bc0b0b;color:#fff;text-align:center;font-weight:bold;padding:2px 0}#wpbdp-renewal-page .do-not-renew-listing input[type="submit"]{color:#900000}.wpbdp-recaptcha-error{color:red}#wpbdp-delete-listing-page form.confirm-form{margin-top:30px}#wpbdp-delete-listing-page input.delete-listing-confirm{margin-left:20px;color:#c00}#googlewallet-buy img{border:0;box-shadow:none}table#wpbdp-manage-recurring th.listing-title,table#wpbdp-manage-recurring td.listing-title{min-width:200px}table#wpbdp-manage-recurring a.cancel-subscription{color:red}#wpbdp-manage-recurring-cancel dl dd{margin-left:10px}.wpbdp-cc-form{padding:0;width:90%}.wpbdp-cc-form h4{margin:0}.wpbdp-cc-field input{width:auto}.wpbdp-cc-field label{display:block;font-weight:bold;text-align:right;padding-right:10px}#wpbdp-billing-information .billing-info-section h4{margin-bottom:5px}#wpbdp-billing-information .billing-info-section table{margin:10px 0 0 20px}#wpbdp-billing-information .form-buttons{margin:15px 0}.wpbdp-show-on-mobile{display:none}@media screen and (max-width:500px){.wpbdp-show-on-mobile{display:inline !important}.wpbdp-hide-on-mobile{display:none}.wpbdp-bar .wpbdp-main-links{display:block}.wpbdp-bar .wpbdp-main-links input[type="button"]{display:block;margin-bottom:2px}.wpbdp-bar form.wpbdp-search-form{width:49%;display:block}.wpbdp-bar form.wpbdp-search-form input[type="text"]{padding:4px 0;margin:0 0 2px 0}.wpbdp-listings-sort-options{font-size:90%}.wpbdp-listing.wpbdp-listing{font-size:90%}.wpbdp-listing.wpbdp-listing-excerpt .field-value>label{display:block}.wpbdp-listing.wpbdp-listing-excerpt .listing-thumbnail{padding:5px}.wpbdp-listing .listing-actions input{font-size:85%}.wpbdp-listing .listing-actions input.back-to-dir{float:right}.wpbdp-listing.wpbdp-listing-single .main-image{display:block;float:none;padding:0;margin:0 0 10px 0;text-align:center;max-width:90%}.wpbdp-listing.wpbdp-listing-single .field-value>label{display:block}.wpbdp-submit-page.step-images #image-upload-dnd-area{font-size:90%;float:none !important;width:100% !important}.wpbdp-submit-page.step-images .dnd-area-inside-error{margin-top:30px}.wpbdp-submit-page.step-images #image-upload-conditions{width:100% !important;float:none !important;font-size:90%}.wpbdp-submit-page.step-images #image-upload-conditions dl{margin:0;padding:0}.wpbdp-submit-page.step-images #image-upload-conditions dl dt{margin:0;margin-right:5px;padding:0;float:left}.wpbdp-submit-page.step-images #image-upload-conditions dl dd{margin:0;padding:0;display:block}.wpbdp-submit-page.step-images .wpbdp-image img{max-width:50%}.wpbdp-listings-sort-options.wpbdp-show-on-mobile{margin-bottom:10px}}body.business-directory #TB_ImageOff .screen-reader-text,body.business-directory #TB_closeWindowButton .screen-reader-text{visibility:hidden}body.business-directory #TB_next{float:right}body.business-directory #TB_prev{float:left}body.business-directory #TB_caption{float:none !important}body.business-directory #TB_closeWindow{padding:0;height:0}body.business-directory #TB_closeWindow .screen-reader-text{display:none}body.business-directory #TB_secondLine{text-align:center}
|
core/installer.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
class WPBDP_Installer {
|
4 |
|
5 |
-
const DB_VERSION = '
|
6 |
|
7 |
private $installed_version = null;
|
8 |
|
@@ -69,7 +69,8 @@ class WPBDP_Installer {
|
|
69 |
display_flags text CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
|
70 |
field_data blob NULL,
|
71 |
shortname varchar(255) NOT NULL DEFAULT '',
|
72 |
-
tag varchar(255) NOT NULL DEFAULT ''
|
|
|
73 |
) DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;";
|
74 |
|
75 |
$schema['fees'] = "CREATE TABLE {$wpdb->prefix}wpbdp_fees (
|
@@ -97,7 +98,9 @@ class WPBDP_Installer {
|
|
97 |
payerinfo blob NULL,
|
98 |
extra_data longblob NULL,
|
99 |
notes longblob NULL,
|
100 |
-
tag varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL
|
|
|
|
|
101 |
) DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;";
|
102 |
|
103 |
$schema['payments_items'] = "CREATE TABLE {$wpdb->prefix}wpbdp_payments_items (
|
@@ -123,7 +126,9 @@ class WPBDP_Installer {
|
|
123 |
recurring tinyint(1) NOT NULL DEFAULT 0,
|
124 |
recurring_id varchar(255) NULL,
|
125 |
recurring_data blob NULL,
|
126 |
-
sticky tinyint(1) NOT NULL DEFAULT 0
|
|
|
|
|
127 |
) DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;";
|
128 |
|
129 |
$schema['submit_state'] = "CREATE TABLE {$wpdb->prefix}wpbdp_submit_state (
|
2 |
|
3 |
class WPBDP_Installer {
|
4 |
|
5 |
+
const DB_VERSION = '9';
|
6 |
|
7 |
private $installed_version = null;
|
8 |
|
69 |
display_flags text CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
|
70 |
field_data blob NULL,
|
71 |
shortname varchar(255) NOT NULL DEFAULT '',
|
72 |
+
tag varchar(255) NOT NULL DEFAULT '',
|
73 |
+
KEY field_type (field_type)
|
74 |
) DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;";
|
75 |
|
76 |
$schema['fees'] = "CREATE TABLE {$wpdb->prefix}wpbdp_fees (
|
98 |
payerinfo blob NULL,
|
99 |
extra_data longblob NULL,
|
100 |
notes longblob NULL,
|
101 |
+
tag varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL,
|
102 |
+
KEY listing_id (listing_id),
|
103 |
+
KEY status (status)
|
104 |
) DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;";
|
105 |
|
106 |
$schema['payments_items'] = "CREATE TABLE {$wpdb->prefix}wpbdp_payments_items (
|
126 |
recurring tinyint(1) NOT NULL DEFAULT 0,
|
127 |
recurring_id varchar(255) NULL,
|
128 |
recurring_data blob NULL,
|
129 |
+
sticky tinyint(1) NOT NULL DEFAULT 0,
|
130 |
+
KEY listing_cat (listing_id,category_id),
|
131 |
+
KEY expires_and_email (expires_on,email_sent)
|
132 |
) DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;";
|
133 |
|
134 |
$schema['submit_state'] = "CREATE TABLE {$wpdb->prefix}wpbdp_submit_state (
|