-
Notifications
You must be signed in to change notification settings - Fork 3
Alerts
There are two types of possible alerts under this theme.
Site-wide alerts are displayed atop every page of the site. They can be configured to always appear, or to allow users to dismiss them. These alerts are recorded using the built-in Post type, which should be augmented with some custom fields.
New alerts will display at the top of all pages that use the MITLibraries-parent header. These alerts are a GET request using the WP JSON REST API.
Site-wide alerts may closeable. If closed, the alert will not reappear for that particular alert on that particular browser (handled using HTML5 localStorage).
Location-specific alerts are displayed on the location page, as well as on the Hours page under the correct location. These alerts are recorded within the custom Locaton post type, using a set of custom fields.
Location-specific alerts may not be dismissed.