-
Notifications
You must be signed in to change notification settings - Fork 16
Hours of Operation Widget #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
EvanHerman
wants to merge
91
commits into
develop
Choose a base branch
from
hours-of-operation
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
91 commits
Select commit
Hold shift + click to select a range
0d4b47e
Hours of operation widget.
EvanHerman 161f710
Refactor.
EvanHerman 2b6d398
Add wpcw_hours_seperator filter to allow users to adjust the divider …
EvanHerman b61adc7
Refactors, tweaks, new styles, adjusted script, ability to copy acros…
EvanHerman f4f8b2f
Add microformat to open/close times.
EvanHerman 19e194a
Fix array formatting.
EvanHerman 85be62d
Add additional_content field below the hours of operation widget.
EvanHerman 9e45c18
Update additional_content label, remove store_closed from .js
EvanHerman 9d89524
Repair js_wpcw_apply_hours_to_all dashicon
EvanHerman ae5944c
First round of 'custom text' section.
EvanHerman d078738
Prevent form from overflowing and displaying a scroll bar.
EvanHerman 0b4f41a
Refactor overflow issue.
EvanHerman 0d97494
Add initial hours of operation unit tests. Refactor when microformats…
EvanHerman a7925cd
Update acceptance tests. Increase timeout on customizer screen.
EvanHerman 8a82f3f
Tweak acceptance tests.
EvanHerman cbf7f2a
Fill out first hours of operation field.
EvanHerman 76d74dd
Remove rogue option.
EvanHerman f23620f
Update acceptance test.
EvanHerman 48d5ae9
Update.
EvanHerman f82c4d8
Tweak acceptance tests.
EvanHerman 0552d7f
Pass into shutdown function.
EvanHerman 5fca127
Testing close and custom text checkboxes.
EvanHerman b25ab37
Remove early return when title field is left empty on hours widget.
EvanHerman 296094d
Remove see check from hours output check
EvanHerman d2aef42
Tweaks based on UI feedback.
EvanHerman e9d98d6
Refactor to avoid undefined variable. Add wpcw_hour_increment filter.
EvanHerman ee6a926
Remove 'hour' from the available hour increment.
EvanHerman 864ccbd
Added wpcw_widget_hours_first_day filter, allowing users to set the f…
EvanHerman d8cc2f4
Fix array spacing.
EvanHerman 89a17f0
Add dockblocks to new filters.
EvanHerman bb6d088
Add docblock, introduce new filters, introduce new method is_business…
EvanHerman 0a8ddfb
Refactor, run is_business_open() once for performance.
EvanHerman 6d6fc2d
Add action hooks for before/after each day in the widget.
EvanHerman 5d59db8
Update js files to pass tests.
EvanHerman 23fb005
Resolve warning on front-end display when shop is closed all day.
EvanHerman 3a7c2db
Tweak .js. Adjust styles. Tweak input field render. Add checkbox to a…
EvanHerman 5a93723
Align array data, remove test is_admin().
EvanHerman 202a1cc
Update spacing in .js file.
EvanHerman 180b1c0
Update misspelled work
EvanHerman 665acab
Update misspelled work
EvanHerman e41cd5f
Update day_order label.
EvanHerman d4774c6
Prefix content variables with $
EvanHerman 001894c
Change .attr/.removeAttr to .prop()
EvanHerman 8f54b39
Unify .click target
EvanHerman f427f15
First pass at refector
frankiejarrett f9f8f6b
Back compat for other widgets
frankiejarrett 74f5b75
Fix social icon sorting and order saving
frankiejarrett 5270625
Fix jshints
frankiejarrett 2aabdc0
Update PHP versions in tests
frankiejarrett a95995f
Ignore bogus jshint snifs
frankiejarrett c6f615b
Fix sniff
frankiejarrett 7d3f684
Titles never sortable
frankiejarrett ff71d5e
Codeception requires 5.6
frankiejarrett d535b78
Fix checkboxes in contact widget
frankiejarrett caf836b
Fix spacing sniffs
frankiejarrett fd557f2
Merge in develop
frankiejarrett 85efef5
Style tweaks on widget button/closed checkbox
EvanHerman 0f43a55
Add support for hidden screen reader labels
frankiejarrett fe76679
Fix classname on close selects
frankiejarrett c51e0be
Display the 'Apply to All' link on only the first day in the widget
EvanHerman eb19705
Remove overflow auto, causing scroll issues in hours of operation wid…
EvanHerman df306a3
Add method to return an instance schedule
frankiejarrett d349e90
Populate/Display open sign based on end user time.
EvanHerman 953b350
Add logic to group days together
frankiejarrett f03c51f
Support grouping on days with multiple time blocks
frankiejarrett 2a2778c
Localize open/closed strings
EvanHerman 75b9fa7
Tweak closed string.
EvanHerman cc02684
First pass at dynamic time options based on selection
EvanHerman a5fe450
Tweak admin.js so when the widget is updated, the fields are re-hidde…
EvanHerman 1781a3f
Refactor.
EvanHerman 8b064f1
Abstract datetime logic, use key/value pairs for open times
frankiejarrett 1bfbc9f
Refactor our loop for open business label - front end of site.
EvanHerman fa0cab0
Update open/closed sign based on end user locale.
EvanHerman 848102b
Remove rogue space.
EvanHerman 4240312
Update js files for acceptance tests
EvanHerman 59ca932
Add globals to the top of js file for localized variable
EvanHerman b674ad0
update spacing in globals declaration
EvanHerman 9ade607
Update time selector fields.
EvanHerman 33aa7f0
Style, initialization tweaks to timepicker
EvanHerman f49522a
Support multiple instances of the hours widget with JS
frankiejarrett 13ce03b
Rename hours JS file
frankiejarrett 17b99b6
Update timepicker time format support - inherit from site settings.
EvanHerman 2b53502
Change timeSelect => timePicker
EvanHerman ddd5710
Unify timepicker background with admin color scheme.
EvanHerman c7f36f9
Make date ranges translatable and RTL compat
frankiejarrett ee8eed6
Merge in develop
frankiejarrett 06d70b7
Tweak CSS and open string
frankiejarrett 9883db7
Move assets_url property to Plugin class
frankiejarrett 5d5c4a9
update placeholders
EvanHerman e3bb055
Initialize time selection fields on initial widget add.
EvanHerman 0ae298f
Add inheritance, move enqueues into respective classes, bump font awe…
EvanHerman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@EvanHerman I think
Enter additional information about your business.might be more universal.