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

View file

@ -12,19 +12,26 @@
<config>
<!-- Those metadata are displayed in the theme configuration page. -->
<metadata>
<name>respondage_vanilla</name>
<name>vanilla_respondage</name>
<title>Respondage Vanilla</title>
<type>theme</type>
<creationDate>2024-04-19 12:03</creationDate>
<author>admin</author>
<author>Respondage</author>
<authorEmail>tammo.terhark@respondage.nl</authorEmail>
<authorUrl>http://www.respondage.nl</authorUrl>
<copyright>Copyright (C) 2026 Respondage. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later</license>
<version>3.1.0</version>
<authorUrl>https://www.respondage.nl</authorUrl>
<copyright>Copyright (C) 2026 Respondage — free software, see LICENSE</copyright>
<!-- Fully free (gratis AND libre): GPL v2 or later, same license family as
LimeSurvey core itself. The copyleft means copies and derivatives of THIS
theme cannot become proprietary when distributed — they must stay under
the GPL. Full license text: the LICENSE file shipped with this theme.
Client variants built with variants/build.php may be kept PRIVATE: GPL
obligations apply only when you distribute a variant, not to internal
use. Client logos/assets in a variant are separate copyrighted material. -->
<license>GNU General Public License version 2 or later (GPL-2.0-or-later) — full text in the LICENSE file</license>
<version>3.3.0</version>
<apiVersion>3</apiVersion>
<description><![CDATA[<strong>Respondage Theme based on core theme Vanilla</strong><br>A clean and simple base that was used by a certain theme developer to create a really clean theme.]]></description>
<lastUpdate>2026-11-16 19:13:27</lastUpdate>
<description><![CDATA[<strong>Respondage Vanilla</strong> — a clean LimeSurvey 6/7 theme (extension of the core Vanilla theme) with a custom, neatly formatted options page (all options rendered from config.xml, grouped in tabs per category), a header with left/center/right logos (the center logo is truly centered; each logo can be hidden on small screens) and thin per-client variants that carry only their own house-style values and logos. Public releases are leak-checked so no client data ships. Free software under the GPL v2 or later (see LICENSE).]]></description>
<lastUpdate>2026-11-24 22:00:00</lastUpdate>
<extends>vanilla</extends>
</metadata>
@ -53,6 +60,7 @@
<add>css/theme.css</add>
<add>css/noTablesOnMobile.css</add>
<add>css/plain.css</add>
<add>css/fonts.css</add>
<add>css/custom.css</add>
</css>
<js>
@ -87,15 +95,19 @@
<fixnumauto type="buttons" category="Simple options" width="4" title="Fix automatically numeric value" options="enable|partial|disable" optionlabels="Yes|For expression|No">enable</fixnumauto>
<!-- Images
HOUSE-STYLE: logos (on/off + file), logotopmargin, background image
and bodybackgroundcolor are set per variant via variants/<client>.json -->
HOUSE-STYLE: logos (on/off + file + hide-on-small-screen), logotopmargin,
background image and bodybackgroundcolor are set per variant via
variants/<client>.json -->
<!-- Images -->
<brandlogo type="buttons" category="Images" width="2" title="Display logo on the left of the header" options="on|off" optionlabels="Yes|No">on</brandlogo>
<brandlogofile type="imagefile" category="Images" width="7" title="Logo file (left)" parent="brandlogo">./files/logo.png</brandlogofile>
<brandlogohideonsmall type="buttons" category="Images" width="3" title="Hide the left logo on small screens (phones)" options="on|off" optionlabels="Yes|No" parent="brandlogo">on</brandlogohideonsmall>
<centerlogo type="buttons" category="Images" width="2" title="Display logo in the center of the header" options="on|off" optionlabels="Yes|No">off</centerlogo>
<centerlogofile type="imagefile" category="Images" width="7" title="Logo file (center)" parent="centerlogo">./files/logo.png</centerlogofile>
<centerlogohideonsmall type="buttons" category="Images" width="3" title="Hide the center logo on small screens (phones)" options="on|off" optionlabels="Yes|No" parent="centerlogo">on</centerlogohideonsmall>
<rightlogo type="buttons" category="Images" width="2" title="Display logo on the right of the header" options="on|off" optionlabels="Yes|No">off</rightlogo>
<rightlogofile type="imagefile" category="Images" width="7" title="Logo file (right)" parent="rightlogo">./files/logo2.png</rightlogofile>
<rightlogohideonsmall type="buttons" category="Images" width="3" title="Hide the right logo on small screens (phones)" options="on|off" optionlabels="Yes|No" parent="rightlogo">on</rightlogohideonsmall>
<logotopmargin type="duration" category="Images" width="3" title="Distance from the logo to the top of the screen (use 0px to align a logo exactly with the very top)">15px</logotopmargin>
<backgroundimage type="buttons" category="Images" width="4" title="Background image (behind body of page)" options="on|off" optionlabels="Yes|No">on</backgroundimage>
<backgroundimagefixed type="buttons" category="Images" width="4" title="Background image fixed or scroll" options="fixed|scroll" optionlabels="Fixed|Scroll">scroll</backgroundimagefixed>
@ -128,6 +140,18 @@
<!-- Progress -->
<progressbarposition type="buttons" category="Progress" width="6" title="Position of the progress bar" options="under|in" optionlabels="Under header|In header">under</progressbarposition>
<!-- Header sticky per screen size (shown in the "Top of the page" tab).
Breakpoints are Bootstrap's default ones: phone < md (768px),
tablet = md..lg (768-991px), computer >= lg (992px). The three
checkboxes are children of the master switch: they are only visible
(and enabled) when "Make header sticky" is on. nav_bar.twig no longer
hardcodes fixed-top; custom_header.twig emits the media queries.
Defaults: sticky on computer + tablet, NOT on mobile. -->
<headersticky type="buttons" category="Top of the page" width="4" title="Make header sticky" options="on|off" optionlabels="Yes|No">on</headersticky>
<headerstickycomputer type="checkbox" category="Top of the page" width="4" title="Computer screen" parent="headersticky">on</headerstickycomputer>
<headerstickytablet type="checkbox" category="Top of the page" width="4" title="Tablet" parent="headersticky">on</headerstickytablet>
<headerstickymobile type="checkbox" category="Top of the page" width="4" title="Mobile phone" parent="headersticky">off</headerstickymobile>
<!-- Various colors
HOUSE-STYLE: ALL colorpickers in this section (header, navbar menu,
primary, font, slider, progressbar, privacy) are house-style colors
@ -151,13 +175,16 @@
the variant (or of this mother theme if all variants should be
able to pick the font).
2. Create a css file in the variant, e.g. css/variant.css, with the
@font-face and the body class (the selected font is applied as
class font-<value> on <body>):
@font-face and the GENERIC class .font-<value> (not body-scoped!):
the selected font is applied as class font-<value> on <body>, but
the per-element font overrides (fontselect options, see below)
apply the same class on individual elements, so the rule must be
generic to work everywhere:
@font-face {
font-family: 'My Custom Font';
src: url('../files/fonts/my-custom-font.woff2') format('woff2');
}
body.font-my_custom_font {
.font-my_custom_font {
font-family: 'My Custom Font', Arial, sans-serif;
}
('../files/...' works because the asset manager copies the whole
@ -172,11 +199,24 @@
(application/config/fonts.php); the actual font is loaded via
the variant's own css.
4. Run: php variants/build.php <client> and upload/reset the theme.
See also README.md ("Custom fonts per variant"). -->
See also README.md ("Custom fonts per variant").
To bundle an open source font in THIS mother theme itself, follow
files/fonts/README.md (English walkthrough: files/fonts/ + css/fonts.css
+ the "Bundled open source fonts" optgroup below). -->
<!-- fonts -->
<!-- When adding new items, please keep fonts ordered alphabetically -->
<font type="dropdown" category="Fonts" width="4" title="Fonts" parent="font">opensans
<font type="dropdown" category="Fonts" width="4" title="Default font (body text)" parent="font">noto_sans
<dropdownoptions>
<!-- Open source fonts bundled with this theme itself: font files in files/fonts/, @font-face + generic .font-<value> rules in css/fonts.css. See files/fonts/README.md (English) for how to add your own font here. -->
<optgroup label="Bundled open source fonts">
<option class="font-eb_garamond " value="eb_garamond" data-font-package="websafe">EB Garamond (serif)</option>
<option class="font-inter " value="inter" data-font-package="websafe">Inter (sans-serif)</option>
<option class="font-liberation_sans " value="liberation_sans" data-font-package="websafe">Liberation Sans (sans-serif)</option>
<option class="font-noto_sans " value="noto_sans" data-font-package="websafe">Noto Sans (sans-serif)</option>
<option class="font-noto_serif " value="noto_serif" data-font-package="websafe">Noto Serif (serif)</option>
<option class="font-open_sans " value="open_sans" data-font-package="websafe">Open Sans (sans-serif)</option>
<option class="font-source_serif_4 " value="source_serif_4" data-font-package="websafe">Source Serif 4 (serif)</option>
</optgroup>
<!-- Custom fonts of a variant are appended to the optgroup below by variants/build.php ("fontOptions" in the variant json) -->
<optgroup label="Custom (this theme)">
</optgroup>
@ -195,6 +235,21 @@
</optgroup>
</dropdownoptions>
</font>
<!-- Per-element font overrides (type "fontselect", rendered by options/options.twig):
each dropdown offers the SAME choices as the base "font" dropdown above
(bundled + variant-custom + browser fonts), plus a first option
"Same as base font" (value "base" = no extra class, the element simply
inherits the body font). The chosen value is applied as the class
font-<value> on the element in the views (nav_bar, progress_bar,
question_text_container, answers, help, group_name, group_desc,
navigator). Default "base" for all of them. -->
<headerfont type="fontselect" category="Fonts" width="4" title="Font for the header / top menu">base</headerfont>
<progressbarfont type="fontselect" category="Fonts" width="4" title="Font for the progress bar">base</progressbarfont>
<questiontitlefont type="fontselect" category="Fonts" width="4" title="Font for question titles">base</questiontitlefont>
<answersfont type="fontselect" category="Fonts" width="4" title="Font for answers and help texts">base</answersfont>
<grouptitlefont type="fontselect" category="Fonts" width="4" title="Font for group titles">base</grouptitlefont>
<groupdescriptionfont type="fontselect" category="Fonts" width="4" title="Font for group descriptions">base</groupdescriptionfont>
<buttonsfont type="fontselect" category="Fonts" width="4" title="Font for the buttons (Previous/Next/Submit)">base</buttonsfont>
<fontsize type="buttons" category="Fonts" width="12" title="Base font size" options="14px|16px|18px|20px" optionlabels="Small (14px)|Normal (16px)|Large (18px)|Extra large (20 px)">16px</fontsize>
<questiontitlefontsize type="buttons" category="Fonts" width="6" title="Question title font size" options="1.0rem|1.2rem|1.5rem|2.0rem|20px|24px" optionlabels="Same as Base Font Size(BFS)|1.2 BFS|1.5 BFS|2.0 BFS|20px|24px">1.2rem</questiontitlefontsize>
<questiontitlefontweight type="buttons" category="Fonts" width="6" title="Question title font weight" options="400|700" optionlabels="Normal|Bold">700</questiontitlefontweight>
@ -207,7 +262,7 @@
<!-- Here datas about how LimeSurvey should load the theme -->
<engine>
<!-- core: use core options view file, custom: use customized options.twig view file -->
<optionspage>core</optionspage>
<optionspage>custom</optionspage>
<!-- If empty, bootstrap css/js files will not be loaded. In the future, we may have more engines, like foundation -->
<cssframework>
@ -222,10 +277,14 @@
<!-- Here, you can publish packages set as third party extensions in application/config/vendor or application/config/package -->
<!-- If bootstrap is registered as a css framework, it will be loaded first -->
<!-- PRIVACY: during survey-taking no external requests may be made (no
Google or other font hosts). Only local packages are listed here;
the font packages that may end up in packages_to_load are limited
to the local "font-websafe" by options/options.js. Bundled fonts
(files/fonts/*.woff2) are self-hosted via css/fonts.css. -->
<packages>
<add>pjax</add>
<add>moment</add>
<add>font-noto</add>
</packages>
<!--