Version Description
(2018-12-12) = * Fix: contact card block loads in editor without saved location
Download this release
Release Info
Developer | NateWr |
Plugin | Business Profile |
Version | 1.2.2 |
Comparing to | |
See all releases |
Code changes from version 1.2.1 to 1.2.2
- assets/js/block-contact-card.js +1 -1
- assets/js/blocks.build.js +1 -1
- business-profile.php +2 -2
- languages/business-profile.pot +2 -2
- package.json +1 -1
- readme.txt +6 -3
assets/js/block-contact-card.js
CHANGED
@@ -59,7 +59,7 @@ registerBlockType( 'business-profile/contact-card', {
|
|
59 |
<SelectControl
|
60 |
label={ __( 'Select a Location', 'business-profile' ) }
|
61 |
value={ attributes.location }
|
62 |
-
onChange={ ( location ) => setAttributes( { location } ) }
|
63 |
options={ locationOptions }
|
64 |
/>
|
65 |
) : ''}
|
59 |
<SelectControl
|
60 |
label={ __( 'Select a Location', 'business-profile' ) }
|
61 |
value={ attributes.location }
|
62 |
+
onChange={ ( location ) => setAttributes( { location: parseInt( location, 10 ) } ) }
|
63 |
options={ locationOptions }
|
64 |
/>
|
65 |
) : ''}
|
assets/js/blocks.build.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){function n(t){if(o[t])return o[t].exports;var l=o[t]={i:t,l:!1,exports:{}};return e[t].call(l.exports,l,l.exports,n),l.l=!0,l.exports}var o={};n.m=e,n.c=o,n.d=function(e,o,t){n.o(e,o)||Object.defineProperty(e,o,{configurable:!1,enumerable:!0,get:t})},n.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(o,"a",o),o},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n(n.s=0)}([function(e,n,o){e.exports=o(1)},function(e,n){var o=wp.i18n.__,t=wp.blocks.registerBlockType,l=wp.components,s=l.SelectControl,r=l.CheckboxControl,a=l.PanelBody,i=l.ServerSideRender,c=l.Disabled,p=wp.editor.InspectorControls,u=bpfwp_blocks,h=u.locationOptions;t("business-profile/contact-card",{title:o("Contact Card","business-profile"),category:"widgets",icon:"location",attributes:{location:{type:"number",default:0},show_name:{type:"boolean",default:!0},show_address:{type:"boolean",default:!0},show_get_directions:{type:"boolean",default:!0},show_phone:{type:"boolean",default:!0},show_contact:{type:"boolean",default:!0},show_opening_hours:{type:"boolean",default:!0},show_opening_hours_brief:{type:"boolean",default:!1},show_map:{type:"boolean",default:!0}},supports:{html:!1},edit:function(e){var n=e.attributes,t=e.setAttributes;return wp.element.createElement("div",null,wp.element.createElement(p,null,wp.element.createElement(a,null,h.length?wp.element.createElement(s,{label:o("Select a Location","business-profile"),value:n.location,onChange:function(e){return t({location:e})},options:h}):"",wp.element.createElement(r,{label:o("Show Name","business-profile"),checked:n.show_name,onChange:function(e){t({show_name:e})}}),wp.element.createElement(r,{label:o("Show Address","business-profile"),checked:n.show_address,onChange:function(e){t({show_address:e})}}),wp.element.createElement(r,{label:o("Show link to get directions on Google Maps","business-profile"),checked:n.show_get_directions,onChange:function(e){t({show_get_directions:e})}}),wp.element.createElement(r,{label:o("Show Phone number","business-profile"),checked:n.show_phone,onChange:function(e){t({show_phone:e})}}),wp.element.createElement(r,{label:o("Show contact details","business-profile"),checked:n.show_contact,onChange:function(e){t({show_contact:e})}}),wp.element.createElement(r,{label:o("Show Opening Hours","business-profile"),checked:n.show_opening_hours,onChange:function(e){t({show_opening_hours:e})}}),wp.element.createElement(r,{label:o("Show brief opening hours on one line","business-profile"),checked:n.show_opening_hours_brief,onChange:function(e){t({show_opening_hours_brief:e})}}),wp.element.createElement(r,{label:o("Show Google Map","business-profile"),checked:n.show_map,onChange:function(e){t({show_map:e})}}))),wp.element.createElement(c,null,wp.element.createElement(i,{block:"business-profile/contact-card",attributes:n})))},save:function(){return null}})}]);
|
1 |
+
!function(e){function n(t){if(o[t])return o[t].exports;var l=o[t]={i:t,l:!1,exports:{}};return e[t].call(l.exports,l,l.exports,n),l.l=!0,l.exports}var o={};n.m=e,n.c=o,n.d=function(e,o,t){n.o(e,o)||Object.defineProperty(e,o,{configurable:!1,enumerable:!0,get:t})},n.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(o,"a",o),o},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n(n.s=0)}([function(e,n,o){e.exports=o(1)},function(e,n){var o=wp.i18n.__,t=wp.blocks.registerBlockType,l=wp.components,s=l.SelectControl,r=l.CheckboxControl,a=l.PanelBody,i=l.ServerSideRender,c=l.Disabled,p=wp.editor.InspectorControls,u=bpfwp_blocks,h=u.locationOptions;t("business-profile/contact-card",{title:o("Contact Card","business-profile"),category:"widgets",icon:"location",attributes:{location:{type:"number",default:0},show_name:{type:"boolean",default:!0},show_address:{type:"boolean",default:!0},show_get_directions:{type:"boolean",default:!0},show_phone:{type:"boolean",default:!0},show_contact:{type:"boolean",default:!0},show_opening_hours:{type:"boolean",default:!0},show_opening_hours_brief:{type:"boolean",default:!1},show_map:{type:"boolean",default:!0}},supports:{html:!1},edit:function(e){var n=e.attributes,t=e.setAttributes;return wp.element.createElement("div",null,wp.element.createElement(p,null,wp.element.createElement(a,null,h.length?wp.element.createElement(s,{label:o("Select a Location","business-profile"),value:n.location,onChange:function(e){return t({location:parseInt(e,10)})},options:h}):"",wp.element.createElement(r,{label:o("Show Name","business-profile"),checked:n.show_name,onChange:function(e){t({show_name:e})}}),wp.element.createElement(r,{label:o("Show Address","business-profile"),checked:n.show_address,onChange:function(e){t({show_address:e})}}),wp.element.createElement(r,{label:o("Show link to get directions on Google Maps","business-profile"),checked:n.show_get_directions,onChange:function(e){t({show_get_directions:e})}}),wp.element.createElement(r,{label:o("Show Phone number","business-profile"),checked:n.show_phone,onChange:function(e){t({show_phone:e})}}),wp.element.createElement(r,{label:o("Show contact details","business-profile"),checked:n.show_contact,onChange:function(e){t({show_contact:e})}}),wp.element.createElement(r,{label:o("Show Opening Hours","business-profile"),checked:n.show_opening_hours,onChange:function(e){t({show_opening_hours:e})}}),wp.element.createElement(r,{label:o("Show brief opening hours on one line","business-profile"),checked:n.show_opening_hours_brief,onChange:function(e){t({show_opening_hours_brief:e})}}),wp.element.createElement(r,{label:o("Show Google Map","business-profile"),checked:n.show_map,onChange:function(e){t({show_map:e})}}))),wp.element.createElement(c,null,wp.element.createElement(i,{block:"business-profile/contact-card",attributes:n})))},save:function(){return null}})}]);
|
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.2.
|
7 |
* Author: Theme of the Crop
|
8 |
* Author URI: http://themeofthecrop.com
|
9 |
* License: GNU General Public License v2.0 or later
|
@@ -89,7 +89,7 @@ if ( ! class_exists( 'bpfwpInit', false ) ) :
|
|
89 |
define( 'BPFWP_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
|
90 |
define( 'BPFWP_PLUGIN_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
|
91 |
define( 'BPFWP_PLUGIN_FNAME', plugin_basename( __FILE__ ) );
|
92 |
-
define( 'BPFWP_VERSION', '1.2.
|
93 |
}
|
94 |
|
95 |
/**
|
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.2.2
|
7 |
* Author: Theme of the Crop
|
8 |
* Author URI: http://themeofthecrop.com
|
9 |
* License: GNU General Public License v2.0 or later
|
89 |
define( 'BPFWP_PLUGIN_DIR', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
|
90 |
define( 'BPFWP_PLUGIN_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
|
91 |
define( 'BPFWP_PLUGIN_FNAME', plugin_basename( __FILE__ ) );
|
92 |
+
define( 'BPFWP_VERSION', '1.2.2' );
|
93 |
}
|
94 |
|
95 |
/**
|
languages/business-profile.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the GNU General Public License v2.0 or later.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Business Profile 1.2.
|
6 |
"Report-Msgid-Bugs-To: https://themeofthecrop.com\n"
|
7 |
-
"POT-Creation-Date: 2018-12-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
2 |
# This file is distributed under the GNU General Public License v2.0 or later.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Business Profile 1.2.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://themeofthecrop.com\n"
|
7 |
+
"POT-Creation-Date: 2018-12-12 15:45:31+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
{
|
2 |
"name": "business-profile",
|
3 |
"description": "Contact information, Google Maps and opening hours made easy for businesses.",
|
4 |
-
"version": "1.2.
|
5 |
"author": {
|
6 |
"name": "Theme of the Crop",
|
7 |
"url": "https://themeofthecrop.com"
|
1 |
{
|
2 |
"name": "business-profile",
|
3 |
"description": "Contact information, Google Maps and opening hours made easy for businesses.",
|
4 |
+
"version": "1.2.2",
|
5 |
"author": {
|
6 |
"name": "Theme of the Crop",
|
7 |
"url": "https://themeofthecrop.com"
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Plugin URL: http://themeofthecrop.com
|
|
5 |
Requires at Least: 4.4
|
6 |
Tested Up To: 5.0
|
7 |
Tags: business profile, seo, local seo, schema, address, google map, contact, phone
|
8 |
-
Stable tag: 1.2.
|
9 |
License: GPLv2 or later
|
10 |
Donate link: http://themeofthecrop.com
|
11 |
|
@@ -86,11 +86,14 @@ You'll find more help in the [User Guide](http://doc.themeofthecrop.com/plugins/
|
|
86 |
|
87 |
== Changelog ==
|
88 |
|
|
|
|
|
|
|
89 |
= 1.2.1 (2018-12-11) =
|
90 |
-
* Update .pot file with new translation strings
|
91 |
|
92 |
= 1.2 (2018-12-11) =
|
93 |
-
* Add gutenberg block for the contact card
|
94 |
|
95 |
= 1.1.5 (2018-09-26) =
|
96 |
* Fix: Address coordinate lookups need to be https:// and use api key
|
5 |
Requires at Least: 4.4
|
6 |
Tested Up To: 5.0
|
7 |
Tags: business profile, seo, local seo, schema, address, google map, contact, phone
|
8 |
+
Stable tag: 1.2.2
|
9 |
License: GPLv2 or later
|
10 |
Donate link: http://themeofthecrop.com
|
11 |
|
86 |
|
87 |
== Changelog ==
|
88 |
|
89 |
+
= 1.2.2 (2018-12-12) =
|
90 |
+
* Fix: contact card block loads in editor without saved location
|
91 |
+
|
92 |
= 1.2.1 (2018-12-11) =
|
93 |
+
* Update: .pot file with new translation strings
|
94 |
|
95 |
= 1.2 (2018-12-11) =
|
96 |
+
* Add: gutenberg block for the contact card
|
97 |
|
98 |
= 1.1.5 (2018-09-26) =
|
99 |
* Fix: Address coordinate lookups need to be https:// and use api key
|