Skip to content
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

Adds javascript and styles to show WordPress alerts #40

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

matt-bernhardt
Copy link
Member

This proposes to add an integration with our WordPress-based alert system to Libguides. It accomplishes this via:

  1. Adding a Javascript class AlertLoader, which harvests alert content from WordPress, using the same logic that the parent theme itself uses. This implementation is a bit more encapsulated, but I'm going to set up a parallel change to the parent theme to keep them in sync.
  2. Adding set of styles to control how these alerts are rendered. Most of the styles are a copy-paste job from the built WordPress theme styles, although there are a few "adapter" styles that are needed because the markup conditions in LibGuides are slightly different than what we have in WordPress.

The javascript class is a more portable version of what we're using within the parent theme.

The styles are a copy-paste of the style rules from the parent theme, with a small number of adapter styles in a separate section that should handle the local customization for this markup scheme.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant