Skip to content

Add banner with survey link#1154

Merged
adamwoodnz merged 8 commits intotrunkfrom
add-survey-banner
Dec 5, 2022
Merged

Add banner with survey link#1154
adamwoodnz merged 8 commits intotrunkfrom
add-survey-banner

Conversation

@hlashbrooke
Copy link
Collaborator

This PR adds a persistent banner below the primary site navigation that includes a link to the individual learner survey. Fixes #1153

@hlashbrooke hlashbrooke self-assigned this Dec 5, 2022
@hlashbrooke
Copy link
Collaborator Author

hlashbrooke commented Dec 5, 2022

I added a new SCSS file for this and I think I built everything correctly from there, but let me know if not.

@@ -0,0 +1,48 @@
.notice {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of this came from _locale_notice.scss, only the survey notice style is new

*/
function register_assets() {
// Locale switcher script.
wp_register_script(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This meant the script was never loaded on the frontend

@adamwoodnz
Copy link
Contributor

Screen Shot 2022-12-05 at 4 55 52 PM

Screen Shot 2022-12-05 at 4 54 49 PM

Screen Shot 2022-12-05 at 4 55 02 PM

@hlashbrooke
Copy link
Collaborator Author

This LGTM :shipit:

@adamwoodnz adamwoodnz merged commit cf661ef into trunk Dec 5, 2022
@adamwoodnz adamwoodnz deleted the add-survey-banner branch December 5, 2022 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Add persistent banner linking to individual learner survey

2 participants

Comments