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 menu styles to the user page #540

Merged
merged 2 commits into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion templates/layout/page--user.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
{#{% if ucb_alerts %}#}
{# {{ attach_library('ucb2021_base/ucb-alerts') }}#}
{#{% endif %}#}

{# Adds js file necessary for status bar #}
{{ attach_library('boulder_base/ucb-user-page') }}

Expand Down
48 changes: 24 additions & 24 deletions templates/layout/page.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -45,36 +45,36 @@
#}


{% set menu_style = drupal_config('boulder_base.settings', 'ucb_menu_style') %}
{% if menu_style == 'highlight' %}
{{ attach_library('boulder_base/ucb-menu-style-highlight') }}
{% elseif menu_style == 'ivory' %}
{{ attach_library('boulder_base/ucb-menu-style-ivory') }}
{% elseif menu_style == 'layers' %}
{{ attach_library('boulder_base/ucb-menu-style-layers') }}
{% elseif menu_style == 'minimal' %}
{{ attach_library('boulder_base/ucb-menu-style-minimal') }}
{% elseif menu_style == 'modern' %}
{{ attach_library('boulder_base/ucb-menu-style-modern') }}
{% elseif menu_style == 'rise' %}
{{ attach_library('boulder_base/ucb-menu-style-rise') }}
{% elseif menu_style == 'shadow' %}
{{ attach_library('boulder_base/ucb-menu-style-shadow') }}
{% elseif menu_style == 'simple' %}
{{ attach_library('boulder_base/ucb-menu-style-simple') }}
{% elseif menu_style == 'spirit' %}
{{ attach_library('boulder_base/ucb-menu-style-spirit') }}
{% elseif menu_style == 'swatch' %}
{{ attach_library('boulder_base/ucb-menu-style-swatch') }}
{% elseif menu_style == 'tradition' %}
{{ attach_library('boulder_base/ucb-menu-style-tradition') }}
{% endif %}

<div class="layout-container ucb-page-container highlight-style">
{# HEADER CONTENT #}
{% block page_header %}
{{ attach_library('boulder_base/ucb-social-media') }}

{% set menu_style = drupal_config('boulder_base.settings', 'ucb_menu_style') %}
{% if menu_style == 'highlight' %}
{{ attach_library('boulder_base/ucb-menu-style-highlight') }}
{% elseif menu_style == 'ivory' %}
{{ attach_library('boulder_base/ucb-menu-style-ivory') }}
{% elseif menu_style == 'layers' %}
{{ attach_library('boulder_base/ucb-menu-style-layers') }}
{% elseif menu_style == 'minimal' %}
{{ attach_library('boulder_base/ucb-menu-style-minimal') }}
{% elseif menu_style == 'modern' %}
{{ attach_library('boulder_base/ucb-menu-style-modern') }}
{% elseif menu_style == 'rise' %}
{{ attach_library('boulder_base/ucb-menu-style-rise') }}
{% elseif menu_style == 'shadow' %}
{{ attach_library('boulder_base/ucb-menu-style-shadow') }}
{% elseif menu_style == 'simple' %}
{{ attach_library('boulder_base/ucb-menu-style-simple') }}
{% elseif menu_style == 'spirit' %}
{{ attach_library('boulder_base/ucb-menu-style-spirit') }}
{% elseif menu_style == 'swatch' %}
{{ attach_library('boulder_base/ucb-menu-style-swatch') }}
{% elseif menu_style == 'tradition' %}
{{ attach_library('boulder_base/ucb-menu-style-tradition') }}
{% endif %}
{% set header_color = 'black' %}
{% set campus_header_color = 'black' %}
{% set campus_header_text_color = 'white' %}
Expand Down