chore(options): remove internal prompt references from options.twig comments
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>
This commit is contained in:
parent
089ddc5642
commit
7f0685534c
1 changed files with 8 additions and 90 deletions
|
|
@ -149,12 +149,6 @@
|
||||||
'rightlogofile', 'rightlogotopmargin', 'rightshowoncomputer', 'rightshowontablet', 'rightshowonmobile',
|
'rightlogofile', 'rightlogotopmargin', 'rightshowoncomputer', 'rightshowontablet', 'rightshowonmobile',
|
||||||
'progressbarposition', 'progressbarfont', 'progressbarbackgroundcolor', 'progressbarcolor', 'progressbarfontcolor'
|
'progressbarposition', 'progressbarfont', 'progressbarbackgroundcolor', 'progressbarcolor', 'progressbarfontcolor'
|
||||||
] %}
|
] %}
|
||||||
{# Prompt Y: 'headerfont' sits in column 2 of the Header section, ABOVE navbarfontcolor
|
|
||||||
(the menu-item color); 'progressbarfont' sits in column 3 of the first Progress bar
|
|
||||||
row (column 1 = progressbarposition, column 2 stays empty). #}
|
|
||||||
|
|
||||||
{# Prompt M: the logo keys are rendered as ONE dedicated 3-column block (triggered at
|
|
||||||
the first logo key, 'brandlogofile') and skipped in the generic per-key loop. #}
|
|
||||||
{% set aLogoKeys = [
|
{% set aLogoKeys = [
|
||||||
'brandlogofile', 'brandlogotopmargin', 'brandshowoncomputer', 'brandshowontablet', 'brandshowonmobile',
|
'brandlogofile', 'brandlogotopmargin', 'brandshowoncomputer', 'brandshowontablet', 'brandshowonmobile',
|
||||||
'centerlogofile', 'centerlogotopmargin', 'centershowoncomputer', 'centershowontablet', 'centershowonmobile',
|
'centerlogofile', 'centerlogotopmargin', 'centershowoncomputer', 'centershowontablet', 'centershowonmobile',
|
||||||
|
|
@ -162,49 +156,18 @@
|
||||||
] %}
|
] %}
|
||||||
{% set aLogoPositions = ['brand', 'center', 'right'] %}
|
{% set aLogoPositions = ['brand', 'center', 'right'] %}
|
||||||
|
|
||||||
{# Prompt N: the progress-bar keys render as ONE column (col-md-4; the col-md-8
|
|
||||||
next to it stays empty) directly below the logo hr, in this fixed order. #}
|
|
||||||
{% set aProgressKeys = ['progressbarposition', 'progressbarbackgroundcolor', 'progressbarcolor', 'progressbarfontcolor'] %}
|
{% set aProgressKeys = ['progressbarposition', 'progressbarbackgroundcolor', 'progressbarcolor', 'progressbarfontcolor'] %}
|
||||||
|
|
||||||
{# Prompt X: the "Header" section of the Top-of-page tab is a 3-column row:
|
|
||||||
col 1 = headerbackgroundcolor, col 2 = navbarfontcolor, col 3 = the sticky
|
|
||||||
group (master label "Make header sticky" + 3 checkboxes). #}
|
|
||||||
{% set aTopStickyKeys = ['headersticky', 'headerstickycomputer', 'headerstickytablet', 'headerstickymobile'] %}
|
{% set aTopStickyKeys = ['headersticky', 'headerstickycomputer', 'headerstickytablet', 'headerstickymobile'] %}
|
||||||
|
|
||||||
{# Prompt U: the elements that get a font+color combo row in the "Fonts and
|
|
||||||
colors" pane. Per element <el> the keys are <el>font (fontselect),
|
|
||||||
<el>textcolor (dropdown default|primary|secondary|other) and
|
|
||||||
<el>textcolorcustom (colorpicker, visible only when <el>textcolor = "other"). #}
|
|
||||||
{% set aFontElements = ['questiontitle', 'answers', 'grouptitle', 'groupdescription', 'buttons'] %}
|
{% set aFontElements = ['questiontitle', 'answers', 'grouptitle', 'groupdescription', 'buttons'] %}
|
||||||
{# Prompt Y: only these five elements still have a <el>textcolor dropdown (parent of
|
|
||||||
<el>textcolorcustom, show-value "other" via aShowIfValues below). The header and
|
|
||||||
progressbar textcolor keys were removed from config.xml — their colors are set in
|
|
||||||
the Top of the page tab (navbarfontcolor / progressbarfontcolor) — so header and
|
|
||||||
progressbar are no longer in aFontElements. #}
|
|
||||||
|
|
||||||
{# Prompt R: multi-value show lists per parent key, rendered as
|
|
||||||
data-show-if-value (e.g. "box|top" for questionborder). Core passes only the
|
|
||||||
`parent` attribute through to the option attributes, so this list lives here
|
|
||||||
in the theme. Default 'on'. Used both for the wrapper attribute and for the
|
|
||||||
server-side initial d-none (Prompt Q). Prompt U adds 'other' for every
|
|
||||||
<el>textcolor dropdown (parent of <el>textcolorcustom). #}
|
|
||||||
{% set aShowIfValues = { 'questionborder': 'box|top' } %}
|
{% set aShowIfValues = { 'questionborder': 'box|top' } %}
|
||||||
{% for el in aFontElements %}{% set aShowIfValues = aShowIfValues|merge({ (el ~ 'textcolor'): 'other' }) %}{% endfor %}
|
{% for el in aFontElements %}{% set aShowIfValues = aShowIfValues|merge({ (el ~ 'textcolor'): 'other' }) %}{% endfor %}
|
||||||
|
|
||||||
{# Prompt Y: the Fonts pane ("Default fonts and colors") has exactly six options in
|
|
||||||
two 3-column rows: row 1 = font | fontcolor | fontsize (one per column), then a
|
|
||||||
full-width hr + "Default colors" intro (h2+p), then row 2 = primarycolor |
|
|
||||||
secondarycolor | tertiarycolor (one per column). The per-element combos and the
|
|
||||||
size/weight options moved to the Questions tab; headerfont/progressbarfont moved
|
|
||||||
to Top of the page. Slots f1-f3 (row 1) and c1-c3 (row 2). #}
|
|
||||||
{% set aFontsRow1 = ['font', 'fontcolor', 'fontsize'] %}
|
{% set aFontsRow1 = ['font', 'fontcolor', 'fontsize'] %}
|
||||||
{% set aFontsRow2 = ['primarycolor', 'secondarycolor', 'tertiarycolor'] %}
|
{% set aFontsRow2 = ['primarycolor', 'secondarycolor', 'tertiarycolor'] %}
|
||||||
|
|
||||||
{# Prompt R: the Questions pane renders as THREE columns (col-md-4, border-start
|
|
||||||
between them) with explicit key lists. config.xml lists the Questions options
|
|
||||||
in exactly this column order, so the generic loop meets them column by column
|
|
||||||
and opens/closes the columns on column change (qLastCol). Column 2's
|
|
||||||
conditional children use aShowIfValues['questionborder'] = 'box|top'. #}
|
|
||||||
{% set aQuestionsCol1 = ['questiontitlebackgroundcolor', 'questiontitlefontcolor', 'questionbackgroundcolor', 'questionhelpbackgroundcolor', 'questionhelpfontcolor', 'questionhelptextposition'] %}
|
{% set aQuestionsCol1 = ['questiontitlebackgroundcolor', 'questiontitlefontcolor', 'questionbackgroundcolor', 'questionhelpbackgroundcolor', 'questionhelpfontcolor', 'questionhelptextposition'] %}
|
||||||
{% set aQuestionsCol2 = ['questionborder', 'questionbordercolor', 'questionborderstyle', 'questiondropdown', 'questionborderradiusTL', 'questionborderradiusTR', 'questionborderradiusBL', 'questionborderradiusBR'] %}
|
{% set aQuestionsCol2 = ['questionborder', 'questionbordercolor', 'questionborderstyle', 'questiondropdown', 'questionborderradiusTL', 'questionborderradiusTR', 'questionborderradiusBL', 'questionborderradiusBR'] %}
|
||||||
{% set aQuestionsCol3 = ['checkboxcolor'] %}
|
{% set aQuestionsCol3 = ['checkboxcolor'] %}
|
||||||
|
|
@ -223,7 +186,7 @@
|
||||||
{% for category in aOptionAttributes.categories %}
|
{% for category in aOptionAttributes.categories %}
|
||||||
{% if category != 'Fonts' and category != 'Top of the page' %}
|
{% if category != 'Fonts' and category != 'Top of the page' %}
|
||||||
{# Resolve this category's keys once and skip the tab entirely when none
|
{# Resolve this category's keys once and skip the tab entirely when none
|
||||||
remain (Prompt S): e.g. "Progress" — its only option (progressbarposition)
|
remain: e.g. "Progress" — its only option (progressbarposition)
|
||||||
moved to the Top-of-page tab, so an empty tab must not be rendered. #}
|
moved to the Top-of-page tab, so an empty tab must not be rendered. #}
|
||||||
{% set catKeys = [] %}
|
{% set catKeys = [] %}
|
||||||
{% for key, attr in aOptionAttributes.optionAttributes %}
|
{% for key, attr in aOptionAttributes.optionAttributes %}
|
||||||
|
|
@ -272,38 +235,25 @@
|
||||||
<div role="tabpanel" class="CoreThemeOptions--settingsTab tab-pane {% if loop.first %}active{% endif %}"
|
<div role="tabpanel" class="CoreThemeOptions--settingsTab tab-pane {% if loop.first %}active{% endif %}"
|
||||||
id="{{ tab.id }}" aria-labelledby="tab-{{ tab.id }}">
|
id="{{ tab.id }}" aria-labelledby="tab-{{ tab.id }}">
|
||||||
{% if tab.id == 'top-of-page' %}
|
{% if tab.id == 'top-of-page' %}
|
||||||
{# Prompt W: experiment with explanatory text on the options pages — above the
|
|
||||||
FIRST element of the "Top of the page" pane a header + explanation. Wrapped
|
|
||||||
in gT() so the strings are picked up for translation into other languages.
|
|
||||||
(Typo's in the owner's source text fixed: "ditinguishable" -> "distinguishable",
|
|
||||||
"you van choose" -> "you can choose".) #}
|
|
||||||
<div class="row action_hide_on_inherit top-of-page-intro"><div class="col-12">
|
<div class="row action_hide_on_inherit top-of-page-intro"><div class="col-12">
|
||||||
<h2>{{ gT("Header") }}</h2>
|
<h2>{{ gT("Header") }}</h2>
|
||||||
<p>{{ gT("The header is the top part of the page, possibly containing the name of the survey, logo's and a menu. In this part of the options you can make this header more or less distinguishable from the rest of the page and you can choose if the logo should stay on top of the page after scrolling (sticky) or not.") }}</p>
|
<p>{{ gT("The header is the top part of the page, possibly containing the name of the survey, logo's and a menu. In this part of the options you can make this header more or less distinguishable from the rest of the page and you can choose if the logo should stay on top of the page after scrolling (sticky) or not.") }}</p>
|
||||||
</div></div>
|
</div></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if tab.id == 'category-fonts' %}
|
{% if tab.id == 'category-fonts' %}
|
||||||
{# Prompt Y: intro of the "Default fonts and colors" pane — full-width h2 + p,
|
|
||||||
translatable via gT(). (Typo in the owner's source fixed: "you version" ->
|
|
||||||
"your version".) #}
|
|
||||||
<div class="row action_hide_on_inherit fonts-intro"><div class="col-12">
|
<div class="row action_hide_on_inherit fonts-intro"><div class="col-12">
|
||||||
<h2>{{ gT("Default font") }}</h2>
|
<h2>{{ gT("Default font") }}</h2>
|
||||||
<p>{{ gT("Here you choose the default font, the font that is used on most places in your version of the theme.") }}</p>
|
<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>
|
</div></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="row action_hide_on_inherit">
|
<div class="row action_hide_on_inherit">
|
||||||
{# Prompt P: in the Images pane use the three-column grid like the logo
|
|
||||||
block (Prompt M), but fill ONLY column 1 — all Images options stack
|
|
||||||
vertically in this single col-md-4 (their width=12 makes each wrapper
|
|
||||||
full width of the column). Columns 2-3 stay empty. The upload block
|
|
||||||
below stays full width. #}
|
|
||||||
{% if tab.category == 'Images' %}<div class="col-md-4 images-options-column">{% endif %}
|
{% if tab.category == 'Images' %}<div class="col-md-4 images-options-column">{% endif %}
|
||||||
{% set qLastCol = 0 %}
|
{% set qLastCol = 0 %}
|
||||||
{% set fLastSlot = 0 %}
|
{% set fLastSlot = 0 %}
|
||||||
{% for key in aTabKeys %}
|
{% for key in aTabKeys %}
|
||||||
{% set attr = aOptionAttributes.optionAttributes[key] ?? null %}
|
{% set attr = aOptionAttributes.optionAttributes[key] ?? null %}
|
||||||
{% if attr is not null %}
|
{% if attr is not null %}
|
||||||
{# Slot-based pane layouts (Prompt U fonts, Prompt X top-of-page): on a
|
{# Slot-based pane layouts: on a
|
||||||
slot change the previous container is closed and the new one opened.
|
slot change the previous container is closed and the new one opened.
|
||||||
Every slot is row+col (two divs), except 'logo' (self-contained block)
|
Every slot is row+col (two divs), except 'logo' (self-contained block)
|
||||||
and 'rest' (normal grid). Computed BEFORE the logo-block branch so
|
and 'rest' (normal grid). Computed BEFORE the logo-block branch so
|
||||||
|
|
@ -312,8 +262,6 @@
|
||||||
{% set bTopPane = tab.id == 'top-of-page' %}
|
{% set bTopPane = tab.id == 'top-of-page' %}
|
||||||
{% set fSlot = 'rest' %}
|
{% set fSlot = 'rest' %}
|
||||||
{% if bFontsPane %}
|
{% if bFontsPane %}
|
||||||
{# Prompt Y: two 3-column rows — f1/f2/f3 = font/fontcolor/fontsize,
|
|
||||||
c1/c2/c3 = primary/secondary/tertiary color. #}
|
|
||||||
{% if key == 'font' %}{% set fSlot = 'f1' %}
|
{% if key == 'font' %}{% set fSlot = 'f1' %}
|
||||||
{% elseif key == 'fontcolor' %}{% set fSlot = 'f2' %}
|
{% elseif key == 'fontcolor' %}{% set fSlot = 'f2' %}
|
||||||
{% elseif key == 'fontsize' %}{% set fSlot = 'f3' %}
|
{% elseif key == 'fontsize' %}{% set fSlot = 'f3' %}
|
||||||
|
|
@ -322,12 +270,6 @@
|
||||||
{% elseif key == 'tertiarycolor' %}{% set fSlot = 'c3' %}
|
{% elseif key == 'tertiarycolor' %}{% set fSlot = 'c3' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% elseif bTopPane %}
|
{% elseif bTopPane %}
|
||||||
{# Prompt X/Y: Top-of-page sections — Header (3 cols:
|
|
||||||
headerbackgroundcolor | headerfont above navbarfontcolor |
|
|
||||||
sticky group), hr, Logos (h2+p, then the logo block, then its
|
|
||||||
hr), Progress bar (h2+p, first row: position in col 1, col 2
|
|
||||||
empty, progressbarfont in col 3; then a colors row with one
|
|
||||||
colorpicker per column, in current order). #}
|
|
||||||
{% if key in aLogoKeys %}{% set fSlot = 'logo' %}
|
{% if key in aLogoKeys %}{% set fSlot = 'logo' %}
|
||||||
{% elseif key == 'headerbackgroundcolor' %}{% set fSlot = 'h1' %}
|
{% elseif key == 'headerbackgroundcolor' %}{% set fSlot = 'h1' %}
|
||||||
{% elseif key == 'headerfont' %}{% set fSlot = 'hf' %}
|
{% elseif key == 'headerfont' %}{% set fSlot = 'hf' %}
|
||||||
|
|
@ -342,10 +284,6 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if fSlot != fLastSlot and (bFontsPane or bTopPane) %}
|
{% if fSlot != fLastSlot and (bFontsPane or bTopPane) %}
|
||||||
{% if bFontsPane %}
|
{% if bFontsPane %}
|
||||||
{# Prompt Y: row 1 (f1/f2/f3) is opened at f1; at f3 the row is
|
|
||||||
closed and row 2 (c1/c2/c3) opens after hr + "Default colors"
|
|
||||||
intro; within a row each new slot just moves to the next
|
|
||||||
col-md-4. #}
|
|
||||||
{% 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-4">
|
{% 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-4">
|
||||||
{% elseif fLastSlot == 'f1' or fLastSlot == 'f2' or fLastSlot == 'c1' or fLastSlot == 'c2' %}</div><div class="col-md-4">
|
{% elseif fLastSlot == 'f1' or fLastSlot == 'f2' or fLastSlot == 'c1' or fLastSlot == 'c2' %}</div><div class="col-md-4">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
@ -370,11 +308,6 @@
|
||||||
{% set fLastSlot = fSlot %}
|
{% set fLastSlot = fSlot %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if tab.id == 'top-of-page' and key == 'brandlogofile' %}
|
{% if tab.id == 'top-of-page' and key == 'brandlogofile' %}
|
||||||
{# PROMPT M: dedicated 3-column logo block (left/center/right), vertical
|
|
||||||
borders between columns, hr below. Per column, top to bottom:
|
|
||||||
file dropdown ("No logo" first), margin 0-100px, "Show logo on"
|
|
||||||
with 3 device checkboxes. Labels above controls (Prompt G),
|
|
||||||
server-side checked/selected/value like the generic renderer. #}
|
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="row logo-columns">
|
<div class="row logo-columns">
|
||||||
{% for pos in aLogoPositions %}
|
{% for pos in aLogoPositions %}
|
||||||
|
|
@ -418,7 +351,6 @@
|
||||||
{% set ckey = pos ~ 'showon' ~ dev %}
|
{% set ckey = pos ~ 'showon' ~ dev %}
|
||||||
{% set cattr = aOptionAttributes.optionAttributes[ckey] %}
|
{% set cattr = aOptionAttributes.optionAttributes[ckey] %}
|
||||||
{% set ccv = bGeneralInherit ? 'inherit' : (aCurrentOptions[ckey] is defined ? aCurrentOptions[ckey] : (oParentOptions[ckey] is defined ? oParentOptions[ckey] : '')) %}
|
{% set ccv = bGeneralInherit ? 'inherit' : (aCurrentOptions[ckey] is defined ? aCurrentOptions[ckey] : (oParentOptions[ckey] is defined ? oParentOptions[ckey] : '')) %}
|
||||||
{# Prompt W: checkbox label to the RIGHT of the box #}
|
|
||||||
<div class="form-check mb-1">
|
<div class="form-check mb-1">
|
||||||
<input type="checkbox" value="on"
|
<input type="checkbox" value="on"
|
||||||
{% if ccv == 'on' %}checked{% endif %}
|
{% if ccv == 'on' %}checked{% endif %}
|
||||||
|
|
@ -435,12 +367,6 @@
|
||||||
<div class="row action_hide_on_inherit"><div class="col-12"><hr class="logo-columns-hr"></div></div>
|
<div class="row action_hide_on_inherit"><div class="col-12"><hr class="logo-columns-hr"></div></div>
|
||||||
</div>
|
</div>
|
||||||
{% elseif key not in aLogoKeys %}
|
{% elseif key not in aLogoKeys %}
|
||||||
{# Prompt R: Questions pane — three columns; open a col-md-4 at the
|
|
||||||
first key and switch column (border-start) whenever the key's
|
|
||||||
column changes. All options in the columns stack as col-12.
|
|
||||||
Prompt Y: keys in none of the three column lists (the per-element
|
|
||||||
font/color/size options moved here) get qCol 0 = "rest": the open
|
|
||||||
column is closed and they render full width below the columns. #}
|
|
||||||
{% set bQuestionsPane = tab.category == 'Questions' %}
|
{% set bQuestionsPane = tab.category == 'Questions' %}
|
||||||
{% if bQuestionsPane %}
|
{% if bQuestionsPane %}
|
||||||
{% set qCol = key in aQuestionsCol1 ? 1 : (key in aQuestionsCol2 ? 2 : (key in aQuestionsCol3 ? 3 : 0)) %}
|
{% set qCol = key in aQuestionsCol1 ? 1 : (key in aQuestionsCol2 ? 2 : (key in aQuestionsCol3 ? 3 : 0)) %}
|
||||||
|
|
@ -456,12 +382,10 @@
|
||||||
{# server-side current value for this option (checked/selected/value) #}
|
{# server-side current value for this option (checked/selected/value) #}
|
||||||
{% set currentValue = bGeneralInherit ? 'inherit' : (aCurrentOptions[key] is defined ? aCurrentOptions[key] : (oParentOptions[key] is defined ? oParentOptions[key] : '')) %}
|
{% set currentValue = bGeneralInherit ? 'inherit' : (aCurrentOptions[key] is defined ? aCurrentOptions[key] : (oParentOptions[key] is defined ? oParentOptions[key] : '')) %}
|
||||||
{# parent != '': this field is only visible when the parent option's value
|
{# parent != '': this field is only visible when the parent option's value
|
||||||
is one of the show-values (default "on"; Prompt R: e.g. "box|top" for
|
is one of the show-values (default "on"; see aShowIfValues). options.js toggles
|
||||||
questionborder, see aShowIfValues). options.js toggles
|
|
||||||
.option-visibility via data-show-if-parent/data-show-if-value;
|
.option-visibility via data-show-if-parent/data-show-if-value;
|
||||||
the field itself is additionally disabled via data-parent/selector_radio_childfield #}
|
the field itself is additionally disabled via data-parent/selector_radio_childfield #}
|
||||||
{# Prompt Q (multi-value since Prompt R, dropdown parents since Prompt U):
|
{# server-side INITIAL visibility — when the parent is a buttons group
|
||||||
server-side INITIAL visibility — when the parent is a buttons group
|
|
||||||
or a dropdown (e.g. <el>textcolorcustom with parent <el>textcolor,
|
or a dropdown (e.g. <el>textcolorcustom with parent <el>textcolor,
|
||||||
show-value "other"), add d-none at render time unless the parent's
|
show-value "other"), add d-none at render time unless the parent's
|
||||||
current value is IN the show-value list. Same source of truth as
|
current value is IN the show-value list. Same source of truth as
|
||||||
|
|
@ -482,17 +406,13 @@
|
||||||
{% if attr.parent != '' %}data-show-if-parent="{{ attr.parent }}" data-show-if-value="{{ showIfValues }}"{% endif %}>
|
{% if attr.parent != '' %}data-show-if-parent="{{ attr.parent }}" data-show-if-value="{{ showIfValues }}"{% endif %}>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
{# label ALWAYS above the control, for every type EXCEPT checkbox
|
{# label ALWAYS above the control, for every type EXCEPT checkbox
|
||||||
(Prompt G; Prompt W: checkboxes carry their label to the RIGHT
|
(checkboxes carry their label to the RIGHT
|
||||||
of the box, rendered in the checkbox branch below) #}
|
of the box, rendered in the checkbox branch below) #}
|
||||||
{% if attr.type != 'checkbox' %}
|
{% if attr.type != 'checkbox' %}
|
||||||
<label for="simple_edit_options_{{ key }}" id="lbl_simple_edit_options_{{ key }}" class="form-label">{{ gT(attr.title) }}</label>
|
<label for="simple_edit_options_{{ key }}" id="lbl_simple_edit_options_{{ key }}" class="form-label">{{ gT(attr.title) }}</label>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if key == 'headersticky' %}
|
{% if key == 'headersticky' %}
|
||||||
{# Prompt L: the master switch is rendered as a STATIC LABEL only
|
|
||||||
(the generic form-label above); no input. The key stays in
|
|
||||||
config.xml/DB for compat, but sticky behaviour is governed
|
|
||||||
solely by the three headersticky* checkboxes below. #}
|
|
||||||
{% elseif attr.type == 'buttons' %}
|
{% elseif attr.type == 'buttons' %}
|
||||||
{# buttons type: one radio per value of options="a|b", labels from optionlabels="A|B" #}
|
{# buttons type: one radio per value of options="a|b", labels from optionlabels="A|B" #}
|
||||||
{% set optValues = attr.options|split('|') %}
|
{% set optValues = attr.options|split('|') %}
|
||||||
|
|
@ -516,7 +436,7 @@
|
||||||
|
|
||||||
{% elseif attr.type == 'checkbox' %}
|
{% elseif attr.type == 'checkbox' %}
|
||||||
{# checkbox: checked = "on", unchecked = "off". EXCEPTION to the
|
{# checkbox: checked = "on", unchecked = "off". EXCEPTION to the
|
||||||
label-above rule (Prompt W): for checkboxes the label stands to
|
label-above rule: for checkboxes the label stands to
|
||||||
the RIGHT of the box (classic .form-check with the label after
|
the RIGHT of the box (classic .form-check with the label after
|
||||||
the input) — so the generic form-label at the top of this block
|
the input) — so the generic form-label at the top of this block
|
||||||
is skipped for checkboxes and the label is rendered here with
|
is skipped for checkboxes and the label is rendered here with
|
||||||
|
|
@ -626,8 +546,6 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if tab.category == 'Images' %}</div>{% endif %}
|
{% if tab.category == 'Images' %}</div>{% endif %}
|
||||||
{% if tab.category == 'Questions' and qLastCol > 0 %}</div>{% endif %}
|
{% if tab.category == 'Questions' and qLastCol > 0 %}</div>{% endif %}
|
||||||
{# Prompt U: close the Fonts pane's open slot container (every non-rest
|
|
||||||
slot has exactly two open divs: row + col) #}
|
|
||||||
{# close an open slot container at the end of a Fonts/Top-of-page pane
|
{# 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) #}
|
(every non-logo, non-rest slot has exactly two open divs: row + col) #}
|
||||||
{% if (tab.category == 'Fonts' or tab.id == 'top-of-page') and fLastSlot != 0 and fLastSlot != 'rest' and fLastSlot != 'logo' %}</div></div>{% endif %}
|
{% if (tab.category == 'Fonts' or tab.id == 'top-of-page') and fLastSlot != 0 and fLastSlot != 'rest' and fLastSlot != 'logo' %}</div></div>{% endif %}
|
||||||
|
|
@ -680,7 +598,7 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{# HOIST TABS (Prompt D): with optionspage=custom, core renders this whole page inside
|
{# HOIST TABS: with optionspage=custom, core renders this whole page inside
|
||||||
one outer "Simple options" tab (ul#theme-options-tabs > li > #simple). Move our tab
|
one outer "Simple options" tab (ul#theme-options-tabs > li > #simple). Move our tab
|
||||||
buttons into the outer tab bar, our panes into the outer .tab-content and everything
|
buttons into the outer tab bar, our panes into the outer .tab-content and everything
|
||||||
else (spinner, inherit row, hr) above the outer tab bar, then drop the #simple
|
else (spinner, inherit row, hr) above the outer tab bar, then drop the #simple
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue