From 8fad17f56dabf3a1032a7dd6d1c133ab784152b8 Mon Sep 17 00:00:00 2001 From: Tammo ter Hark Date: Thu, 26 Nov 2026 21:03:32 +0100 Subject: [PATCH] fix(options): move the upload facility into column 2 of the Page background tab The "Upload an image" widget (with its scope-dependent help text) now renders inside column 2, under the background image options, instead of full-width at the bottom of the tab. Column 2 carries option-visibility on the backgroundimage switch, so the upload only appears when the background image is on. The full-width hr at the bottom of the pane is removed; the in-column hr in column 1 stays. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- options/options.twig | 89 +++++++++++++++++++++++--------------------- 1 file changed, 46 insertions(+), 43 deletions(-) diff --git a/options/options.twig b/options/options.twig index c037317..d57fe37 100644 --- a/options/options.twig +++ b/options/options.twig @@ -810,9 +810,49 @@ {% endif %} {% endfor %} {% if tab.category == 'Images' %} - {# row 149: close the open Page background column; after col 2 append the empty col 3 #} - {% if fLastSlot == 'bg1' or fLastSlot == 'bg2' %}{% endif %} - {% if fLastSlot == 'bg2' %}
{% endif %} + {# row 149/150: close the open Page background column; after col 2 append + the empty col 3. Row 150: INSIDE col 2, under the image options, the + upload facility + help text — the column div carries option-visibility + on backgroundimage, so the upload only shows when the image is on. + The actual upload form (#upload_frontend) is rendered by themeOptions/update.php #} + {% if fLastSlot == 'bg2' %} +
+
+
+
+ +
+
+ + + +
+
+
+
+
+
+ 0% +
+
+
+
+ {# same translatable, scope-dependent help text as under the upload + widget in the Top of the page tab (rows 140/141) #} +
+
+
{% if bInherit %}{{ gT("Upload here the files for logos and background. You are in the settings for your specific survey now, so files that you upload here are available for this survey only. If you want a file to be available for all surveys, upload it at the global theme settings options page.") }}{% else %}{{ gT("Upload here the files for logos and background. You are in global settings now, so files that you upload here are available for all surveys. If you want a file to be available only for your specific survey, upload it at the theme settings options page for that specific survey.") }}{% endif %}
+
+
+
+
+
+ {% elseif fLastSlot == 'bg1' %} + {% endif %} {% endif %} {% if tab.category == 'Questions' and qLastCol > 0 %}{% endif %} {# close an open slot container at the end of a Fonts/Top-of-page pane @@ -820,46 +860,9 @@ {% if (tab.category == 'Fonts' or tab.id == 'top-of-page') and fLastSlot != 0 and fLastSlot != 'rest' and fLastSlot != 'logo' %}{% endif %} - {% if tab.category == 'Images' %} - {# row 149: full-width horizontal line, then the upload facility full width - with the same scope-dependent help text as in the Top of the page tab #} -

- {# Upload an image; the actual upload form (#upload_frontend) is rendered by themeOptions/update.php #} -
-
-
-
- -
-
- - - -
-
-
-
-
-
- 0% -
-
-
-
- {# row 149: same translatable, scope-dependent help text as under the - upload widget in the Top of the page tab (rows 140/141) #} -
-
-
{% if bInherit %}{{ gT("Upload here the files for logos and background. You are in the settings for your specific survey now, so files that you upload here are available for this survey only. If you want a file to be available for all surveys, upload it at the global theme settings options page.") }}{% else %}{{ gT("Upload here the files for logos and background. You are in global settings now, so files that you upload here are available for all surveys. If you want a file to be available only for your specific survey, upload it at the theme settings options page for that specific survey.") }}{% endif %}
-
-
-
-
- {% endif %} + {# row 150: the upload facility is NOT full-width at the bottom any more — it + lives INSIDE column 2 of the Page background pane (see the end-of-loop + closure above), so it shows/hides together with the image options #} {# Footer at the bottom of every tab: "Proudly developed by [Respondage logo]", linking to https://www.respondage.nl #}