- {% set qLastCol = 0 %}
+ {% set qLastSlot = '' %}
{% set fLastSlot = 0 %}
{% for key in aTabKeys %}
{% set attr = aOptionAttributes.optionAttributes[key] ?? null %}
@@ -667,18 +681,31 @@
{% elseif key not in aLogoKeys %}
{% set bQuestionsPane = tab.category == 'Questions' %}
{% if bQuestionsPane %}
- {# row 179: qCol 4 = the "Overall question" section (one
- col-md-6), leaving it emits a full-width hr; border-start
- only between the grid columns 1-3 #}
- {% set qCol = key in aQuestionsOverall ? 4 : (key in aQuestionsCol1 ? 1 : (key in aQuestionsCol2 ? 2 : (key in aQuestionsCol3 ? 3 : 0))) %}
- {% if qCol != qLastCol %}
- {% if qLastCol == 4 %}
- {% elseif qCol > 0 %}
-
+ {# row 178 plan: slot "section:colIndex" from aQSlots, legacy
+ columns as "legacy:N", full-width rest as "rest". On a
+ section change: close the column (+ section row), emit the
+ full-width hr after the finished section, then the new h3
+ and section row. border-start only between columns of the
+ same section/legacy grid #}
+ {% set qSlot = aQSlots[key] ?? (key in aQuestionsCol1 ? 'legacy:1' : (key in aQuestionsCol2 ? 'legacy:2' : (key in aQuestionsCol3 ? 'legacy:3' : 'rest'))) %}
+ {% if qSlot != qLastSlot %}
+ {% set qSec = qSlot|split(':')[0] %}{% set qCi = qSlot|split(':')[1] %}
+ {% set lSec = qLastSlot|split(':')[0] %}{% set lCi = qLastSlot|split(':')[1] %}
+ {% if qLastSlot != '' and qLastSlot != 'rest' %}
{% endif %}
+ {% if qSec != lSec %}
+ {% if lSec != '' and lSec != 'rest' and lSec != 'legacy' %}
{% endif %}
+ {% if lSec != '' and lSec != 'rest' and lSec != 'legacy' %}
{% endif %}
+ {% if qSec != 'rest' and qSec != 'legacy' %}
+ {% set qSecDef = null %}{% for s in aQSections %}{% if s.id == qSec %}{% set qSecDef = s %}{% endif %}{% endfor %}
+
+
+ {% endif %}
{% endif %}
- {% set qLastCol = qCol %}
+ {% if qSec != 'rest' %}
+ {% if qSec == 'legacy' %}{% set qColClass = 'col-md-4' %}{% else %}{% set qSecDef = null %}{% for s in aQSections %}{% if s.id == qSec %}{% set qSecDef = s %}{% endif %}{% endfor %}{% set qColClass = qSecDef.colClass %}{% endif %}
+
+ {% endif %}
+ {% set qLastSlot = qSlot %}
{% endif %}
{% endif %}
{# row 163: inside a slot pane (Questions columns, Header, Page
@@ -931,7 +958,10 @@
{% elseif fLastSlot == 'bg1' %}
{% endif %}
{% endif %}
- {% if tab.category == 'Questions' and qLastCol == 4 %}
{% elseif tab.category == 'Questions' and qLastCol > 0 %}{% endif %}
+ {% if tab.category == 'Questions' and qLastSlot != '' and qLastSlot != 'rest' %}
+ {% set lSecEnd = qLastSlot|split(':')[0] %}
+ {% if lSecEnd != 'legacy' %}{% else %}{% endif %}
+ {% endif %}
{# row 157: close the open Groups column (each groups slot opens exactly
one div: the col-md-6) #}
{% if tab.id == 'groups' and fLastSlot in ['g1', 'g2'] %}{% endif %}
diff --git a/variants/build.php b/variants/build.php
index 831c40e..5e01b7d 100644
--- a/variants/build.php
+++ b/variants/build.php
@@ -271,13 +271,14 @@ foreach ($logoPositions as $pos) {
// --- Row 115/135/149/157 migration: the color-chooser options (navbarfontcolor,
// headerbackgroundcolor, progressbarcolor, progressbarbackgroundcolor,
// progressbarfontcolor, bodybackgroundcolor, grouptitletextcolor,
-// groupdescriptiontextcolor) became mode dropdowns (default|defaultbackgroundcolor|
-// color1|color2|color3|other) with a