feat(views): row 207 — 'Proudly developed by [logo]' footer below the survey buttons, on all pages except the welcome page
- footer.twig: renders on every page except the welcome page (aSurveyInfo.include_content == 'firstpage'); text + logo now sit in ONE link to https://www.respondage.nl, like the options-page footer. Logo still uses the dedicated respondage-logo.png (falls through to the mother theme in variants). - custom_header.twig style block: .respondage-theme-footer gets the base font size (fontsize option) and Color 2 (secondarycolor); the text uses the default (body) font by inheritance. - css/custom.css: logo height 25px (was max-height 18px). - Only the mother theme is touched — variants inherit the view via <extends> and get no variant-specific values (per owner). - Fix along the way: footer.twig had mode 600 after a rewrite, so the web server could not read it and the footer silently compiled empty; chmod 664 restored. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
690fbe05fa
commit
a50be4b1e7
3 changed files with 26 additions and 15 deletions
|
|
@ -18,8 +18,9 @@
|
||||||
opacity: 0.75;
|
opacity: 0.75;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* row 207: logo height 25px (was max-height 18px) */
|
||||||
.respondage-theme-footer-logo {
|
.respondage-theme-footer-logo {
|
||||||
max-height: 18px;
|
height: 25px;
|
||||||
width: auto;
|
width: auto;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
@ -1,12 +1,15 @@
|
||||||
{#
|
{#
|
||||||
Theme footer of vanilla_respondage: a subtle credit line at the bottom of
|
Theme footer of vanilla_respondage: "Proudly developed by [Respondage logo]"
|
||||||
every page of this theme. This file is included via {% block footer %} in
|
below the survey buttons, on every page EXCEPT the welcome page (the welcome
|
||||||
layout_global.twig, layout_survey_list.twig, layout_errors.twig and
|
page is the content view 'firstpage' — aSurveyInfo.include_content). This file
|
||||||
layout_maintenance.twig (inherited from the parent vanilla theme); print/PDF
|
is included via {% block footer %} in layout_global.twig, layout_survey_list.twig,
|
||||||
pages skip the footer (layout_printanswers.twig checks printPdf).
|
layout_errors.twig and layout_maintenance.twig (inherited from the parent vanilla
|
||||||
|
theme); print/PDF pages skip the footer (layout_printanswers.twig checks printPdf).
|
||||||
|
|
||||||
Text: "Theme Respondage Vanilla proudly developed by [Respondage logo]",
|
Text and logo sit in ONE link to https://www.respondage.nl, like the footer of
|
||||||
the logo links to https://www.respondage.nl.
|
the options page (options/options.twig). Styling: default (body) font, base
|
||||||
|
font size + Color 2 for the text — emitted in the <style> block of
|
||||||
|
custom_header.twig; logo height 25px in css/custom.css.
|
||||||
|
|
||||||
The logo uses the dedicated file name respondage-logo.png (NOT logo.png) on
|
The logo uses the dedicated file name respondage-logo.png (NOT logo.png) on
|
||||||
purpose: variants may ship their own files/logo.png as client logo, and
|
purpose: variants may ship their own files/logo.png as client logo, and
|
||||||
|
|
@ -15,13 +18,11 @@
|
||||||
logo (same trick as the footer in options/options.twig).
|
logo (same trick as the footer in options/options.twig).
|
||||||
#}
|
#}
|
||||||
{% set respondageLogo = imageSrc('./files/respondage-logo.png') %}
|
{% set respondageLogo = imageSrc('./files/respondage-logo.png') %}
|
||||||
{% if respondageLogo %}
|
{% if respondageLogo and (aSurveyInfo.include_content is not defined or aSurveyInfo.include_content != 'firstpage') %}
|
||||||
<footer role="contentinfo" class="respondage-theme-footer text-center">
|
<footer role="contentinfo" class="respondage-theme-footer text-center">
|
||||||
<small class="text-muted">
|
|
||||||
{{ gT("Theme Respondage Vanilla proudly developed by") }}
|
|
||||||
<a href="https://www.respondage.nl" target="_blank" rel="noopener noreferrer" title="Respondage">
|
<a href="https://www.respondage.nl" target="_blank" rel="noopener noreferrer" title="Respondage">
|
||||||
|
{{ gT("Proudly developed by") }}
|
||||||
<img src="{{ respondageLogo }}" alt="Respondage" class="respondage-theme-footer-logo">
|
<img src="{{ respondageLogo }}" alt="Respondage" class="respondage-theme-footer-logo">
|
||||||
</a>
|
</a>
|
||||||
</small>
|
|
||||||
</footer>
|
</footer>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
|
|
@ -61,6 +61,15 @@
|
||||||
color: {{ aSurveyInfo.options.fontcolor }};
|
color: {{ aSurveyInfo.options.fontcolor }};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{# Row 207: the theme footer "Proudly developed by [logo]" — text in the default
|
||||||
|
(body) font at the BASE font size, in Color 2 (secondarycolor); the logo
|
||||||
|
height 25px is static in css/custom.css. The footer itself is rendered by
|
||||||
|
views/subviews/footer/footer.twig on every page except the welcome page. #}
|
||||||
|
.respondage-theme-footer {
|
||||||
|
font-size: {{ aSurveyInfo.options.fontsize|default('16px') }};
|
||||||
|
color: {{ aSurveyInfo.options.secondarycolor|default('#ef476f') }};
|
||||||
|
}
|
||||||
|
|
||||||
.table {
|
.table {
|
||||||
color: {{ aSurveyInfo.options.fontcolor }};
|
color: {{ aSurveyInfo.options.fontcolor }};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue