feat!: rename theme respondage_vanilla -> vanilla_respondage, variants -> respondage_<client>
Prompt V (prompts.md rows 51-54). Mother theme folder + <name> renamed to vanilla_respondage (version 3.3.0); client variants renamed to respondage_defensie / respondage_erasmus (<extends>vanilla_respondage</extends>, auto-derived by build.php). export_public.sh now derives the release name from the theme dir and the leak-check glob matches ../respondage_* siblings, so the public-release leak check keeps working after the rename (sabotage-tested). All doc/tooling references updated; local-only files stay gitignored. Also includes the pending uncommitted theme work from this testing week (custom options page, header logos, sticky-header options, bundled OFL fonts, per-element font overrides, font-dropdown reordering, jsdom tests) that was verified locally but not yet pushed. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
37f28f08e6
commit
cffd3cefa6
1 changed files with 3701 additions and 898 deletions
|
|
@ -29,7 +29,23 @@ For the survey navigator ("Next", "Back", etc.), see: navigation/navigator.twig
|
|||
or (aSurveyInfo.alanguageChanger.show)
|
||||
%}
|
||||
{% set showRightLogo = (aSurveyInfo.options.rightlogo == "on" and imageSrc(aSurveyInfo.options.rightlogofile)) %}
|
||||
<div id="survey-nav" class="navbar {{ navClass }} navbar-expand-md fixed-top border-bottom pt-0 pb-0">
|
||||
{# THEME ADDITION: font for the header / top menu (config.xml option "headerfont",
|
||||
type fontselect). "base" = same as the base font: no extra class, the navbar
|
||||
inherits the body font (body gets font-<base font>). Applied on #survey-nav,
|
||||
so it covers the menu items and the survey name as well. #}
|
||||
{% set sHeaderFont = aSurveyInfo.options.headerfont|default('base') %}
|
||||
{# THEME ADDITION: sticky header per screen size (options headersticky +
|
||||
headersticky{computer,tablet,mobile}). When the options exist (theme was
|
||||
reset after adding them), fixed-top is NOT hardcoded here anymore —
|
||||
custom_header.twig emits the media queries instead. Before a reset the
|
||||
old behaviour (always fixed-top) is kept as fallback. #}
|
||||
{% set bStickyConfigured = aSurveyInfo.options.headersticky is defined %}
|
||||
{# Per-logo "hide on small screens" (Bootstrap classes d-none d-md-block).
|
||||
Default (option missing or "on") keeps the logo hidden below the md breakpoint. #}
|
||||
{% set hideSmallLeft = (aSurveyInfo.options.brandlogohideonsmall != "off") %}
|
||||
{% set hideSmallCenter = (aSurveyInfo.options.centerlogohideonsmall != "off") %}
|
||||
{% set hideSmallRight = (aSurveyInfo.options.rightlogohideonsmall != "off") %}
|
||||
<div id="survey-nav" class="navbar {{ navClass }} navbar-expand-md {% if not bStickyConfigured %}fixed-top{% endif %} border-bottom pt-0 pb-0 {% if sHeaderFont != 'base' %}font-{{ sHeaderFont }}{% endif %}">
|
||||
<div class="container-fluid d-flex align-items-center">
|
||||
{% if ShowMenu %}
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar"
|
||||
|
|
@ -40,7 +56,7 @@ For the survey navigator ("Next", "Back", etc.), see: navigation/navigator.twig
|
|||
{% endif %}
|
||||
{# Left logo #}
|
||||
{% if( aSurveyInfo.options.brandlogo == "on" and imageSrc(aSurveyInfo.options.brandlogofile)) %}
|
||||
<div class="navbar-brand logo-container logo-left d-none d-md-block">
|
||||
<div class="navbar-brand logo-container logo-left {{ hideSmallLeft ? 'd-none d-md-block' : '' }}">
|
||||
{{ image(aSurveyInfo.options.brandlogofile, aSurveyInfo.name, {"class": "logo img-fluid"}) }}
|
||||
</div>
|
||||
{% else %}
|
||||
|
|
@ -50,26 +66,36 @@ For the survey navigator ("Next", "Back", etc.), see: navigation/navigator.twig
|
|||
{% endif %}
|
||||
{# Center logo (absolutely centered via CSS, see sass/plain.sass) #}
|
||||
{% if( aSurveyInfo.options.centerlogo == "on" and imageSrc(aSurveyInfo.options.centerlogofile)) %}
|
||||
<div class="navbar-brand logo-container logo-center d-none d-md-block">
|
||||
<div class="navbar-brand logo-container logo-center {{ hideSmallCenter ? 'd-none d-md-block' : '' }}">
|
||||
{{ image(aSurveyInfo.options.centerlogofile, aSurveyInfo.name, {"class": "logo img-fluid"}) }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if ShowMenu %}
|
||||
<div id="navbar" class="collapse navbar-collapse navbar-nav-scroll pt-2 {{ showRightLogo ? "" : "ms-auto" }}">
|
||||
<ul class="nav navbar-nav navbar-action-link navbar-right">
|
||||
{{ include('./subviews/navigation/save_links.twig') }}
|
||||
{{ include('./subviews/navigation/clearall_links.twig') }}
|
||||
{{ include('./subviews/navigation/question_index_menu.twig') }}
|
||||
{{ include('./subviews/navigation/language_changer_top_menu.twig') }}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
{# Right logo #}
|
||||
{% if showRightLogo %}
|
||||
<div class="navbar-brand logo-container logo-right d-none d-md-block ms-auto">
|
||||
{{ image(aSurveyInfo.options.rightlogofile, aSurveyInfo.name, {"class": "logo img-fluid"}) }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{# RIGHT zone — always pushed to the far right (ms-auto on the wrapper).
|
||||
Layout rules (see sass/plain.sass):
|
||||
- left logo always far left, right logo always far right;
|
||||
- center logo always exactly centered (absolute), independent of the
|
||||
other logos;
|
||||
- when a right logo is present, the right-side menu texts (language
|
||||
changer, save/clear all, question index) still appear at the right,
|
||||
but BELOW the logo (flex-column wrapper). #}
|
||||
<div class="survey-nav-right ms-auto d-flex flex-column align-items-end">
|
||||
{# Right logo #}
|
||||
{% if showRightLogo %}
|
||||
<div class="navbar-brand logo-container logo-right {{ hideSmallRight ? 'd-none d-md-block' : '' }}">
|
||||
{{ image(aSurveyInfo.options.rightlogofile, aSurveyInfo.name, {"class": "logo img-fluid"}) }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if ShowMenu %}
|
||||
<div id="navbar" class="collapse navbar-collapse navbar-nav-scroll pt-2">
|
||||
<ul class="nav navbar-nav navbar-action-link navbar-right">
|
||||
{{ include('./subviews/navigation/save_links.twig') }}
|
||||
{{ include('./subviews/navigation/clearall_links.twig') }}
|
||||
{{ include('./subviews/navigation/question_index_menu.twig') }}
|
||||
{{ include('./subviews/navigation/language_changer_top_menu.twig') }}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue