Version Description
This minor update fixes a problem in which the option to show or hide the contact details in a widget had disappeared.
Download this release
Release Info
Developer | NateWr |
Plugin | Business Profile |
Version | 1.0.5 |
Comparing to | |
See all releases |
Code changes from version 1.0.4 to 1.0.5
- business-profile.php +1 -1
- includes/Integrations.class.php +1 -1
- includes/Settings.class.php +8 -8
- includes/WP_Widget.ContactCardWidget.class.php +1 -1
- readme.txt +8 -2
business-profile.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Business Profile
|
4 |
* Plugin URI: http://themeofthecrop.com
|
5 |
* Description: Contact information, Google Maps and opening hours made easy for businesses.
|
6 |
-
* Version: 1.0.
|
7 |
* Author: Theme of the Crop
|
8 |
* Author URI: http://themeofthecrop.com
|
9 |
* License: GNU General Public License v2.0 or later
|
3 |
* Plugin Name: Business Profile
|
4 |
* Plugin URI: http://themeofthecrop.com
|
5 |
* Description: Contact information, Google Maps and opening hours made easy for businesses.
|
6 |
+
* Version: 1.0.5
|
7 |
* Author: Theme of the Crop
|
8 |
* Author URI: http://themeofthecrop.com
|
9 |
* License: GNU General Public License v2.0 or later
|
includes/Integrations.class.php
CHANGED
@@ -123,7 +123,7 @@ class bpfwpIntegrations {
|
|
123 |
|
124 |
if ( !empty( $pos ) ) {
|
125 |
$a = array_slice( $toggles, 0, $pos );
|
126 |
-
$b = array_slice( $toggles, $pos
|
127 |
$toggles = array_merge( $a, array( 'show_booking_link' => __( 'Show book a table link', BPFWP_TEXTDOMAIN ) ) , $b );
|
128 |
|
129 |
// If no short links are being displayed, just add it to the bottom.
|
123 |
|
124 |
if ( !empty( $pos ) ) {
|
125 |
$a = array_slice( $toggles, 0, $pos );
|
126 |
+
$b = array_slice( $toggles, $pos );
|
127 |
$toggles = array_merge( $a, array( 'show_booking_link' => __( 'Show book a table link', BPFWP_TEXTDOMAIN ) ) , $b );
|
128 |
|
129 |
// If no short links are being displayed, just add it to the bottom.
|
includes/Settings.class.php
CHANGED
@@ -148,14 +148,14 @@ class bpfwpSettings {
|
|
148 |
$sap->add_section(
|
149 |
'bpfwp-settings',
|
150 |
array(
|
151 |
-
'id' => '
|
152 |
'title' => __( 'Contact Information', BPFWP_TEXTDOMAIN ),
|
153 |
)
|
154 |
);
|
155 |
|
156 |
$sap->add_setting(
|
157 |
'bpfwp-settings',
|
158 |
-
'
|
159 |
'text',
|
160 |
array(
|
161 |
'id' => 'name',
|
@@ -167,7 +167,7 @@ class bpfwpSettings {
|
|
167 |
|
168 |
$sap->add_setting(
|
169 |
'bpfwp-settings',
|
170 |
-
'
|
171 |
'address',
|
172 |
array(
|
173 |
'id' => 'address',
|
@@ -177,7 +177,7 @@ class bpfwpSettings {
|
|
177 |
|
178 |
$sap->add_setting(
|
179 |
'bpfwp-settings',
|
180 |
-
'
|
181 |
'text',
|
182 |
array(
|
183 |
'id' => 'phone',
|
@@ -187,7 +187,7 @@ class bpfwpSettings {
|
|
187 |
|
188 |
$sap->add_setting(
|
189 |
'bpfwp-settings',
|
190 |
-
'
|
191 |
'post',
|
192 |
array(
|
193 |
'id' => 'contact-page',
|
@@ -204,7 +204,7 @@ class bpfwpSettings {
|
|
204 |
|
205 |
$sap->add_setting(
|
206 |
'bpfwp-settings',
|
207 |
-
'
|
208 |
'text',
|
209 |
array(
|
210 |
'id' => 'contact-email',
|
@@ -216,14 +216,14 @@ class bpfwpSettings {
|
|
216 |
$sap->add_section(
|
217 |
'bpfwp-settings',
|
218 |
array(
|
219 |
-
'id' => '
|
220 |
'title' => __( 'Schedule', BPFWP_TEXTDOMAIN ),
|
221 |
)
|
222 |
);
|
223 |
|
224 |
$sap->add_setting(
|
225 |
'bpfwp-settings',
|
226 |
-
'
|
227 |
'scheduler',
|
228 |
array(
|
229 |
'id' => 'opening-hours',
|
148 |
$sap->add_section(
|
149 |
'bpfwp-settings',
|
150 |
array(
|
151 |
+
'id' => 'bpfwp-contact',
|
152 |
'title' => __( 'Contact Information', BPFWP_TEXTDOMAIN ),
|
153 |
)
|
154 |
);
|
155 |
|
156 |
$sap->add_setting(
|
157 |
'bpfwp-settings',
|
158 |
+
'bpfwp-contact',
|
159 |
'text',
|
160 |
array(
|
161 |
'id' => 'name',
|
167 |
|
168 |
$sap->add_setting(
|
169 |
'bpfwp-settings',
|
170 |
+
'bpfwp-contact',
|
171 |
'address',
|
172 |
array(
|
173 |
'id' => 'address',
|
177 |
|
178 |
$sap->add_setting(
|
179 |
'bpfwp-settings',
|
180 |
+
'bpfwp-contact',
|
181 |
'text',
|
182 |
array(
|
183 |
'id' => 'phone',
|
187 |
|
188 |
$sap->add_setting(
|
189 |
'bpfwp-settings',
|
190 |
+
'bpfwp-contact',
|
191 |
'post',
|
192 |
array(
|
193 |
'id' => 'contact-page',
|
204 |
|
205 |
$sap->add_setting(
|
206 |
'bpfwp-settings',
|
207 |
+
'bpfwp-contact',
|
208 |
'text',
|
209 |
array(
|
210 |
'id' => 'contact-email',
|
216 |
$sap->add_section(
|
217 |
'bpfwp-settings',
|
218 |
array(
|
219 |
+
'id' => 'bpfwp-schedule',
|
220 |
'title' => __( 'Schedule', BPFWP_TEXTDOMAIN ),
|
221 |
)
|
222 |
);
|
223 |
|
224 |
$sap->add_setting(
|
225 |
'bpfwp-settings',
|
226 |
+
'bpfwp-schedule',
|
227 |
'scheduler',
|
228 |
array(
|
229 |
'id' => 'opening-hours',
|
includes/WP_Widget.ContactCardWidget.class.php
CHANGED
@@ -75,8 +75,8 @@ class bpfwpContactCardWidget extends WP_Widget {
|
|
75 |
<?php foreach( $this->toggles as $id => $label ) : ?>
|
76 |
|
77 |
<p>
|
78 |
-
<label for="<?php echo $this->get_field_id( $id ); ?>"> <?php echo $label; ?></label>
|
79 |
<input type="checkbox" id="<?php echo $this->get_field_id( $id ); ?>" name="<?php echo $this->get_field_name( $id ); ?>" value="1"<?php if ( !empty( $instance[$id] ) ) : ?> checked="checked"<?php endif; ?>>
|
|
|
80 |
</p>
|
81 |
|
82 |
<?php endforeach;
|
75 |
<?php foreach( $this->toggles as $id => $label ) : ?>
|
76 |
|
77 |
<p>
|
|
|
78 |
<input type="checkbox" id="<?php echo $this->get_field_id( $id ); ?>" name="<?php echo $this->get_field_name( $id ); ?>" value="1"<?php if ( !empty( $instance[$id] ) ) : ?> checked="checked"<?php endif; ?>>
|
79 |
+
<label for="<?php echo $this->get_field_id( $id ); ?>"> <?php echo $label; ?></label>
|
80 |
</p>
|
81 |
|
82 |
<?php endforeach;
|
readme.txt
CHANGED
@@ -3,9 +3,9 @@ Contributors: NateWr
|
|
3 |
Author URI: https://github.com/NateWr
|
4 |
Plugin URL: http://themeofthecrop.com
|
5 |
Requires at Least: 3.9
|
6 |
-
Tested Up To: 4.
|
7 |
Tags: business profile, address, google map, schema, contact, phone, address, seo
|
8 |
-
Stable tag: 1.0.
|
9 |
License: GPLv2 or later
|
10 |
Donate link: http://themeofthecrop.com
|
11 |
|
@@ -52,6 +52,9 @@ This plugin is packed with hooks so you can extend it as needed. Development tak
|
|
52 |
|
53 |
== Changelog ==
|
54 |
|
|
|
|
|
|
|
55 |
= 1.0.4 (2014-09-11) =
|
56 |
* Fix: contact link/email doesn't get shown.
|
57 |
|
@@ -74,6 +77,9 @@ This plugin is packed with hooks so you can extend it as needed. Development tak
|
|
74 |
|
75 |
== Upgrade Notice ==
|
76 |
|
|
|
|
|
|
|
77 |
= 1.0.4 =
|
78 |
This minor update fixes a problem in which a contact page or email address wouldn't get printed with the contact card.
|
79 |
|
3 |
Author URI: https://github.com/NateWr
|
4 |
Plugin URL: http://themeofthecrop.com
|
5 |
Requires at Least: 3.9
|
6 |
+
Tested Up To: 4.1
|
7 |
Tags: business profile, address, google map, schema, contact, phone, address, seo
|
8 |
+
Stable tag: 1.0.5
|
9 |
License: GPLv2 or later
|
10 |
Donate link: http://themeofthecrop.com
|
11 |
|
52 |
|
53 |
== Changelog ==
|
54 |
|
55 |
+
= 1.0.5 (2014-09-21) =
|
56 |
+
* Fix: restore lost option to show contact info in widget options when Restaurant Reservations is activated
|
57 |
+
|
58 |
= 1.0.4 (2014-09-11) =
|
59 |
* Fix: contact link/email doesn't get shown.
|
60 |
|
77 |
|
78 |
== Upgrade Notice ==
|
79 |
|
80 |
+
= 1.0.5 =
|
81 |
+
This minor update fixes a problem in which the option to show or hide the contact details in a widget had disappeared.
|
82 |
+
|
83 |
= 1.0.4 =
|
84 |
This minor update fixes a problem in which a contact page or email address wouldn't get printed with the contact card.
|
85 |
|