You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,7 @@ The short code has the following configuration options.
38
38
-`location` ... The name of the location that you want to display opening hours for. *(mandatory)*
39
39
-`display_type` ... The layout of hours information. Options are `table`, `grid` and `stacked`. Defaults to `grid`. *(optional)*
40
40
-`num_weeks` ... The number of weeks of opening hours to display. Accepted values are `1`, `2` and `3`. Defaults to `3`. *(optional)*
41
+
-`show_status_icon` ... Show status icon for whether a library is open. Defaults to `true`. *(optional)*
41
42
-`today_only` ... Show hours for the current day only. Note if this is set to `true` it supersedes the `num_week` option. Defaults to `false`. *(optional)*
42
43
43
44
### Examples
@@ -52,6 +53,7 @@ The short code has the following configuration options.
52
53
53
54
`[wplibcalhours location="Art (Sloane) Library" today_only=true]` - Prints the opening hours for the "Art Library" for today.
54
55
56
+
`[wplibcalhours location="Art (Sloane) Library" today_only=true show_status_icon=false]` - Prints the opening hours for the "Art Library" for today without the open/closed status icon.
55
57
## API
56
58
57
59
This plugin also exposes opening hours via a read-only, public API endpoint.
0 commit comments