Version Description
This update fixes wp-cli compatibility and adds a number of useful development filters/features for interacting with the map objects.
Download this release
Release Info
Developer | NateWr |
Plugin | Business Profile |
Version | 1.0.9 |
Comparing to | |
See all releases |
Code changes from version 1.0.8 to 1.0.9
- assets/js/map.js +20 -12
- business-profile.php +2 -1
- includes/WP_Widget.ContactCardWidget.class.php +15 -1
- includes/template-functions.php +12 -2
- languages/business-profile.pot +56 -28
- readme.txt +16 -3
assets/js/map.js
CHANGED
@@ -1,4 +1,6 @@
|
|
1 |
/* Frontend Javascript for Business Profile maps */
|
|
|
|
|
2 |
jQuery(document).ready(function ($) {
|
3 |
|
4 |
// Allow developers to override the maps api loading and initializing
|
@@ -10,7 +12,7 @@ jQuery(document).ready(function ($) {
|
|
10 |
if ( typeof google === 'undefined' || typeof google.maps === 'undefined' ) {
|
11 |
var bp_map_script = document.createElement( 'script' );
|
12 |
bp_map_script.type = 'text/javascript';
|
13 |
-
bp_map_script.src = '//maps.googleapis.com/maps/api/js?v=3.exp&
|
14 |
document.body.appendChild( bp_map_script );
|
15 |
|
16 |
// If the API is already loaded (eg - by a third-party theme or plugin),
|
@@ -23,8 +25,8 @@ jQuery(document).ready(function ($) {
|
|
23 |
|
24 |
function bp_initialize_map() {
|
25 |
|
26 |
-
|
27 |
-
|
28 |
|
29 |
jQuery( '.bp-map' ).each( function() {
|
30 |
var id = jQuery(this).attr( 'id' );
|
@@ -32,13 +34,13 @@ function bp_initialize_map() {
|
|
32 |
|
33 |
// Google Maps API v3
|
34 |
if ( typeof data.lat !== 'undefined' ) {
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
}
|
40 |
|
41 |
-
|
42 |
|
43 |
var content = '<div class="bp-map-info-window">' +
|
44 |
'<p><strong>' + data.name + '</strong></p>' +
|
@@ -50,11 +52,14 @@ function bp_initialize_map() {
|
|
50 |
content += '<p><a target="_blank" href="//maps.google.com/maps?saddr=current+location&daddr=' + encodeURIComponent( data.address ) + '">Get Directions</a></p>' +
|
51 |
'</div>';
|
52 |
|
53 |
-
|
54 |
-
position:
|
55 |
content: content,
|
56 |
});
|
57 |
-
|
|
|
|
|
|
|
58 |
|
59 |
// Google Maps iframe embed (fallback if no lat/lon data available)
|
60 |
} else if ( typeof data.address !== '' ) {
|
@@ -69,6 +74,9 @@ function bp_initialize_map() {
|
|
69 |
bp_map_iframe.src = '//maps.google.com/maps?output=embed&q=' + encodeURIComponent( data.address );
|
70 |
|
71 |
jQuery(this).html( bp_map_iframe );
|
|
|
|
|
|
|
72 |
}
|
73 |
});
|
74 |
}
|
1 |
/* Frontend Javascript for Business Profile maps */
|
2 |
+
var bpfwp_map = bpfwp_map || {};
|
3 |
+
|
4 |
jQuery(document).ready(function ($) {
|
5 |
|
6 |
// Allow developers to override the maps api loading and initializing
|
12 |
if ( typeof google === 'undefined' || typeof google.maps === 'undefined' ) {
|
13 |
var bp_map_script = document.createElement( 'script' );
|
14 |
bp_map_script.type = 'text/javascript';
|
15 |
+
bp_map_script.src = '//maps.googleapis.com/maps/api/js?v=3.exp&callback=bp_initialize_map';
|
16 |
document.body.appendChild( bp_map_script );
|
17 |
|
18 |
// If the API is already loaded (eg - by a third-party theme or plugin),
|
25 |
|
26 |
function bp_initialize_map() {
|
27 |
|
28 |
+
bpfwp_map.maps = [];
|
29 |
+
bpfwp_map.info_windows = [];
|
30 |
|
31 |
jQuery( '.bp-map' ).each( function() {
|
32 |
var id = jQuery(this).attr( 'id' );
|
34 |
|
35 |
// Google Maps API v3
|
36 |
if ( typeof data.lat !== 'undefined' ) {
|
37 |
+
bpfwp_map.map_options = bpfwp_map.map_options || {};
|
38 |
+
bpfwp_map.map_options.center = new google.maps.LatLng( data.lat, data.lon );
|
39 |
+
if ( typeof bpfwp_map.map_options.zoom === 'undefined' ) {
|
40 |
+
bpfwp_map.map_options.zoom = bpfwp_map.map_options.zoom || 15;
|
41 |
+
}
|
42 |
|
43 |
+
bpfwp_map.maps[ id ] = new google.maps.Map( document.getElementById( id ), bpfwp_map.map_options );
|
44 |
|
45 |
var content = '<div class="bp-map-info-window">' +
|
46 |
'<p><strong>' + data.name + '</strong></p>' +
|
52 |
content += '<p><a target="_blank" href="//maps.google.com/maps?saddr=current+location&daddr=' + encodeURIComponent( data.address ) + '">Get Directions</a></p>' +
|
53 |
'</div>';
|
54 |
|
55 |
+
bpfwp_map.info_windows[ id ] = new google.maps.InfoWindow({
|
56 |
+
position: bpfwp_map.map_options.center,
|
57 |
content: content,
|
58 |
});
|
59 |
+
bpfwp_map.info_windows[ id ].open( bpfwp_map.maps[ id ]);
|
60 |
+
|
61 |
+
// Trigger an intiailized event on this dom element for third-party code
|
62 |
+
jQuery(this).trigger( 'bpfwp.map_initialized', [ id, bpfwp_map.maps[id], bpfwp_map.info_windows[id] ] );
|
63 |
|
64 |
// Google Maps iframe embed (fallback if no lat/lon data available)
|
65 |
} else if ( typeof data.address !== '' ) {
|
74 |
bp_map_iframe.src = '//maps.google.com/maps?output=embed&q=' + encodeURIComponent( data.address );
|
75 |
|
76 |
jQuery(this).html( bp_map_iframe );
|
77 |
+
|
78 |
+
// Trigger an intiailized event on this dom element for third-party code
|
79 |
+
jQuery(this).trigger( 'bpfwp.map_initialized_in_iframe', [ jQuery(this) ] );
|
80 |
}
|
81 |
});
|
82 |
}
|
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
|
@@ -117,4 +117,5 @@ class bpfwpInit {
|
|
117 |
}
|
118 |
} // endif;
|
119 |
|
|
|
120 |
$bpfwp_controller = new bpfwpInit();
|
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.9
|
7 |
* Author: Theme of the Crop
|
8 |
* Author URI: http://themeofthecrop.com
|
9 |
* License: GNU General Public License v2.0 or later
|
117 |
}
|
118 |
} // endif;
|
119 |
|
120 |
+
global $bpfwp_controller;
|
121 |
$bpfwp_controller = new bpfwpInit();
|
includes/WP_Widget.ContactCardWidget.class.php
CHANGED
@@ -55,7 +55,21 @@ class bpfwpContactCardWidget extends WP_Widget {
|
|
55 |
$title = apply_filters( 'widget_title', $instance['title'] );
|
56 |
echo $args['before_title'] . $title . $args['after_title'];
|
57 |
}
|
58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
echo $args['after_widget'];
|
60 |
|
61 |
}
|
55 |
$title = apply_filters( 'widget_title', $instance['title'] );
|
56 |
echo $args['before_title'] . $title . $args['after_title'];
|
57 |
}
|
58 |
+
|
59 |
+
$shortcode_args = $instance;
|
60 |
+
unset( $shortcode_args['title'] );
|
61 |
+
unset( $shortcode_args['before_widget'] );
|
62 |
+
unset( $shortcode_args['after_widget'] );
|
63 |
+
unset( $shortcode_args['before_title'] );
|
64 |
+
unset( $shortcode_args['after_title'] );
|
65 |
+
|
66 |
+
$shortcode_atts = array();
|
67 |
+
foreach( $shortcode_args as $key => $val ) {
|
68 |
+
$value = empty( $val ) ? 0 : 1;
|
69 |
+
$shortcode_atts[] = esc_attr( $key ) . '=' . $value;
|
70 |
+
}
|
71 |
+
echo do_shortcode( '[contact-card ' . join( ' ', $shortcode_atts ) . ']' );
|
72 |
+
|
73 |
echo $args['after_widget'];
|
74 |
|
75 |
}
|
includes/template-functions.php
CHANGED
@@ -129,7 +129,7 @@ function bpwfwp_print_address() {
|
|
129 |
|
130 |
<?php if ( $bpfwp_controller->display_settings['show_get_directions'] ) : ?>
|
131 |
<div class="bp-directions">
|
132 |
-
<a href="//maps.google.com/maps?saddr=current+location&daddr=<?php echo urlencode( esc_attr( $address['text'] ) ); ?>"><?php _e( 'Get directions', 'business-profile' ); ?></a>
|
133 |
</div>
|
134 |
<?php endif;
|
135 |
|
@@ -285,8 +285,17 @@ function bpwfwp_print_opening_hours() {
|
|
285 |
}
|
286 |
|
287 |
$days = array();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
288 |
foreach( $slot['weekdays'] as $day => $val ) {
|
289 |
-
$days[] = $
|
290 |
}
|
291 |
$days_string = !empty( $days ) ? join( _x( ',', 'Separator between days of the week when displaying opening hours in brief. Example: Mo,Tu,We', 'business-profile' ), $days ) : '';
|
292 |
|
@@ -422,6 +431,7 @@ function bpwfwp_print_map() {
|
|
422 |
array(
|
423 |
// Override loading and intialization of Google Maps api
|
424 |
'autoload_google_maps' => apply_filters( 'bpfwp_autoload_google_maps', true ),
|
|
|
425 |
'strings' => array(
|
426 |
'get_directions' => __( 'Get directions', 'business-profile' ),
|
427 |
)
|
129 |
|
130 |
<?php if ( $bpfwp_controller->display_settings['show_get_directions'] ) : ?>
|
131 |
<div class="bp-directions">
|
132 |
+
<a href="//maps.google.com/maps?saddr=current+location&daddr=<?php echo urlencode( esc_attr( $address['text'] ) ); ?>" target="_blank"><?php _e( 'Get directions', 'business-profile' ); ?></a>
|
133 |
</div>
|
134 |
<?php endif;
|
135 |
|
285 |
}
|
286 |
|
287 |
$days = array();
|
288 |
+
$weekdays_i18n = array(
|
289 |
+
'monday' => esc_html__( 'Mo', 'business-profile' ),
|
290 |
+
'tuesday' => esc_html__( 'Tu', 'business-profile' ),
|
291 |
+
'wednesday' => esc_html__( 'We', 'business-profile' ),
|
292 |
+
'thursday' => esc_html__( 'Th', 'business-profile' ),
|
293 |
+
'friday' => esc_html__( 'Fr', 'business-profile' ),
|
294 |
+
'saturday' => esc_html__( 'Sa', 'business-profile' ),
|
295 |
+
'sunday' => esc_html__( 'Su', 'business-profile' ),
|
296 |
+
);
|
297 |
foreach( $slot['weekdays'] as $day => $val ) {
|
298 |
+
$days[] = $weekdays_i18n[ $day ];
|
299 |
}
|
300 |
$days_string = !empty( $days ) ? join( _x( ',', 'Separator between days of the week when displaying opening hours in brief. Example: Mo,Tu,We', 'business-profile' ), $days ) : '';
|
301 |
|
431 |
array(
|
432 |
// Override loading and intialization of Google Maps api
|
433 |
'autoload_google_maps' => apply_filters( 'bpfwp_autoload_google_maps', true ),
|
434 |
+
'map_options' => apply_filters( 'bpfwp_google_map_options', array() ),
|
435 |
'strings' => array(
|
436 |
'get_directions' => __( 'Get directions', 'business-profile' ),
|
437 |
)
|
languages/business-profile.pot
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
-
# Copyright (C)
|
2 |
# This file is distributed under the same license as the Business Profile package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Business Profile 1.0.
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/business-profile\n"
|
7 |
-
"POT-Creation-Date:
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"PO-Revision-Date:
|
12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
"X-Generator: grunt-wp-i18n 0.4.9\n"
|
@@ -41,7 +41,7 @@ msgid "Show book a table link"
|
|
41 |
msgstr ""
|
42 |
|
43 |
#: includes/Settings.class.php:86 includes/Settings.class.php:87
|
44 |
-
#. #-#-#-#-# business-profile.pot (Business Profile 1.0.
|
45 |
#. Plugin Name of the plugin/theme
|
46 |
msgid "Business Profile"
|
47 |
msgstr ""
|
@@ -154,7 +154,7 @@ msgstr ""
|
|
154 |
msgid "Schedule"
|
155 |
msgstr ""
|
156 |
|
157 |
-
#: includes/Settings.class.php:246 includes/template-functions.php:
|
158 |
msgid "Opening Hours"
|
159 |
msgstr ""
|
160 |
|
@@ -226,11 +226,11 @@ msgid ""
|
|
226 |
"and map."
|
227 |
msgstr ""
|
228 |
|
229 |
-
#: includes/WP_Widget.ContactCardWidget.class.php:
|
230 |
msgid "Title"
|
231 |
msgstr ""
|
232 |
|
233 |
-
#: includes/template-functions.php:132 includes/template-functions.php:
|
234 |
msgid "Get directions"
|
235 |
msgstr ""
|
236 |
|
@@ -238,47 +238,75 @@ msgstr ""
|
|
238 |
msgid "Contact"
|
239 |
msgstr ""
|
240 |
|
241 |
-
#: includes/template-functions.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
242 |
msgid "Monday"
|
243 |
msgstr ""
|
244 |
|
245 |
-
#: includes/template-functions.php:
|
246 |
msgid "Tuesday"
|
247 |
msgstr ""
|
248 |
|
249 |
-
#: includes/template-functions.php:
|
250 |
msgid "Wednesday"
|
251 |
msgstr ""
|
252 |
|
253 |
-
#: includes/template-functions.php:
|
254 |
msgid "Thursday"
|
255 |
msgstr ""
|
256 |
|
257 |
-
#: includes/template-functions.php:
|
258 |
msgid "Friday"
|
259 |
msgstr ""
|
260 |
|
261 |
-
#: includes/template-functions.php:
|
262 |
msgid "Saturday"
|
263 |
msgstr ""
|
264 |
|
265 |
-
#: includes/template-functions.php:
|
266 |
msgid "Sunday"
|
267 |
msgstr ""
|
268 |
|
269 |
-
#: includes/template-functions.php:
|
270 |
msgid "Open"
|
271 |
msgstr ""
|
272 |
|
273 |
-
#: includes/template-functions.php:
|
274 |
msgid "Open until "
|
275 |
msgstr ""
|
276 |
|
277 |
-
#: includes/template-functions.php:
|
278 |
msgid "Open from "
|
279 |
msgstr ""
|
280 |
|
281 |
-
#: includes/template-functions.php:
|
282 |
msgid "Closed"
|
283 |
msgstr ""
|
284 |
|
@@ -286,9 +314,9 @@ msgstr ""
|
|
286 |
msgid "You do not have sufficient permissions to access this page."
|
287 |
msgstr ""
|
288 |
|
289 |
-
#. #-#-#-#-# business-profile.pot (Business Profile 1.0.
|
290 |
#. Plugin URI of the plugin/theme
|
291 |
-
#. #-#-#-#-# business-profile.pot (Business Profile 1.0.
|
292 |
#. Author URI of the plugin/theme
|
293 |
msgid "http://themeofthecrop.com"
|
294 |
msgstr ""
|
@@ -483,49 +511,49 @@ msgctxt "Separator between times of a scheduling rule"
|
|
483 |
msgid "—"
|
484 |
msgstr ""
|
485 |
|
486 |
-
#: includes/template-functions.php:
|
487 |
msgctxt ""
|
488 |
"Separator between days of the week when displaying opening hours in brief. "
|
489 |
"Example: Mo,Tu,We"
|
490 |
msgid ","
|
491 |
msgstr ""
|
492 |
|
493 |
-
#: includes/template-functions.php:
|
494 |
msgctxt ""
|
495 |
"Brief opening hours description which lists days_strings when open all day. "
|
496 |
"Example: Mo,Tu,We all day"
|
497 |
msgid "%s all day"
|
498 |
msgstr ""
|
499 |
|
500 |
-
#: includes/template-functions.php:
|
501 |
msgctxt ""
|
502 |
"Brief opening hours description which lists the days followed by the "
|
503 |
"closing time. Example: Mo,Tu,We open until 9:00pm"
|
504 |
msgid "%s open until %s"
|
505 |
msgstr ""
|
506 |
|
507 |
-
#: includes/template-functions.php:
|
508 |
msgctxt ""
|
509 |
"Brief opening hours description which lists the days followed by the "
|
510 |
"opening time. Example: Mo,Tu,We open from 9:00am"
|
511 |
msgid "%s open from %s"
|
512 |
msgstr ""
|
513 |
|
514 |
-
#: includes/template-functions.php:
|
515 |
msgctxt ""
|
516 |
"Brief opening hours description which lists the days followed by the "
|
517 |
"opening and closing times. Example: Mo,Tu,We 9:00am-5:00pm"
|
518 |
msgid "%s %s-%s"
|
519 |
msgstr ""
|
520 |
|
521 |
-
#: includes/template-functions.php:
|
522 |
msgctxt ""
|
523 |
"Separator between multiple opening times in the brief opening hours. "
|
524 |
"Example: Mo,We 9:00 AM - 5:00 PM; Tu,Th 10:00 AM - 5:00 PM"
|
525 |
msgid "; "
|
526 |
msgstr ""
|
527 |
|
528 |
-
#: includes/template-functions.php:
|
529 |
msgctxt "Separator between opening and closing times. Example: 9:00am-5:00pm"
|
530 |
msgid "-"
|
531 |
msgstr ""
|
1 |
+
# Copyright (C) 2016 Business Profile
|
2 |
# This file is distributed under the same license as the Business Profile package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Business Profile 1.0.8\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/business-profile\n"
|
7 |
+
"POT-Creation-Date: 2016-02-12 16:47:11+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"PO-Revision-Date: 2016-MO-DA HO:MI+ZONE\n"
|
12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
"X-Generator: grunt-wp-i18n 0.4.9\n"
|
41 |
msgstr ""
|
42 |
|
43 |
#: includes/Settings.class.php:86 includes/Settings.class.php:87
|
44 |
+
#. #-#-#-#-# business-profile.pot (Business Profile 1.0.8) #-#-#-#-#
|
45 |
#. Plugin Name of the plugin/theme
|
46 |
msgid "Business Profile"
|
47 |
msgstr ""
|
154 |
msgid "Schedule"
|
155 |
msgstr ""
|
156 |
|
157 |
+
#: includes/Settings.class.php:246 includes/template-functions.php:398
|
158 |
msgid "Opening Hours"
|
159 |
msgstr ""
|
160 |
|
226 |
"and map."
|
227 |
msgstr ""
|
228 |
|
229 |
+
#: includes/WP_Widget.ContactCardWidget.class.php:85
|
230 |
msgid "Title"
|
231 |
msgstr ""
|
232 |
|
233 |
+
#: includes/template-functions.php:132 includes/template-functions.php:436
|
234 |
msgid "Get directions"
|
235 |
msgstr ""
|
236 |
|
238 |
msgid "Contact"
|
239 |
msgstr ""
|
240 |
|
241 |
+
#: includes/template-functions.php:289
|
242 |
+
msgid "Mo"
|
243 |
+
msgstr ""
|
244 |
+
|
245 |
+
#: includes/template-functions.php:290
|
246 |
+
msgid "Tu"
|
247 |
+
msgstr ""
|
248 |
+
|
249 |
+
#: includes/template-functions.php:291
|
250 |
+
msgid "We"
|
251 |
+
msgstr ""
|
252 |
+
|
253 |
+
#: includes/template-functions.php:292
|
254 |
+
msgid "Th"
|
255 |
+
msgstr ""
|
256 |
+
|
257 |
+
#: includes/template-functions.php:293
|
258 |
+
msgid "Fr"
|
259 |
+
msgstr ""
|
260 |
+
|
261 |
+
#: includes/template-functions.php:294
|
262 |
+
msgid "Sa"
|
263 |
+
msgstr ""
|
264 |
+
|
265 |
+
#: includes/template-functions.php:295
|
266 |
+
msgid "Su"
|
267 |
+
msgstr ""
|
268 |
+
|
269 |
+
#: includes/template-functions.php:336
|
270 |
msgid "Monday"
|
271 |
msgstr ""
|
272 |
|
273 |
+
#: includes/template-functions.php:337
|
274 |
msgid "Tuesday"
|
275 |
msgstr ""
|
276 |
|
277 |
+
#: includes/template-functions.php:338
|
278 |
msgid "Wednesday"
|
279 |
msgstr ""
|
280 |
|
281 |
+
#: includes/template-functions.php:339
|
282 |
msgid "Thursday"
|
283 |
msgstr ""
|
284 |
|
285 |
+
#: includes/template-functions.php:340
|
286 |
msgid "Friday"
|
287 |
msgstr ""
|
288 |
|
289 |
+
#: includes/template-functions.php:341
|
290 |
msgid "Saturday"
|
291 |
msgstr ""
|
292 |
|
293 |
+
#: includes/template-functions.php:342
|
294 |
msgid "Sunday"
|
295 |
msgstr ""
|
296 |
|
297 |
+
#: includes/template-functions.php:354
|
298 |
msgid "Open"
|
299 |
msgstr ""
|
300 |
|
301 |
+
#: includes/template-functions.php:366
|
302 |
msgid "Open until "
|
303 |
msgstr ""
|
304 |
|
305 |
+
#: includes/template-functions.php:368
|
306 |
msgid "Open from "
|
307 |
msgstr ""
|
308 |
|
309 |
+
#: includes/template-functions.php:390
|
310 |
msgid "Closed"
|
311 |
msgstr ""
|
312 |
|
314 |
msgid "You do not have sufficient permissions to access this page."
|
315 |
msgstr ""
|
316 |
|
317 |
+
#. #-#-#-#-# business-profile.pot (Business Profile 1.0.8) #-#-#-#-#
|
318 |
#. Plugin URI of the plugin/theme
|
319 |
+
#. #-#-#-#-# business-profile.pot (Business Profile 1.0.8) #-#-#-#-#
|
320 |
#. Author URI of the plugin/theme
|
321 |
msgid "http://themeofthecrop.com"
|
322 |
msgstr ""
|
511 |
msgid "—"
|
512 |
msgstr ""
|
513 |
|
514 |
+
#: includes/template-functions.php:300
|
515 |
msgctxt ""
|
516 |
"Separator between days of the week when displaying opening hours in brief. "
|
517 |
"Example: Mo,Tu,We"
|
518 |
msgid ","
|
519 |
msgstr ""
|
520 |
|
521 |
+
#: includes/template-functions.php:303
|
522 |
msgctxt ""
|
523 |
"Brief opening hours description which lists days_strings when open all day. "
|
524 |
"Example: Mo,Tu,We all day"
|
525 |
msgid "%s all day"
|
526 |
msgstr ""
|
527 |
|
528 |
+
#: includes/template-functions.php:315
|
529 |
msgctxt ""
|
530 |
"Brief opening hours description which lists the days followed by the "
|
531 |
"closing time. Example: Mo,Tu,We open until 9:00pm"
|
532 |
msgid "%s open until %s"
|
533 |
msgstr ""
|
534 |
|
535 |
+
#: includes/template-functions.php:317
|
536 |
msgctxt ""
|
537 |
"Brief opening hours description which lists the days followed by the "
|
538 |
"opening time. Example: Mo,Tu,We open from 9:00am"
|
539 |
msgid "%s open from %s"
|
540 |
msgstr ""
|
541 |
|
542 |
+
#: includes/template-functions.php:319
|
543 |
msgctxt ""
|
544 |
"Brief opening hours description which lists the days followed by the "
|
545 |
"opening and closing times. Example: Mo,Tu,We 9:00am-5:00pm"
|
546 |
msgid "%s %s-%s"
|
547 |
msgstr ""
|
548 |
|
549 |
+
#: includes/template-functions.php:326
|
550 |
msgctxt ""
|
551 |
"Separator between multiple opening times in the brief opening hours. "
|
552 |
"Example: Mo,We 9:00 AM - 5:00 PM; Tu,Th 10:00 AM - 5:00 PM"
|
553 |
msgid "; "
|
554 |
msgstr ""
|
555 |
|
556 |
+
#: includes/template-functions.php:370
|
557 |
msgctxt "Separator between opening and closing times. Example: 9:00am-5:00pm"
|
558 |
msgid "-"
|
559 |
msgstr ""
|
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 |
|
@@ -31,7 +31,7 @@ This plugin is part of a group of plugins for restaurants. Check out the [Food a
|
|
31 |
|
32 |
= How to use =
|
33 |
|
34 |
-
|
35 |
|
36 |
= Developers =
|
37 |
|
@@ -52,6 +52,16 @@ This plugin is packed with hooks so you can extend it as needed. Development tak
|
|
52 |
|
53 |
== Changelog ==
|
54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
= 1.0.8 (2015-10-01) =
|
56 |
* Update: Simple Admin Pages lib to v2.0 (#27)
|
57 |
* Fix: line breaks can disrupt get directions link in embedded map (#17)
|
@@ -91,6 +101,9 @@ This plugin is packed with hooks so you can extend it as needed. Development tak
|
|
91 |
|
92 |
== Upgrade Notice ==
|
93 |
|
|
|
|
|
|
|
94 |
= 1.0.8 =
|
95 |
This update fixes an error in the Get Directions link that appears inside of embedded maps. I recommend you update as it likely effects a lot of people.
|
96 |
|
3 |
Author URI: https://github.com/NateWr
|
4 |
Plugin URL: http://themeofthecrop.com
|
5 |
Requires at Least: 3.9
|
6 |
+
Tested Up To: 4.5
|
7 |
Tags: business profile, address, google map, schema, contact, phone, address, seo
|
8 |
+
Stable tag: 1.0.9
|
9 |
License: GPLv2 or later
|
10 |
Donate link: http://themeofthecrop.com
|
11 |
|
31 |
|
32 |
= How to use =
|
33 |
|
34 |
+
View the [help guide](http://doc.themeofthecrop.com/plugins/business-profile/?utm_source=Plugin&utm_medium=Plugin%Description&utm_campaign=Business%20Profile) to learn how to set up and display your Business Profile.
|
35 |
|
36 |
= Developers =
|
37 |
|
52 |
|
53 |
== Changelog ==
|
54 |
|
55 |
+
= 1.0.9 (2016-02-12) =
|
56 |
+
* Fix: compatibility with wp-cli
|
57 |
+
* Fix: allow short weekday names to be translated
|
58 |
+
* Update: "get directions" link now opens in a new window/tab
|
59 |
+
* Update: widget now uses shortcode to print output
|
60 |
+
* Update: remove deprecated sensor attribute from Google Maps api call
|
61 |
+
* Add: make Google Maps objects and options available in global scope
|
62 |
+
* Add: allow map options to be filtered
|
63 |
+
* Add: javascript event triggered when map initialized
|
64 |
+
|
65 |
= 1.0.8 (2015-10-01) =
|
66 |
* Update: Simple Admin Pages lib to v2.0 (#27)
|
67 |
* Fix: line breaks can disrupt get directions link in embedded map (#17)
|
101 |
|
102 |
== Upgrade Notice ==
|
103 |
|
104 |
+
= 1.0.9 =
|
105 |
+
This update fixes wp-cli compatibility and adds a number of useful development filters/features for interacting with the map objects.
|
106 |
+
|
107 |
= 1.0.8 =
|
108 |
This update fixes an error in the Get Directions link that appears inside of embedded maps. I recommend you update as it likely effects a lot of people.
|
109 |
|