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:
Tammo ter Hark 2026-11-24 22:04:11 +01:00
commit cffd3cefa6
11 changed files with 3701 additions and 898 deletions

View file

@ -0,0 +1,27 @@
{#
Theme footer of vanilla_respondage: a subtle credit line at the bottom of
every page of this theme. This file is included via {% block footer %} in
layout_global.twig, layout_survey_list.twig, 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]",
the logo links to https://www.respondage.nl.
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
imageSrc() resolves './files/...' in the variant first — with this name it
falls through to the mother theme, so the footer always shows the Respondage
logo (same trick as the footer in options/options.twig).
#}
{% set respondageLogo = imageSrc('./files/respondage-logo.png') %}
{% if respondageLogo %}
<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">
<img src="{{ respondageLogo }}" alt="Respondage" class="respondage-theme-footer-logo">
</a>
</small>
</footer>
{% endif %}

View file

@ -145,6 +145,27 @@
background-color: {{ aSurveyInfo.options.headerbackgroundcolor }};
}
{# THEME ADDITION: sticky header per screen size (options headersticky +
headersticky{computer,tablet,mobile}). Breakpoints are Bootstrap's
defaults: phone < md (768px), tablet = md..lg (768-991px),
computer >= lg (992px). The rules are the same as Bootstrap's
.fixed-top, but only inside the selected range(s). Only emitted when
the options exist (after a theme reset); before that nav_bar.twig keeps
the fixed-top class (old behaviour). #}
{% if aSurveyInfo.options.headersticky is defined %}
{% if aSurveyInfo.options.headersticky == 'on' %}
{% if aSurveyInfo.options.headerstickycomputer|default('on') == 'on' %}
@media (min-width: 992px) { #survey-nav { position: fixed; top: 0; right: 0; left: 0; z-index: 1030; } }
{% endif %}
{% if aSurveyInfo.options.headerstickytablet|default('on') == 'on' %}
@media (min-width: 768px) and (max-width: 991.98px) { #survey-nav { position: fixed; top: 0; right: 0; left: 0; z-index: 1030; } }
{% endif %}
{% if aSurveyInfo.options.headerstickymobile|default('off') == 'on' %}
@media (max-width: 767.98px) { #survey-nav { position: fixed; top: 0; right: 0; left: 0; z-index: 1030; } }
{% endif %}
{% endif %}
{% endif %}
#survey-nav .logo-container > img {
padding-top: {{ aSurveyInfo.options.logotopmargin }};
}

View file

@ -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 %}

View file

@ -0,0 +1,37 @@
{#
LimeSurvey
Copyright (C) 2007-2026 The LimeSurvey Project Team
All rights reserved.
License: GNU/GPL License v2 or later, see LICENSE.php
LimeSurvey is free software. This version may have been modified pursuant
to the GNU General Public License, and as distributed it includes or
is derivative of works licensed under the GNU General Public License or
other free or open source software licenses.
See COPYRIGHT.php for copyright notices and details.
(¯`·._.·(¯`·._.· Top Container·._.·´¯)·._.·´¯)
This file generates the top container. It's above the form itself, and contains the progress bar.
The progress bar is a Bootstrap progress bar.
@see: http://getbootstrap.com/components/#progress
#}
{# do not show if : All in one or is not Y or on aCompleted #}
{# THEME ADDITION: per-element font override (config.xml option "progressbarfont",
type fontselect). Value "base" = same as the base font: no extra class is put
on the element here, it inherits the body font (body gets font-<base font>). #}
{% set sProgressBarFont = aSurveyInfo.options.progressbarfont|default('base') %}
{% if aSurveyInfo.showprogress == 'Y' and aSurveyInfo.format != 'A' and not aSurveyInfo.aCompleted %}
<!-- Top container -->
<aside class="{{ aSurveyInfo.class.topcontainer }} space-col" {{ aSurveyInfo.attr.topcontainer }} >
<div class="{{ aSurveyInfo.class.topcontent }} container-fluid" {{ aSurveyInfo.attr.topcontent }} >
{% set progressValue = aSurveyInfo.progress.value %}
<div class="visually-hidden">{{ sprintf(gT('You have completed %s%% of this survey'),progressValue) }}</div>
<div class="{{ aSurveyInfo.class.progress }} {% if sProgressBarFont != 'base' %}font-{{ sProgressBarFont }}{% endif %}" {{ aSurveyInfo.attr.progress }} aria-hidden="true">
<div class="{{ aSurveyInfo.class.progressbar }}" {{ aSurveyInfo.attr.progressbar }} style="min-width: 2em; width: {{ progressValue }}%;">
{{ progressValue }}%
</div>
</div>
</div>
</aside>
{% endif %}

View file

@ -0,0 +1,65 @@
{#
LimeSurvey
Copyright (C) 2007-2026 The LimeSurvey Project Team
All rights reserved.
License: GNU/GPL License v2 or later, see LICENSE.php
LimeSurvey is free software. This version may have been modified pursuant
to the GNU General Public License, and as distributed it includes or
is derivative of works licensed under the GNU General Public License or
other free or open source software licenses.
See COPYRIGHT.php for copyright notices and details.
(¯`·._.·(¯`·._.· Navigator ·._.·´¯)·._.·´¯)
Render the navigator: Previous, Next, Submit, Load, Save
All needed datas are inside aSurveyInfo.aNavigator
If you want to see what is available in aNavigator, turn debug mode on in application/config.php, and move out of comments the following line:
{{ dump(aSurveyInfo.aNavigator) }}
#}
{# create a shortcut for aSurveyInfo.aNavigator #}
{% set aNavigator = aSurveyInfo.aNavigator %}
{# THEME ADDITION: font for the navigator buttons (Previous/Next/Submit) — config.xml
option "buttonsfont", type fontselect. The class goes on the navigator container,
the buttons inherit it. "base" = same as the base font: no extra class. #}
{% set sButtonsFont = aSurveyInfo.options.buttonsfont|default('base') %}
<!-- PRESENT THE NAVIGATOR -->
<div class="{{ aSurveyInfo.class.navigatorcontainer }} row navigator space-col {% if sButtonsFont != 'base' %}font-{{ sButtonsFont }}{% endif %}" id="{{ aSurveyInfo.id.navigatorcontainer }}" {{ aSurveyInfo.attr.navigatorcontainer }}>
<!-- Previous button container -->
<div class="{{ aSurveyInfo.class.navigatorbuttonl }} col-6 text-start" {{ aSurveyInfo.attr.navigatorbuttonl }}>
{# Previous button must be set to ON in survey settings (and it's not shown in first page, in All in One survey mode, etc) #}
{% if (not aSurveyInfo.popupPreview) and aNavigator.aMovePrev.show %}
<!-- Button previous -->
<button {{ aSurveyInfo.attr.navigatorbuttonprev }} accesskey="p" class=" {{ aNavigator.disabled }} {{ aSurveyInfo.class.navigatorbuttonprev }} btn btn-lg btn-outline-secondary " >
{{ gT("Previous") }}
</button>
{% endif %}
</div>
<div class="{{ aSurveyInfo.class.navigatorbuttonr }} col-6 text-end">
{# Next button is not always shown (last page, all in one mode, etc) #}
{% if (not aSurveyInfo.popupPreview) and aNavigator.aMoveNext.show %}
{# On last page, Next button become submit button. #}
{% if aNavigator.aMoveNext.value == "movesubmit" %}
<!-- Button submit -->
<button {{ aSurveyInfo.attr.navigatorbuttonsubmit }} accesskey="n" class=" {{ aNavigator.disabled }} {{ aSurveyInfo.class.navigatorbuttonsubmit }} btn btn-lg btn-primary">
{{ gT("Submit") }}
</button>
{% else %}
<!-- Button Next -->
<button {{ aSurveyInfo.attr.navigatorbuttonnext }} accesskey="n" class=" {{ aNavigator.disabled }} {{ aSurveyInfo.class.navigatorbuttonnext }} btn btn-lg btn-primary " >
{{ gT("Next") }}
</button>
{% endif %}
{% endif %}
</div>
</div>
<!-- Extra navigator part -->
{{ include('./subviews/navigation/navigator_complement.twig') }}

View file

@ -18,10 +18,15 @@
NOTE: see views/subviews/survey/group.twig comments for more infos
#}
{# THEME ADDITION: font for the group description (config.xml option
"groupdescriptionfont", type fontselect). "base" = same as the base font:
no extra class, inherits body font. #}
{% set sGroupDescFont = aSurveyInfo.options.groupdescriptionfont|default('base') %}
{% if aGroup.showgroupinfo == 'D' or aGroup.showgroupinfo == 'B' %}
{% if aGroup.description != '' %}
<!-- Group description -->
<div class="{{ aSurveyInfo.class.groupdesc }} " {{ aSurveyInfo.attr.groupdesc }}>
<div class="{{ aSurveyInfo.class.groupdesc }} {% if sGroupDescFont != 'base' %}font-{{ sGroupDescFont }}{% endif %}" {{ aSurveyInfo.attr.groupdesc }}>
<div>
{{ processString(aGroup.description) }}
</div>

View file

@ -0,0 +1,29 @@
{#
LimeSurvey
Copyright (C) 2007-2026 The LimeSurvey Project Team
All rights reserved.
License: GNU/GPL License v2 or later, see LICENSE.php
LimeSurvey is free software. This version may have been modified pursuant
to the GNU General Public License, and as distributed it includes or
is derivative of works licensed under the GNU General Public License or
other free or open source software licenses.
See COPYRIGHT.php for copyright notices and details.
(¯`·._.·(¯`·._.· Group Name ·._.·´¯)·._.·´¯)
Presentation of the group name
NOTE: see views/subviews/survey/group.twig comments for more infos
#}
<!-- Group Name -->
{# THEME ADDITION: font for the group title (config.xml option "grouptitlefont",
type fontselect). "base" = same as the base font: no extra class, inherits body font. #}
{% set sGroupTitleFont = aSurveyInfo.options.grouptitlefont|default('base') %}
{% if aGroup.showgroupinfo == 'N' or aGroup.showgroupinfo == 'B' %}
<div class="{{ aSurveyInfo.class.grouptitle }} text-center h3 space-col {% if sGroupTitleFont != 'base' %}font-{{ sGroupTitleFont }}{% endif %}" {{ aSurveyInfo.attr.grouptitle }}>
{{ processString(aGroup.name, false, 3, {'GID': aGroup.gid}) }}
</div>
{% endif %}

View file

@ -0,0 +1,30 @@
{#
LimeSurvey
Copyright (C) 2007-2026 The LimeSurvey Project Team
All rights reserved.
License: GNU/GPL License v2 or later, see LICENSE.php
LimeSurvey is free software. This version may have been modified pursuant
to the GNU General Public License, and as distributed it includes or
is derivative of works licensed under the GNU General Public License or
other free or open source software licenses.
See COPYRIGHT.php for copyright notices and details.
(¯`·._.·(¯`·._.· Answers ·._.·´¯)·._.·´¯)
The rendering of the answers: the input elements the survey respondent interacts with.
The container div itself could often change from a template to another, so we clearly separate it.
NOTE: see views/subviews/survey/question.twig comments for more infos
#}
{# THEME ADDITION: font for the answers (config.xml option "answersfont", type
fontselect). "base" = same as the base font: no extra class, inherits body font. #}
{% set sAnswersFont = aSurveyInfo.options.answersfont|default('base') %}
<!-- Answer -->
<div class="{{ aSurveyInfo.class.answercontainer }} col-12 {% if sAnswersFont != 'base' %}font-{{ sAnswersFont }}{% endif %}" {{ aSurveyInfo.attr.answercontainer }}>
{# NOTE: If you want to customize the question rendering, use a question theme #}
{{ aQuestion.answer | raw }}
</div>

View file

@ -0,0 +1,30 @@
{#
LimeSurvey
Copyright (C) 2007-2026 The LimeSurvey Project Team
All rights reserved.
License: GNU/GPL License v2 or later, see LICENSE.php
LimeSurvey is free software. This version may have been modified pursuant
to the GNU General Public License, and as distributed it includes or
is derivative of works licensed under the GNU General Public License or
other free or open source software licenses.
See COPYRIGHT.php for copyright notices and details.
(¯`·._.·(¯`·._.· Question Text Container ·._.·´¯)·._.·´¯)
This file render the quetion text.
The container div itself could often change from a template to another, so we clearly separate it.
NOTE: see views/subviews/survey/question.twig comments for more infos
#}
{# THEME ADDITION: font for the question title block (config.xml option
"questiontitlefont", type fontselect). "base" = same as the base font: no extra
class, the element inherits the body font. #}
{% set sQuestionTitleFont = aSurveyInfo.options.questiontitlefont|default('base') %}
<!-- Question text -->
<div class="{{ aSurveyInfo.class.questiontitlecontainer }} col-12 {% if sQuestionTitleFont != 'base' %}font-{{ sQuestionTitleFont }}{% endif %}" {{ aSurveyInfo.attr.questiontitlecontainer }} >
{{ include('./subviews/survey/question_subviews/question_text_content.twig') }}
</div>

View file

@ -0,0 +1,33 @@
{#
LimeSurvey
Copyright (C) 2007-2026 The LimeSurvey Project Team
All rights reserved.
License: GNU/GPL License v2 or later, see LICENSE.php
LimeSurvey is free software. This version may have been modified pursuant
to the GNU General Public License, and as distributed it includes or
is derivative of works licensed under the GNU General Public License or
other free or open source software licenses.
See COPYRIGHT.php for copyright notices and details.
(¯`·._.·(¯`·._.· Survey Question Help ·._.·´¯)·._.·´¯)
The additional question help as entered by the survey creator in question editing
NOTE: see views/subviews/survey/question.twig comments for more infos
#}
{# THEME ADDITION: help texts use the answers font (config.xml option "answersfont",
type fontselect). "base" = same as the base font: no extra class, inherits body font. #}
{% set sAnswersFont = aSurveyInfo.options.answersfont|default('base') %}
<!-- Survey question help -->
<div class="{{ aSurveyInfo.class.helpcontainer }} text-info col-12 {% if sAnswersFont != 'base' %}font-{{ sAnswersFont }}{% endif %}" {{ aSurveyInfo.attr.helpcontainer }}>
{% if aQuestion.help.show %}
<div class="{{ aSurveyInfo.class.lsquestionhelp }}">
{{ aQuestion.help.text | raw }}
</div>
{% else %}
{{ aQuestion.help.text | raw }}
{% endif %}
</div>

View file

@ -0,0 +1,32 @@
{#
LimeSurvey
Copyright (C) 2007-2026 The LimeSurvey Project Team
All rights reserved.
License: GNU/GPL License v2 or later, see LICENSE.php
LimeSurvey is free software. This version may have been modified pursuant
to the GNU General Public License, and as distributed it includes or
is derivative of works licensed under the GNU General Public License or
other free or open source software licenses.
See COPYRIGHT.php for copyright notices and details.
(¯`·._.·(¯`·._.· Valid message and helper ·._.·´¯)·._.·´¯)
This file render the quetion text.
The container div itself could often change from a template to another, so we clearly separate it.
NOTE: see views/subviews/survey/question.twig comments for more infos
#}
{# THEME ADDITION: validation messages / mandatory hints use the answers font
(config.xml option "answersfont", type fontselect). "base" = same as the base
font: no extra class, inherits body font. #}
{% set sAnswersFont = aSurveyInfo.options.answersfont|default('base') %}
<!-- LimeSurvey valid message and help -->
<div class="{{ aSurveyInfo.class.questionvalidcontainer }} text-info col-12 {% if sAnswersFont != 'base' %}font-{{ sAnswersFont }}{% endif %}" {{ aSurveyInfo.attr.questionvalidcontainer }}>
{{ aQuestion.valid_message | raw }} {# The validation message, eg: "Only numbers may be entered in this field.". This text is inside EM Helper, and can be changed by creating a translation file #}
{{ aQuestion.man_message | raw }} {# The question mandatory error message: "This question is mandatory!". This text is inside EM Helper, and can be changed by creating a translation file #}
{{ aQuestion.file_valid_message | raw }} {# Used only for file upload question type... TODO: check if we can remove it and use valid_message for file upload question type too #}
</div>