{# 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. (¯`·._.·(¯`·._.· Top Container·._.·´¯)·._.·´¯) This file generates the top container. It's above the form itself, and contains the progress bar. The progress bar is a Bootstrap progress bar. @see: http://getbootstrap.com/components/#progress #} {# do not show if : All in one or is not Y or on aCompleted #} {# THEME ADDITION: per-element font override (config.xml option "progressbarfont", type fontselect). Value "base" = same as the base font: no extra class is put on the element here, it inherits the body font (body gets font-). #} {# S1: sanitize option values at emission (autoescape is OFF) — see security_macros.twig #} {% import './subviews/security_macros.twig' as sec %} {% set sProgressBarFont = aSurveyInfo.options.progressbarfont|default('base') %} {# Prompt U: per-element text color — mode default -> fontcolor, primary -> primarycolor, secondary -> secondarycolor, other -> progressbartextcolorcustom. Emitted as an inline style on the element below. #} {% set sProgressBarTextColorMode = aSurveyInfo.options.progressbartextcolor|default('default') %} {% set sProgressBarTextColor = sProgressBarTextColorMode == 'primary' ? aSurveyInfo.options.primarycolor|default('') : (sProgressBarTextColorMode == 'secondary' ? aSurveyInfo.options.secondarycolor|default('') : (sProgressBarTextColorMode == 'other' ? aSurveyInfo.options.progressbartextcolorcustom|default('') : aSurveyInfo.options.fontcolor|default(''))) %} {% set sProgressBarTextColor = sec.color(sProgressBarTextColor, '') %} {% if aSurveyInfo.showprogress == 'Y' and aSurveyInfo.format != 'A' and not aSurveyInfo.aCompleted %} {% endif %}