Tab 'Fonts' is renamed to 'Fonts and colors' and gets a dedicated layout: top row (col 1: font, fontcolor, fontsize; col 2: primarycolor + new secondarycolor; col 3 empty), an hr, then one combo row per element (header, progressbar, questiontitle, answers, grouptitle, groupdescription, buttons) with col 1 = existing <el>font fontselect, col 2 = new <el>textcolor dropdown (default|primary|secondary|other), col 3 = new <el>textcolorcustom colorpicker, visible only when mode is 'other' (parent show-value via aShowIfValues, server-side initial d-none, options.js updateVisibilityByParent/updateChild now handle select parents, multi-value aware; font's self-parent removed from config.xml). config.xml: fontcolor/primarycolor moved from Colors to Fonts (retitled 'Default font color (body text)' / 'Primary color'), secondarycolor added (default #888888), 14 per-element color keys added with dropdownoptions. Views emit the per-element color as inline style (default->fontcolor, primary->primarycolor, secondary->secondarycolor, other->custom picker). Colors tab now only holds sliderhandlecolor + privacybackgroundcolor (final Colors layout = Prompt T, still open). Variants rebuilt (defensie, erasmus, example respondage_respondage) — no unknown-key failures; theme reset in LS-admin still owner action. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
70 lines
4 KiB
Twig
70 lines
4 KiB
Twig
{#
|
|
LimeSurvey
|
|
Copyright (C) 2007-2026 The LimeSurvey Project Team
|
|
All rights reserved.
|
|
License: GNU/GPL License v2 or later, see LICENSE.php
|
|
LimeSurvey is free software. This version may have been modified pursuant
|
|
to the GNU General Public License, and as distributed it includes or
|
|
is derivative of works licensed under the GNU General Public License or
|
|
other free or open source software licenses.
|
|
See COPYRIGHT.php for copyright notices and details.
|
|
|
|
|
|
|
|
(¯`·._.·(¯`·._.· Navigator ·._.·´¯)·._.·´¯)
|
|
|
|
Render the navigator: Previous, Next, Submit, Load, Save
|
|
All needed datas are inside aSurveyInfo.aNavigator
|
|
If you want to see what is available in aNavigator, turn debug mode on in application/config.php, and move out of comments the following line:
|
|
{{ dump(aSurveyInfo.aNavigator) }}
|
|
#}
|
|
|
|
{# create a shortcut for aSurveyInfo.aNavigator #}
|
|
{% set aNavigator = aSurveyInfo.aNavigator %}
|
|
|
|
{# THEME ADDITION: font for the navigator buttons (Previous/Next/Submit) — config.xml
|
|
option "buttonsfont", type fontselect. The class goes on the navigator container,
|
|
the buttons inherit it. "base" = same as the base font: no extra class. #}
|
|
{% set sButtonsFont = aSurveyInfo.options.buttonsfont|default('base') %}
|
|
{# Prompt U: per-element text color — mode default -> fontcolor, primary ->
|
|
primarycolor, secondary -> secondarycolor, other -> buttonstextcolorcustom.
|
|
Emitted as an inline style on the element below. #}
|
|
{% set sButtonsTextColorMode = aSurveyInfo.options.buttonstextcolor|default('default') %}
|
|
{% set sButtonsTextColor = sButtonsTextColorMode == 'primary' ? aSurveyInfo.options.primarycolor|default('') : (sButtonsTextColorMode == 'secondary' ? aSurveyInfo.options.secondarycolor|default('') : (sButtonsTextColorMode == 'other' ? aSurveyInfo.options.buttonstextcolorcustom|default('') : aSurveyInfo.options.fontcolor|default(''))) %}
|
|
|
|
<!-- PRESENT THE NAVIGATOR -->
|
|
<div class="{{ aSurveyInfo.class.navigatorcontainer }} row navigator space-col {% if sButtonsFont != 'base' %}font-{{ sButtonsFont }}{% endif %}" {% if sButtonsTextColor != '' %}style="color: {{ sButtonsTextColor }};"{% endif %} id="{{ aSurveyInfo.id.navigatorcontainer }}" {{ aSurveyInfo.attr.navigatorcontainer }}>
|
|
|
|
<!-- Previous button container -->
|
|
<div class="{{ aSurveyInfo.class.navigatorbuttonl }} col-6 text-start" {{ aSurveyInfo.attr.navigatorbuttonl }}>
|
|
|
|
{# Previous button must be set to ON in survey settings (and it's not shown in first page, in All in One survey mode, etc) #}
|
|
{% if (not aSurveyInfo.popupPreview) and aNavigator.aMovePrev.show %}
|
|
<!-- Button previous -->
|
|
<button {{ aSurveyInfo.attr.navigatorbuttonprev }} accesskey="p" class=" {{ aNavigator.disabled }} {{ aSurveyInfo.class.navigatorbuttonprev }} btn btn-lg btn-outline-secondary " >
|
|
{{ gT("Previous") }}
|
|
</button>
|
|
{% endif %}
|
|
</div>
|
|
<div class="{{ aSurveyInfo.class.navigatorbuttonr }} col-6 text-end">
|
|
|
|
{# Next button is not always shown (last page, all in one mode, etc) #}
|
|
{% if (not aSurveyInfo.popupPreview) and aNavigator.aMoveNext.show %}
|
|
|
|
{# On last page, Next button become submit button. #}
|
|
{% if aNavigator.aMoveNext.value == "movesubmit" %}
|
|
<!-- Button submit -->
|
|
<button {{ aSurveyInfo.attr.navigatorbuttonsubmit }} accesskey="n" class=" {{ aNavigator.disabled }} {{ aSurveyInfo.class.navigatorbuttonsubmit }} btn btn-lg btn-primary">
|
|
{{ gT("Submit") }}
|
|
</button>
|
|
{% else %}
|
|
<!-- Button Next -->
|
|
<button {{ aSurveyInfo.attr.navigatorbuttonnext }} accesskey="n" class=" {{ aNavigator.disabled }} {{ aSurveyInfo.class.navigatorbuttonnext }} btn btn-lg btn-primary " >
|
|
{{ gT("Next") }}
|
|
</button>
|
|
{% endif %}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
<!-- Extra navigator part -->
|
|
{{ include('./subviews/navigation/navigator_complement.twig') }}
|