-
Notifications
You must be signed in to change notification settings - Fork 3
/
readme.txt
92 lines (62 loc) · 3.8 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
=== Gravity Forms Business Hours by GravityView ===
Tags: gravityview,gravity forms, gravity,gravity form,business, hours, time, field, form
Requires at least: 3.3
Tested up to: 5.1.1
Stable tag: trunk
Contributors: katzwebdesign,katzwebservices,gravityview
License: GPL 3 or higher
Donate link: https://gravityview.co
Add a Business Hours field to Gravity Forms.
== Description ==
> This plugin requires [Gravity Forms](https://rocketgenius.pxf.io/c/1210629/445235/7938), the best form plugin for WordPress!
Add a Business Hours field to your Gravity Forms form.
__This plugin supports:__
* Setting closing times after midnight
* Multiple open times per day
* Displaying when a business is currently open
* Fully localized - works great in languages other than English
* Edit existing values when editing an entry
* Works with [GravityView](https://gravityview.co) and the [Gravity Forms Directory](https://wordpress.org/plugins/gravity-forms-addons/) plugins
#### Note: this plugin is actively updated, but customer support is only available to [GravityView](https://gravityview.co) license holders.
### Available Filters
These filters are available for code writers to modify the output:
* `gravityforms_business_hours_output_template` - Change template for open days. Modify the output of the open days. Data inside {{brackets}} will be replaced with the appropriate values.
* `gravityforms_business_hours_output_closed_template` - Closed days template. Data inside {{brackets}} will be replaced with the appropriate values.
* `gravityforms_business_hours_open_label` - "Open Now" label
* `gravityforms_business_hours_default_start_time` - Default start time in `H:i` format (default: `09:00`)
* `gravityforms_business_hours_default_end_time` - Default end time in `H:i` format (default: `18:00`)
* `gravityforms_business_hours_time_format` - Modify the time format for the displayed value (default: `g:i a`)
* `gravityforms_business_hours_interval` - Time interval for the time dropdown options (default: `30`)
* `gravityforms_business_hours_day_format` - Modify the date format for how the days appear, in [PHP Date formatting](http://codex.wordpress.org/Formatting_Date_and_Time).
* `gravityforms_business_hours_days` - Array of day values used to display dropdowns and Hours output __Only modify the day values. Don't change the keys!__
== Installation ==
1. Upload plugin files to your plugins folder, or install using WordPress' built-in Add New Plugin installer
2. Activate the plugin
3. In Edit Form, under Advanced Fields, click "Business Hours" to add the field to your form
== Screenshots ==
1. Business Hours in the Gravity Forms View Entry screen
2. The Business Hours field
3. The Business Hours button in the Form Editor
== Changelog ==
= 2.1.3 on April 23, 2019 =
* Fixed: "null" being output for empty Business Hours fields
= 2.1.2 on January 7, 2019 =
* Fixed: Error when exporting forms in Gravity Forms that contain Business Hours fields
= 2.1.1 on November 20, 2018 =
* Fixed: Newly added fields not working properly
= 2.1 on June 25, 2018 =
* Updated: Use site's time format setting for the time dropdowns (24-hour clock now supported)
* Fixed: Not able to update the field's default label
= 2.0.1 on February 26, 2018 =
* Fixed: Network Activation on Multisite
* Moved `GFBusinessHours` class to its own file
= 2.0 on November 8, 2017 =
* Email notifications now show a list of hours instead of code
* Improved output in GravityView by stripping extra whitespace
* Major code rewrite for a better structure (using Gravity Forms `GF_Field` class)
* Developers: All public methods have been removed. This is a breaking change, if you're building on top of Version 1.x
= 1.2.1 on March 10, 2015 =
* Fixed: Business Hours field would be shown as Required in GravityView Edit Entry mode
* Fixed: PHP notices
= 1.2 on December 18 =
* Liftoff!