Metadata only: <title>Respondage Vanilla</title> -> <title>Vanilla
Respondage</title> and a shorter <description>. The theme list shows
lime_templates.title/description, which are re-imported from this file
only on theme reset.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
The Colors category tab is no longer rendered. Its only remaining options
(sliderhandlecolor, privacybackgroundcolor; the other Colors keys already
live in Top of the page) stay defined in config.xml and keep their stored
values, but are not rendered until they are placed on another tab.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
The label-rendering change is in the shared generic loop, so the Images
and Questions tabs were already covered; the only remaining label beside
its control was the upload row on Images (label in a left column next to
the button). It now renders as a full-width form-label above the Upload
button.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
On the custom options page (Simple options) the label now always renders
above the control. The checkbox exception (label right of the box via
form-check/form-check-label, incl. the 9 logo device checkboxes) is
removed; the generic form-label keeps the same id
(lbl_simple_edit_options_<key>) so JS/tests anchors are unchanged.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
Delete the standalone {# Prompt X ... #} comment blocks (not meant for
normal users) and strip the prompt tags from the few comments that also
carry functional documentation (slot layout, HOIST TABS, parent
visibility, label placement, tab skipping). No markup change: rendered
options page is structurally identical (whitespace-only diff).
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- Tab renamed to "Default fonts and colors" with full-width h2+p intro
("Default font"), 3-col row font/fontcolor/fontsize, hr, "Default colors"
h2+p, 3-col row primarycolor ("Color 1 (primary)")/secondarycolor/new
tertiarycolor ("Color 3", #dddddd)
- headerfont moved to Top of page Header section col 2 above navbarfontcolor;
progressbarfont to Progress bar first row col 3 (col 2 stays empty)
- headertextcolor(+custom)/progressbartextcolor(+custom) removed from
config.xml (covered by navbarfontcolor/progressbarfontcolor; views fall
back to fontcolor via |default)
- 21 per-element font/color/size options moved Fonts -> Questions, rendered
full width below the 3 question columns
- variants rebuilt (defensie/erasmus/respondage); example variant config
synced
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
The Top-of-page pane is now structured in sections with translatable
h2+p intros (gT): 'Header' (full width), then a 3-column row
(col 1 header background color, col 2 menu item text color, col 3
'Make header sticky' + 3 checkboxes), a full-width hr; 'Logos' intro +
the existing 3-column logo block + its hr; 'Progress bar' intro,
position in column 1 (cols 2-3 empty), then a new row with the three
progress bar colors, one per column, in the existing order.
Implemented via the slot mechanism (fSlot/fLastSlot) shared with the
Fonts pane; the old Prompt N single-column progress block is replaced.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
Label-above stays the rule for every option type, with one exception:
checkboxes now render their label to the RIGHT of the box (classic
.form-check, label after the input, same lbl_ id so JS/tests keep
anchoring). Applies to the generic checkbox branch (headersticky*)
and the logo-block showon* checkboxes.
New experiment for explanatory text on the options pages: the
'Top of the page' pane starts with <h2>Header</h2> and a <p> explaining
what the header is, both wrapped in gT() so they are translatable.
(Owner's source typos fixed: distinguishable, you can choose.)
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
Tab 'Fonts' is renamed to 'Fonts and colors' and gets a dedicated layout:
top row (col 1: font, fontcolor, fontsize; col 2: primarycolor +
new secondarycolor; col 3 empty), an hr, then one combo row per element
(header, progressbar, questiontitle, answers, grouptitle,
groupdescription, buttons) with col 1 = existing <el>font fontselect,
col 2 = new <el>textcolor dropdown (default|primary|secondary|other),
col 3 = new <el>textcolorcustom colorpicker, visible only when mode is
'other' (parent show-value via aShowIfValues, server-side initial d-none,
options.js updateVisibilityByParent/updateChild now handle select parents,
multi-value aware; font's self-parent removed from config.xml).
config.xml: fontcolor/primarycolor moved from Colors to Fonts (retitled
'Default font color (body text)' / 'Primary color'), secondarycolor added
(default #888888), 14 per-element color keys added with dropdownoptions.
Views emit the per-element color as inline style (default->fontcolor,
primary->primarycolor, secondary->secondarycolor, other->custom picker).
Colors tab now only holds sliderhandlecolor + privacybackgroundcolor
(final Colors layout = Prompt T, still open).
Variants rebuilt (defensie, erasmus, example respondage_respondage) —
no unknown-key failures; theme reset in LS-admin still owner action.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
config.xml: Questions options reordered into the three pane columns
(col1 colors+help, col2 border + children, col3 checkbox color), all
width=12; new colorpicker questionhelpfontcolor (default #444444);
questionbordercolor/style/dropdown + 4 radii get parent="questionborder".
options.twig: Questions pane renders three col-md-4 columns (border-start
between), options stacked as col-12; aShowIfValues map carries the
multi-value show list (box|top) as data-show-if-value since core passes
only parent through; server-side initial d-none is multi-value aware
(Prompt Q logic extended); buttons/colorpicker children now also get
data-parent/selector_radio_childfield. options.js: updateVisibilityByParent
and updateChild are multi-value + checked-radio aware (single-value
behaviour unchanged); OPTIONS_JS_TOKEN bumped.
custom_header.twig: .question-help-container gets color from
questionhelpfontcolor.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
options.twig: the Images pane wraps its option row in a single
col-md-4 (columns 2-3 stay empty, like the Prompt M logo block but
single-column); the upload block below stays full width.
config.xml: the five background options are width=12 (consistent with
Prompt O), so each wrapper is full width of that column and the options
stack vertically. Prompt Q conditional visibility keeps working inside
the column.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
config.xml: Images background block reordered to backgroundimage,
bodybackgroundcolor, then the three image-detail children
(backgroundimagefixed/display/file, all parent="backgroundimage") —
the color stays directly below the Yes/No choice, the details only
matter when an image is shown.
options.twig: the .option-visibility wrapper now gets a server-side
d-none at render time when the parent buttons group's current value is
not the show-value, so the initial state matches the stored value even
before/without options.js; options.js updateVisibilityByParent() keeps
toggling on change (idempotent, verified by jsdom test).
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
All five 'Simple options' (hideprivacyinfo, container, showpopups,
showclearall, fixnumauto) get width=12 in config.xml, so each renders as
a full-width row in the Simple options tab, label above the control
(Prompt G), in config.xml order. Category, values and defaults unchanged.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
A DB row from before Prompt M still carries the old on/off keys
(brandlogo/centerlogo/rightlogo). When the theme files are updated WITHOUT
a theme reset, such a row (e.g. centerlogo=off with a non-empty old
centerlogofile) would show that logo under the new file-only logic. The
views now also honor the legacy key when present: <pos>logo == 'off' keeps
the logo hidden (|default('on') after a reset, where the key is gone).
Fresh installs are unaffected: all new keys have config.xml defaults and
the views fall back via |default when keys are absent.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
In the Top-of-page tab the four progress-bar keys (position + 3 colors)
render as a single col-md-4 column directly under the logo <hr>, with an
empty col-md-8 next to it; inside the column the options stack as col-12.
config.xml: progressbarposition choice order swapped to in|under so
'In header' is listed first (default value unchanged: under).
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
Prompt M: per logo position (left=brand, center, right) the options page now
shows one column with vertical separators and an <hr> below: file dropdown
with 'No logo' (off) first, top margin as plain number 0-100, and 'Show logo
on' with computer/tablet/mobile checkboxes. New option keys per position:
<pos>logofile, <pos>logotopmargin, <pos>showon{computer,tablet,mobile};
old keys (brandlogo/centerlogo/rightlogo, *logohideonsmall, shared
logotopmargin) removed from config.xml. Views map the checkboxes to
Bootstrap display classes per breakpoint and emit per-logo padding-top;
variants/build.php migrates the old json keys to the new ones.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
config.xml: the three headersticky* checkboxes lose parent="headersticky"
and get width=12 (stacked as a vertical list); the master key headersticky
stays in config.xml/DB for backward compatibility but is rendered as a
static label only (special case in options.twig — no input). Views:
custom_header.twig emits the per-breakpoint fixed-top media queries based
on the three checkboxes alone (master gate dropped; defaults on/on/off
when undefined); nav_bar.twig fallback now keys off headerstickycomputer
being defined. Migration note: an old row with headersticky=off no longer
disables sticky — only the checkboxes govern it.
Verified: CLI render row 270 — top-of-page pane shows the label + 3
checkboxes (col-md-12, no parent, checked on/on/off, no option-visibility);
survey 282267 renders media queries for computer+tablet but not mobile and
no hardcoded fixed-top; jsdom toggle/serialize + radio idempotency PASS;
run_all PASS; export green. Variants NOT rebuilt yet (config.xml batch —
rebuild+reset once after Prompt U per standing rule).
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
limesurvey.md in the theme root accumulates local working notes on
LimeSurvey (theme inheritance, custom options page, twig cache, CLI
fixtures, DB tables). Like prompts.md/AGENTS.md it must never be
committed or published: added to .gitignore and to the export tar
excludes. The notes file itself is not tracked.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
When building the tab list, resolve each category's option keys first
(after excluding the top-of-page keys and ajaxmode) and only add the tab
when at least one option remains. The "Progress" category's only option
(progressbarposition) lives in the Top-of-page tab, so the empty
Progress tab and pane are no longer rendered. Generic: any future
emptied category disappears too. No config.xml change, no variant
rebuild, no theme reset. Verified via CLI render (row 270): no
category-progress tab/pane, 6 tabs remain, all 63 option wrappers
present, progressbarposition + the 3 progressbar colors render exactly
once, in the top-of-page pane.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
Adds variants/example/respondage_respondage/ — the generated output of
variants/build.php (config.xml with name/extends + overridden options,
empty footer override, example logo/preview) as a tracked, public example
of the build result. .gitignore explicitly keeps only the confidential
variants/ parts local (*.json, leak-patterns.txt, tests/); the example is
NOT ignored. export_public.sh skips respondage_respondage when deriving
leak patterns from sibling respondage_* folders (it is the public example,
not a client), so the leak check stays green with the example included.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
Variants inherit views from the mother via <extends>; the mother's
views/subviews/footer/footer.twig shows a Respondage credit to
respondents, which variants must NOT show. build.php now writes an
empty views/subviews/footer/footer.twig override into every generated
variant (a client-supplied footer.twig in the definitions dir still
wins), so LimeSurvey's view resolver picks the variant's own empty
file. The Respondage footer on the admin options page
(options/options.twig) is separate and is NOT overridden.
Verified via SurveyThemeHelper::getRealThemeFilePath: mother resolves
to its own footer.twig (with credit), respondage_defensie and
respondage_erasmus resolve to their own empty override. Both variants
rebuilt with the private definitions dir. Options page still renders
the respondage-footer in every tab (7x). export leak-check green.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
Public-repo audit (owner request): the tracked set is now exactly the
runtime files plus the generic variant tooling needed to build variants:
.gitignore no longer ignores variants/ as a whole, only the confidential
parts (*.json client definitions, leak-patterns.txt, tests/); build.php
and export_public.sh are tracked. export_public.sh tar-excludes those
confidential parts, so the public zip contains runtime files +
variants/build.php + variants/export_public.sh and nothing else.
Verified: leak grep on HEAD clean (no client names), export zip listing
matches, leak-check green with sibling-derived patterns, all referenced
assets HTTP 200 (core files like scripts/theme.js resolve via the parent
vanilla theme through <extends>, no 404s).
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
With optionspage=custom, core renders the custom options page inside a
single outer "Simple options" tab (#simple). A new inline script
(respondage-hoist-tabs, POS_END) moves our tab buttons into the outer
ul#theme-options-tabs, our panes into the outer .tab-content and the
spinner/inherit row above the tab bar, then drops the #simple wrapper and
the outer "Simple options" li; the first tab (Fonts) becomes the active
top-level tab and the debug "Advanced options" tab stays last.
Bootstrap 5 tabs use delegated click handlers, so moved buttons keep
working. No core changes, no config.xml change, no OPTIONS_JS_TOKEN bump
(options.js untouched). Verified via jsdom full-page fixture (global +
survey/inherit): flat tab bar, panes in outer tab-content, tab clicking
works, 63 option wrappers intact, radio groups still idempotent.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
Remove the show/hide around the init prepare() call in options.js; the
spinner keeps its display:none default and is only shown during a real
upload (onBeforeSend/onSuccess in BindUpload). Bump OPTIONS_JS_TOKEN to
20261124.4 so browsers fetch the changed options.js once.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
The generic form-label is now rendered for every option type; the
checkbox branch no longer emits an inline form-check-label (only the
form-check wrapper around the input remains). Classes/id/name/for and
data-parent wiring are unchanged, so options.js keeps working.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
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>
The .sass files are compiled locally to css/plain.css, which IS committed
(LimeSurvey never compiles sass itself). sass/ is now gitignored and removed
from the index; history is purged separately with git filter-repo.
export_public.sh sync-guard now skips gracefully when sass/ is absent.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
A <client>_vanilla theme extends respondage_vanilla via <extends>, so both
folders must be deployed; core vanilla ships with LimeSurvey itself.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
The definitions dir (private variants repo) now has a standard layout per
client: <client>.json + <client>/files/... + <client>/css/variant.css.
build.php copies <client>/ into the generated theme folder, so a
client-specific font or css is part of the variant by default.
README updated accordingly.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
The leak-check grep pattern no longer contains (obfuscated) client names.
Patterns are now derived at runtime from:
- sibling variant theme folders (../<name>_vanilla, excluding this theme)
- variants/leak-patterns.txt (gitignored; canonical copy in the private
repo respondage_vanilla_variants)
The export tar also excludes leak-patterns.txt, and the script was verified:
export builds clean, and a planted client string is correctly detected.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- variants/export_public.sh builds a public folder + zip of ONLY this mother
theme: excludes .git and variants/*.json (client house-style definitions),
scans the result for client-identifying strings and aborts on any hit.
Default output: <limesurvey-root>/dist (not inside upload/themes/survey,
which is scanned for themes).
- README.md: "Public release" section; client-identifying examples scrubbed
(generic <client> placeholders, no client names/colors); note that client
definitions live in a private repo (gitignored here).
- .gitignore keeps variants/*.json (and the internal variants README) out of
this public repository.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- version 3.0.1 -> 3.1.0, lastUpdate refreshed.
- <compatibility> now lists 6.0 and 7.0 (same as the core vanilla theme), so
the theme is accepted on both LS 6 and LS 7.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- HOUSE-STYLE convention block above <options> and per-section markers
(Images/Questions/Colors/Fonts) make clear which options are house-style
specific and belong in variants/<client>.json only - never hardcoded in
shared views/sass/css/js files.
- Header comment documents the LF-only line-ending rule (enforced by
.gitattributes).
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
Architecture: a client theme extends this mother theme via <extends> and
contains only a generated config.xml + its own files/ (logos). LimeSurvey
inherits all views/css/js/images from the mother, so changes here apply to
every variant immediately.
- variants/<client>.json holds ONLY the house-style values (colors, fonts,
font sizes/weights/colors, logo files, logotopmargin, custom fonts).
- variants/build.php generates ../<client>/config.xml from the mother
config.xml + the json: only those values are replaced, <extends> is set,
<engine> is emptied except <optionspage>. Unknown option keys fail the
build loudly, so drift is caught at build time.
- Client definitions (variants/<client>.json) are gitignored (see .gitignore)
and live in a PRIVATE variants repo or locally; build.php reads them from
there via its 2nd argument or RESPONDAGE_VARIANTS_DIR.
- README.md: "Client variants" workflow.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- config.xml: "Custom (this theme)" optgroup in the font dropdown plus an
instruction comment on how to place a custom font (@font-face + body class
in the variant's own css).
- variants/build.php: supports "fontOptions" (dropdown entries) and "files_add"
(extra css/js of the variant) in the variant json.
- README.md: "Custom fonts per variant" section.
data-font-package stays "websafe" because LimeSurvey only knows core font
packages; the real font is loaded via the variant's css.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- config.xml: new duration option "logotopmargin" in the Images category (default 15px).
- custom_header.twig: sets padding-top of the header logos, so 0px aligns a logo
exactly with the top of the screen.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- config.xml: new colorpicker "navbarfontcolor" in the Colors category.
- custom_header.twig: applies it to #survey-nav menu links (normal + hover/focus,
hover at 0.75 opacity), replacing the old bootstrap3 .navbar-default hover rule.
Pick a color that contrasts with headerbackgroundcolor.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
- config.xml: brandlogo/brandlogofile = left logo; new centerlogo/centerlogofile
and rightlogo/rightlogofile options; old secondlogo/secondlogofile removed.
- nav_bar.twig renders the three positions: left in flow, center absolutely
centered, right flush right (ms-auto on the logo, menu keeps ms-auto when no
right logo). Logos render only when the file resolves (imageSrc guard).
- sass/plain.sass: flex/relative container + absolute centering for .logo-center.
- options/options.twig: removed dead secondlogo variables.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
All text files in the theme (config.xml, sass, css, js, twig, md) used mixed
CRLF/LF. Normalize everything to LF (Unix), matching the LimeSurvey core
themes. .gitattributes (* text=auto eol=lf, binary images/fonts) keeps it
that way; config.xml documents the convention in its header comment.
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>