-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
fix(theming): Make sure the footer is hidden if no content is rendered #40597
Conversation
@@ -95,7 +95,7 @@ | |||
</h1> | |||
<?php print_unescaped($_['content']); ?> | |||
</main> | |||
<?php if (isset($template) && $template->getFooterVisible()) { ?> | |||
<?php if (isset($template) && $template->getFooterVisible() && ($theme->getLongFooter() !== '' || $_['showSimpleSignUpLink'])) { ?> |
Check notice
Code scanning / Psalm
RedundantConditionGivenDocblockType Note
c6de3e1
to
8ef38ba
Compare
/backport to stable27 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice! 😄
Tested and works.
The simple sign-up link is not shown anymore. However, this seems to be the case on master too.
Not touched that logic 😅 |
8ef38ba
to
0f0085d
Compare
Previously the footer was empty, but the backdrop was still shown. This hides the footer if no text content was defined. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
0f0085d
to
f62032e
Compare
Summary
Previously the footer was empty, but the backdrop was still shown.
This hides the footer if no text content was defined.
Screenshots
Checklist