refactor(options): 'Default fonts and colors' tab becomes 'Default font and colors' in one three-column row
Tab title and pane heading now 'Default font and colors' (description unchanged); the pane is a single row with three col-md-4 columns: col 1 = Default font (body text), Base font size (body text), Default font color (body text); col 2 = Default background color; col 3 = Color 1 (primary), Color 2, Color 3. The old hr + 'Default colors' section between the two rows is removed. config.xml mirrors this per the row 160 rule: category renamed to the tab label, option order within the category = the pane render order (fontsize moved before fontcolor), all seven options width=4. Tab id stays 'category-fonts' so stored tab preferences survive. All variants rebuilt (defensie/erasmus from the private defs, respondage_respondage from /tmp/example_defs) and the tracked example config synced from the built theme dir (it was stale from the deferred rebuilds). options.js untouched, no OPTIONS_JS_TOKEN bump. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
2a41c36854
commit
44cef7d530
3 changed files with 324 additions and 247 deletions
36
config.xml
36
config.xml
|
|
@ -89,8 +89,8 @@
|
|||
-->
|
||||
<options>
|
||||
|
||||
<!-- Default fonts and colors tab (options.twig tab 1): top row font/fontcolor/fontsize (col-md-4), then the colors row (col-md-3). Row 159/160: the config.xml order within a category = the render order in options.twig, and width = the pane column width, so the core options renderer lays out the same structure. -->
|
||||
<!-- Default fonts and colors
|
||||
<!-- Default font and colors tab (options.twig tab 1): ONE row with three col-md-4 columns — col 1 = font, fontsize, fontcolor; col 2 = defaultbackgroundcolor; col 3 = primarycolor, secondarycolor, tertiarycolor (row 174). Row 159/160: the config.xml order within a category = the render order in options.twig, and width = the pane column width, so the core options renderer lays out the same structure. -->
|
||||
<!-- Default font and colors
|
||||
HOUSE-STYLE: the font choice and the four colors below are house-style specific (set per variant via variants/<client>.json).
|
||||
PLACING A CUSTOM FONT - instructions:
|
||||
1. Put the font file (e.g. .woff2) in the files/fonts/ folder of
|
||||
|
|
@ -125,9 +125,9 @@
|
|||
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). -->
|
||||
<!-- Default fonts and colors (row 159: category renamed to the tab label) -->
|
||||
<!-- Default font and colors (row 159/174: category equals the options.twig tab label) -->
|
||||
<!-- When adding new items, please keep fonts ordered alphabetically -->
|
||||
<font type="dropdown" category="Default fonts and colors" width="4" title="Default font (body text)">noto_sans
|
||||
<font type="dropdown" category="Default font and colors" width="4" title="Default font (body text)">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">
|
||||
|
|
@ -157,23 +157,21 @@
|
|||
</optgroup>
|
||||
</dropdownoptions>
|
||||
</font>
|
||||
<!-- Prompt U: the "Default fonts and colors" tab has a special
|
||||
layout (options.twig): TOP ROW column 1 = font, fontcolor, fontsize;
|
||||
column 2 = primarycolor, secondarycolor (both moved here from the Colors
|
||||
category); then an <hr>; then per-element combo rows (fontselect +
|
||||
textcolor dropdown + conditional textcolorcustom picker); then the
|
||||
size/weight options below. HOUSE-STYLE: fontcolor, primarycolor and
|
||||
secondarycolor are set per variant via variants/<client>.json. -->
|
||||
<fontcolor type="colorpicker" category="Default fonts and colors" width="4" title="Default font color (body text)" options="on|off" optionlabels="Yes|No">#444444</fontcolor>
|
||||
<fontsize type="buttons" category="Default fonts and colors" width="4" title="Base font size (body text)" options="14px|16px|18px|20px" optionlabels="Small (14px)|Normal (16px)|Large (18px)|XLarge (20 px)">16px</fontsize>
|
||||
<!-- Row 124: "Default background color" — column 1 of the colors row in the
|
||||
"Default fonts and colors" tab (that row is now 4 columns). It is also the
|
||||
<!-- Row 174: the "Default font and colors" tab has ONE row with three
|
||||
col-md-4 columns (options.twig): col 1 = font, fontsize, fontcolor;
|
||||
col 2 = defaultbackgroundcolor; col 3 = the three colors below.
|
||||
HOUSE-STYLE: the font choice and fontcolor/primarycolor/secondarycolor
|
||||
are set per variant via variants/<client>.json. -->
|
||||
<fontsize type="buttons" category="Default font and colors" width="4" title="Base font size (body text)" options="14px|16px|18px|20px" optionlabels="Small (14px)|Normal (16px)|Large (18px)|XLarge (20 px)">16px</fontsize>
|
||||
<fontcolor type="colorpicker" category="Default font and colors" width="4" title="Default font color (body text)" options="on|off" optionlabels="Yes|No">#444444</fontcolor>
|
||||
<!-- Row 124/174: "Default background color" — column 2 of the single
|
||||
three-column row in the "Default font and colors" tab. It is also the
|
||||
5th preset of the experimental color-chooser (navbarfontcolor dropdown +
|
||||
swatches), so users can pick it anywhere a named color is offered. -->
|
||||
<defaultbackgroundcolor type="colorpicker" category="Default fonts and colors" width="3" title="Default background color" options="on|off" optionlabels="Yes|No">#ffffff</defaultbackgroundcolor>
|
||||
<primarycolor type="colorpicker" category="Default fonts and colors" width="3" title="Color 1 (primary)" options="on|off" optionlabels="Yes|No">#5e1c64</primarycolor>
|
||||
<secondarycolor type="colorpicker" category="Default fonts and colors" width="3" title="Color 2" options="on|off" optionlabels="Yes|No">#888888</secondarycolor>
|
||||
<tertiarycolor type="colorpicker" category="Default fonts and colors" width="3" title="Color 3" options="on|off" optionlabels="Yes|No">#dddddd</tertiarycolor>
|
||||
<defaultbackgroundcolor type="colorpicker" category="Default font and colors" width="4" title="Default background color" options="on|off" optionlabels="Yes|No">#ffffff</defaultbackgroundcolor>
|
||||
<primarycolor type="colorpicker" category="Default font and colors" width="4" title="Color 1 (primary)" options="on|off" optionlabels="Yes|No">#5e1c64</primarycolor>
|
||||
<secondarycolor type="colorpicker" category="Default font and colors" width="4" title="Color 2" options="on|off" optionlabels="Yes|No">#888888</secondarycolor>
|
||||
<tertiarycolor type="colorpicker" category="Default font and colors" width="4" title="Color 3" options="on|off" optionlabels="Yes|No">#dddddd</tertiarycolor>
|
||||
|
||||
<!-- Header tab (options.twig tab 2, keys in aTopOfPageKeys order): header font + menu text color, header background color, sticky per device + header height, then the three logos, then the progress bar position/font/colors. -->
|
||||
<headerfont type="fontselect" category="Header" width="4" title="Font for the header / top menu">base</headerfont>
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@
|
|||
(fontselect = per-element font override: same choices as the base "font"
|
||||
dropdown plus "Same as base font"; see the branch below.)
|
||||
|
||||
Tab order: the "Default fonts and colors" category tab is FIRST (default font +
|
||||
per-element font overrides), then the "Header" tab, then the "Page
|
||||
Tab order: the "Default font and colors" category tab is FIRST (default font +
|
||||
default colors), then the "Header" tab, then the "Page
|
||||
background" tab, then the "Groups" tab, then the other remaining categories,
|
||||
and LAST the "Other options" tab.
|
||||
|
||||
|
|
@ -174,7 +174,7 @@
|
|||
font-size: 16px;
|
||||
}
|
||||
/* row 128/130: the section headers this page inserts (h2 inside the tab
|
||||
panes, e.g. "Header", "Logos", "Default colors") — row 128 made them
|
||||
panes, e.g. "Header", "Logos", "Page background") — row 128 made them
|
||||
h1-sized, which turned out too big, so row 130 fixes them at 24px.
|
||||
The modal title h2.modal-title is outside .tab-content and excluded. */
|
||||
.tab-content h2:not(.modal-title) {
|
||||
|
|
@ -277,8 +277,12 @@
|
|||
{% set aShowIfMode = { 'navbarfontcolor': 'disable' } %}
|
||||
{% for ck in aColorChooserKeys %}{% set aShowIfMode = aShowIfMode|merge({ (ck): 'disable' }) %}{% endfor %}
|
||||
|
||||
{% set aFontsRow1 = ['font', 'fontcolor', 'fontsize'] %}
|
||||
{% set aFontsRow2 = ['primarycolor', 'secondarycolor', 'tertiarycolor'] %}
|
||||
{# row 174: the "Default font and colors" pane is ONE row with three col-md-4
|
||||
columns: col 1 = font, fontsize, fontcolor; col 2 = defaultbackgroundcolor;
|
||||
col 3 = primarycolor, secondarycolor, tertiarycolor (slot mapping below) #}
|
||||
{% set aFontsCol1 = ['font', 'fontsize', 'fontcolor'] %}
|
||||
{% set aFontsCol2 = ['defaultbackgroundcolor'] %}
|
||||
{% set aFontsCol3 = ['primarycolor', 'secondarycolor', 'tertiarycolor'] %}
|
||||
|
||||
{% set aQuestionsCol1 = ['questiontitlebackgroundcolor', 'questiontitlefontcolor', 'questionbackgroundcolor', 'questionhelpbackgroundcolor', 'questionhelpfontcolor', 'questionhelptextposition'] %}
|
||||
{% set aQuestionsCol2 = ['questionborder', 'questionbordercolor', 'questionborderstyle', 'questiondropdown', 'questionborderradiusTL', 'questionborderradiusTR', 'questionborderradiusBL', 'questionborderradiusBR'] %}
|
||||
|
|
@ -296,8 +300,8 @@
|
|||
{% set aGroupCol1 = ['grouptitlefont', 'grouptitletextcolor', 'grouptitletextcolorcustom', 'grouptitlefontsize', 'grouptitlefontoptions'] %}
|
||||
{% set aGroupCol2 = ['groupdescriptionfont', 'groupdescriptiontextcolor', 'groupdescriptiontextcolorcustom', 'groupdescriptionfontsize', 'groupdescriptionfontoptions'] %}
|
||||
|
||||
{# Tab list: FIRST the "Default fonts and colors" tab (where the default/base font
|
||||
is chosen and the per-element font overrides live), then the "Header" tab
|
||||
{# Tab list: FIRST the "Default font and colors" tab (where the default/base font
|
||||
and the default colors are chosen), then the "Header" tab
|
||||
tab (keys = aTopOfPageKeys), then row 147: the "Page background" tab (the
|
||||
config.xml "Page background" category, id kept as 'category-images' so the
|
||||
stored tab preference stays valid), then the "Groups" tab (keys = aGroupKeys),
|
||||
|
|
@ -305,8 +309,8 @@
|
|||
(keys = null: all options of that category). Row 159: config.xml category names
|
||||
equal these tab labels. #}
|
||||
{% set aTabs = [] %}
|
||||
{% if 'Default fonts and colors' in aOptionAttributes.categories %}
|
||||
{% set aTabs = [{ 'id': 'category-fonts', 'label': 'Default fonts and colors', 'category': 'Default fonts and colors', 'keys': null }] %}
|
||||
{% if 'Default font and colors' in aOptionAttributes.categories %}
|
||||
{% set aTabs = [{ 'id': 'category-fonts', 'label': 'Default font and colors', 'category': 'Default font and colors', 'keys': null }] %}
|
||||
{% endif %}
|
||||
{% set aTabs = aTabs|merge([{ 'id': 'top-of-page', 'label': 'Header', 'category': 'Header', 'keys': aTopOfPageKeys }]) %}
|
||||
{# row 147/159: "Page background" category -> the Page background tab, directly after
|
||||
|
|
@ -330,7 +334,7 @@
|
|||
slot layout below instead of the Questions 3-column grid. #}
|
||||
{% set aTabs = aTabs|merge([{ 'id': 'groups', 'label': 'Groups', 'category': 'Groups', 'keys': aGroupKeys }]) %}
|
||||
{% for category in aOptionAttributes.categories %}
|
||||
{% if category != 'Default fonts and colors' and category != 'Header' and category != 'Colors' and category != 'Page background' and category != 'Groups' and category != 'Other options' %}
|
||||
{% if category != 'Default font and colors' and category != 'Header' and category != 'Colors' and category != 'Page background' and category != 'Groups' and category != 'Other options' %}
|
||||
{# The "Colors" tab is removed on purpose. Its only remaining options are
|
||||
sliderhandlecolor and privacybackgroundcolor (the other Colors keys carry
|
||||
category "Header" now) — TODO: place these two
|
||||
|
|
@ -407,7 +411,7 @@
|
|||
{% endif %}
|
||||
{% if tab.id == 'category-fonts' %}
|
||||
<div class="row action_hide_on_inherit fonts-intro"><div class="col-12">
|
||||
<h2>{{ gT("Default font") }}</h2>
|
||||
<h2>{{ gT("Default font and colors") }}</h2>
|
||||
<p>{{ gT("Here you choose the default font, the font that is used on most places in your version of the theme.") }}</p>
|
||||
</div></div>
|
||||
{% endif %}
|
||||
|
|
@ -438,19 +442,18 @@
|
|||
Every slot is row+col (two divs), except 'logo' (self-contained block)
|
||||
and 'rest' (normal grid). Computed BEFORE the logo-block branch so
|
||||
the transition into the logo slot also fires. #}
|
||||
{% set bFontsPane = tab.category == 'Default fonts and colors' %}
|
||||
{% set bFontsPane = tab.category == 'Default font and colors' %}
|
||||
{% set bTopPane = tab.id == 'top-of-page' %}
|
||||
{% set bImagesPane = tab.category == 'Page background' %}
|
||||
{% set bGroupsPane = tab.id == 'groups' %}
|
||||
{% set fSlot = 'rest' %}
|
||||
{% if bFontsPane %}
|
||||
{% if key == 'font' %}{% set fSlot = 'f1' %}
|
||||
{% elseif key == 'fontcolor' %}{% set fSlot = 'f2' %}
|
||||
{% elseif key == 'fontsize' %}{% set fSlot = 'f3' %}
|
||||
{% elseif key == 'defaultbackgroundcolor' %}{% set fSlot = 'c0' %}
|
||||
{% elseif key == 'primarycolor' %}{% set fSlot = 'c1' %}
|
||||
{% elseif key == 'secondarycolor' %}{% set fSlot = 'c2' %}
|
||||
{% elseif key == 'tertiarycolor' %}{% set fSlot = 'c3' %}
|
||||
{# row 174: one row, three col-md-4 columns — col 1 (fc1) =
|
||||
font/fontsize/fontcolor, col 2 (fc2) = defaultbackgroundcolor,
|
||||
col 3 (fc3) = the three colors #}
|
||||
{% if key in aFontsCol1 %}{% set fSlot = 'fc1' %}
|
||||
{% elseif key in aFontsCol2 %}{% set fSlot = 'fc2' %}
|
||||
{% elseif key in aFontsCol3 %}{% set fSlot = 'fc3' %}
|
||||
{% endif %}
|
||||
{% elseif bTopPane %}
|
||||
{% if key in aLogoKeys %}{% set fSlot = 'logo' %}
|
||||
|
|
@ -495,11 +498,11 @@
|
|||
{% endif %}
|
||||
{% if fSlot != fLastSlot and (bFontsPane or bTopPane or bImagesPane or bGroupsPane) %}
|
||||
{% if bFontsPane %}
|
||||
{% if fLastSlot == 'f3' %}</div></div><div class="row action_hide_on_inherit"><div class="col-12"><hr class="fonts-hr"></div></div><div class="row action_hide_on_inherit fonts-section-intro"><div class="col-12"><h2>{{ gT("Default colors") }}</h2><p>{{ gT("The default colors are your most used colors.") }}</p></div></div><div class="row action_hide_on_inherit fonts-colors-row"><div class="col-md-3">
|
||||
{% elseif fLastSlot == 'f1' or fLastSlot == 'f2' %}</div><div class="col-md-4">
|
||||
{% elseif fLastSlot == 'c0' or fLastSlot == 'c1' or fLastSlot == 'c2' %}</div><div class="col-md-3">
|
||||
{# row 174: column change inside the single fonts row —
|
||||
close the previous col-md-4, open the next one #}
|
||||
{% if fLastSlot == 'fc1' or fLastSlot == 'fc2' %}</div><div class="col-md-4">
|
||||
{% endif %}
|
||||
{% if fSlot == 'f1' %}<div class="row action_hide_on_inherit fonts-top-row"><div class="col-md-4">
|
||||
{% if fSlot == 'fc1' %}<div class="row action_hide_on_inherit fonts-top-row"><div class="col-md-4">
|
||||
{% endif %}
|
||||
{% elseif bTopPane %}
|
||||
{# top-of-page transitions: close previous slot, open new slot.
|
||||
|
|
@ -892,7 +895,7 @@
|
|||
{% if tab.id == 'groups' and fLastSlot in ['g1', 'g2'] %}</div>{% endif %}
|
||||
{# close an open slot container at the end of a Fonts/Top-of-page pane
|
||||
(every non-logo, non-rest slot has exactly two open divs: row + col) #}
|
||||
{% if (tab.category == 'Default fonts and colors' or tab.id == 'top-of-page') and fLastSlot != 0 and fLastSlot != 'rest' and fLastSlot != 'logo' %}</div></div>{% endif %}
|
||||
{% if (tab.category == 'Default font and colors' or tab.id == 'top-of-page') and fLastSlot != 0 and fLastSlot != 'rest' and fLastSlot != 'logo' %}</div></div>{% endif %}
|
||||
</div>
|
||||
|
||||
{# row 150: the upload facility is NOT full-width at the bottom any more — it
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
<!-- Those metadata are displayed in the theme configuration page. -->
|
||||
<metadata>
|
||||
<name>respondage_respondage</name>
|
||||
<title>Respondage (example variant)</title>
|
||||
<title>Respondage Vanilla</title>
|
||||
<type>theme</type>
|
||||
<creationDate>2024-04-19 12:03</creationDate>
|
||||
<author>Respondage</author>
|
||||
|
|
@ -30,8 +30,8 @@
|
|||
<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>Example variant of vanilla_respondage, generated by variants/build.php — demonstrates the output of the build process. Not a real client.</description>
|
||||
<lastUpdate>2026-11-25 13:22:35</lastUpdate>
|
||||
<description><strong>Example variant of Respondage Vanilla</strong><br>Public example of a build output: only a few house-style option values differ, all views, CSS and JS are inherited from the mother theme via extends.</description>
|
||||
<lastUpdate>2026-11-29 10:53:15</lastUpdate>
|
||||
<extends>vanilla_respondage</extends>
|
||||
</metadata>
|
||||
<compatibility>
|
||||
|
|
@ -84,127 +84,9 @@
|
|||
the json; build.php checks that the key exists.
|
||||
-->
|
||||
<options>
|
||||
<!-- Prompt O: the five "Simple options" are width=12, so they stack in ONE
|
||||
column (full-width rows) in the Simple options tab, label above each
|
||||
control (Prompt G). -->
|
||||
<hideprivacyinfo type="buttons" category="Simple options" width="12" title="Hide privacy info" options="on|off" optionlabels="Yes|No">off</hideprivacyinfo>
|
||||
<container type="buttons" category="Simple options" width="12" title="Survey container" options="on|off" optionlabels="Yes|No">on</container>
|
||||
<showpopups type="buttons" category="Simple options" width="12" title="Show popups" options="1|0|-1" optionlabels="Popup|On page|No">1</showpopups>
|
||||
<showclearall type="buttons" category="Simple options" width="12" title="Show Clear All button" options="on|off" optionlabels="Yes|No">off</showclearall>
|
||||
<fixnumauto type="buttons" category="Simple options" width="12" title="Fix automatically numeric value" options="enable|partial|disable" optionlabels="Yes|For expression|No">enable</fixnumauto>
|
||||
<!-- Images
|
||||
HOUSE-STYLE: logos, background image and bodybackgroundcolor are set per
|
||||
variant via variants/<client>.json -->
|
||||
<!-- Images -->
|
||||
<!-- Logos (Prompt M): per logo (left=brand, center, right) a file dropdown whose
|
||||
FIRST option is "No logo" (value "off", prepended by options.twig), a top
|
||||
margin in px (plain number 0-100; the views add the "px"), and "Show logo
|
||||
on" checkboxes per device (Bootstrap breakpoints: mobile < 768px,
|
||||
tablet 768-991px, computer >= 992px). Defaults: left logo on with
|
||||
logo.png, center/right "off" (no logo); margin 15; show on computer and
|
||||
tablet, NOT on mobile (same as the old hide-on-small default).
|
||||
The old keys (brandlogo/centerlogo/rightlogo, *logohideonsmall, the shared
|
||||
logotopmargin) were removed; variants/build.php maps the variant json's
|
||||
old keys onto these new keys. -->
|
||||
<brandlogofile type="imagefile" category="Images" width="12" title="Logo file (left)">./files/logo.png</brandlogofile>
|
||||
<brandlogotopmargin type="text" category="Images" width="12" title="Margin between logo and top of screen (left), in px (0-100)">15</brandlogotopmargin>
|
||||
<brandshowoncomputer type="checkbox" category="Images" width="12" title="Computer screen">on</brandshowoncomputer>
|
||||
<brandshowontablet type="checkbox" category="Images" width="12" title="Tablet">on</brandshowontablet>
|
||||
<brandshowonmobile type="checkbox" category="Images" width="12" title="Mobile phone">off</brandshowonmobile>
|
||||
<centerlogofile type="imagefile" category="Images" width="12" title="Logo file (center)">off</centerlogofile>
|
||||
<centerlogotopmargin type="text" category="Images" width="12" title="Margin between logo and top of screen (center), in px (0-100)">15</centerlogotopmargin>
|
||||
<centershowoncomputer type="checkbox" category="Images" width="12" title="Computer screen">on</centershowoncomputer>
|
||||
<centershowontablet type="checkbox" category="Images" width="12" title="Tablet">on</centershowontablet>
|
||||
<centershowonmobile type="checkbox" category="Images" width="12" title="Mobile phone">off</centershowonmobile>
|
||||
<rightlogofile type="imagefile" category="Images" width="12" title="Logo file (right)">off</rightlogofile>
|
||||
<rightlogotopmargin type="text" category="Images" width="12" title="Margin between logo and top of screen (right), in px (0-100)">15</rightlogotopmargin>
|
||||
<rightshowoncomputer type="checkbox" category="Images" width="12" title="Computer screen">on</rightshowoncomputer>
|
||||
<rightshowontablet type="checkbox" category="Images" width="12" title="Tablet">on</rightshowontablet>
|
||||
<rightshowonmobile type="checkbox" category="Images" width="12" title="Mobile phone">off</rightshowonmobile>
|
||||
<!-- Prompt Q: order fixed — Background image, then Overall background color
|
||||
(always relevant), then the three image-detail options which are only
|
||||
relevant when a background image is shown (parent="backgroundimage",
|
||||
shown/hidden via .option-visibility in options.twig/options.js).
|
||||
Prompt P: all five width=12 — the Images pane renders them stacked in
|
||||
column 1 of a three-column grid (only that column is used). -->
|
||||
<backgroundimage type="buttons" category="Images" width="12" title="Background image (behind body of page)" options="on|off" optionlabels="Yes|No">on</backgroundimage>
|
||||
<bodybackgroundcolor type="colorpicker" category="Images" width="12" title="Overall background color (when there is no picture in the background)" options="on|off" optionlabels="Yes|No">#dddddd</bodybackgroundcolor>
|
||||
<backgroundimagefixed type="buttons" category="Images" width="12" title="Background image fixed or scroll" options="fixed|scroll" optionlabels="Fixed|Scroll" parent="backgroundimage">scroll</backgroundimagefixed>
|
||||
<backgroundimagedisplay type="buttons" category="Images" width="12" title="Background image display" options="tile|cover" optionlabels="Tile|Cover" parent="backgroundimage">tile</backgroundimagedisplay>
|
||||
<backgroundimagefile type="imagefile" category="Images" width="12" title="Background image file" parent="backgroundimage">./files/tiledtexture.png</backgroundimagefile>
|
||||
<!-- Questions
|
||||
HOUSE-STYLE: the colorpicker options in this section (question
|
||||
title/background/help/help-font/border/checkbox colors) are house-style
|
||||
colors. NOT house-style (structural, same for all variants):
|
||||
questionborder, questionborderstyle, the borderradius values,
|
||||
questiondropdown and questionhelptextposition.
|
||||
Prompt R: order = the three columns of the Questions tab (options.twig
|
||||
renders them in this order): col1 colors+help, col2 border + its
|
||||
conditional children, col3 checkbox color. All width=12 — inside the
|
||||
pane each option stacks as col-12 in its column. The border children
|
||||
carry parent="questionborder"; the show-values "box|top" cannot be an
|
||||
XML attribute (core passes only `parent` through), so the multi-value
|
||||
list lives in options.twig (aShowIfValues) and lands as
|
||||
data-show-if-value="box|top". questionhelpfontcolor (NEW) is applied
|
||||
in custom_header.twig on .question-help-container. -->
|
||||
<!-- Questions -->
|
||||
<questiontitlebackgroundcolor type="colorpicker" category="Questions" width="12" title="Question title background color" options="on|off" optionlabels="Yes|No">#5e1c64</questiontitlebackgroundcolor>
|
||||
<questiontitlefontcolor type="colorpicker" category="Questions" width="12" title="Question title font color" options="on|off" optionlabels="Yes|No">#ffffff</questiontitlefontcolor>
|
||||
<questionbackgroundcolor type="colorpicker" category="Questions" width="12" title="Question background color (not title)" options="on|off" optionlabels="Yes|No">#ffffff</questionbackgroundcolor>
|
||||
<questionhelpbackgroundcolor type="colorpicker" category="Questions" width="12" title="Question helpbackground color" options="on|off" optionlabels="Yes|No">#fff3cd</questionhelpbackgroundcolor>
|
||||
<questionhelpfontcolor type="colorpicker" category="Questions" width="12" title="Question help font color" options="on|off" optionlabels="Yes|No">#444444</questionhelpfontcolor>
|
||||
<questionhelptextposition type="buttons" category="Questions" width="12" title="Question help text position" options="top|bottom" optionlabels="Top|Bottom">top</questionhelptextposition>
|
||||
<questionborder type="buttons" category="Questions" width="12" title="Question border" options="box|top|none" optionlabels="Box around|Top and bottom|None">box</questionborder>
|
||||
<questionbordercolor type="colorpicker" category="Questions" width="12" title="Question border color" options="on|off" optionlabels="Yes|No" parent="questionborder">#cccccc</questionbordercolor>
|
||||
<questionborderstyle type="buttons" category="Questions" width="12" title="Question border line style" options="solid|dotted|dashed" optionlabels="Solid|Dotted|Dashed" parent="questionborder">solid</questionborderstyle>
|
||||
<questiondropdown type="buttons" category="Questions" width="12" title="Question dropdown shadow" options="on|hover|off" optionlabels="Always|On hover only|None" parent="questionborder">hover</questiondropdown>
|
||||
<questionborderradiusTL type="duration" category="Questions" width="12" title="Border radius top left" parent="questionborder">5px</questionborderradiusTL>
|
||||
<questionborderradiusTR type="duration" category="Questions" width="12" title="Border radius top right" parent="questionborder">5px</questionborderradiusTR>
|
||||
<questionborderradiusBL type="duration" category="Questions" width="12" title="Border radius bottom left" parent="questionborder">5px</questionborderradiusBL>
|
||||
<questionborderradiusBR type="duration" category="Questions" width="12" title="Border radius bottom right" parent="questionborder">5px</questionborderradiusBR>
|
||||
<checkboxcolor type="colorpicker" category="Questions" width="12" title="Checkbox/radiobutton color (when checked)" options="on|off" optionlabels="Yes|No">#ff005f</checkboxcolor>
|
||||
<!-- Progress -->
|
||||
<!-- Prompt N: listing order swapped — "In header" FIRST, then "Under header".
|
||||
The stored value semantics are unchanged (in|under); the default stays "under". -->
|
||||
<progressbarposition type="buttons" category="Progress" width="6" title="Position of the progress bar" options="in|under" optionlabels="In header|Under 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). nav_bar.twig no
|
||||
longer hardcodes fixed-top; custom_header.twig emits the media
|
||||
queries. Defaults: sticky on computer + tablet, NOT on mobile. -->
|
||||
<!-- Prompt L: the master key "headersticky" is kept in config.xml/DB for
|
||||
backward compatibility, but the options page renders it as a static
|
||||
LABEL only (see options.twig). Sticky behaviour is governed solely by
|
||||
the three checkboxes below, which no longer have a parent (always
|
||||
visible, stacked as a list via width=12). Migration note: an old row
|
||||
with headersticky=off no longer disables sticky — only the checkboxes
|
||||
count (defaults on/on/off). -->
|
||||
<headersticky type="buttons" category="Top of the page" width="12" title="Make header sticky" options="on|off" optionlabels="Yes|No">on</headersticky>
|
||||
<headerstickycomputer type="checkbox" category="Top of the page" width="12" title="Computer screen">on</headerstickycomputer>
|
||||
<headerstickytablet type="checkbox" category="Top of the page" width="12" title="Tablet">on</headerstickytablet>
|
||||
<headerstickymobile type="checkbox" category="Top of the page" width="12" title="Mobile phone">off</headerstickymobile>
|
||||
<!-- Various colors
|
||||
HOUSE-STYLE: ALL colorpickers in this section (header, navbar menu,
|
||||
slider, progressbar, privacy) are house-style colors and are set per
|
||||
variant via variants/<client>.json.
|
||||
NOTE (Prompt U): primarycolor, fontcolor and the new secondarycolor
|
||||
moved to the "Fonts" category (they live in the "Fonts and colors"
|
||||
tab now); header/navbar/progressbar colors are pulled into the
|
||||
"Top of the page" tab by options.twig. What remains here in the
|
||||
Colors pane: sliderhandlecolor + privacybackgroundcolor (final
|
||||
Colors layout = Prompt T, still open). -->
|
||||
<!-- Various colors -->
|
||||
<headerbackgroundcolor type="colorpicker" category="Colors" width="12" title="Header background color" options="on|off" optionlabels="Yes|No">#eeeeee</headerbackgroundcolor>
|
||||
<navbarfontcolor type="colorpicker" category="Colors" width="12" title="Menu item text color in the top bar (should contrast with the header background color)" options="on|off" optionlabels="Yes|No">#444444</navbarfontcolor>
|
||||
<sliderhandlecolor type="colorpicker" category="Colors" width="12" title="Slider handle color" options="on|off" optionlabels="Yes|No">#5e1c64</sliderhandlecolor>
|
||||
<progressbarbackgroundcolor type="colorpicker" category="Colors" width="12" title="Progress bar background color" options="on|off" optionlabels="Yes|No">#eeeeee</progressbarbackgroundcolor>
|
||||
<progressbarcolor type="colorpicker" category="Colors" width="12" title="Progress bar color" options="on|off" optionlabels="Yes|No">#5e1c64</progressbarcolor>
|
||||
<progressbarfontcolor type="colorpicker" category="Colors" width="12" title="Progress bar font color" options="on|off" optionlabels="Yes|No">#ffffff</progressbarfontcolor>
|
||||
<privacybackgroundcolor type="colorpicker" category="Colors" width="12" title="Privacy background color" options="on|off" optionlabels="Yes|No">lightyellow</privacybackgroundcolor>
|
||||
<!-- fonts
|
||||
HOUSE-STYLE: the whole Fonts section (font choice, fontsize and all
|
||||
font sizes/weights) is house-style specific.
|
||||
|
||||
<!-- Default font and colors tab (options.twig tab 1): ONE row with three col-md-4 columns — col 1 = font, fontsize, fontcolor; col 2 = defaultbackgroundcolor; col 3 = primarycolor, secondarycolor, tertiarycolor (row 174). Row 159/160: the config.xml order within a category = the render order in options.twig, and width = the pane column width, so the core options renderer lays out the same structure. -->
|
||||
<!-- Default font and colors
|
||||
HOUSE-STYLE: the font choice and the four colors below are house-style specific (set per variant via variants/<client>.json).
|
||||
PLACING A CUSTOM FONT - instructions:
|
||||
1. Put the font file (e.g. .woff2) in the files/fonts/ folder of
|
||||
the variant (or of this mother theme if all variants should be
|
||||
|
|
@ -238,24 +120,220 @@
|
|||
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 -->
|
||||
<!-- Default font and colors (row 159/174: category equals the options.twig tab label) -->
|
||||
<!-- When adding new items, please keep fonts ordered alphabetically -->
|
||||
<font type="dropdown" category="Fonts" width="4" title="Default font (body text)">noto_sans
|
||||
<font type="dropdown" category="Default font and colors" width="4" title="Default font (body text)">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><optgroup label="User browser"><option class="font-arial " value="arial" data-font-package="websafe">Arial</option><option class="font-arial_black " value="arial_black" data-font-package="websafe">Arial Black</option><option class="font-comic_sans " value="comic_sans" data-font-package="websafe">Comic Sans</option><option class="font-courier " value="courier" data-font-package="websafe">Courier New</option><option class="font-georgia " value="georgia" data-font-package="websafe">Georgia</option><option class="font-impact " value="impact" data-font-package="websafe">Impact</option><option class="font-lucida_console " value="lucida_console" data-font-package="websafe">Lucida Console</option><option class="font-lucida_sans " value="lucida_sans" data-font-package="websafe">Lucida Sans</option><option class="font-palatino " value="palatino" data-font-package="websafe">Palatino Linotype</option><option class="font-times_new_roman " value="times_new_roman" data-font-package="websafe">Times New Roman</option><option class="font-trebuchet " value="trebuchet" data-font-package="websafe">Trebuchet</option></optgroup></dropdownoptions>
|
||||
</font>
|
||||
<!-- Prompt U: the "Fonts" tab is rendered as "Fonts and colors" with a special
|
||||
layout (options.twig): TOP ROW column 1 = font, fontcolor, fontsize;
|
||||
column 2 = primarycolor, secondarycolor (both moved here from the Colors
|
||||
category); then an <hr>; then per-element combo rows (fontselect +
|
||||
textcolor dropdown + conditional textcolorcustom picker); then the
|
||||
size/weight options below. HOUSE-STYLE: fontcolor, primarycolor and
|
||||
secondarycolor are set per variant via variants/<client>.json. -->
|
||||
<fontcolor type="colorpicker" category="Fonts" width="12" title="Default font color (body text)" options="on|off" optionlabels="Yes|No">#444444</fontcolor>
|
||||
<fontsize type="buttons" category="Fonts" width="12" title="Base font size (body text)" options="14px|16px|18px|20px" optionlabels="Small (14px)|Normal (16px)|Large (18px)|Extra large (20 px)">16px</fontsize>
|
||||
<primarycolor type="colorpicker" category="Fonts" width="12" title="Color 1 (primary)" options="on|off" optionlabels="Yes|No">#5e1c64</primarycolor>
|
||||
<secondarycolor type="colorpicker" category="Fonts" width="12" title="Color 2" options="on|off" optionlabels="Yes|No">#888888</secondarycolor>
|
||||
<tertiarycolor type="colorpicker" category="Fonts" width="12" title="Color 3" options="on|off" optionlabels="Yes|No">#dddddd</tertiarycolor>
|
||||
<!-- Row 174: the "Default font and colors" tab has ONE row with three
|
||||
col-md-4 columns (options.twig): col 1 = font, fontsize, fontcolor;
|
||||
col 2 = defaultbackgroundcolor; col 3 = the three colors below.
|
||||
HOUSE-STYLE: the font choice and fontcolor/primarycolor/secondarycolor
|
||||
are set per variant via variants/<client>.json. -->
|
||||
<fontsize type="buttons" category="Default font and colors" width="4" title="Base font size (body text)" options="14px|16px|18px|20px" optionlabels="Small (14px)|Normal (16px)|Large (18px)|XLarge (20 px)">16px</fontsize>
|
||||
<fontcolor type="colorpicker" category="Default font and colors" width="4" title="Default font color (body text)" options="on|off" optionlabels="Yes|No">#444444</fontcolor>
|
||||
<!-- Row 124/174: "Default background color" — column 2 of the single
|
||||
three-column row in the "Default font and colors" tab. It is also the
|
||||
5th preset of the experimental color-chooser (navbarfontcolor dropdown +
|
||||
swatches), so users can pick it anywhere a named color is offered. -->
|
||||
<defaultbackgroundcolor type="colorpicker" category="Default font and colors" width="4" title="Default background color" options="on|off" optionlabels="Yes|No">#ffffff</defaultbackgroundcolor>
|
||||
<primarycolor type="colorpicker" category="Default font and colors" width="4" title="Color 1 (primary)" options="on|off" optionlabels="Yes|No">#5e1c64</primarycolor>
|
||||
<secondarycolor type="colorpicker" category="Default font and colors" width="4" title="Color 2" options="on|off" optionlabels="Yes|No">#888888</secondarycolor>
|
||||
<tertiarycolor type="colorpicker" category="Default font and colors" width="4" title="Color 3" options="on|off" optionlabels="Yes|No">#dddddd</tertiarycolor>
|
||||
<!-- Header tab (options.twig tab 2, keys in aTopOfPageKeys order): header font + menu text color, header background color, sticky per device + header height, then the three logos, then the progress bar position/font/colors. -->
|
||||
<headerfont type="fontselect" category="Header" width="4" title="Font for the header / top menu">base</headerfont>
|
||||
<!-- Working example (row 115, reordered + relabelled row 125): menu item color
|
||||
as a preset dropdown. The KEY navbarfontcolor is kept (stored DB values
|
||||
stay attached); the type changes colorpicker -> dropdown with modes
|
||||
default|defaultbackgroundcolor|color1|color2|color3|other — the "Default
|
||||
background color" is the SECOND choice (row 125). A legacy stored hex
|
||||
value is migrated client-side to mode "other" + hex into
|
||||
navbarfontcolorcustom (options.js navbarColorModeUI), and
|
||||
custom_header.twig accepts a raw hex directly. The child
|
||||
navbarfontcolorcustom is rendered VISIBLE but grayed out (disabled)
|
||||
unless mode "other" (data-show-if-mode="disable" in options.twig) and
|
||||
keeps its value across saves (data-keep-value in options.js).
|
||||
PER-OPTION DEFAULT (row 125/126/134): every color-chooser dropdown can pick
|
||||
its own default value — the element text below IS that default (LimeSurvey
|
||||
stores it in the DB on theme reset), and the <option data-default="1">
|
||||
marks it. The default entry is enclosed in [ ] in the dropdown list
|
||||
(bolding <option> text is not rendered by every browser — row 134), and
|
||||
its swatch label below the swatch stays bold (options.js is-default).
|
||||
Here the default is "default" ("Default font color"); e.g. when
|
||||
questiontitlebackgroundcolor is later converted to this pattern, its
|
||||
default can be set to "color1".
|
||||
ROW 131: the option TEXTS are exactly "Default font color",
|
||||
"Default background color", "Color 1", "Color 2", "Color 3",
|
||||
"Other ..." — options.js appends each entry's live hexcode in brackets
|
||||
(for "Other ..." the custom color's hex) and bolds the default. -->
|
||||
<navbarfontcolor type="dropdown" category="Header" width="4" title="Text color in header" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">other<dropdownoptions><option value="default" data-default="1">[Default font color]</option><option value="defaultbackgroundcolor">Default background color</option><option value="color1">Color 1</option><option value="color2">Color 2</option><option value="color3">Color 3</option><option value="other">Other ...</option></dropdownoptions></navbarfontcolor>
|
||||
<navbarfontcolorcustom type="colorpicker" category="Header" width="4" title="Custom text color in header (for 'Other ...')" parent="navbarfontcolor">#444444</navbarfontcolorcustom>
|
||||
<!-- Color choosers of the Header tab (rows 115/135/149): HOUSE-STYLE colors, set per
|
||||
variant via variants/<client>.json. sliderhandlecolor + privacybackgroundcolor remain in
|
||||
the Colors category (no custom tab yet — Prompt T). -->
|
||||
<!-- Backgrounds of navbar/page stay plain colorpickers (owner decision
|
||||
2026-11-26, row 115): they are mostly NOT one of the default colors,
|
||||
default white #ffffff. EXCEPTION (row 135): the HEADER background color
|
||||
is part of the color-chooser scheme below — default "Default background
|
||||
color". -->
|
||||
<!-- Row 135: the color-chooser scheme (mode dropdown + swatch chips + custom
|
||||
picker; see navbarfontcolor) rolled out to four more options. Defaults per
|
||||
owner (row 135): header background = Default background color, progress
|
||||
bar color = Color 1, progress background = Default background color,
|
||||
progress font color = Default font color. The <option data-default="1">
|
||||
carries the [ ] marker of that option's own default. A legacy stored HEX
|
||||
value migrates client-side to mode "other" + hex into the <key>custom
|
||||
child (options.js colorModeUI), and the views accept a raw hex directly. -->
|
||||
<headerbackgroundcolor type="dropdown" category="Header" width="4" title="Header background color" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">other<dropdownoptions><option value="default">Default font color</option><option value="defaultbackgroundcolor" data-default="1">[Default background color]</option><option value="color1">Color 1</option><option value="color2">Color 2</option><option value="color3">Color 3</option><option value="other">Other ...</option></dropdownoptions></headerbackgroundcolor>
|
||||
<headerbackgroundcolorcustom type="colorpicker" category="Header" width="4" title="Custom header background color (for 'Other ...')" parent="headerbackgroundcolor">#eeeeee</headerbackgroundcolorcustom>
|
||||
<!-- Header sticky per screen size (shown in the "Header" tab).
|
||||
Breakpoints are Bootstrap's default ones: phone < md (768px),
|
||||
tablet = md..lg (768-991px), computer >= lg (992px). nav_bar.twig no
|
||||
longer hardcodes fixed-top; custom_header.twig emits the media
|
||||
queries. Defaults: sticky on computer + tablet, NOT on mobile. -->
|
||||
<!-- Prompt L: the master key "headersticky" is kept in config.xml/DB for
|
||||
backward compatibility, but the options page renders it as a static
|
||||
LABEL only (see options.twig). Sticky behaviour is governed solely by
|
||||
the three checkboxes below, which no longer have a parent (always
|
||||
visible, stacked as a list via width=12). Migration note: an old row
|
||||
with headersticky=off no longer disables sticky — only the checkboxes
|
||||
count (defaults on/on/off). -->
|
||||
<headersticky type="buttons" category="Header" width="4" title="Make header sticky" options="on|off" optionlabels="Yes|No">on</headersticky>
|
||||
<headerstickycomputer type="checkbox" category="Header" width="4" title="Computer screen">on</headerstickycomputer>
|
||||
<headerstickytablet type="checkbox" category="Header" width="4" title="Tablet">on</headerstickytablet>
|
||||
<headerstickymobile type="checkbox" category="Header" width="4" title="Mobile phone">off</headerstickymobile>
|
||||
<!-- Row 138: header bar height. Applied as min-height on #survey-nav in
|
||||
custom_header.twig (the "px" unit is added there; |replace guards against
|
||||
a stored value that still carries the unit). min-height so taller logos
|
||||
can still grow the bar — the sticky body padding follows nav.height().
|
||||
Default 90 px. Sticky defaults above: computer + tablet on, mobile off. -->
|
||||
<headerheight type="text" category="Header" width="4" title="Header bar height, in px">90</headerheight>
|
||||
<!-- Logos in the Header tab (row 159). HOUSE-STYLE: logo files are set per
|
||||
variant via variants/<client>.json. -->
|
||||
<!-- Logos (Prompt M): per logo (left=brand, center, right) a file dropdown whose
|
||||
FIRST option is "No logo" (value "off", prepended by options.twig), a top
|
||||
margin in px (plain number 0-100; the views add the "px"), and "Show logo
|
||||
on" checkboxes per device (Bootstrap breakpoints: mobile < 768px,
|
||||
tablet 768-991px, computer >= 992px). Defaults (row 138): ALL THREE
|
||||
logos on — left logo-left.png, center logo.png, right logo-right.png;
|
||||
margin 30 px; show on computer and tablet, NOT on mobile (same as the
|
||||
old hide-on-small default).
|
||||
The old keys (brandlogo/centerlogo/rightlogo, *logohideonsmall, the shared
|
||||
logotopmargin) were removed; variants/build.php maps the variant json's
|
||||
old keys onto these new keys. -->
|
||||
<brandlogofile type="imagefile" category="Header" width="4" title="Logo file (left)">./files/logo.png</brandlogofile>
|
||||
<brandlogotopmargin type="text" category="Header" width="4" title="Margin between logo and top of screen (left), in px (0-100)">15</brandlogotopmargin>
|
||||
<brandshowoncomputer type="checkbox" category="Header" width="4" title="Computer screen">on</brandshowoncomputer>
|
||||
<brandshowontablet type="checkbox" category="Header" width="4" title="Tablet">on</brandshowontablet>
|
||||
<brandshowonmobile type="checkbox" category="Header" width="4" title="Mobile phone">off</brandshowonmobile>
|
||||
<centerlogofile type="imagefile" category="Header" width="4" title="Logo file (center)">off</centerlogofile>
|
||||
<centerlogotopmargin type="text" category="Header" width="4" title="Margin between logo and top of screen (center), in px (0-100)">15</centerlogotopmargin>
|
||||
<centershowoncomputer type="checkbox" category="Header" width="4" title="Computer screen">on</centershowoncomputer>
|
||||
<centershowontablet type="checkbox" category="Header" width="4" title="Tablet">on</centershowontablet>
|
||||
<centershowonmobile type="checkbox" category="Header" width="4" title="Mobile phone">off</centershowonmobile>
|
||||
<rightlogofile type="imagefile" category="Header" width="4" title="Logo file (right)">off</rightlogofile>
|
||||
<rightlogotopmargin type="text" category="Header" width="4" title="Margin between logo and top of screen (right), in px (0-100)">15</rightlogotopmargin>
|
||||
<rightshowoncomputer type="checkbox" category="Header" width="4" title="Computer screen">on</rightshowoncomputer>
|
||||
<rightshowontablet type="checkbox" category="Header" width="4" title="Tablet">on</rightshowontablet>
|
||||
<rightshowonmobile type="checkbox" category="Header" width="4" title="Mobile phone">off</rightshowonmobile>
|
||||
<!-- Progress bar position (now category "Header" — row 159) -->
|
||||
<!-- Prompt N: listing order swapped — "In header" FIRST, then "Under header".
|
||||
The stored value semantics are unchanged (in|under); the default stays "under". -->
|
||||
<progressbarposition type="buttons" category="Header" width="4" title="Position of the progress bar" options="in|under" optionlabels="In header|Under header">under</progressbarposition>
|
||||
<progressbarfont type="fontselect" category="Header" width="4" title="Font for the progress bar">base</progressbarfont>
|
||||
<!-- Row 135: progress bar colors as color-choosers. Layout in the "Top of the
|
||||
page" tab (options.twig slots): progress bar color = COLUMN 1, progress
|
||||
background = COLUMN 2, progress font color = COLUMN 3 (with an extra tip
|
||||
underneath). Defaults: progress bar color = Color 1, progress background =
|
||||
Default background color, progress font color = Default font color. -->
|
||||
<progressbarcolor type="dropdown" category="Header" width="4" title="Progress bar color" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">other<dropdownoptions><option value="default">Default font color</option><option value="defaultbackgroundcolor">Default background color</option><option value="color1" data-default="1">[Color 1]</option><option value="color2">Color 2</option><option value="color3">Color 3</option><option value="other">Other ...</option></dropdownoptions></progressbarcolor>
|
||||
<progressbarcolorcustom type="colorpicker" category="Header" width="4" title="Custom progress bar color (for 'Other ...')" parent="progressbarcolor">#5e1c64</progressbarcolorcustom>
|
||||
<progressbarbackgroundcolor type="dropdown" category="Header" width="4" title="Progress bar background color" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">other<dropdownoptions><option value="default">Default font color</option><option value="defaultbackgroundcolor" data-default="1">[Default background color]</option><option value="color1">Color 1</option><option value="color2">Color 2</option><option value="color3">Color 3</option><option value="other">Other ...</option></dropdownoptions></progressbarbackgroundcolor>
|
||||
<progressbarbackgroundcolorcustom type="colorpicker" category="Header" width="4" title="Custom progress bar background color (for 'Other ...')" parent="progressbarbackgroundcolor">#eeeeee</progressbarbackgroundcolorcustom>
|
||||
<progressbarfontcolor type="dropdown" category="Header" width="4" title="Progress bar font color" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">other<dropdownoptions><option value="default" data-default="1">[Default font color]</option><option value="defaultbackgroundcolor">Default background color</option><option value="color1">Color 1</option><option value="color2">Color 2</option><option value="color3">Color 3</option><option value="other">Other ...</option></dropdownoptions></progressbarfontcolor>
|
||||
<progressbarfontcolorcustom type="colorpicker" category="Header" width="4" title="Custom progress bar font color (for 'Other ...')" parent="progressbarfontcolor">#ffffff</progressbarfontcolorcustom>
|
||||
<!-- Page background tab (options.twig tab 3, aImagesPaneKeys order): overall background color (chooser + custom), then the background image on/off + its detail options. -->
|
||||
<!-- Row 149: the overall background color is a color-chooser dropdown like the
|
||||
other chooser options (default|defaultbackgroundcolor|color1|color2|color3|
|
||||
other) with a <key>custom colorpicker child; its DEFAULT is the Default
|
||||
background color. A legacy stored hex is migrated client-side to mode
|
||||
"other" + hex into bodybackgroundcolorcustom (options.js), and
|
||||
custom_header.twig resolves the mode via the cm() macro (a raw hex still
|
||||
passes through directly). -->
|
||||
<bodybackgroundcolor type="dropdown" category="Page background" width="6" title="Overall background color" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">other<dropdownoptions><option value="default">Default font color</option><option value="defaultbackgroundcolor" data-default="1">[Default background color]</option><option value="color1">Color 1</option><option value="color2">Color 2</option><option value="color3">Color 3</option><option value="other">Other ...</option></dropdownoptions></bodybackgroundcolor>
|
||||
<bodybackgroundcolorcustom type="colorpicker" category="Page background" width="6" title="Custom overall background color (for 'Other ...')" parent="bodybackgroundcolor">#dddddd</bodybackgroundcolorcustom>
|
||||
<!-- Prompt Q: order fixed — Background image, then Overall background color
|
||||
(always relevant), then the three image-detail options which are only
|
||||
relevant when a background image is shown (parent="backgroundimage",
|
||||
shown/hidden via .option-visibility in options.twig/options.js).
|
||||
Row 149/163: the "Page background" pane lays these out in TWO columns
|
||||
(width 6 = the two col-md-6 columns) under the full-width intro —
|
||||
col 1 = overall background color (chooser) + background image on/off,
|
||||
col 2 = the three image-detail options (hidden as a whole when the
|
||||
image is off). -->
|
||||
<backgroundimage type="buttons" category="Page background" width="6" title="Background image (behind body of page)" options="on|off" optionlabels="Yes|No">on</backgroundimage>
|
||||
<backgroundimagefile type="imagefile" category="Page background" width="6" title="Background image file" parent="backgroundimage">./files/tiledtexture.png</backgroundimagefile>
|
||||
<backgroundimagefixed type="buttons" category="Page background" width="6" title="Background image fixed or scroll" options="fixed|scroll" optionlabels="Fixed|Scroll" parent="backgroundimage">scroll</backgroundimagefixed>
|
||||
<backgroundimagedisplay type="buttons" category="Page background" width="6" title="Background image display" options="tile|cover" optionlabels="Tile|Cover" parent="backgroundimage">tile</backgroundimagedisplay>
|
||||
<!-- Groups tab (options.twig tab 4, aGroupKeys order): col 1 = group title, col 2 = group description (width 6 = the two col-md-6 columns). -->
|
||||
<!-- Row 157/159: the group options carry category "Groups" (row 159: the
|
||||
category names in this file ARE the tab labels of options.twig, so the
|
||||
core options renderer groups them the same way); options.twig lays the
|
||||
Groups tab out in two columns: col 1 = group title, col 2 = group description.
|
||||
grouptitletextcolor/groupdescriptiontextcolor use the color-chooser scheme
|
||||
(row 135 pattern: mode dropdown default|defaultbackgroundcolor|color1|
|
||||
color2|color3|other + <key>custom child, default "Default font color" =
|
||||
mode "default"); a legacy stored mode "primary"/"secondary" (old 4-mode
|
||||
dropdown) or a raw hex migrates client-side in options.js, and the views
|
||||
accept both. The old <el>fontweight keys (400|700) became <el>fontoptions
|
||||
(normal|bold|italic|bolditalic) — font-style included; custom_header.twig
|
||||
maps them to font-weight/font-style. Defaults keep the old look: title
|
||||
bold, description normal. -->
|
||||
<grouptitlefont type="fontselect" category="Groups" width="6" title="Font for group title">base</grouptitlefont>
|
||||
<grouptitletextcolor type="dropdown" category="Groups" width="6" title="Group title color" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">default
|
||||
<dropdownoptions><option value="default" data-default="1">[Default font color]</option><option value="defaultbackgroundcolor">Default background color</option><option value="color1">Color 1</option><option value="color2">Color 2</option><option value="color3">Color 3</option><option value="other">Other ...</option></dropdownoptions></grouptitletextcolor>
|
||||
<grouptitletextcolorcustom type="colorpicker" category="Groups" width="6" title="Custom group title color (for 'Other ...')" parent="grouptitletextcolor">#444444</grouptitletextcolorcustom>
|
||||
<grouptitlefontsize type="buttons" category="Groups" width="6" title="Group 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">2.0rem</grouptitlefontsize>
|
||||
<grouptitlefontoptions type="buttons" category="Groups" width="6" title="Group title font options" options="normal|bold|italic|bolditalic" optionlabels="Normal|Bold|Italic|Bold italic">bold</grouptitlefontoptions>
|
||||
<groupdescriptionfont type="fontselect" category="Groups" width="6" title="Font for group description">base</groupdescriptionfont>
|
||||
<groupdescriptiontextcolor type="dropdown" category="Groups" width="6" title="Group description color" options="default|defaultbackgroundcolor|color1|color2|color3|other" optionlabels="Default font color|Default background color|Color 1|Color 2|Color 3|Other ...">default
|
||||
<dropdownoptions><option value="default" data-default="1">[Default font color]</option><option value="defaultbackgroundcolor">Default background color</option><option value="color1">Color 1</option><option value="color2">Color 2</option><option value="color3">Color 3</option><option value="other">Other ...</option></dropdownoptions></groupdescriptiontextcolor>
|
||||
<groupdescriptiontextcolorcustom type="colorpicker" category="Groups" width="6" title="Custom group description color (for 'Other ...')" parent="groupdescriptiontextcolor">#444444</groupdescriptiontextcolorcustom>
|
||||
<groupdescriptionfontsize type="buttons" category="Groups" width="6" title="Group description 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</groupdescriptionfontsize>
|
||||
<groupdescriptionfontoptions type="buttons" category="Groups" width="6" title="Group description font options" options="normal|bold|italic|bolditalic" optionlabels="Normal|Bold|Italic|Bold italic">normal</groupdescriptionfontoptions>
|
||||
<!-- Questions tab (options.twig tab 5): first the three columns (col 1 colors+help, col 2 border + children, col 3 checkbox color; width 4 = col-md-4 columns), then the rest full-width (width 12). -->
|
||||
<!-- Questions
|
||||
HOUSE-STYLE: the colorpicker options in this section (question
|
||||
title/background/help/help-font/border/checkbox colors) are house-style
|
||||
colors. NOT house-style (structural, same for all variants):
|
||||
questionborder, questionborderstyle, the borderradius values,
|
||||
questiondropdown and questionhelptextposition.
|
||||
Prompt R: order = the three columns of the Questions tab (options.twig
|
||||
renders them in this order): col1 colors+help, col2 border + its
|
||||
conditional children, col3 checkbox color. All width=12 — inside the
|
||||
pane each option stacks as col-12 in its column. The border children
|
||||
carry parent="questionborder"; the show-values "box|top" cannot be an
|
||||
XML attribute (core passes only `parent` through), so the multi-value
|
||||
list lives in options.twig (aShowIfValues) and lands as
|
||||
data-show-if-value="box|top". questionhelpfontcolor (NEW) is applied
|
||||
in custom_header.twig on .question-help-container. -->
|
||||
<!-- Questions -->
|
||||
<questiontitlebackgroundcolor type="colorpicker" category="Questions" width="4" title="Question title background color" options="on|off" optionlabels="Yes|No">#5e1c64</questiontitlebackgroundcolor>
|
||||
<questiontitlefontcolor type="colorpicker" category="Questions" width="4" title="Question title font color" options="on|off" optionlabels="Yes|No">#ffffff</questiontitlefontcolor>
|
||||
<questionbackgroundcolor type="colorpicker" category="Questions" width="4" title="Question background color (not title)" options="on|off" optionlabels="Yes|No">#ffffff</questionbackgroundcolor>
|
||||
<questionhelpbackgroundcolor type="colorpicker" category="Questions" width="4" title="Question helpbackground color" options="on|off" optionlabels="Yes|No">#fff3cd</questionhelpbackgroundcolor>
|
||||
<questionhelpfontcolor type="colorpicker" category="Questions" width="4" title="Question help font color" options="on|off" optionlabels="Yes|No">#444444</questionhelpfontcolor>
|
||||
<questionhelptextposition type="buttons" category="Questions" width="4" title="Question help text position" options="top|bottom" optionlabels="Top|Bottom">top</questionhelptextposition>
|
||||
<questionborder type="buttons" category="Questions" width="4" title="Question border" options="box|top|none" optionlabels="Box around|Top and bottom|None">box</questionborder>
|
||||
<questionbordercolor type="colorpicker" category="Questions" width="4" title="Question border color" options="on|off" optionlabels="Yes|No" parent="questionborder">#cccccc</questionbordercolor>
|
||||
<questionborderstyle type="buttons" category="Questions" width="4" title="Question border line style" options="solid|dotted|dashed" optionlabels="Solid|Dotted|Dashed" parent="questionborder">solid</questionborderstyle>
|
||||
<questiondropdown type="buttons" category="Questions" width="4" title="Question dropdown shadow" options="on|hover|off" optionlabels="Always|On hover only|None" parent="questionborder">hover</questiondropdown>
|
||||
<questionborderradiusTL type="duration" category="Questions" width="4" title="Border radius top left" parent="questionborder">5px</questionborderradiusTL>
|
||||
<questionborderradiusTR type="duration" category="Questions" width="4" title="Border radius top right" parent="questionborder">5px</questionborderradiusTR>
|
||||
<questionborderradiusBL type="duration" category="Questions" width="4" title="Border radius bottom left" parent="questionborder">5px</questionborderradiusBL>
|
||||
<questionborderradiusBR type="duration" category="Questions" width="4" title="Border radius bottom right" parent="questionborder">5px</questionborderradiusBR>
|
||||
<checkboxcolor type="colorpicker" category="Questions" width="4" title="Checkbox/radiobutton color (when checked)" options="on|off" optionlabels="Yes|No">#ff005f</checkboxcolor>
|
||||
<!-- Per-element font+color combos (Prompt U). Each element gets:
|
||||
- <el>font (type "fontselect"): the SAME choices as the base "font"
|
||||
dropdown above (bundled + variant-custom + browser fonts), plus a
|
||||
|
|
@ -268,34 +346,32 @@
|
|||
color fontcolor). Resolved to an inline style="color: …" in the views.
|
||||
- <el>textcolorcustom (colorpicker): only visible when <el>textcolor
|
||||
= "other" (parent show-value "other"). -->
|
||||
<headerfont type="fontselect" category="Top of the page" width="4" title="Font for the header / top menu">base</headerfont>
|
||||
<progressbarfont type="fontselect" category="Top of the page" width="4" title="Font for the progress bar">base</progressbarfont>
|
||||
<questiontitlefont type="fontselect" category="Questions" width="4" title="Font for question titles">base</questiontitlefont>
|
||||
<questiontitlefont type="fontselect" category="Questions" width="12" title="Font for question titles">base</questiontitlefont>
|
||||
<questiontitletextcolor type="dropdown" category="Questions" width="12" title="Text color for question titles" options="default|primary|secondary|other" optionlabels="Default font color|Primary color|Secondary color|Other…">default
|
||||
<dropdownoptions><option value="default">Default font color</option><option value="primary">Primary color</option><option value="secondary">Secondary color</option><option value="other">Other…</option></dropdownoptions></questiontitletextcolor>
|
||||
<dropdownoptions><option value="default" data-default="1">[Default font color]</option><option value="primary">Primary color</option><option value="secondary">Secondary color</option><option value="other">Other…</option></dropdownoptions></questiontitletextcolor>
|
||||
<questiontitletextcolorcustom type="colorpicker" category="Questions" width="12" title="Custom text color for question titles" parent="questiontitletextcolor">#444444</questiontitletextcolorcustom>
|
||||
<answersfont type="fontselect" category="Questions" width="4" title="Font for answers and help texts">base</answersfont>
|
||||
<answersfont type="fontselect" category="Questions" width="12" title="Font for answers and help texts">base</answersfont>
|
||||
<answerstextcolor type="dropdown" category="Questions" width="12" title="Text color for answers and help texts" options="default|primary|secondary|other" optionlabels="Default font color|Primary color|Secondary color|Other…">default
|
||||
<dropdownoptions><option value="default">Default font color</option><option value="primary">Primary color</option><option value="secondary">Secondary color</option><option value="other">Other…</option></dropdownoptions></answerstextcolor>
|
||||
<dropdownoptions><option value="default" data-default="1">[Default font color]</option><option value="primary">Primary color</option><option value="secondary">Secondary color</option><option value="other">Other…</option></dropdownoptions></answerstextcolor>
|
||||
<answerstextcolorcustom type="colorpicker" category="Questions" width="12" title="Custom text color for answers and help texts" parent="answerstextcolor">#444444</answerstextcolorcustom>
|
||||
<grouptitlefont type="fontselect" category="Questions" width="4" title="Font for group titles">base</grouptitlefont>
|
||||
<grouptitletextcolor type="dropdown" category="Questions" width="12" title="Text color for group titles" options="default|primary|secondary|other" optionlabels="Default font color|Primary color|Secondary color|Other…">default
|
||||
<dropdownoptions><option value="default">Default font color</option><option value="primary">Primary color</option><option value="secondary">Secondary color</option><option value="other">Other…</option></dropdownoptions></grouptitletextcolor>
|
||||
<grouptitletextcolorcustom type="colorpicker" category="Questions" width="12" title="Custom text color for group titles" parent="grouptitletextcolor">#444444</grouptitletextcolorcustom>
|
||||
<groupdescriptionfont type="fontselect" category="Questions" width="4" title="Font for group descriptions">base</groupdescriptionfont>
|
||||
<groupdescriptiontextcolor type="dropdown" category="Questions" width="12" title="Text color for group descriptions" options="default|primary|secondary|other" optionlabels="Default font color|Primary color|Secondary color|Other…">default
|
||||
<dropdownoptions><option value="default">Default font color</option><option value="primary">Primary color</option><option value="secondary">Secondary color</option><option value="other">Other…</option></dropdownoptions></groupdescriptiontextcolor>
|
||||
<groupdescriptiontextcolorcustom type="colorpicker" category="Questions" width="12" title="Custom text color for group descriptions" parent="groupdescriptiontextcolor">#444444</groupdescriptiontextcolorcustom>
|
||||
<buttonsfont type="fontselect" category="Questions" width="4" title="Font for the buttons (Previous/Next/Submit)">base</buttonsfont>
|
||||
<buttonsfont type="fontselect" category="Questions" width="12" title="Font for the buttons (Previous/Next/Submit)">base</buttonsfont>
|
||||
<buttonstextcolor type="dropdown" category="Questions" width="12" title="Text color for the buttons (Previous/Next/Submit)" options="default|primary|secondary|other" optionlabels="Default font color|Primary color|Secondary color|Other…">default
|
||||
<dropdownoptions><option value="default">Default font color</option><option value="primary">Primary color</option><option value="secondary">Secondary color</option><option value="other">Other…</option></dropdownoptions></buttonstextcolor>
|
||||
<dropdownoptions><option value="default" data-default="1">[Default font color]</option><option value="primary">Primary color</option><option value="secondary">Secondary color</option><option value="other">Other…</option></dropdownoptions></buttonstextcolor>
|
||||
<buttonstextcolorcustom type="colorpicker" category="Questions" width="12" title="Custom text color for the buttons (Previous/Next/Submit)" parent="buttonstextcolor">#444444</buttonstextcolorcustom>
|
||||
<questiontitlefontsize type="buttons" category="Questions" 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="Questions" width="6" title="Question title font weight" options="400|700" optionlabels="Normal|Bold">700</questiontitlefontweight>
|
||||
<grouptitlefontsize type="buttons" category="Questions" width="6" title="Group 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">2.0rem</grouptitlefontsize>
|
||||
<grouptitlefontweight type="buttons" category="Questions" width="6" title="Group title font weight" options="400|700" optionlabels="Normal|Bold">700</grouptitlefontweight>
|
||||
<groupdescriptionfontsize type="buttons" category="Questions" width="6" title="Group description 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</groupdescriptionfontsize>
|
||||
<groupdescriptionfontweight type="buttons" category="Questions" width="6" title="Group description font weight" options="400|700" optionlabels="Normal|Bold">400</groupdescriptionfontweight>
|
||||
<questiontitlefontsize type="buttons" category="Questions" width="12" 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="Questions" width="12" title="Question title font weight" options="400|700" optionlabels="Normal|Bold">700</questiontitlefontweight>
|
||||
<!-- Colors: no tab in the custom options page yet (Prompt T) — these two stay in core mode only. -->
|
||||
<sliderhandlecolor type="colorpicker" category="Colors" width="12" title="Slider handle color" options="on|off" optionlabels="Yes|No">#5e1c64</sliderhandlecolor>
|
||||
<privacybackgroundcolor type="colorpicker" category="Colors" width="12" title="Privacy background color" options="on|off" optionlabels="Yes|No">lightyellow</privacybackgroundcolor>
|
||||
<!-- Other options tab (options.twig LAST tab): width 12 = full-width rows. -->
|
||||
<!-- Prompt O: the five "Other options" are width=12, so they stack in ONE
|
||||
column (full-width rows) in the Other options tab, label above each
|
||||
control (Prompt G). -->
|
||||
<hideprivacyinfo type="buttons" category="Other options" width="12" title="Hide privacy info" options="on|off" optionlabels="Yes|No">off</hideprivacyinfo>
|
||||
<container type="buttons" category="Other options" width="12" title="Survey container" options="on|off" optionlabels="Yes|No">on</container>
|
||||
<showpopups type="buttons" category="Other options" width="12" title="Show popups" options="1|0|-1" optionlabels="Popup|On page|No">1</showpopups>
|
||||
<showclearall type="buttons" category="Other options" width="12" title="Show Clear All button" options="on|off" optionlabels="Yes|No">off</showclearall>
|
||||
<fixnumauto type="buttons" category="Other options" width="12" title="Fix automatically numeric value" options="enable|partial|disable" optionlabels="Yes|For expression|No">enable</fixnumauto>
|
||||
</options>
|
||||
<!-- Here datas about how LimeSurvey should load the theme -->
|
||||
<engine>
|
||||
|
|
|
|||
Loading…
Reference in a new issue