Business Profile - Version 1.1.1

Version Description

This update adds support for a Google Maps API Key. Since June 22, 2016, Google Maps will require all new websites to use an API key in order to display maps. Instructions can be found near the new API Key field in your Business Profile.

Download this release

Release Info

Developer NateWr
Plugin Icon 128x128 Business Profile
Version 1.1.1
Comparing to
See all releases

Code changes from version 1.1 to 1.1.1

assets/js/map.js CHANGED
@@ -99,6 +99,11 @@ jQuery( document ).ready( function() {
99
  var bpMapScript = document.createElement( 'script' );
100
  bpMapScript.type = 'text/javascript';
101
  bpMapScript.src = '//maps.googleapis.com/maps/api/js?v=3.exp&callback=bp_initialize_map';
 
 
 
 
 
102
  document.body.appendChild( bpMapScript );
103
  } else {
104
  // If the API is already loaded (eg - by a third-party theme or plugin),
99
  var bpMapScript = document.createElement( 'script' );
100
  bpMapScript.type = 'text/javascript';
101
  bpMapScript.src = '//maps.googleapis.com/maps/api/js?v=3.exp&callback=bp_initialize_map';
102
+
103
+ if ( 'undefined' !== typeof bpfwp_map.google_maps_api_key ) {
104
+ bpMapScript.src += '&key=' + bpfwp_map.google_maps_api_key;
105
+ }
106
+
107
  document.body.appendChild( bpMapScript );
108
  } else {
109
  // If the API is already loaded (eg - by a third-party theme or plugin),
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.1
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.1' );
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.1.1
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.1.1' );
93
  }
94
 
95
  /**
includes/class-settings.php CHANGED
@@ -307,6 +307,23 @@ if ( ! class_exists( 'bpfwpSettings' ) ) :
307
  )
308
  );
309
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
310
  $sap->add_setting(
311
  'bpfwp-settings',
312
  'bpfwp-contact',
307
  )
308
  );
309
 
310
+ $sap->add_setting(
311
+ 'bpfwp-settings',
312
+ 'bpfwp-contact',
313
+ 'text',
314
+ array(
315
+ 'id' => 'google-maps-api-key',
316
+ 'title' => __( 'Google Maps API Key', 'business-profile' ),
317
+ 'description' => sprintf(
318
+ __( 'Google requires an API key to use their maps. %sGet an API key%s. A full walk-through is available in the %sdocumentiaton%s.', 'business-profile' ),
319
+ '<a href="https://developers.google.com/maps/documentation/javascript/get-api-key">',
320
+ '</a>',
321
+ '<a href="http://doc.themeofthecrop.com/plugins/business-profile/user/faq#google-maps-api-key">',
322
+ '</a>'
323
+ ),
324
+ )
325
+ );
326
+
327
  $sap->add_setting(
328
  'bpfwp-settings',
329
  'bpfwp-contact',
includes/template-functions.php CHANGED
@@ -553,6 +553,7 @@ if ( ! function_exists( 'bpwfwp_print_map' ) ) {
553
  'bpfwp_map',
554
  array(
555
  // Override loading and intialization of Google Maps api.
 
556
  'autoload_google_maps' => apply_filters( 'bpfwp_autoload_google_maps', true ),
557
  'map_options' => apply_filters( 'bpfwp_google_map_options', array() ),
558
  'strings' => array(
553
  'bpfwp_map',
554
  array(
555
  // Override loading and intialization of Google Maps api.
556
+ 'google_maps_api_key' => bpfwp_setting( 'google-maps-api-key' ),
557
  'autoload_google_maps' => apply_filters( 'bpfwp_autoload_google_maps', true ),
558
  'map_options' => apply_filters( 'bpfwp_google_map_options', array() ),
559
  'strings' => array(
languages/business-profile.pot CHANGED
@@ -2,9 +2,9 @@
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.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/business-profile\n"
7
- "POT-Creation-Date: 2016-06-20 06:53:53+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -139,7 +139,7 @@ msgid "Contact Details"
139
  msgstr ""
140
 
141
  #: includes/class-custom-post-types.php:167
142
- #: includes/class-custom-post-types.php:407 includes/class-settings.php:362
143
  #: templates/opening-hours.php:21
144
  msgid "Opening Hours"
145
  msgstr ""
@@ -202,11 +202,11 @@ msgstr ""
202
  msgid "Remove map coordinates"
203
  msgstr ""
204
 
205
- #: includes/class-custom-post-types.php:330 includes/class-settings.php:326
206
  msgid "Contact Page"
207
  msgstr ""
208
 
209
- #: includes/class-custom-post-types.php:344 includes/class-settings.php:343
210
  msgid "Email Address (optional)"
211
  msgstr ""
212
 
@@ -214,21 +214,21 @@ msgstr ""
214
  msgid "Phone Number"
215
  msgstr ""
216
 
217
- #: includes/class-custom-post-types.php:408 includes/class-settings.php:363
218
  msgid "Define your weekly opening hours by adding scheduling rules."
219
  msgstr ""
220
 
221
- #: includes/class-custom-post-types.php:423 includes/class-settings.php:378
222
  msgid "Add another opening time"
223
  msgstr ""
224
 
225
- #: includes/class-custom-post-types.php:437 includes/class-settings.php:392
226
  msgid "Delete scheduling rule"
227
  msgstr ""
228
 
229
  #: includes/class-settings.php:221 includes/class-settings.php:222
230
  #: includes/class-settings.php:233 includes/class-settings.php:234
231
- #. #-#-#-#-# business-profile.pot (Business Profile 1.1) #-#-#-#-#
232
  #. Plugin Name of the plugin/theme
233
  msgid "Business Profile"
234
  msgstr ""
@@ -268,30 +268,40 @@ msgid "Nothing was found at that address"
268
  msgstr ""
269
 
270
  #: includes/class-settings.php:316
 
 
 
 
 
 
 
 
 
 
271
  msgid "Phone"
272
  msgstr ""
273
 
274
- #: includes/class-settings.php:327
275
  msgid ""
276
  "Select a page on your site where users can reach you, such as a contact "
277
  "form."
278
  msgstr ""
279
 
280
- #: includes/class-settings.php:344
281
  msgid ""
282
  "Enter an email address only if you want to display this publicly. Showing "
283
  "your email address on your site may cause you to receive excessive spam."
284
  msgstr ""
285
 
286
- #: includes/class-settings.php:352
287
  msgid "Schedule"
288
  msgstr ""
289
 
290
- #: includes/class-settings.php:409 includes/class-settings.php:419
291
  msgid "Multiple Locations"
292
  msgstr ""
293
 
294
- #: includes/class-settings.php:420
295
  msgid "Enable support for multiple business locations."
296
  msgstr ""
297
 
@@ -384,7 +394,7 @@ msgstr ""
384
  msgid "Closed"
385
  msgstr ""
386
 
387
- #: includes/template-functions.php:559
388
  msgid "Get Directions"
389
  msgstr ""
390
 
@@ -392,9 +402,9 @@ msgstr ""
392
  msgid "You do not have sufficient permissions to access this page."
393
  msgstr ""
394
 
395
- #. #-#-#-#-# business-profile.pot (Business Profile 1.1) #-#-#-#-#
396
  #. Plugin URI of the plugin/theme
397
- #. #-#-#-#-# business-profile.pot (Business Profile 1.1) #-#-#-#-#
398
  #. Author URI of the plugin/theme
399
  msgid "http://themeofthecrop.com"
400
  msgstr ""
@@ -418,42 +428,42 @@ msgctxt "separator between admin action links in address component"
418
  msgid " | "
419
  msgstr ""
420
 
421
- #: includes/class-custom-post-types.php:410 includes/class-settings.php:365
422
  msgctxt "Monday abbreviation"
423
  msgid "Mo"
424
  msgstr ""
425
 
426
- #: includes/class-custom-post-types.php:411 includes/class-settings.php:366
427
  msgctxt "Tuesday abbreviation"
428
  msgid "Tu"
429
  msgstr ""
430
 
431
- #: includes/class-custom-post-types.php:412 includes/class-settings.php:367
432
  msgctxt "Wednesday abbreviation"
433
  msgid "We"
434
  msgstr ""
435
 
436
- #: includes/class-custom-post-types.php:413 includes/class-settings.php:368
437
  msgctxt "Thursday abbreviation"
438
  msgid "Th"
439
  msgstr ""
440
 
441
- #: includes/class-custom-post-types.php:414 includes/class-settings.php:369
442
  msgctxt "Friday abbreviation"
443
  msgid "Fr"
444
  msgstr ""
445
 
446
- #: includes/class-custom-post-types.php:415 includes/class-settings.php:370
447
  msgctxt "Saturday abbreviation"
448
  msgid "Sa"
449
  msgstr ""
450
 
451
- #: includes/class-custom-post-types.php:416 includes/class-settings.php:371
452
  msgctxt "Sunday abbreviation"
453
  msgid "Su"
454
  msgstr ""
455
 
456
- #: includes/class-custom-post-types.php:418 includes/class-settings.php:373
457
  msgctxt ""
458
  "Time format displayed in the opening hours setting panel in your admin "
459
  "area. Must match formatting rules at "
@@ -461,7 +471,7 @@ msgctxt ""
461
  msgid "h:i A"
462
  msgstr ""
463
 
464
- #: includes/class-custom-post-types.php:419 includes/class-settings.php:374
465
  msgctxt ""
466
  "Date format displayed in the opening hours setting panel in your admin "
467
  "area. Must match formatting rules at "
@@ -469,86 +479,86 @@ msgctxt ""
469
  msgid "mmmm d, yyyy"
470
  msgstr ""
471
 
472
- #: includes/class-custom-post-types.php:424 includes/class-settings.php:379
473
  msgctxt "Format of a scheduling rule"
474
  msgid "Weekly"
475
  msgstr ""
476
 
477
- #: includes/class-custom-post-types.php:425 includes/class-settings.php:380
478
  msgctxt "Format of a scheduling rule"
479
  msgid "Monthly"
480
  msgstr ""
481
 
482
- #: includes/class-custom-post-types.php:426 includes/class-settings.php:381
483
  msgctxt "Format of a scheduling rule"
484
  msgid "Date"
485
  msgstr ""
486
 
487
- #: includes/class-custom-post-types.php:427 includes/class-settings.php:382
488
  msgctxt "Label for selecting days of the week in a scheduling rule"
489
  msgid "Days of the week"
490
  msgstr ""
491
 
492
- #: includes/class-custom-post-types.php:428 includes/class-settings.php:383
493
  msgctxt "Label for selecting weeks of the month in a scheduling rule"
494
  msgid "Weeks of the month"
495
  msgstr ""
496
 
497
- #: includes/class-custom-post-types.php:429 includes/class-settings.php:384
498
  msgctxt "Label to select a date for a scheduling rule"
499
  msgid "Date"
500
  msgstr ""
501
 
502
- #: includes/class-custom-post-types.php:430 includes/class-settings.php:385
503
  msgctxt "Label to select a time slot for a scheduling rule"
504
  msgid "Time"
505
  msgstr ""
506
 
507
- #: includes/class-custom-post-types.php:431 includes/class-settings.php:386
508
  msgctxt "Label to set a scheduling rule to last all day"
509
  msgid "All day"
510
  msgstr ""
511
 
512
- #: includes/class-custom-post-types.php:432 includes/class-settings.php:387
513
  msgctxt "Label for the starting time of a scheduling rule"
514
  msgid "Start"
515
  msgstr ""
516
 
517
- #: includes/class-custom-post-types.php:433 includes/class-settings.php:388
518
  msgctxt "Label for the ending time of a scheduling rule"
519
  msgid "End"
520
  msgstr ""
521
 
522
- #: includes/class-custom-post-types.php:434 includes/class-settings.php:389
523
  msgctxt "Prompt displayed when a scheduling rule is set without any time restrictions"
524
  msgid "All day long. Want to %sset a time slot%s?"
525
  msgstr ""
526
 
527
- #: includes/class-custom-post-types.php:435 includes/class-settings.php:390
528
  msgctxt "Toggle a scheduling rule open and closed"
529
  msgid "Open and close this rule"
530
  msgstr ""
531
 
532
- #: includes/class-custom-post-types.php:436 includes/class-settings.php:391
533
  msgctxt "Delete a scheduling rule"
534
  msgid "Delete rule"
535
  msgstr ""
536
 
537
- #: includes/class-custom-post-types.php:438 includes/class-settings.php:393
538
  msgctxt ""
539
  "Brief default description of a scheduling rule when no weekdays or weeks "
540
  "are included in the rule"
541
  msgid "Never"
542
  msgstr ""
543
 
544
- #: includes/class-custom-post-types.php:439 includes/class-settings.php:394
545
  msgctxt ""
546
  "Brief default description of a scheduling rule when all the weekdays/weeks "
547
  "are included in the rule"
548
  msgid "Every day"
549
  msgstr ""
550
 
551
- #: includes/class-custom-post-types.php:440 includes/class-settings.php:395
552
  msgctxt ""
553
  "Brief default description of a scheduling rule when some weekdays are "
554
  "included on only some weeks of the month. %s should be left alone and will "
@@ -557,7 +567,7 @@ msgctxt ""
557
  msgid "%s on the %s week of the month"
558
  msgstr ""
559
 
560
- #: includes/class-custom-post-types.php:441 includes/class-settings.php:396
561
  msgctxt ""
562
  "Brief default description of a scheduling rule when some weeks of the month "
563
  "are included but all or no weekdays are selected. %s should be left alone "
@@ -566,26 +576,26 @@ msgctxt ""
566
  msgid "%s week of the month"
567
  msgstr ""
568
 
569
- #: includes/class-custom-post-types.php:442 includes/class-settings.php:397
570
  msgctxt "Brief default description of a scheduling rule when no times are set"
571
  msgid "All day"
572
  msgstr ""
573
 
574
- #: includes/class-custom-post-types.php:443 includes/class-settings.php:398
575
  msgctxt ""
576
  "Brief default description of a scheduling rule when an end time is set but "
577
  "no start time. If the end time is 6pm, it will read: Ends at 6pm"
578
  msgid "Ends at"
579
  msgstr ""
580
 
581
- #: includes/class-custom-post-types.php:444 includes/class-settings.php:399
582
  msgctxt ""
583
  "Brief default description of a scheduling rule when a start time is set but "
584
  "no end time. If the start time is 6pm, it will read: Starts at 6pm"
585
  msgid "Starts at"
586
  msgstr ""
587
 
588
- #: includes/class-custom-post-types.php:445 includes/class-settings.php:400
589
  msgctxt "Separator between times of a scheduling rule"
590
  msgid "&mdash;"
591
  msgstr ""
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.1.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/business-profile\n"
7
+ "POT-Creation-Date: 2016-06-28 11:05:42+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
139
  msgstr ""
140
 
141
  #: includes/class-custom-post-types.php:167
142
+ #: includes/class-custom-post-types.php:407 includes/class-settings.php:379
143
  #: templates/opening-hours.php:21
144
  msgid "Opening Hours"
145
  msgstr ""
202
  msgid "Remove map coordinates"
203
  msgstr ""
204
 
205
+ #: includes/class-custom-post-types.php:330 includes/class-settings.php:343
206
  msgid "Contact Page"
207
  msgstr ""
208
 
209
+ #: includes/class-custom-post-types.php:344 includes/class-settings.php:360
210
  msgid "Email Address (optional)"
211
  msgstr ""
212
 
214
  msgid "Phone Number"
215
  msgstr ""
216
 
217
+ #: includes/class-custom-post-types.php:408 includes/class-settings.php:380
218
  msgid "Define your weekly opening hours by adding scheduling rules."
219
  msgstr ""
220
 
221
+ #: includes/class-custom-post-types.php:423 includes/class-settings.php:395
222
  msgid "Add another opening time"
223
  msgstr ""
224
 
225
+ #: includes/class-custom-post-types.php:437 includes/class-settings.php:409
226
  msgid "Delete scheduling rule"
227
  msgstr ""
228
 
229
  #: includes/class-settings.php:221 includes/class-settings.php:222
230
  #: includes/class-settings.php:233 includes/class-settings.php:234
231
+ #. #-#-#-#-# business-profile.pot (Business Profile 1.1.1) #-#-#-#-#
232
  #. Plugin Name of the plugin/theme
233
  msgid "Business Profile"
234
  msgstr ""
268
  msgstr ""
269
 
270
  #: includes/class-settings.php:316
271
+ msgid "Google Maps API Key"
272
+ msgstr ""
273
+
274
+ #: includes/class-settings.php:318
275
+ msgid ""
276
+ "Google requires an API key to use their maps. %sGet an API key%s. A full "
277
+ "walk-through is available in the %sdocumentiaton%s."
278
+ msgstr ""
279
+
280
+ #: includes/class-settings.php:333
281
  msgid "Phone"
282
  msgstr ""
283
 
284
+ #: includes/class-settings.php:344
285
  msgid ""
286
  "Select a page on your site where users can reach you, such as a contact "
287
  "form."
288
  msgstr ""
289
 
290
+ #: includes/class-settings.php:361
291
  msgid ""
292
  "Enter an email address only if you want to display this publicly. Showing "
293
  "your email address on your site may cause you to receive excessive spam."
294
  msgstr ""
295
 
296
+ #: includes/class-settings.php:369
297
  msgid "Schedule"
298
  msgstr ""
299
 
300
+ #: includes/class-settings.php:426 includes/class-settings.php:436
301
  msgid "Multiple Locations"
302
  msgstr ""
303
 
304
+ #: includes/class-settings.php:437
305
  msgid "Enable support for multiple business locations."
306
  msgstr ""
307
 
394
  msgid "Closed"
395
  msgstr ""
396
 
397
+ #: includes/template-functions.php:560
398
  msgid "Get Directions"
399
  msgstr ""
400
 
402
  msgid "You do not have sufficient permissions to access this page."
403
  msgstr ""
404
 
405
+ #. #-#-#-#-# business-profile.pot (Business Profile 1.1.1) #-#-#-#-#
406
  #. Plugin URI of the plugin/theme
407
+ #. #-#-#-#-# business-profile.pot (Business Profile 1.1.1) #-#-#-#-#
408
  #. Author URI of the plugin/theme
409
  msgid "http://themeofthecrop.com"
410
  msgstr ""
428
  msgid " | "
429
  msgstr ""
430
 
431
+ #: includes/class-custom-post-types.php:410 includes/class-settings.php:382
432
  msgctxt "Monday abbreviation"
433
  msgid "Mo"
434
  msgstr ""
435
 
436
+ #: includes/class-custom-post-types.php:411 includes/class-settings.php:383
437
  msgctxt "Tuesday abbreviation"
438
  msgid "Tu"
439
  msgstr ""
440
 
441
+ #: includes/class-custom-post-types.php:412 includes/class-settings.php:384
442
  msgctxt "Wednesday abbreviation"
443
  msgid "We"
444
  msgstr ""
445
 
446
+ #: includes/class-custom-post-types.php:413 includes/class-settings.php:385
447
  msgctxt "Thursday abbreviation"
448
  msgid "Th"
449
  msgstr ""
450
 
451
+ #: includes/class-custom-post-types.php:414 includes/class-settings.php:386
452
  msgctxt "Friday abbreviation"
453
  msgid "Fr"
454
  msgstr ""
455
 
456
+ #: includes/class-custom-post-types.php:415 includes/class-settings.php:387
457
  msgctxt "Saturday abbreviation"
458
  msgid "Sa"
459
  msgstr ""
460
 
461
+ #: includes/class-custom-post-types.php:416 includes/class-settings.php:388
462
  msgctxt "Sunday abbreviation"
463
  msgid "Su"
464
  msgstr ""
465
 
466
+ #: includes/class-custom-post-types.php:418 includes/class-settings.php:390
467
  msgctxt ""
468
  "Time format displayed in the opening hours setting panel in your admin "
469
  "area. Must match formatting rules at "
471
  msgid "h:i A"
472
  msgstr ""
473
 
474
+ #: includes/class-custom-post-types.php:419 includes/class-settings.php:391
475
  msgctxt ""
476
  "Date format displayed in the opening hours setting panel in your admin "
477
  "area. Must match formatting rules at "
479
  msgid "mmmm d, yyyy"
480
  msgstr ""
481
 
482
+ #: includes/class-custom-post-types.php:424 includes/class-settings.php:396
483
  msgctxt "Format of a scheduling rule"
484
  msgid "Weekly"
485
  msgstr ""
486
 
487
+ #: includes/class-custom-post-types.php:425 includes/class-settings.php:397
488
  msgctxt "Format of a scheduling rule"
489
  msgid "Monthly"
490
  msgstr ""
491
 
492
+ #: includes/class-custom-post-types.php:426 includes/class-settings.php:398
493
  msgctxt "Format of a scheduling rule"
494
  msgid "Date"
495
  msgstr ""
496
 
497
+ #: includes/class-custom-post-types.php:427 includes/class-settings.php:399
498
  msgctxt "Label for selecting days of the week in a scheduling rule"
499
  msgid "Days of the week"
500
  msgstr ""
501
 
502
+ #: includes/class-custom-post-types.php:428 includes/class-settings.php:400
503
  msgctxt "Label for selecting weeks of the month in a scheduling rule"
504
  msgid "Weeks of the month"
505
  msgstr ""
506
 
507
+ #: includes/class-custom-post-types.php:429 includes/class-settings.php:401
508
  msgctxt "Label to select a date for a scheduling rule"
509
  msgid "Date"
510
  msgstr ""
511
 
512
+ #: includes/class-custom-post-types.php:430 includes/class-settings.php:402
513
  msgctxt "Label to select a time slot for a scheduling rule"
514
  msgid "Time"
515
  msgstr ""
516
 
517
+ #: includes/class-custom-post-types.php:431 includes/class-settings.php:403
518
  msgctxt "Label to set a scheduling rule to last all day"
519
  msgid "All day"
520
  msgstr ""
521
 
522
+ #: includes/class-custom-post-types.php:432 includes/class-settings.php:404
523
  msgctxt "Label for the starting time of a scheduling rule"
524
  msgid "Start"
525
  msgstr ""
526
 
527
+ #: includes/class-custom-post-types.php:433 includes/class-settings.php:405
528
  msgctxt "Label for the ending time of a scheduling rule"
529
  msgid "End"
530
  msgstr ""
531
 
532
+ #: includes/class-custom-post-types.php:434 includes/class-settings.php:406
533
  msgctxt "Prompt displayed when a scheduling rule is set without any time restrictions"
534
  msgid "All day long. Want to %sset a time slot%s?"
535
  msgstr ""
536
 
537
+ #: includes/class-custom-post-types.php:435 includes/class-settings.php:407
538
  msgctxt "Toggle a scheduling rule open and closed"
539
  msgid "Open and close this rule"
540
  msgstr ""
541
 
542
+ #: includes/class-custom-post-types.php:436 includes/class-settings.php:408
543
  msgctxt "Delete a scheduling rule"
544
  msgid "Delete rule"
545
  msgstr ""
546
 
547
+ #: includes/class-custom-post-types.php:438 includes/class-settings.php:410
548
  msgctxt ""
549
  "Brief default description of a scheduling rule when no weekdays or weeks "
550
  "are included in the rule"
551
  msgid "Never"
552
  msgstr ""
553
 
554
+ #: includes/class-custom-post-types.php:439 includes/class-settings.php:411
555
  msgctxt ""
556
  "Brief default description of a scheduling rule when all the weekdays/weeks "
557
  "are included in the rule"
558
  msgid "Every day"
559
  msgstr ""
560
 
561
+ #: includes/class-custom-post-types.php:440 includes/class-settings.php:412
562
  msgctxt ""
563
  "Brief default description of a scheduling rule when some weekdays are "
564
  "included on only some weeks of the month. %s should be left alone and will "
567
  msgid "%s on the %s week of the month"
568
  msgstr ""
569
 
570
+ #: includes/class-custom-post-types.php:441 includes/class-settings.php:413
571
  msgctxt ""
572
  "Brief default description of a scheduling rule when some weeks of the month "
573
  "are included but all or no weekdays are selected. %s should be left alone "
576
  msgid "%s week of the month"
577
  msgstr ""
578
 
579
+ #: includes/class-custom-post-types.php:442 includes/class-settings.php:414
580
  msgctxt "Brief default description of a scheduling rule when no times are set"
581
  msgid "All day"
582
  msgstr ""
583
 
584
+ #: includes/class-custom-post-types.php:443 includes/class-settings.php:415
585
  msgctxt ""
586
  "Brief default description of a scheduling rule when an end time is set but "
587
  "no start time. If the end time is 6pm, it will read: Ends at 6pm"
588
  msgid "Ends at"
589
  msgstr ""
590
 
591
+ #: includes/class-custom-post-types.php:444 includes/class-settings.php:416
592
  msgctxt ""
593
  "Brief default description of a scheduling rule when a start time is set but "
594
  "no end time. If the start time is 6pm, it will read: Starts at 6pm"
595
  msgid "Starts at"
596
  msgstr ""
597
 
598
+ #: includes/class-custom-post-types.php:445 includes/class-settings.php:417
599
  msgctxt "Separator between times of a scheduling rule"
600
  msgid "&mdash;"
601
  msgstr ""
readme.txt CHANGED
@@ -1,11 +1,11 @@
1
  === Business Profile ===
2
- 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.5.2
7
  Tags: business profile, seo, local seo, schema, address, google map, contact, phone
8
- Stable tag: 1.1
9
  License: GPLv2 or later
10
  Donate link: http://themeofthecrop.com
11
 
@@ -25,9 +25,9 @@ Add your business contact details to your site with seo-friendly Schema.org mark
25
 
26
  Schema.org markup helps search engines like Google discover your address, phone number and opening hours so that they can display them with your listing on Google.
27
 
28
- **Supports [multi-location businesses](http://doc.themeofthecrop.com/plugins/business-profile/user/getting-started/locations) with a custom Locations post type.**
29
 
30
- This plugin is part of a group of plugins for restaurants. Check out the [Restaurant Reservations](http://wordpress.org/plugins/restaurant-reservations/), [Food and Drink Menu](http://wordpress.org/plugins/food-and-drink-menu/), and [Good Reviews for WordPress](http://wordpress.org/plugins/good-reviews-wp/) plugins as well.
31
 
32
  = How to use =
33
 
@@ -44,6 +44,38 @@ This plugin is packed with templates and hooks so you can extend it as needed. R
44
  3. Activate the plugin through the 'Plugins' menu in WordPress
45
  4. Go to the Business Profile page in your admin menu. You will find it near the bottom.
46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  == Screenshots ==
48
 
49
  1. Display a full contact card on the front-end with the shortcode [contact-card] or use the widget to add it to a sidebar.
@@ -53,6 +85,9 @@ This plugin is packed with templates and hooks so you can extend it as needed. R
53
 
54
  == Changelog ==
55
 
 
 
 
56
  = 1.1 (2016-06-20) =
57
  * Add: multi-location support
58
  * Add: filter to adjust available schema types
@@ -110,6 +145,9 @@ This plugin is packed with templates and hooks so you can extend it as needed. R
110
 
111
  == Upgrade Notice ==
112
 
 
 
 
113
  = 1.1 =
114
  This major update adds support for multiple locations, refactors the codebase to follow WP coding guidelines, and adds several templates and helper functions for customization.
115
 
1
  === Business Profile ===
2
+ Contributors: NateWr, fatmedia
3
  Author URI: https://github.com/NateWr
4
  Plugin URL: http://themeofthecrop.com
5
+ Requires at Least: 4.4
6
+ Tested Up To: 4.6
7
  Tags: business profile, seo, local seo, schema, address, google map, contact, phone
8
+ Stable tag: 1.1.1
9
  License: GPLv2 or later
10
  Donate link: http://themeofthecrop.com
11
 
25
 
26
  Schema.org markup helps search engines like Google discover your address, phone number and opening hours so that they can display them with your listing on Google.
27
 
28
+ Supports [multi-location businesses](http://doc.themeofthecrop.com/plugins/business-profile/user/getting-started/locations) with a custom Locations post type.
29
 
30
+ This plugin is part of a suite of products that help restaurants build better websites. Get the [best WordPress restaurant themes](https://themeofthecrop.com/themes/?utm_source=Plugin&utm_medium=Plugin%20Description&utm_campaign=Business%20Profile), as well as plugins that help restaurants [take online reservations](https://themeofthecrop.com/plugins/restaurant-reservations/?utm_source=Plugin&utm_medium=Plugin%20Description&utm_campaign=Business%20Profile) and build [responsive online menus](https://themeofthecrop.com/plugins/food-and-drink-menu/?utm_source=Plugin&utm_medium=Plugin%20Description&utm_campaign=Business%20Profile) at [Theme of the Crop](https://themeofthecrop.com/?utm_source=Plugin&utm_medium=Plugin%20Description&utm_campaign=Business%20Profile).
31
 
32
  = How to use =
33
 
44
  3. Activate the plugin through the 'Plugins' menu in WordPress
45
  4. Go to the Business Profile page in your admin menu. You will find it near the bottom.
46
 
47
+ == Frequently Asked Questions ==
48
+
49
+ = Is there a shortcode to print the contact card? =
50
+
51
+ Yes, you can use `[contact-card]`. The documentation includes [all of the shortcode attributes](http://doc.themeofthecrop.com/plugins/business-profile/user/faq#shortcode).
52
+
53
+ = It asks me for a Google Maps API Key but I don’t know what it is or how to get it. =
54
+
55
+ Google now requires that you have your own API key to display a map on your website. The documentation includes a walkthrough to help you [generate a Google Maps API key](http://doc.themeofthecrop.com/plugins/business-profile/user/faq#google-maps-api-key).
56
+
57
+ = Google Maps shows my business in the wrong location =
58
+
59
+ Unfortunately, in some cases Google is unable to find the right latitude and longitude to match your address.
60
+
61
+ In some cases, you may be able to get it to properly locate you by tweaking the address. Sometimes Google just needs a bit of help. Once you’ve got the right coordinates you can go back and restore your original address, and save the form without touching the coordinates again.
62
+
63
+ If you’re unable to get Google to recognize your location, the best thing to do is to leave the Google Map out when you print your contact card. You will also want to hide the Get Directions link, because Google will guide your customers to the wrong location.
64
+
65
+ There’s not much I can do about this, unfortunately. Even if you were able to manually set the latitude and longitude, Google would still show bad directions, because it uses the address, not the coordinates, for this feature.
66
+
67
+ = What’s the Schema Type? =
68
+
69
+ This allows you to let search engines like Google know exactly what kind of business you run.
70
+
71
+ That way, when someone looks for a real estate agent or a restaurant in your area, they’ll know to include you in their search results.
72
+
73
+ You may not find a type that’s a perfect match for your business. Choose the option that’s most appropriate for your business, and fall back to a more generic type, such as Local Business, if you need.
74
+
75
+ = More questions =
76
+
77
+ You'll find more help in the [User Guide](http://doc.themeofthecrop.com/plugins/business-profile/user/). Developers interested in templates, filters and theme support can view the [Developer Documentation](http://doc.themeofthecrop.com/plugins/business-profile/developer/).
78
+
79
  == Screenshots ==
80
 
81
  1. Display a full contact card on the front-end with the shortcode [contact-card] or use the widget to add it to a sidebar.
85
 
86
  == Changelog ==
87
 
88
+ = 1.1.1 (2016-06-28) =
89
+ * Add field for Google Maps API Key to follow new API guidelines
90
+
91
  = 1.1 (2016-06-20) =
92
  * Add: multi-location support
93
  * Add: filter to adjust available schema types
145
 
146
  == Upgrade Notice ==
147
 
148
+ = 1.1.1 =
149
+ This update adds support for a Google Maps API Key. Since June 22, 2016, Google Maps will require all _new_ websites to use an API key in order to display maps. Instructions can be found near the new API Key field in your Business Profile.
150
+
151
  = 1.1 =
152
  This major update adds support for multiple locations, refactors the codebase to follow WP coding guidelines, and adds several templates and helper functions for customization.
153