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

EWPP-1351: Fix templates for core and standard branding. #900

Merged
merged 7 commits into from
Aug 3, 2021

Conversation

sergepavle
Copy link
Member

OPENEUROPA-[Insert ticket number here]

Description

[Insert description here]

Change log

  • Added:
  • Changed:
  • Deprecated:
  • Removed:
  • Fixed:
  • Security:

Commands

[Insert commands here]

oe_theme.theme Show resolved Hide resolved
oe_theme.theme Outdated Show resolved Hide resolved
22Alexandra
22Alexandra previously approved these changes Aug 1, 2021
templates/layout/page.html.twig Outdated Show resolved Hide resolved
oe_theme.theme Outdated
@@ -1592,6 +1594,9 @@ function oe_theme_preprocess_page(array &$variables): void {
'class' => ['ecl-u-pb-xl'],
'id' => ['main-content'],
]);
// Put 'data-ecl-has-menu' attribute only if we have a menu inside
// the site header.
Copy link
Member

Choose a reason for hiding this comment

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

After further testing, it turns out we are always adding the 'data-ecl-has-menu' because $variables['page']['navigation'] is never empty, at the very least it contains the cache information.

@imanoleguskiza imanoleguskiza merged commit 5ef2640 into 3.x Aug 3, 2021
@imanoleguskiza imanoleguskiza deleted the EWPP-1351 branch August 3, 2021 12:57
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.

3 participants