forked from jspellman814/wordpress-composer-managed
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add location alert fields to homepage widget
** Why are these changes being introduced: * There is an upcoming closure to the Hayden library, and we want to enable UXWS staff to be able to add alerts to the homepage for cases like this without asking for EngX to modify static templates. ** Relevant ticket(s): * https://mitlibraries.atlassian.net/browse/pw-93 ** How does this address that need: * This adds a function to the homepage locations widget (part of the hours plugin), to check each location's record to see if there are any location alerts. If either the alert title or alert content field has been populated, they are shown to the user below that location's entry on the homepage. ** Document any side effects to this change: * The alert_title and alert_content fields already exist as part of the location record type. Those fields are currently shown on the location page and the hours page, but only if the title is populated (the content field alone being populated does not suffice). This change hooks into those fields and displays them in a new location, which may have an impact on how UXWS handles these fields. * This does not get us entirely away from mixing code and content, as the homepage hours widget still has hard-coded values for other location information (location names, which locations are shown, and in what order, etc). * The old CSS styles for the hayden renovation alert have been renamed to be just 'location-alert'.
- Loading branch information
1 parent
79a4a15
commit 0fd747d
Showing
2 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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