Commit 4d956a2f authored by Chenu Denis's avatar Chenu Denis
Browse files

[fix][api] Update to 3.18 LimeSurvey API

- Hope it don't broke on pre 3.18 …
parent efeeb260
......@@ -16,7 +16,7 @@
<supportUrl>https://extensions.sondages.pro/themes-and-templates/skelvanilla-a11y-and-usuability/</supportUrl>
<copyright>Copyright (C) 2018-2019 Denis Chenu / Sondages Pro</copyright>
<license>GNU General Public License version 3 or later</license>
<version>5.1.2</version>
<version>6.0.0</version>
<apiVersion>3</apiVersion>
<description><![CDATA[<strong>LimeSurvey Bootstrap Vanilla Survey Theme with Accessibility and Options</strong><br>Base on vanilla theme, usage of more aria, fix some role and aria from core.<br>Allow usage of a lot of variations, list of variation can be updated. Some decoration option using boostrap class.]]></description>
<last_update>2019-10-03 09:50:38</last_update>
......@@ -220,6 +220,7 @@
<template_editor>
<screens>
<question>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Question')}} ]]></screen_title>
<file type="view" role="layout">layout_global.twig</file>
<file type="view" role="subview">./subviews/footer/footer.twig</file>
<file type="view" role="content">./subviews/content/main.twig</file>
......@@ -245,6 +246,7 @@
</question>
<surveylist>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Survey list')}} ]]></screen_title>
<file type="view" role="layout">layout_survey_list.twig</file>
<file type="view" role="subview">./subviews/footer/footer.twig</file>
<file type="view" role="subview">./subviews/content/mainrow.twig</file>
......@@ -261,6 +263,7 @@
</surveylist>
<welcome>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Welcome')}} ]]></screen_title>
<file type="view" role="layout">layout_global.twig</file>
<file type="view" role="subview">./subviews/footer/footer.twig</file>
<file type="view" role="subview">./subviews/content/mainrow.twig</file>
......@@ -284,6 +287,7 @@
</welcome>
<completed>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Completed')}} ]]></screen_title>
<file type="view" role="layout">layout_global.twig</file>
<file type="view" role="subview">./subviews/footer/footer.twig</file>
<file type="view" role="subview">./subviews/content/mainrow.twig</file>
......@@ -297,6 +301,7 @@
</completed>
<assessments>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Assessments')}} ]]></screen_title>
<file type="view" role="layout">layout_global.twig</file>
<file type="view" role="subview">./subviews/footer/footer.twig</file>
<file type="view" role="subview">./subviews/content/mainrow.twig</file>
......@@ -311,6 +316,7 @@
</assessments>
<error>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Error')}} ]]></screen_title>
<file type="view" role="layout">layout_errors.twig</file>
<file type="view" role="subview">./subviews/footer/footer.twig</file>
<file type="view" role="subview">./subviews/messages/warnings.twig</file>
......@@ -318,6 +324,7 @@
</error>
<clearall>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Clear all')}} ]]></screen_title>
<file type="view" role="layout">layout_global.twig</file>
<file type="view" role="subview">./subviews/footer/footer.twig</file>
<file type="view" role="subview">./subviews/content/mainrow.twig</file>
......@@ -331,6 +338,7 @@
</clearall>
<load>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Load')}} ]]></screen_title>
<file type="view" role="layout">layout_global.twig</file>
<file type="view" role="subview">./subviews/footer/footer.twig</file>
<file type="view" role="subview">./subviews/content/mainrow.twig</file>
......@@ -344,6 +352,7 @@
</load>
<save>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Save')}} ]]></screen_title>
<file type="view" role="layout">layout_global.twig</file>
<file type="view" role="subview">./subviews/footer/footer.twig</file>
<file type="view" role="subview">./subviews/content/mainrow.twig</file>
......@@ -357,6 +366,7 @@
</save>
<register>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Registration')}} ]]></screen_title>
<file type="view" role="layout">layout_global.twig</file>
<file type="view" role="subview">./subviews/footer/footer.twig</file>
<file type="view" role="content">./subviews/content/register.twig</file>
......@@ -374,6 +384,7 @@
</register>
<printanswers>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Print answers')}} ]]></screen_title>
<file type="view" role="layout">layout_printanswers.twig</file>
<file type="view" role="subview">./subviews/content/outerframe.twig</file>
<file type="view" role="content">./subviews/content/printanswers.twig</file>
......@@ -387,10 +398,19 @@
</printanswers>
<pdf>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('PDF')}} ]]></screen_title>
<file type="view" role="layout">layout_print.twig</file>
</pdf>
<quotas>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Quotas exceeded')}} ]]></screen_title>
<file type="view" role="layout">layout_global.twig</file>
<file type="view" role="content">./subviews/content/quotas.twig</file>
<file type="view" role="subview">./subviews/header/start_form.twig</file>
</quotas>
<navigation>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Navigation')}} ]]></screen_title>
<file type="view" role="layout">layout_global.twig</file>
<file type="view" role="subview">./subviews/footer/footer.twig</file>
<file type="view" role="content">./subviews/content/main.twig</file>
......@@ -414,7 +434,64 @@
<file type="css">./css/custom.css</file>
<file type="js">./scripts/custom.js</file>
</navigation>
<token>
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Token')}} ]]></screen_title>
<file type="view" role="layout">layout_user_forms.twig</file>
<file type="view" role="content">./subviews/content/userforms.twig</file>
<file type="view" role="subview">./subviews/logincomponents/token.twig</file>
<file type="view" role="subview">./subviews/logincomponents/captcha.twig</file>
</token>
</screens>
<!-- Data for preview in Theme Editor and Twig Cache command line generator -->
<default_data>
<survey type="core">
<name type="data" twig="on"><![CDATA[ {{ gT("Template Sample") }} ]]></name>
<description type="data" twig="on"><![CDATA[<p>{{ gT('This is a sample survey description. It could be quite long.') }}</p><p>{{ gT("But this one isn't.") }}<p>]]></description>
<welcome type="data" twig="on"><![CDATA[<p>{{ gT('Welcome to this sample survey')}} <p> <p> {{ gT('You should have a great time doing this') }} <p> ]]></welcome>
<therearexquestions type="data" twig="on"><![CDATA[gT('There is 2 question in this survey'])]]></therearexquestions>
<surveyls_url type="data" twig="on">"https://www.sondages.pro"</surveyls_url>
<surveyls_urldescription type="data" twig="on"><![CDATA[ gT("Some URL description") ]]></surveyls_urldescription>
<showsurveypolicynotice>2</showsurveypolicynotice>
<datasecurity_notice_label type="data" twig="on"><![CDATA[ <a href='#data-security-modal-' data-toggle='collapse'> {{ gT('Show Policy') }} </a> ]]></datasecurity_notice_label>
<datasecurity_notice type="data" twig="on"><![CDATA[ {{ gT("Here your data security notice") }} ]]></datasecurity_notice>
</survey>
<group type="core">
<name type="data" twig="on"><![CDATA[ {{ gT("Group 1: The first lot of questions") }} ]]></name>
<description type="data" twig="on"><![CDATA[ {{ gT("This group description is fairly vacuous, but quite important.") }} ]]></description>
</group>
<question_1 type="core">
<code type="data" >'Q1 '</code>
<text type="data" twig="on"><![CDATA[ {{ gT("How many roads must a man walk down?") }} ]]></text>
<valid_message type="data" twig="on"><![CDATA[ <div id="vmsg_4496_num_answers" class="em_num_answers emtip error"><span class="fa fa-exclamation-circle" aria-hidden="true"></span> {{ gT("Choose one of the following answers") }} </div> ]]></valid_message>
</question_1>
<question_2 type="core">
<code type="data" >'Q2 '</code>
<text type="data" twig="on"><![CDATA[ {{ gT("Please explain something in detail:") }} ]]></text>
<valid_message type="data" twig="on"><![CDATA[<div id="vmsg_4496_num_answers" class="em_num_answers emtip error"><span class="fa fa-exclamation-circle" aria-hidden="true"></span> {{ gT("Hint when response is not valid") }} </div> ]]></valid_message>
</question_2>
<assessments type="core">
<name type="data" twig="on"><![CDATA[ {{ gT("Welcome to the Assessment") }} ]]></name>
<message type="data" twig="on"><![CDATA[ {{ gT("You got {TOTAL} points out of 3 possible points.") }} ]]></message>
</assessments>
<!-- This is an exemple to show you how to add your custom screen in the theme editor with custom values -->
<!-- The name of the array inside aSurveyInfo that feed your twig view is specified as "array-name". If you check quotas.twig, you'll notice the main variable is aSurveyInfo.aQuotas -->
<!-- Notice that the data you pass here are simple. You can't pass complex arrays inside the array, only key => value pairs.-->
<quotas type="custom" arrayName="aQuotas">
<sMessage type="data" twig="on"><![CDATA[ {{ gT("Sorry your responses have exceeded a quota on this survey.") }} ]]></sMessage>
<sUrl type="data">https://sondages.pro</sUrl>
<sUrlDescription type="data" twig="on"><![CDATA[ {{ gT("End url") }} ]]></sUrlDescription>
<bShowNavigator type="data">false</bShowNavigator>
</quotas>
<userforms type="custom" arrayName="aForm">
<sType type="data">token</sType>
</userforms>
</default_data>
</template_editor>
</engine>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment