-
Notifications
You must be signed in to change notification settings - Fork 987
/
welcome.twig
58 lines (47 loc) · 2.46 KB
/
welcome.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{#
LimeSurvey
Copyright (C) 2007-2017 The LimeSurvey Project Team / Louis Gac
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.
(¯`·._.·(¯`·._.· Welcome page ·._.·´¯)·._.·´¯)
This view is used to render the welcome message in All In One mode.
TODO: use it for other modes too
In this file, you have access to the array aSurveyInfo that contains the datas of the current survey
To see what's inside aSurveyInfo, turn debug mode on and copy the following line to the end of this file:
{{ dump(aSurveyInfo) }}
#}
<!-- Welcome Message -->
<div id="{{ aSurveyInfo.id.welcomecontainer }}" class="{{ aSurveyInfo.class.welcomecontainer }}" {{ aSurveyInfo.attr.welcomecontainer }}>
<!-- Survey Name -->
<h1 class="{{ aSurveyInfo.class.surveyname }} text-center" {{ aSurveyInfo.attr.surveyname }} >
{{ processString(aSurveyInfo.name,1) }}
</h1>
<!-- Survey description -->
<div class="{{ aSurveyInfo.class.description }} text-info text-center" {{ aSurveyInfo.attr.description }}>
{{ processString(aSurveyInfo.description,1) }}
</div>
<!-- Welcome text -->
<div class="{{ aSurveyInfo.class.welcome }} h4 text-primary" {{ aSurveyInfo.attr.welcome }}>
{{ processString(aSurveyInfo.welcome,1) }}
</div>
<!-- Question count -->
<div class="{{ aSurveyInfo.class.questioncount }} text-muted" {{ aSurveyInfo.attr.questioncount }}>
<div class='{{ aSurveyInfo.class.questioncounttext }}' {{ aSurveyInfo.attr.questioncounttext }}>
{# If survey creator set "show x questions" in survey setting #}
{% if aSurveyInfo.bShowxquestions == true %}
{% if aSurveyInfo.iTotalquestions < 1 %}
{{ gT("There are no questions in this survey.") }}
{% elseif aSurveyInfo.iTotalquestions == 1 %}
{{ gT("There is 1 question in this survey.") }}
{% else %}
{{ gT("There are %s questions in this survey.") | format(aSurveyInfo.iTotalquestions) }}
{% endif %}
{% endif %}
</div>
</div>
</div>