Compare commits

...
Author SHA1 Message Date
1c3871306d chore(metadata): bump version to 0.2 (S2 sandbox fix included)
Release 0.2: version 0.2, lastUpdate 2026-11-30 14:09:02. Ships the
options/options.twig fix (3c38b47) that resolves the 500 on the admin
theme-options page (sandbox allows 'escape', not the alias 'e').

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-30 14:09:14 +01:00
3c38b4712b fix(options): use |escape() instead of |e() — sandbox only allows 'escape'
The twig sandbox policy (application/config/internal.php sandboxConfig) allows
the filter name 'escape' but not its alias 'e', so the S2 escaping in
options/options.twig threw SecurityNotAllowedFilterError (500) on the admin
theme-options page. |escape() is the same filter/callable; all 16 theme twig
templates now compile under the real sandbox policy (verified locally).
Core-side wish filed: FEATURE_REQUEST_sandbox_allow_e_alias.md (local-only).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-30 14:08:17 +01:00
1d490b308e docs(readme): strip development-history notes for the 0.1 release
Remove the purged-fonts paragraph (row 228), the migration fallback note
on the sticky header, the placeholder-font anecdote and the WIP wording;
the README now documents the released theme only.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-30 13:12:37 +01:00
3 changed files with 9 additions and 20 deletions

View file

@ -184,9 +184,7 @@ and tablet, **not** on mobile.
The breakpoints are Bootstrap's default ones: phone < `md` (768px), tablet
`md`–`lg` (768–991px), computer ≥ `lg` (992px). `custom_header.twig` emits the
`.fixed-top` rules inside the selected range(s) as media queries on
`#survey-nav`; `nav_bar.twig` no longer hardcodes `fixed-top` (before a theme
reset, when the options don't exist in the DB yet, the old always-sticky
`fixed-top` behaviour is kept as fallback). `scripts/custom.js` corrects the
`#survey-nav`; `nav_bar.twig` does not hardcode `fixed-top`. `scripts/custom.js` corrects the
body `padding-top` per viewport: when the header is not fixed at the current
width, the extra padding is removed.
@ -228,15 +226,6 @@ unambiguous "l/1/I") that measurably improve reading without looking "special".
It is bundled and selectable like any other font; it is *not* the default
because Inter reads slightly better for the general population at small sizes.
Purged from the bundle (row 228) on purpose: **EB Garamond** (print-first:
thin hairlines and a small x-height degrade at 16 px on low-quality screens),
**Liberation Sans** 400/700 (metric-compatible Arial substitute; on the web it
is redundant next to Inter/Noto Sans, and for an Arial look the browser's own
Arial needs no download), **Open Sans** (duplicated Inter's role as a neutral
humanist sans at survey sizes — two fonts doing the same job invites
inconsistent template choices), and **Source Serif 4** (superfluous next to
Noto Serif; only one serif is bundled).
### Font variants (weights and styles) — what is real and what is synthesized
The per-element font options offer `normal | bold | italic | bolditalic`. What
@ -435,8 +424,8 @@ the variant's `preview.png` is identical to the mother's.
install/reset the variant theme in the LimeSurvey admin (Theme options →
`<client>` → Reset, which imports the new config.xml into the DB), FLUSH the
asset cache (`php application/commands/console.php flushassets`) and
hard-refresh the browser (Ctrl+F5) — a stale cached css is exactly how an
old placeholder font keeps showing.
hard-refresh the browser (Ctrl+F5) — a stale cached css can otherwise keep
old assets showing.
### Rebuild process (after a change in THIS mother theme or in a definitions file)
@ -586,7 +575,7 @@ are gitignored (see `.gitignore`), so they are never pushed:
- `css/*.map` — source maps from the local sass compile;
- `AGENTS.md`, `prompts.md`, `limesurvey.md`, `OPEN_PROMPTS.md`, `SECURITY_REVIEW*.md`, `FEATURE_REQUEST*.md`, `BUG_REPORT*.md` — internal notes and drafts;
- `/dist/` — old export zips;
- `files/logos.svg` — work-in-progress logo artwork (`files/preview.svg` is
- `files/logos.svg` — local-only logo artwork (`files/preview.svg` is
public on purpose, see the variants section).
Optionally, a checked zip of the public release can additionally be built with:

View file

@ -28,11 +28,11 @@
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>
<!-- Release 0.1 (first public release, 2026-11-30) -->
<version>0.1</version>
<!-- Release 0.2 (includes the S2 sandbox fix: escape instead of e, commit 3c38b47) -->
<version>0.2</version>
<apiVersion>3</apiVersion>
<description><![CDATA[<strong>Vanilla Respondage</strong> — a clean and elaborate LimeSurvey 6/7 theme (extension of the core Vanilla theme) with many options.]]></description>
<lastUpdate>2026-11-30 13:00:16</lastUpdate>
<lastUpdate>2026-11-30 14:09:02</lastUpdate>
<extends>vanilla</extends>
</metadata>

View file

@ -101,10 +101,10 @@
{% for image in templateConfiguration.imageFileList %}
{% if image.group != imgGroup %}
{% if imgGroup != '' %}{% set imageOptions = imageOptions ~ '</optgroup>' %}{% endif %}
{% set imageOptions = imageOptions ~ '<optgroup label="' ~ image.group|e('html_attr') ~ '">' %}
{% set imageOptions = imageOptions ~ '<optgroup label="' ~ image.group|escape('html_attr') ~ '">' %}
{% set imgGroup = image.group %}
{% endif %}
{% set imageOptions = imageOptions ~ '<option data-lightbox-src="' ~ image.preview|e('html_attr') ~ '" value="' ~ image.filepath|e('html_attr') ~ '">' ~ image.filename|e('html') ~ '</option>' %}
{% set imageOptions = imageOptions ~ '<option data-lightbox-src="' ~ image.preview|escape('html_attr') ~ '" value="' ~ image.filepath|escape('html_attr') ~ '">' ~ image.filename|escape('html') ~ '</option>' %}
{% endfor %}
{% if imgGroup != '' %}{% set imageOptions = imageOptions ~ '</optgroup>' %}{% endif %}