Commit graph vanilla_respondage/variants/export_options.php
Author SHA1 Message Date
c996b27cd1 feat(variants): export a variant json from saved UI theme options
export_options.php reads lime_template_configuration.options for the mother
theme (global row, or --sid <surveyId> with fallback to global on 'inherit'),
fills in only the keys that differ from the mother config.xml defaults (rest
stay "" = inherit), normalizes image::theme::files/x.png to ./files/x.png,
includes the _formats map, and writes <definitions-dir>/<variantName>.json
(refuses overwrite without --force). DB credentials are read read-only from
application/config/config.php. Workflow documented in the README: pre-style a
customer variant in the LimeSurvey UI, export the json, fine-tune, build.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-30 17:04:48 +01:00