First commit after long time, too much to describe (sorry)
This commit is contained in:
parent
c5f5136848
commit
0508dc1f6f
11 changed files with 1166 additions and 1166 deletions
|
|
@ -1 +1 @@
|
||||||
This is a LimeSurvey version 6 theme as an extension of the Vanilla base theme.
|
This is a LimeSurvey version 6 theme as an extension of the Vanilla base theme.
|
||||||
|
|
|
||||||
854
config.xml
854
config.xml
|
|
@ -1,427 +1,427 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!--
|
<!--
|
||||||
(¯`·._.·(¯`·._.· Vanilla Theme Manifest ·._.·´¯)·._.·´¯)
|
(¯`·._.·(¯`·._.· Vanilla Theme Manifest ·._.·´¯)·._.·´¯)
|
||||||
Base configuration for Vanilla Theme.
|
Base configuration for Vanilla Theme.
|
||||||
The content of this file is imported into DB when you install the template.
|
The content of this file is imported into DB when you install the template.
|
||||||
-->
|
-->
|
||||||
<config>
|
<config>
|
||||||
<!-- Those metadata are displayed in the theme configuration page. -->
|
<!-- Those metadata are displayed in the theme configuration page. -->
|
||||||
<metadata>
|
<metadata>
|
||||||
<name>respondage_vanilla</name>
|
<name>respondage_vanilla</name>
|
||||||
<title>Respondage Vanilla</title>
|
<title>Respondage Vanilla</title>
|
||||||
<type>theme</type>
|
<type>theme</type>
|
||||||
<creationDate>2024-04-19 12:03</creationDate>
|
<creationDate>2024-04-19 12:03</creationDate>
|
||||||
<author>admin</author>
|
<author>admin</author>
|
||||||
<authorEmail>tammo.terhark@respondage.nl</authorEmail>
|
<authorEmail>tammo.terhark@respondage.nl</authorEmail>
|
||||||
<authorUrl>http://www.respondage.nl</authorUrl>
|
<authorUrl>http://www.respondage.nl</authorUrl>
|
||||||
<copyright>Copyright (C) 2026 Respondage. All rights reserved.</copyright>
|
<copyright>Copyright (C) 2026 Respondage. All rights reserved.</copyright>
|
||||||
<license>GNU General Public License version 2 or later</license>
|
<license>GNU General Public License version 2 or later</license>
|
||||||
<version>3.0.1</version>
|
<version>3.0.1</version>
|
||||||
<apiVersion>3</apiVersion>
|
<apiVersion>3</apiVersion>
|
||||||
<description><![CDATA[<strong>Respondage Theme based on core theme Vanilla</strong><br>A clean and simple base that was used by a certain theme developer to create a really clean theme.]]></description>
|
<description><![CDATA[<strong>Respondage Theme based on core theme Vanilla</strong><br>A clean and simple base that was used by a certain theme developer to create a really clean theme.]]></description>
|
||||||
<lastUpdate>2026-06-10 12:00:00</lastUpdate>
|
<lastUpdate>2026-06-10 12:00:00</lastUpdate>
|
||||||
<extends>vanilla</extends>
|
<extends>vanilla</extends>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
|
||||||
<compatibility>
|
<compatibility>
|
||||||
<version>6.0</version>
|
<version>6.0</version>
|
||||||
</compatibility>
|
</compatibility>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Here the list of the css/js files to add to the template package.
|
Here the list of the css/js files to add to the template package.
|
||||||
About packages in Yii: http://www.yiiframework.com/doc/api/1.1/CClientScript#packages-detail
|
About packages in Yii: http://www.yiiframework.com/doc/api/1.1/CClientScript#packages-detail
|
||||||
NOTE: The "add" tag also count as a "replace" tag.
|
NOTE: The "add" tag also count as a "replace" tag.
|
||||||
Eg: You can't just "add" a file in the extended theme with the same name as a file here. It will always "replace" it. You must use a diffrent file name.
|
Eg: You can't just "add" a file in the extended theme with the same name as a file here. It will always "replace" it. You must use a diffrent file name.
|
||||||
Eg: Vanilla manifest already has "<add>css/theme.css</add>". So if you use "<add>css/theme.css</add>" in an extended theme, it will replace the vanilla css/theme.css
|
Eg: Vanilla manifest already has "<add>css/theme.css</add>". So if you use "<add>css/theme.css</add>" in an extended theme, it will replace the vanilla css/theme.css
|
||||||
NOTE: If an extended theme, if you don't change a file that is defined here, you don't need to add it again.
|
NOTE: If an extended theme, if you don't change a file that is defined here, you don't need to add it again.
|
||||||
Eg: css/ajaxify.css is already added in vanilla. Nor fruity nor bootswatch modify it, so ne need to add / replace it in fruity or bootswatch.
|
Eg: css/ajaxify.css is already added in vanilla. Nor fruity nor bootswatch modify it, so ne need to add / replace it in fruity or bootswatch.
|
||||||
Even if no mention at all about "css/ajaxify.css" is theme extending vanilla, it will still be added because it's added here
|
Even if no mention at all about "css/ajaxify.css" is theme extending vanilla, it will still be added because it's added here
|
||||||
NOTE: To easy test changes in config file, you can force the use of the XML file rather than DB. To do so, turn debug mode on, and in config.php config array, on bottom of debug mode, add:
|
NOTE: To easy test changes in config file, you can force the use of the XML file rather than DB. To do so, turn debug mode on, and in config.php config array, on bottom of debug mode, add:
|
||||||
'force_xmlsettings_for_survey_rendering' => true,
|
'force_xmlsettings_for_survey_rendering' => true,
|
||||||
Then, you will not need anymore to reset your theme each time you change the config file.
|
Then, you will not need anymore to reset your theme each time you change the config file.
|
||||||
But, once turning the setting off, You will still must reset the theme to the changes are pushed to DB
|
But, once turning the setting off, You will still must reset the theme to the changes are pushed to DB
|
||||||
-->
|
-->
|
||||||
<files>
|
<files>
|
||||||
<css>
|
<css>
|
||||||
<add>css/base.css</add>
|
<add>css/base.css</add>
|
||||||
<add>css/theme.css</add>
|
<add>css/theme.css</add>
|
||||||
<add>css/noTablesOnMobile.css</add>
|
<add>css/noTablesOnMobile.css</add>
|
||||||
<add>css/plain.css</add>
|
<add>css/plain.css</add>
|
||||||
<add>css/custom.css</add>
|
<add>css/custom.css</add>
|
||||||
</css>
|
</css>
|
||||||
<js>
|
<js>
|
||||||
<add>scripts/theme.js</add>
|
<add>scripts/theme.js</add>
|
||||||
<add>scripts/custom.js</add>
|
<add>scripts/custom.js</add>
|
||||||
</js>
|
</js>
|
||||||
<print_css>
|
<print_css>
|
||||||
<add>css/print_theme.css</add>
|
<add>css/print_theme.css</add>
|
||||||
</print_css>
|
</print_css>
|
||||||
</files>
|
</files>
|
||||||
|
|
||||||
<!-- You can add here any option you want. It will be available in twig file via aSurveyInfo.options.youroptionname -->
|
<!-- You can add here any option you want. It will be available in twig file via aSurveyInfo.options.youroptionname -->
|
||||||
<options>
|
<options>
|
||||||
<hideprivacyinfo type="buttons" category="Simple options" width="4" title="Hide privacy info" options="on|off" optionlabels="Yes|No">off</hideprivacyinfo>
|
<hideprivacyinfo type="buttons" category="Simple options" width="4" title="Hide privacy info" options="on|off" optionlabels="Yes|No">off</hideprivacyinfo>
|
||||||
<container type="buttons" category="Simple options" width="4" title="Survey container" options="on|off" optionlabels="Yes|No">on</container>
|
<container type="buttons" category="Simple options" width="4" title="Survey container" options="on|off" optionlabels="Yes|No">on</container>
|
||||||
<showpopups type="buttons" category="Simple options" width="4" title="Show popups" options="1|0|-1" optionlabels="Popup|On page|No">1</showpopups>
|
<showpopups type="buttons" category="Simple options" width="4" title="Show popups" options="1|0|-1" optionlabels="Popup|On page|No">1</showpopups>
|
||||||
<showclearall type="buttons" category="Simple options" width="4" title="Show Clear All button" options="on|off" optionlabels="Yes|No">off</showclearall>
|
<showclearall type="buttons" category="Simple options" width="4" title="Show Clear All button" options="on|off" optionlabels="Yes|No">off</showclearall>
|
||||||
<fixnumauto type="buttons" category="Simple options" width="4" title="Fix automatically numeric value" options="enable|partial|disable" optionlabels="Yes|For expression|No">enable</fixnumauto>
|
<fixnumauto type="buttons" category="Simple options" width="4" title="Fix automatically numeric value" options="enable|partial|disable" optionlabels="Yes|For expression|No">enable</fixnumauto>
|
||||||
|
|
||||||
<!-- Images -->
|
<!-- Images -->
|
||||||
<brandlogo type="buttons" category="Images" width="2" title="Display main logo" options="on|off" optionlabels="Yes|No">on</brandlogo>
|
<brandlogo type="buttons" category="Images" width="2" title="Display main logo" options="on|off" optionlabels="Yes|No">on</brandlogo>
|
||||||
<brandlogofile type="imagefile" category="Images" width="7" title="Main logo file" parent="brandlogo">./files/logo.png</brandlogofile>
|
<brandlogofile type="imagefile" category="Images" width="7" title="Main logo file" parent="brandlogo">./files/logo.png</brandlogofile>
|
||||||
<secondlogo type="buttons" category="Images" width="2" title="Display second logo" options="on|off" optionlabels="Yes|No">on</secondlogo>
|
<secondlogo type="buttons" category="Images" width="2" title="Display second logo" options="on|off" optionlabels="Yes|No">on</secondlogo>
|
||||||
<secondlogofile type="imagefile" category="Images" width="7" title="Second logo file" parent="secondlogo">./files/logo.png</secondlogofile>
|
<secondlogofile type="imagefile" category="Images" width="7" title="Second logo file" parent="secondlogo">./files/logo.png</secondlogofile>
|
||||||
<backgroundimage type="buttons" category="Images" width="4" title="Background image (behind body of page)" options="on|off" optionlabels="Yes|No">on</backgroundimage>
|
<backgroundimage type="buttons" category="Images" width="4" title="Background image (behind body of page)" options="on|off" optionlabels="Yes|No">on</backgroundimage>
|
||||||
<backgroundimagefixed type="buttons" category="Images" width="4" title="Background image fixed or scroll" options="fixed|scroll" optionlabels="Fixed|Scroll">scroll</backgroundimagefixed>
|
<backgroundimagefixed type="buttons" category="Images" width="4" title="Background image fixed or scroll" options="fixed|scroll" optionlabels="Fixed|Scroll">scroll</backgroundimagefixed>
|
||||||
<backgroundimagedisplay type="buttons" category="Images" width="4" title="Background image display" options="tile|cover" optionlabels="Tile|Cover">tile</backgroundimagedisplay>
|
<backgroundimagedisplay type="buttons" category="Images" width="4" title="Background image display" options="tile|cover" optionlabels="Tile|Cover">tile</backgroundimagedisplay>
|
||||||
<backgroundimagefile type="imagefile" category="Images" width="12" title="Background image file" parent="backgroundimage">./files/tiledtexture.png</backgroundimagefile>
|
<backgroundimagefile type="imagefile" category="Images" width="12" title="Background image file" parent="backgroundimage">./files/tiledtexture.png</backgroundimagefile>
|
||||||
<bodybackgroundcolor type="colorpicker" category="Images" width="8" title="Overall background color (when there is no picture in the background)" options="on|off" optionlabels="Yes|No">#dddddd</bodybackgroundcolor>
|
<bodybackgroundcolor type="colorpicker" category="Images" width="8" title="Overall background color (when there is no picture in the background)" options="on|off" optionlabels="Yes|No">#dddddd</bodybackgroundcolor>
|
||||||
|
|
||||||
<!-- Questions -->
|
<!-- Questions -->
|
||||||
<questiontitlebackgroundcolor type="colorpicker" category="Questions" width="6" title="Question title background color" options="on|off" optionlabels="Yes|No">#5e1c64</questiontitlebackgroundcolor>
|
<questiontitlebackgroundcolor type="colorpicker" category="Questions" width="6" title="Question title background color" options="on|off" optionlabels="Yes|No">#5e1c64</questiontitlebackgroundcolor>
|
||||||
<questiontitlefontcolor type="colorpicker" category="Questions" width="6" title="Question title font color" options="on|off" optionlabels="Yes|No">#ffffff</questiontitlefontcolor>
|
<questiontitlefontcolor type="colorpicker" category="Questions" width="6" title="Question title font color" options="on|off" optionlabels="Yes|No">#ffffff</questiontitlefontcolor>
|
||||||
<questionbackgroundcolor type="colorpicker" category="Questions" width="6" title="Question background color (not title)" options="on|off" optionlabels="Yes|No">#ffffff</questionbackgroundcolor>
|
<questionbackgroundcolor type="colorpicker" category="Questions" width="6" title="Question background color (not title)" options="on|off" optionlabels="Yes|No">#ffffff</questionbackgroundcolor>
|
||||||
<questionhelpbackgroundcolor type="colorpicker" category="Questions" width="6" title="Question helpbackground color" options="on|off" optionlabels="Yes|No">#fff3cd</questionhelpbackgroundcolor>
|
<questionhelpbackgroundcolor type="colorpicker" category="Questions" width="6" title="Question helpbackground color" options="on|off" optionlabels="Yes|No">#fff3cd</questionhelpbackgroundcolor>
|
||||||
<questionborder type="buttons" category="Questions" width="6" title="Question border" options="box|top|none" optionlabels="Box around|Top and bottom|None">box</questionborder>
|
<questionborder type="buttons" category="Questions" width="6" title="Question border" options="box|top|none" optionlabels="Box around|Top and bottom|None">box</questionborder>
|
||||||
<questionborderstyle type="buttons" category="Questions" width="6" title="Question border line style" options="solid|dotted|dashed" optionlabels="Solid|Dotted|Dashed">solid</questionborderstyle>
|
<questionborderstyle type="buttons" category="Questions" width="6" title="Question border line style" options="solid|dotted|dashed" optionlabels="Solid|Dotted|Dashed">solid</questionborderstyle>
|
||||||
<questionbordercolor type="colorpicker" category="Questions" width="12" title="Question border color" options="on|off" optionlabels="Yes|No">#cccccc</questionbordercolor>
|
<questionbordercolor type="colorpicker" category="Questions" width="12" title="Question border color" options="on|off" optionlabels="Yes|No">#cccccc</questionbordercolor>
|
||||||
<questionborderradiusTL type="duration" category="Questions" width="3" title="Border radius top left">5px</questionborderradiusTL>
|
<questionborderradiusTL type="duration" category="Questions" width="3" title="Border radius top left">5px</questionborderradiusTL>
|
||||||
<questionborderradiusTR type="duration" category="Questions" width="3" title="Border radius top right">5px</questionborderradiusTR>
|
<questionborderradiusTR type="duration" category="Questions" width="3" title="Border radius top right">5px</questionborderradiusTR>
|
||||||
<questionborderradiusBL type="duration" category="Questions" width="3" title="Border radius bottom left">5px</questionborderradiusBL>
|
<questionborderradiusBL type="duration" category="Questions" width="3" title="Border radius bottom left">5px</questionborderradiusBL>
|
||||||
<questionborderradiusBR type="duration" category="Questions" width="3" title="Border radius bottom right">5px</questionborderradiusBR>
|
<questionborderradiusBR type="duration" category="Questions" width="3" title="Border radius bottom right">5px</questionborderradiusBR>
|
||||||
<questiondropdown type="buttons" category="Questions" width="6" title="Question dropdown shadow" options="on|hover|off" optionlabels="Always|On hover only|None">hover</questiondropdown>
|
<questiondropdown type="buttons" category="Questions" width="6" title="Question dropdown shadow" options="on|hover|off" optionlabels="Always|On hover only|None">hover</questiondropdown>
|
||||||
<questionhelptextposition type="buttons" category="Questions" width="6" title="Question help text position" options="top|bottom" optionlabels="Top|Bottom">top</questionhelptextposition>
|
<questionhelptextposition type="buttons" category="Questions" width="6" title="Question help text position" options="top|bottom" optionlabels="Top|Bottom">top</questionhelptextposition>
|
||||||
<checkboxcolor type="colorpicker" category="Questions" width="6" title="Checkbox/radiobutton color (when checked)" options="on|off" optionlabels="Yes|No">#ff005f</checkboxcolor>
|
<checkboxcolor type="colorpicker" category="Questions" width="6" title="Checkbox/radiobutton color (when checked)" options="on|off" optionlabels="Yes|No">#ff005f</checkboxcolor>
|
||||||
|
|
||||||
<!-- Progress -->
|
<!-- Progress -->
|
||||||
<progressbarposition type="buttons" category="Progress" width="6" title="Position of the progress bar" options="under|in" optionlabels="Under header|In header">under</progressbarposition>
|
<progressbarposition type="buttons" category="Progress" width="6" title="Position of the progress bar" options="under|in" optionlabels="Under header|In header">under</progressbarposition>
|
||||||
|
|
||||||
<!-- Various colors -->
|
<!-- Various colors -->
|
||||||
<headerbackgroundcolor type="colorpicker" category="Colors" width="12" title="Header background color" options="on|off" optionlabels="Yes|No">#eeeeee</headerbackgroundcolor>
|
<headerbackgroundcolor type="colorpicker" category="Colors" width="12" title="Header background color" options="on|off" optionlabels="Yes|No">#eeeeee</headerbackgroundcolor>
|
||||||
<primarycolor type="colorpicker" category="Colors" width="12" title="Primary color (for buttons)" options="on|off" optionlabels="Yes|No">#5e1c64</primarycolor>
|
<primarycolor type="colorpicker" category="Colors" width="12" title="Primary color (for buttons)" options="on|off" optionlabels="Yes|No">#5e1c64</primarycolor>
|
||||||
<fontcolor type="colorpicker" category="Colors" width="12" title="Base font color" options="on|off" optionlabels="Yes|No">#444444</fontcolor>
|
<fontcolor type="colorpicker" category="Colors" width="12" title="Base font color" options="on|off" optionlabels="Yes|No">#444444</fontcolor>
|
||||||
<sliderhandlecolor type="colorpicker" category="Colors" width="12" title="Slider handle color" options="on|off" optionlabels="Yes|No">#5e1c64</sliderhandlecolor>
|
<sliderhandlecolor type="colorpicker" category="Colors" width="12" title="Slider handle color" options="on|off" optionlabels="Yes|No">#5e1c64</sliderhandlecolor>
|
||||||
<progressbarbackgroundcolor type="colorpicker" category="Colors" width="12" title="Progress bar background color" options="on|off" optionlabels="Yes|No">#eeeeee</progressbarbackgroundcolor>
|
<progressbarbackgroundcolor type="colorpicker" category="Colors" width="12" title="Progress bar background color" options="on|off" optionlabels="Yes|No">#eeeeee</progressbarbackgroundcolor>
|
||||||
<progressbarcolor type="colorpicker" category="Colors" width="12" title="Progress bar color" options="on|off" optionlabels="Yes|No">#5e1c64</progressbarcolor>
|
<progressbarcolor type="colorpicker" category="Colors" width="12" title="Progress bar color" options="on|off" optionlabels="Yes|No">#5e1c64</progressbarcolor>
|
||||||
<progressbarfontcolor type="colorpicker" category="Colors" width="12" title="Progress bar font color" options="on|off" optionlabels="Yes|No">#ffffff</progressbarfontcolor>
|
<progressbarfontcolor type="colorpicker" category="Colors" width="12" title="Progress bar font color" options="on|off" optionlabels="Yes|No">#ffffff</progressbarfontcolor>
|
||||||
<privacybackgroundcolor type="colorpicker" category="Colors" width="12" title="Privacy background color" options="on|off" optionlabels="Yes|No">lightyellow</privacybackgroundcolor>
|
<privacybackgroundcolor type="colorpicker" category="Colors" width="12" title="Privacy background color" options="on|off" optionlabels="Yes|No">lightyellow</privacybackgroundcolor>
|
||||||
<!-- fonts -->
|
<!-- fonts -->
|
||||||
<!-- When adding new items, please keep fonts ordered alphabetically -->
|
<!-- When adding new items, please keep fonts ordered alphabetically -->
|
||||||
<font type="dropdown" category="Fonts" width="4" title="Fonts" parent="font">opensans
|
<font type="dropdown" category="Fonts" width="4" title="Fonts" parent="font">opensans
|
||||||
<dropdownoptions>
|
<dropdownoptions>
|
||||||
<optgroup label="User browser">
|
<optgroup label="User browser">
|
||||||
<option class="font-arial " value="arial" data-font-package="websafe">Arial</option>
|
<option class="font-arial " value="arial" data-font-package="websafe">Arial</option>
|
||||||
<option class="font-arial_black " value="arial_black" data-font-package="websafe">Arial Black</option>
|
<option class="font-arial_black " value="arial_black" data-font-package="websafe">Arial Black</option>
|
||||||
<option class="font-comic_sans " value="comic_sans" data-font-package="websafe">Comic Sans</option>
|
<option class="font-comic_sans " value="comic_sans" data-font-package="websafe">Comic Sans</option>
|
||||||
<option class="font-courier " value="courier" data-font-package="websafe">Courier New</option>
|
<option class="font-courier " value="courier" data-font-package="websafe">Courier New</option>
|
||||||
<option class="font-georgia " value="georgia" data-font-package="websafe">Georgia</option>
|
<option class="font-georgia " value="georgia" data-font-package="websafe">Georgia</option>
|
||||||
<option class="font-impact " value="impact" data-font-package="websafe">Impact</option>
|
<option class="font-impact " value="impact" data-font-package="websafe">Impact</option>
|
||||||
<option class="font-lucida_console " value="lucida_console" data-font-package="websafe">Lucida Console</option>
|
<option class="font-lucida_console " value="lucida_console" data-font-package="websafe">Lucida Console</option>
|
||||||
<option class="font-lucida_sans " value="lucida_sans" data-font-package="websafe">Lucida Sans</option>
|
<option class="font-lucida_sans " value="lucida_sans" data-font-package="websafe">Lucida Sans</option>
|
||||||
<option class="font-palatino " value="palatino" data-font-package="websafe">Palatino Linotype</option>
|
<option class="font-palatino " value="palatino" data-font-package="websafe">Palatino Linotype</option>
|
||||||
<option class="font-times_new_roman " value="times_new_roman" data-font-package="websafe">Times New Roman</option>
|
<option class="font-times_new_roman " value="times_new_roman" data-font-package="websafe">Times New Roman</option>
|
||||||
<option class="font-trebuchet " value="trebuchet" data-font-package="websafe">Trebuchet</option>
|
<option class="font-trebuchet " value="trebuchet" data-font-package="websafe">Trebuchet</option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
</dropdownoptions>
|
</dropdownoptions>
|
||||||
</font>
|
</font>
|
||||||
<fontsize type="buttons" category="Fonts" width="12" title="Base font size" options="14px|16px|18px|20px" optionlabels="Small (14px)|Normal (16px)|Large (18px)|Extra large (20 px)">16px</fontsize>
|
<fontsize type="buttons" category="Fonts" width="12" title="Base font size" options="14px|16px|18px|20px" optionlabels="Small (14px)|Normal (16px)|Large (18px)|Extra large (20 px)">16px</fontsize>
|
||||||
<questiontitlefontsize type="buttons" category="Fonts" width="6" title="Question title font size" options="1.0rem|1.2rem|1.5rem|2.0rem|20px|24px" optionlabels="Same as Base Font Size(BFS)|1.2 BFS|1.5 BFS|2.0 BFS|20px|24px">1.2rem</questiontitlefontsize>
|
<questiontitlefontsize type="buttons" category="Fonts" width="6" title="Question title font size" options="1.0rem|1.2rem|1.5rem|2.0rem|20px|24px" optionlabels="Same as Base Font Size(BFS)|1.2 BFS|1.5 BFS|2.0 BFS|20px|24px">1.2rem</questiontitlefontsize>
|
||||||
<questiontitlefontweight type="buttons" category="Fonts" width="6" title="Question title font weight" options="400|700" optionlabels="Normal|Bold">700</questiontitlefontweight>
|
<questiontitlefontweight type="buttons" category="Fonts" width="6" title="Question title font weight" options="400|700" optionlabels="Normal|Bold">700</questiontitlefontweight>
|
||||||
<grouptitlefontsize type="buttons" category="Fonts" width="6" title="Group title font size" options="1.0rem|1.2rem|1.5rem|2.0rem|20px|24px" optionlabels="Same as Base Font Size(BFS)|1.2 BFS|1.5 BFS|2.0 BFS|20px|24px">2.0rem</grouptitlefontsize>
|
<grouptitlefontsize type="buttons" category="Fonts" width="6" title="Group title font size" options="1.0rem|1.2rem|1.5rem|2.0rem|20px|24px" optionlabels="Same as Base Font Size(BFS)|1.2 BFS|1.5 BFS|2.0 BFS|20px|24px">2.0rem</grouptitlefontsize>
|
||||||
<grouptitlefontweight type="buttons" category="Fonts" width="6" title="Group title font weight" options="400|700" optionlabels="Normal|Bold">700</grouptitlefontweight>
|
<grouptitlefontweight type="buttons" category="Fonts" width="6" title="Group title font weight" options="400|700" optionlabels="Normal|Bold">700</grouptitlefontweight>
|
||||||
<groupdescriptionfontsize type="buttons" category="Fonts" width="6" title="Group description font size" options="1.0rem|1.2rem|1.5rem|2.0rem|20px|24px" optionlabels="Same as Base Font Size(BFS)|1.2 BFS|1.5 BFS|2.0 BFS|20px|24px">1.2rem</groupdescriptionfontsize>
|
<groupdescriptionfontsize type="buttons" category="Fonts" width="6" title="Group description font size" options="1.0rem|1.2rem|1.5rem|2.0rem|20px|24px" optionlabels="Same as Base Font Size(BFS)|1.2 BFS|1.5 BFS|2.0 BFS|20px|24px">1.2rem</groupdescriptionfontsize>
|
||||||
<groupdescriptionfontweight type="buttons" category="Fonts" width="6" title="Group description font weight" options="400|700" optionlabels="Normal|Bold">400</groupdescriptionfontweight>
|
<groupdescriptionfontweight type="buttons" category="Fonts" width="6" title="Group description font weight" options="400|700" optionlabels="Normal|Bold">400</groupdescriptionfontweight>
|
||||||
</options>
|
</options>
|
||||||
|
|
||||||
<!-- Here datas about how LimeSurvey should load the theme -->
|
<!-- Here datas about how LimeSurvey should load the theme -->
|
||||||
<engine>
|
<engine>
|
||||||
<!-- core: use core options view file, custom: use customized options.twig view file -->
|
<!-- core: use core options view file, custom: use customized options.twig view file -->
|
||||||
<optionspage>core</optionspage>
|
<optionspage>core</optionspage>
|
||||||
|
|
||||||
<!-- If empty, bootstrap css/js files will not be loaded. In the future, we may have more engines, like foundation -->
|
<!-- If empty, bootstrap css/js files will not be loaded. In the future, we may have more engines, like foundation -->
|
||||||
<cssframework>
|
<cssframework>
|
||||||
<name>bootstrap</name>
|
<name>bootstrap</name>
|
||||||
</cssframework>
|
</cssframework>
|
||||||
|
|
||||||
<!-- Path of the views files (can be different than views -->
|
<!-- Path of the views files (can be different than views -->
|
||||||
<viewdirectory>views</viewdirectory>
|
<viewdirectory>views</viewdirectory>
|
||||||
|
|
||||||
<!-- Asset manager will copy the whole theme directory to tmp. So it's possible to refer any file in the files directory in CSS via relative path (e.g: '../files/foo.jpg') -->
|
<!-- Asset manager will copy the whole theme directory to tmp. So it's possible to refer any file in the files directory in CSS via relative path (e.g: '../files/foo.jpg') -->
|
||||||
<filesdirectory>files</filesdirectory>
|
<filesdirectory>files</filesdirectory>
|
||||||
|
|
||||||
<!-- Here, you can publish packages set as third party extensions in application/config/vendor or application/config/package -->
|
<!-- Here, you can publish packages set as third party extensions in application/config/vendor or application/config/package -->
|
||||||
<!-- If bootstrap is registered as a css framework, it will be loaded first -->
|
<!-- If bootstrap is registered as a css framework, it will be loaded first -->
|
||||||
<packages>
|
<packages>
|
||||||
<add>pjax</add>
|
<add>pjax</add>
|
||||||
<add>moment</add>
|
<add>moment</add>
|
||||||
<add>font-noto</add>
|
<add>font-noto</add>
|
||||||
</packages>
|
</packages>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
List of pages/files for tempalte editor
|
List of pages/files for tempalte editor
|
||||||
When a user select a page, the related files will be offer in the editable files
|
When a user select a page, the related files will be offer in the editable files
|
||||||
-->
|
-->
|
||||||
<template_editor>
|
<template_editor>
|
||||||
<screens>
|
<screens>
|
||||||
<question>
|
<question>
|
||||||
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Question')}} ]]></screen_title>
|
<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="layout">layout_global.twig</file>
|
||||||
<file type="view" role="subview">./subviews/footer/footer.twig</file>
|
<file type="view" role="subview">./subviews/footer/footer.twig</file>
|
||||||
<file type="view" role="content">./subviews/content/main.twig</file>
|
<file type="view" role="content">./subviews/content/main.twig</file>
|
||||||
<file type="view" role="subview">./subviews/messages/justsaved.twig</file>
|
<file type="view" role="subview">./subviews/messages/justsaved.twig</file>
|
||||||
<file type="view" role="subview">./subviews/survey/group.twig</file>
|
<file type="view" role="subview">./subviews/survey/group.twig</file>
|
||||||
<file type="view" role="subview">./subviews/survey/group_subviews/group_container.twig</file>
|
<file type="view" role="subview">./subviews/survey/group_subviews/group_container.twig</file>
|
||||||
<file type="view" role="subview">./subviews/survey/group_subviews/group_desc.twig</file>
|
<file type="view" role="subview">./subviews/survey/group_subviews/group_desc.twig</file>
|
||||||
<file type="view" role="subview">./subviews/survey/group_subviews/group_name.twig</file>
|
<file type="view" role="subview">./subviews/survey/group_subviews/group_name.twig</file>
|
||||||
<file type="view" role="subview">./subviews/survey/question.twig</file>
|
<file type="view" role="subview">./subviews/survey/question.twig</file>
|
||||||
<file type="view" role="subview">./subviews/survey/question_container.twig</file>
|
<file type="view" role="subview">./subviews/survey/question_container.twig</file>
|
||||||
<file type="view" role="subview">./subviews/survey/question_subviews/question_text_container.twig</file>
|
<file type="view" role="subview">./subviews/survey/question_subviews/question_text_container.twig</file>
|
||||||
<file type="view" role="subview">./subviews/survey/question_subviews/question_text_content.twig</file>
|
<file type="view" role="subview">./subviews/survey/question_subviews/question_text_content.twig</file>
|
||||||
<file type="view" role="subview">./subviews/survey/question_subviews/answers.twig</file>
|
<file type="view" role="subview">./subviews/survey/question_subviews/answers.twig</file>
|
||||||
<file type="view" role="subview">./subviews/survey/question_subviews/survey_question_help.twig</file>
|
<file type="view" role="subview">./subviews/survey/question_subviews/survey_question_help.twig</file>
|
||||||
<file type="view" role="subview">./subviews/survey/question_subviews/valid_message_and_help.twig</file>
|
<file type="view" role="subview">./subviews/survey/question_subviews/valid_message_and_help.twig</file>
|
||||||
<file type="css">./css/theme.css</file>
|
<file type="css">./css/theme.css</file>
|
||||||
<file type="js">./scripts/theme.js</file>
|
<file type="js">./scripts/theme.js</file>
|
||||||
<file type="css">./css/custom.css</file>
|
<file type="css">./css/custom.css</file>
|
||||||
<file type="js">./scripts/custom.js</file>
|
<file type="js">./scripts/custom.js</file>
|
||||||
</question>
|
</question>
|
||||||
|
|
||||||
<surveylist>
|
<surveylist>
|
||||||
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Survey list')}} ]]></screen_title>
|
<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="layout">layout_survey_list.twig</file>
|
||||||
<file type="view" role="subview">./subviews/footer/footer.twig</file>
|
<file type="view" role="subview">./subviews/footer/footer.twig</file>
|
||||||
<file type="view" role="subview">./subviews/content/mainrow.twig</file>
|
<file type="view" role="subview">./subviews/content/mainrow.twig</file>
|
||||||
<file type="view" role="subview">./subviews/content/outerframe.twig</file>
|
<file type="view" role="subview">./subviews/content/outerframe.twig</file>
|
||||||
<file type="view" role="subview">./subviews/navigation/language_changer_form.twig</file>
|
<file type="view" role="subview">./subviews/navigation/language_changer_form.twig</file>
|
||||||
<file type="css">./css/theme.css</file>
|
<file type="css">./css/theme.css</file>
|
||||||
<file type="js">./scripts/theme.js</file>
|
<file type="js">./scripts/theme.js</file>
|
||||||
<file type="css">./css/custom.css</file>
|
<file type="css">./css/custom.css</file>
|
||||||
<file type="js">./scripts/custom.js</file>
|
<file type="js">./scripts/custom.js</file>
|
||||||
</surveylist>
|
</surveylist>
|
||||||
|
|
||||||
<welcome>
|
<welcome>
|
||||||
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Welcome')}} ]]></screen_title>
|
<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="layout">layout_global.twig</file>
|
||||||
<file type="view" role="subview">./subviews/footer/footer.twig</file>
|
<file type="view" role="subview">./subviews/footer/footer.twig</file>
|
||||||
<file type="view" role="subview">./subviews/content/mainrow.twig</file>
|
<file type="view" role="subview">./subviews/content/mainrow.twig</file>
|
||||||
<file type="view" role="subview">./subviews/content/outerframe.twig</file>
|
<file type="view" role="subview">./subviews/content/outerframe.twig</file>
|
||||||
<file type="view" role="content">./subviews/content/firstpage.twig</file>
|
<file type="view" role="content">./subviews/content/firstpage.twig</file>
|
||||||
<file type="view" role="subview">./subviews/header/head.twig</file>
|
<file type="view" role="subview">./subviews/header/head.twig</file>
|
||||||
<file type="view" role="subview">./subviews/header/custom_header.twig</file>
|
<file type="view" role="subview">./subviews/header/custom_header.twig</file>
|
||||||
<file type="view" role="subview">./subviews/header/nav_bar.twig</file>
|
<file type="view" role="subview">./subviews/header/nav_bar.twig</file>
|
||||||
<file type="view" role="subview">./subviews/header/progress_bar.twig</file>
|
<file type="view" role="subview">./subviews/header/progress_bar.twig</file>
|
||||||
<file type="view" role="subview">./subviews/messages/welcome.twig</file>
|
<file type="view" role="subview">./subviews/messages/welcome.twig</file>
|
||||||
<file type="view" role="subview">./subviews/messages/warnings.twig</file>
|
<file type="view" role="subview">./subviews/messages/warnings.twig</file>
|
||||||
<file type="view" role="subview">./subviews/messages/no_js_alert.twig</file>
|
<file type="view" role="subview">./subviews/messages/no_js_alert.twig</file>
|
||||||
<file type="view" role="subview">./subviews/privacy/privacy.twig</file>
|
<file type="view" role="subview">./subviews/privacy/privacy.twig</file>
|
||||||
<file type="view" role="subview">./subviews/navigation/language_changer.twig</file>
|
<file type="view" role="subview">./subviews/navigation/language_changer.twig</file>
|
||||||
<file type="view" role="subview">./subviews/logincomponents/captcha.twig</file>
|
<file type="view" role="subview">./subviews/logincomponents/captcha.twig</file>
|
||||||
<file type="view" role="subview">./subviews/logincomponents/token.twig</file>
|
<file type="view" role="subview">./subviews/logincomponents/token.twig</file>
|
||||||
<file type="css">./css/theme.css</file>
|
<file type="css">./css/theme.css</file>
|
||||||
<file type="js">./scripts/theme.js</file>
|
<file type="js">./scripts/theme.js</file>
|
||||||
<file type="css">./css/custom.css</file>
|
<file type="css">./css/custom.css</file>
|
||||||
<file type="js">./scripts/custom.js</file>
|
<file type="js">./scripts/custom.js</file>
|
||||||
</welcome>
|
</welcome>
|
||||||
|
|
||||||
<completed>
|
<completed>
|
||||||
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Completed')}} ]]></screen_title>
|
<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="layout">layout_global.twig</file>
|
||||||
<file type="view" role="subview">./subviews/footer/footer.twig</file>
|
<file type="view" role="subview">./subviews/footer/footer.twig</file>
|
||||||
<file type="view" role="subview">./subviews/content/mainrow.twig</file>
|
<file type="view" role="subview">./subviews/content/mainrow.twig</file>
|
||||||
<file type="view" role="subview">./subviews/content/outerframe.twig</file>
|
<file type="view" role="subview">./subviews/content/outerframe.twig</file>
|
||||||
<file type="view" role="content">./subviews/content/submit.twig</file>
|
<file type="view" role="content">./subviews/content/submit.twig</file>
|
||||||
<file type="css">./css/theme.css</file>
|
<file type="css">./css/theme.css</file>
|
||||||
<file type="js">./scripts/theme.js</file>
|
<file type="js">./scripts/theme.js</file>
|
||||||
<file type="css">./css/custom.css</file>
|
<file type="css">./css/custom.css</file>
|
||||||
<file type="js">./scripts/custom.js</file>
|
<file type="js">./scripts/custom.js</file>
|
||||||
</completed>
|
</completed>
|
||||||
|
|
||||||
<assessments>
|
<assessments>
|
||||||
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Assessments')}} ]]></screen_title>
|
<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="layout">layout_global.twig</file>
|
||||||
<file type="view" role="subview">./subviews/footer/footer.twig</file>
|
<file type="view" role="subview">./subviews/footer/footer.twig</file>
|
||||||
<file type="view" role="subview">./subviews/content/mainrow.twig</file>
|
<file type="view" role="subview">./subviews/content/mainrow.twig</file>
|
||||||
<file type="view" role="subview">./subviews/content/outerframe.twig</file>
|
<file type="view" role="subview">./subviews/content/outerframe.twig</file>
|
||||||
<file type="view" role="content">./subviews/content/submit.twig</file>
|
<file type="view" role="content">./subviews/content/submit.twig</file>
|
||||||
<file type="view" role="subview">./subviews/messages/assessments.twig</file>
|
<file type="view" role="subview">./subviews/messages/assessments.twig</file>
|
||||||
<file type="css">./css/theme.css</file>
|
<file type="css">./css/theme.css</file>
|
||||||
<file type="js">./scripts/theme.js</file>
|
<file type="js">./scripts/theme.js</file>
|
||||||
<file type="css">./css/custom.css</file>
|
<file type="css">./css/custom.css</file>
|
||||||
<file type="js">./scripts/custom.js</file>
|
<file type="js">./scripts/custom.js</file>
|
||||||
</assessments>
|
</assessments>
|
||||||
|
|
||||||
<error>
|
<error>
|
||||||
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Error')}} ]]></screen_title>
|
<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="layout">layout_errors.twig</file>
|
||||||
<file type="view" role="subview">./subviews/footer/footer.twig</file>
|
<file type="view" role="subview">./subviews/footer/footer.twig</file>
|
||||||
</error>
|
</error>
|
||||||
|
|
||||||
<clearall>
|
<clearall>
|
||||||
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Clear all')}} ]]></screen_title>
|
<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="layout">layout_global.twig</file>
|
||||||
<file type="view" role="subview">./subviews/footer/footer.twig</file>
|
<file type="view" role="subview">./subviews/footer/footer.twig</file>
|
||||||
<file type="view" role="subview">./subviews/content/mainrow.twig</file>
|
<file type="view" role="subview">./subviews/content/mainrow.twig</file>
|
||||||
<file type="view" role="subview">./subviews/content/outerframe.twig</file>
|
<file type="view" role="subview">./subviews/content/outerframe.twig</file>
|
||||||
<file type="view" role="content">./subviews/content/clearall.twig</file>
|
<file type="view" role="content">./subviews/content/clearall.twig</file>
|
||||||
<file type="css">./css/theme.css</file>
|
<file type="css">./css/theme.css</file>
|
||||||
<file type="js">./scripts/theme.js</file>
|
<file type="js">./scripts/theme.js</file>
|
||||||
<file type="css">./css/custom.css</file>
|
<file type="css">./css/custom.css</file>
|
||||||
<file type="js">./scripts/custom.js</file>
|
<file type="js">./scripts/custom.js</file>
|
||||||
</clearall>
|
</clearall>
|
||||||
|
|
||||||
<load>
|
<load>
|
||||||
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Load')}} ]]></screen_title>
|
<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="layout">layout_global.twig</file>
|
||||||
<file type="view" role="subview">./subviews/footer/footer.twig</file>
|
<file type="view" role="subview">./subviews/footer/footer.twig</file>
|
||||||
<file type="view" role="subview">./subviews/content/mainrow.twig</file>
|
<file type="view" role="subview">./subviews/content/mainrow.twig</file>
|
||||||
<file type="view" role="subview">./subviews/content/outerframe.twig</file>
|
<file type="view" role="subview">./subviews/content/outerframe.twig</file>
|
||||||
<file type="view" role="content">./subviews/content/load.twig</file>
|
<file type="view" role="content">./subviews/content/load.twig</file>
|
||||||
<file type="css">./css/theme.css</file>
|
<file type="css">./css/theme.css</file>
|
||||||
<file type="js">./scripts/theme.js</file>
|
<file type="js">./scripts/theme.js</file>
|
||||||
<file type="css">./css/custom.css</file>
|
<file type="css">./css/custom.css</file>
|
||||||
<file type="js">./scripts/custom.js</file>
|
<file type="js">./scripts/custom.js</file>
|
||||||
</load>
|
</load>
|
||||||
|
|
||||||
<save>
|
<save>
|
||||||
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Save')}} ]]></screen_title>
|
<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="layout">layout_global.twig</file>
|
||||||
<file type="view" role="subview">./subviews/footer/footer.twig</file>
|
<file type="view" role="subview">./subviews/footer/footer.twig</file>
|
||||||
<file type="view" role="subview">./subviews/content/mainrow.twig</file>
|
<file type="view" role="subview">./subviews/content/mainrow.twig</file>
|
||||||
<file type="view" role="subview">./subviews/content/outerframe.twig</file>
|
<file type="view" role="subview">./subviews/content/outerframe.twig</file>
|
||||||
<file type="view" role="content">./subviews/content/save.twig</file>
|
<file type="view" role="content">./subviews/content/save.twig</file>
|
||||||
<file type="css">./css/theme.css</file>
|
<file type="css">./css/theme.css</file>
|
||||||
<file type="js">./scripts/theme.js</file>
|
<file type="js">./scripts/theme.js</file>
|
||||||
<file type="css">./css/custom.css</file>
|
<file type="css">./css/custom.css</file>
|
||||||
<file type="js">./scripts/custom.js</file>
|
<file type="js">./scripts/custom.js</file>
|
||||||
</save>
|
</save>
|
||||||
|
|
||||||
<register>
|
<register>
|
||||||
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Registration')}} ]]></screen_title>
|
<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="layout">layout_global.twig</file>
|
||||||
<file type="view" role="subview">./subviews/footer/footer.twig</file>
|
<file type="view" role="subview">./subviews/footer/footer.twig</file>
|
||||||
<file type="view" role="content">./subviews/content/register.twig</file>
|
<file type="view" role="content">./subviews/content/register.twig</file>
|
||||||
<file type="view" role="subview">./subviews/registration/register_error.twig</file>
|
<file type="view" role="subview">./subviews/registration/register_error.twig</file>
|
||||||
<file type="view" role="subview">./subviews/registration/register_head.twig</file>
|
<file type="view" role="subview">./subviews/registration/register_head.twig</file>
|
||||||
<file type="view" role="subview">./subviews/registration/register_message.twig</file>
|
<file type="view" role="subview">./subviews/registration/register_message.twig</file>
|
||||||
<file type="view" role="subview">./subviews/registration/register_success.twig</file>
|
<file type="view" role="subview">./subviews/registration/register_success.twig</file>
|
||||||
<file type="view" role="subview">./subviews/registration/register_form.twig</file>
|
<file type="view" role="subview">./subviews/registration/register_form.twig</file>
|
||||||
<file type="view" role="subview">./subviews/registration/required.twig</file>
|
<file type="view" role="subview">./subviews/registration/required.twig</file>
|
||||||
</register>
|
</register>
|
||||||
|
|
||||||
<printanswers>
|
<printanswers>
|
||||||
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Print answers')}} ]]></screen_title>
|
<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="layout">layout_printanswers.twig</file>
|
||||||
<file type="view" role="subview">./subviews/content/outerframe.twig</file>
|
<file type="view" role="subview">./subviews/content/outerframe.twig</file>
|
||||||
<file type="view" role="content">./subviews/content/printanswers.twig</file>
|
<file type="view" role="content">./subviews/content/printanswers.twig</file>
|
||||||
<file type="view" role="subview">./subviews/printanswers/printanswers_head.twig</file>
|
<file type="view" role="subview">./subviews/printanswers/printanswers_head.twig</file>
|
||||||
<file type="view" role="subview">./subviews/printanswers/printanswers_table.twig</file>
|
<file type="view" role="subview">./subviews/printanswers/printanswers_table.twig</file>
|
||||||
<file type="view" role="subview">./subviews/printanswers/printanswers_question.twig</file>
|
<file type="view" role="subview">./subviews/printanswers/printanswers_question.twig</file>
|
||||||
<file type="view" role="subview">./subviews/printanswers/printanswers_foot.twig</file>
|
<file type="view" role="subview">./subviews/printanswers/printanswers_foot.twig</file>
|
||||||
</printanswers>
|
</printanswers>
|
||||||
|
|
||||||
<statistics_user>
|
<statistics_user>
|
||||||
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Public statistics')}} ]]></screen_title>
|
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Public statistics')}} ]]></screen_title>
|
||||||
<file type="view" role="layout">layout_statistics_user.twig</file>
|
<file type="view" role="layout">layout_statistics_user.twig</file>
|
||||||
<file type="view" role="subview">./subviews/content/outerframe.twig</file>
|
<file type="view" role="subview">./subviews/content/outerframe.twig</file>
|
||||||
<file type="view" role="content">./subviews/content/statistics_user.twig</file>
|
<file type="view" role="content">./subviews/content/statistics_user.twig</file>
|
||||||
<file type="view" role="subview">./subviews/statistics_user/statistics_user_head.twig</file>
|
<file type="view" role="subview">./subviews/statistics_user/statistics_user_head.twig</file>
|
||||||
<file type="view" role="subview">./subviews/statistics_user/statistics_user_content.twig</file>
|
<file type="view" role="subview">./subviews/statistics_user/statistics_user_content.twig</file>
|
||||||
<file type="view" role="subview">./subviews/statistics_user/statistics_user_foot.twig</file>
|
<file type="view" role="subview">./subviews/statistics_user/statistics_user_foot.twig</file>
|
||||||
</statistics_user>
|
</statistics_user>
|
||||||
|
|
||||||
<pdf>
|
<pdf>
|
||||||
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('PDF')}} ]]></screen_title>
|
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('PDF')}} ]]></screen_title>
|
||||||
<file type="view" role="layout">layout_print.twig</file>
|
<file type="view" role="layout">layout_print.twig</file>
|
||||||
</pdf>
|
</pdf>
|
||||||
|
|
||||||
<quotas>
|
<quotas>
|
||||||
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Quotas exceeded')}} ]]></screen_title>
|
<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="layout">layout_global.twig</file>
|
||||||
<file type="view" role="content">./subviews/content/quotas.twig</file>
|
<file type="view" role="content">./subviews/content/quotas.twig</file>
|
||||||
<file type="view" role="subview">./subviews/header/start_form.twig</file>
|
<file type="view" role="subview">./subviews/header/start_form.twig</file>
|
||||||
</quotas>
|
</quotas>
|
||||||
|
|
||||||
<navigation>
|
<navigation>
|
||||||
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Navigation')}} ]]></screen_title>
|
<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="layout">layout_global.twig</file>
|
||||||
<file type="view" role="subview">./subviews/footer/footer.twig</file>
|
<file type="view" role="subview">./subviews/footer/footer.twig</file>
|
||||||
<file type="view" role="content">./subviews/content/main.twig</file>
|
<file type="view" role="content">./subviews/content/main.twig</file>
|
||||||
<file type="view" role="subview">./subviews/navigation/ajax_indicator.twig</file>
|
<file type="view" role="subview">./subviews/navigation/ajax_indicator.twig</file>
|
||||||
<file type="view" role="subview">./subviews/navigation/clearall_links.twig</file>
|
<file type="view" role="subview">./subviews/navigation/clearall_links.twig</file>
|
||||||
<file type="view" role="subview">./subviews/navigation/save_links.twig</file>
|
<file type="view" role="subview">./subviews/navigation/save_links.twig</file>
|
||||||
<file type="view" role="subview">./subviews/navigation/language_changer_top_menu.twig</file>
|
<file type="view" role="subview">./subviews/navigation/language_changer_top_menu.twig</file>
|
||||||
<file type="view" role="subview">./subviews/navigation/language_changer.twig</file>
|
<file type="view" role="subview">./subviews/navigation/language_changer.twig</file>
|
||||||
<file type="view" role="subview">./subviews/navigation/question_index_menu.twig</file>
|
<file type="view" role="subview">./subviews/navigation/question_index_menu.twig</file>
|
||||||
<file type="view" role="subview">./subviews/navigation/navigator.twig</file>
|
<file type="view" role="subview">./subviews/navigation/navigator.twig</file>
|
||||||
<file type="view" role="subview">./subviews/navigation/navigator_complement.twig</file>
|
<file type="view" role="subview">./subviews/navigation/navigator_complement.twig</file>
|
||||||
<file type="view" role="subview">./subviews/navigation/clearall_buttons.twig</file>
|
<file type="view" role="subview">./subviews/navigation/clearall_buttons.twig</file>
|
||||||
<file type="view" role="subview">./subviews/navigation/save_buttons.twig</file>
|
<file type="view" role="subview">./subviews/navigation/save_buttons.twig</file>
|
||||||
<file type="view" role="subview">./subviews/navigation/question_index_buttons.twig</file>
|
<file type="view" role="subview">./subviews/navigation/question_index_buttons.twig</file>
|
||||||
<file type="view" role="subview">./subviews/navigation/question_index_questions_buttons.twig</file>
|
<file type="view" role="subview">./subviews/navigation/question_index_questions_buttons.twig</file>
|
||||||
<file type="view" role="subview">./subviews/navigation/question_index_groups_buttons.twig</file>
|
<file type="view" role="subview">./subviews/navigation/question_index_groups_buttons.twig</file>
|
||||||
</navigation>
|
</navigation>
|
||||||
|
|
||||||
<token>
|
<token>
|
||||||
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Participant')}} ]]></screen_title>
|
<screen_title type="data" role="title" twig="on"><![CDATA[ {{gT('Participant')}} ]]></screen_title>
|
||||||
<file type="view" role="layout">layout_user_forms.twig</file>
|
<file type="view" role="layout">layout_user_forms.twig</file>
|
||||||
<file type="view" role="content">./subviews/content/userforms.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/token.twig</file>
|
||||||
<file type="view" role="subview">./subviews/logincomponents/captcha.twig</file>
|
<file type="view" role="subview">./subviews/logincomponents/captcha.twig</file>
|
||||||
</token>
|
</token>
|
||||||
|
|
||||||
|
|
||||||
</screens>
|
</screens>
|
||||||
|
|
||||||
<!-- Data for preview in Theme Editor and Twig Cache command line generator -->
|
<!-- Data for preview in Theme Editor and Twig Cache command line generator -->
|
||||||
<default_data>
|
<default_data>
|
||||||
<survey type="core">
|
<survey type="core">
|
||||||
<name type="data" twig="on"><![CDATA[ {{ gT("Template Sample") }} ]]></name>
|
<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>
|
<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>
|
<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>
|
<therearexquestions type="data" twig="on"><![CDATA[gT('There is 2 question in this survey'])]]></therearexquestions>
|
||||||
<surveyls_url type="data" twig="on">"https://www.limesurvey.org/"</surveyls_url>
|
<surveyls_url type="data" twig="on">"https://www.limesurvey.org/"</surveyls_url>
|
||||||
<surveyls_urldescription type="data" twig="on"><![CDATA[ gT("Some URL description") ]]></surveyls_urldescription>
|
<surveyls_urldescription type="data" twig="on"><![CDATA[ gT("Some URL description") ]]></surveyls_urldescription>
|
||||||
<showsurveypolicynotice>2</showsurveypolicynotice>
|
<showsurveypolicynotice>2</showsurveypolicynotice>
|
||||||
<datasecurity_notice_label type="data" twig="on"><![CDATA[ <a href='#data-security-modal-' data-bs-toggle='collapse'> {{ gT('Show privacy policy') }} </a> ]]></datasecurity_notice_label>
|
<datasecurity_notice_label type="data" twig="on"><![CDATA[ <a href='#data-security-modal-' data-bs-toggle='collapse'> {{ gT('Show privacy policy') }} </a> ]]></datasecurity_notice_label>
|
||||||
<datasecurity_notice type="data" twig="on"><![CDATA[ {{ gT("Your privacy policy text is shown here.") }} ]]></datasecurity_notice>
|
<datasecurity_notice type="data" twig="on"><![CDATA[ {{ gT("Your privacy policy text is shown here.") }} ]]></datasecurity_notice>
|
||||||
</survey>
|
</survey>
|
||||||
<group type="core">
|
<group type="core">
|
||||||
<name type="data" twig="on"><![CDATA[ {{ gT("Group 1: The first lot of questions") }} ]]></name>
|
<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>
|
<description type="data" twig="on"><![CDATA[ {{ gT("This group description is fairly vacuous, but quite important.") }} ]]></description>
|
||||||
</group>
|
</group>
|
||||||
<question_1 type="core">
|
<question_1 type="core">
|
||||||
<code type="data">'Q1 '</code>
|
<code type="data">'Q1 '</code>
|
||||||
<text type="data" twig="on"><![CDATA[ {{ gT("How many roads must a man walk down?") }} ]]></text>
|
<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>
|
<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_1>
|
||||||
<question_2 type="core">
|
<question_2 type="core">
|
||||||
<code type="data">'Q2 '</code>
|
<code type="data">'Q2 '</code>
|
||||||
<text type="data" twig="on"><![CDATA[ {{ gT("Please explain something in detail:") }} ]]></text>
|
<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>
|
<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>
|
</question_2>
|
||||||
<assessments type="core">
|
<assessments type="core">
|
||||||
<name type="data" twig="on"><![CDATA[ {{ gT("Welcome to the Assessment") }} ]]></name>
|
<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>
|
<message type="data" twig="on"><![CDATA[ {{ gT("You got {TOTAL} points out of 3 possible points.") }} ]]></message>
|
||||||
</assessments>
|
</assessments>
|
||||||
|
|
||||||
<!-- This is an example to show you how to add your custom screen in the theme editor with custom values -->
|
<!-- This is an example 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 -->
|
<!-- 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.-->
|
<!-- 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">
|
<quotas type="custom" arrayName="aQuotas">
|
||||||
<sMessage type="data" twig="on"><![CDATA[ {{ gT("Sorry your responses have exceeded a quota on this survey.") }} ]]></sMessage>
|
<sMessage type="data" twig="on"><![CDATA[ {{ gT("Sorry your responses have exceeded a quota on this survey.") }} ]]></sMessage>
|
||||||
<sUrl type="data">http://limesurvey.org</sUrl>
|
<sUrl type="data">http://limesurvey.org</sUrl>
|
||||||
<sUrlDescription type="data" twig="on"><![CDATA[ {{ gT("End url") }} ]]></sUrlDescription>
|
<sUrlDescription type="data" twig="on"><![CDATA[ {{ gT("End url") }} ]]></sUrlDescription>
|
||||||
<bShowNavigator type="data">false</bShowNavigator>
|
<bShowNavigator type="data">false</bShowNavigator>
|
||||||
</quotas>
|
</quotas>
|
||||||
|
|
||||||
<userforms type="custom" arrayName="aForm">
|
<userforms type="custom" arrayName="aForm">
|
||||||
<sType type="data">token</sType>
|
<sType type="data">token</sType>
|
||||||
</userforms>
|
</userforms>
|
||||||
</default_data>
|
</default_data>
|
||||||
</template_editor>
|
</template_editor>
|
||||||
</engine>
|
</engine>
|
||||||
|
|
||||||
<!-- Disable the updater system for core themes. -->
|
<!-- Disable the updater system for core themes. -->
|
||||||
<updaters disabled="disabled">
|
<updaters disabled="disabled">
|
||||||
</updaters>
|
</updaters>
|
||||||
</config>
|
</config>
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
/******************
|
/******************
|
||||||
User custom CSS
|
User custom CSS
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
In this file you can add your own custom CSS
|
In this file you can add your own custom CSS
|
||||||
It will be loaded last, so you can override any other property.
|
It will be loaded last, so you can override any other property.
|
||||||
Also, it will never be updated. So if you inheritate a core template and just add here some CSS, you'll still benefit of all the updates
|
Also, it will never be updated. So if you inheritate a core template and just add here some CSS, you'll still benefit of all the updates
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#outerframeContainer{
|
#outerframeContainer{
|
||||||
hyphens: none;
|
hyphens: none;
|
||||||
}
|
}
|
||||||
408
css/plain.css
408
css/plain.css
|
|
@ -1,205 +1,205 @@
|
||||||
body.font-arial {
|
body.font-arial {
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.font-arial_black {
|
body.font-arial_black {
|
||||||
font-family: ArialBlack, Helvetica, sans-serif;
|
font-family: ArialBlack, Helvetica, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.font-opensans {
|
body.font-opensans {
|
||||||
font-family: "Open Sans", Helvetica, sans-serif;
|
font-family: "Open Sans", Helvetica, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.font-georgia {
|
body.font-georgia {
|
||||||
font-family: Georgia, "Times New Roman", Times, serif;
|
font-family: Georgia, "Times New Roman", Times, serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
body.font-courier {
|
body.font-courier {
|
||||||
font-family: "Courier New", Courier, monospace;
|
font-family: "Courier New", Courier, monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
#welcome-container {
|
#welcome-container {
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-container .top-content {
|
.top-container .top-content {
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.row.question-container {
|
.row.question-container {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#navigator-container {
|
#navigator-container {
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.privacy .ls-privacy-head, .privacy p.ls-privacy-body {
|
.privacy .ls-privacy-head, .privacy p.ls-privacy-body {
|
||||||
background: white;
|
background: white;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1.survey-name {
|
h1.survey-name {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.group-description {
|
.group-description {
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#surveys-list-container {
|
#surveys-list-container {
|
||||||
background: white;
|
background: white;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.question-container {
|
.question-container {
|
||||||
border: inherit;
|
border: inherit;
|
||||||
margin-bottom: 30px;
|
margin-bottom: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ls-questionhelp {
|
.ls-questionhelp {
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
}
|
}
|
||||||
.ls-questionhelp p {
|
.ls-questionhelp p {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.ls-answers {
|
table.ls-answers {
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sortable-rank {
|
.sortable-rank {
|
||||||
background: white;
|
background: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ls-answers .ls-heading th {
|
.ls-answers .ls-heading th {
|
||||||
font-weight: inherit;
|
font-weight: inherit;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
.privacy-block {
|
.privacy-block {
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.privacy .form-check {
|
.privacy .form-check {
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
background: lightyellow;
|
background: lightyellow;
|
||||||
}
|
}
|
||||||
.privacy .form-check .form-check-input {
|
.privacy .form-check .form-check-input {
|
||||||
float: none;
|
float: none;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#datasecurity_notice {
|
#datasecurity_notice {
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.save-form {
|
.save-form {
|
||||||
background: white;
|
background: white;
|
||||||
}
|
}
|
||||||
.save-form .return-to-survey {
|
.save-form .return-to-survey {
|
||||||
padding-left: 15px;
|
padding-left: 15px;
|
||||||
padding-bottom: 15px;
|
padding-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.save-message .h2 {
|
.save-message .h2 {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
.save-message .text-warning {
|
.save-message .text-warning {
|
||||||
color: inherit !important;
|
color: inherit !important;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
.save-survey-form {
|
.save-survey-form {
|
||||||
background: white;
|
background: white;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.checkbox-item input[type=checkbox]:checked + label::after,
|
.checkbox-item input[type=checkbox]:checked + label::after,
|
||||||
.checkbox-item input[type=radio]:checked + label::after {
|
.checkbox-item input[type=radio]:checked + label::after {
|
||||||
content: "";
|
content: "";
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-primary {
|
.btn-primary {
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
.btn-primary:hover {
|
.btn-primary:hover {
|
||||||
filter: grayscale(0.5);
|
filter: grayscale(0.5);
|
||||||
}
|
}
|
||||||
.btn-primary:focus {
|
.btn-primary:focus {
|
||||||
filter: grayscale(0.5);
|
filter: grayscale(0.5);
|
||||||
}
|
}
|
||||||
.btn-primary.active {
|
.btn-primary.active {
|
||||||
filter: grayscale(0.5);
|
filter: grayscale(0.5);
|
||||||
}
|
}
|
||||||
.btn-primary:active {
|
.btn-primary:active {
|
||||||
filter: grayscale(0.5);
|
filter: grayscale(0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
#surveys-list-container {
|
#surveys-list-container {
|
||||||
background: white;
|
background: white;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.progress {
|
.progress {
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.progress-bar {
|
.progress-bar {
|
||||||
font-size: 80%;
|
font-size: 80%;
|
||||||
padding-left: 2px;
|
padding-left: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.qback_red .question-title-container {
|
.qback_red .question-title-container {
|
||||||
background: red;
|
background: red;
|
||||||
}
|
}
|
||||||
|
|
||||||
.qback_orange .question-title-container {
|
.qback_orange .question-title-container {
|
||||||
background: darkorange;
|
background: darkorange;
|
||||||
}
|
}
|
||||||
|
|
||||||
.qback_green .question-title-container {
|
.qback_green .question-title-container {
|
||||||
background: darkgreen;
|
background: darkgreen;
|
||||||
}
|
}
|
||||||
|
|
||||||
.qback_transparent .question-title-container {
|
.qback_transparent .question-title-container {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.qvideo {
|
div.qvideo {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
div.qvideo .video {
|
div.qvideo .video {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
div.qvideo .question-title-container, div.qvideo .answer-container {
|
div.qvideo .question-title-container, div.qvideo .answer-container {
|
||||||
flex-grow: 2;
|
flex-grow: 2;
|
||||||
}
|
}
|
||||||
div.qvideo .question-title-container {
|
div.qvideo .question-title-container {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: #5A1D64;
|
color: #5A1D64;
|
||||||
}
|
}
|
||||||
div.qvideo .answer-container {
|
div.qvideo .answer-container {
|
||||||
padding-left: 30px;
|
padding-left: 30px;
|
||||||
}
|
}
|
||||||
div.qvideo .question-valid-container {
|
div.qvideo .question-valid-container {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hide-first-row table.ls-answers tr.answers-list:first-child {
|
.hide-first-row table.ls-answers tr.answers-list:first-child {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hidden {
|
.hidden {
|
||||||
display: none;
|
display: none;
|
||||||
}/*# sourceMappingURL=plain.css.map */
|
}/*# sourceMappingURL=plain.css.map */
|
||||||
|
|
@ -1,328 +1,328 @@
|
||||||
var ThemeOptions = function(){
|
var ThemeOptions = function(){
|
||||||
var ThemeOptions = function () {
|
var ThemeOptions = function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
//////////////////
|
//////////////////
|
||||||
// Define necessary globals
|
// Define necessary globals
|
||||||
|
|
||||||
// general_inherit_active is not present at global level
|
// general_inherit_active is not present at global level
|
||||||
// see: https://github.com/LimeSurvey/LimeSurvey/blob/1cbfa11b081f54763b28364472926b155efea5dc/themes/survey/vanilla/options/options.twig#L71
|
// see: https://github.com/LimeSurvey/LimeSurvey/blob/1cbfa11b081f54763b28364472926b155efea5dc/themes/survey/vanilla/options/options.twig#L71
|
||||||
var inheritPossible = ($('#general_inherit_active').length > 0);
|
var inheritPossible = ($('#general_inherit_active').length > 0);
|
||||||
|
|
||||||
//get option Object from Template configuration options
|
//get option Object from Template configuration options
|
||||||
var optionObject = {'general_inherit': 1};
|
var optionObject = {'general_inherit': 1};
|
||||||
|
|
||||||
//get the global form
|
//get the global form
|
||||||
var globalForm = $('.action_update_options_string_form');
|
var globalForm = $('.action_update_options_string_form');
|
||||||
|
|
||||||
/////////////////
|
/////////////////
|
||||||
// Define methods run on startup
|
// Define methods run on startup
|
||||||
|
|
||||||
// #TemplateConfiguration_options is the id of the Options field in advanced option
|
// #TemplateConfiguration_options is the id of the Options field in advanced option
|
||||||
// getter for generalInherit
|
// getter for generalInherit
|
||||||
var generalInherit = function () {
|
var generalInherit = function () {
|
||||||
return $('#TemplateConfiguration_options').val() === 'inherit';
|
return $('#TemplateConfiguration_options').val() === 'inherit';
|
||||||
};
|
};
|
||||||
|
|
||||||
//parse the options as set in the advanced form
|
//parse the options as set in the advanced form
|
||||||
var parseOptionObject = function () {
|
var parseOptionObject = function () {
|
||||||
// If no general inherit, then pass the value of the "Options" field in advanced option to the object optionObject
|
// If no general inherit, then pass the value of the "Options" field in advanced option to the object optionObject
|
||||||
if ($('#TemplateConfiguration_options').length > 0 && !generalInherit()) {
|
if ($('#TemplateConfiguration_options').length > 0 && !generalInherit()) {
|
||||||
try {
|
try {
|
||||||
optionObject = JSON.parse($('#TemplateConfiguration_options').val());
|
optionObject = JSON.parse($('#TemplateConfiguration_options').val());
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.ls ? console.ls.error('No valid option field!') : console.log('No valid option field!');
|
console.ls ? console.ls.error('No valid option field!') : console.log('No valid option field!');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// Show/Hide fields on generalInherit
|
// Show/Hide fields on generalInherit
|
||||||
// To hide a simple option on generalInherit: just add the class "action_hide_on_inherit" to the rows continaing it
|
// To hide a simple option on generalInherit: just add the class "action_hide_on_inherit" to the rows continaing it
|
||||||
var startupGeneralInherit = function () {
|
var startupGeneralInherit = function () {
|
||||||
|
|
||||||
if (!inheritPossible) return false;
|
if (!inheritPossible) return false;
|
||||||
|
|
||||||
if (generalInherit()) {
|
if (generalInherit()) {
|
||||||
$('#general_inherit_on').prop('checked', true).trigger('change').closest('label').addClass('active');
|
$('#general_inherit_on').prop('checked', true).trigger('change').closest('label').addClass('active');
|
||||||
$('.action_hide_on_inherit').addClass('d-none');
|
$('.action_hide_on_inherit').addClass('d-none');
|
||||||
} else {
|
} else {
|
||||||
$('#general_inherit_off').prop('checked', true).trigger('change').closest('label').addClass('active');
|
$('#general_inherit_off').prop('checked', true).trigger('change').closest('label').addClass('active');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// So this function find the selectors in the forum, and pass their values to the advanced options
|
// So this function find the selectors in the forum, and pass their values to the advanced options
|
||||||
var updateFieldSettings = function () {
|
var updateFieldSettings = function () {
|
||||||
|
|
||||||
if ($('#general_inherit_on').prop('checked')) {
|
if ($('#general_inherit_on').prop('checked')) {
|
||||||
$('#TemplateConfiguration_options').val('inherit');
|
$('#TemplateConfiguration_options').val('inherit');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
globalForm.find('.selector_option_value_field').each(function (i, item) {
|
globalForm.find('.selector_option_value_field').each(function (i, item) {
|
||||||
//disabled items should be inherit or false
|
//disabled items should be inherit or false
|
||||||
if ($(item).prop('disabled')) {
|
if ($(item).prop('disabled')) {
|
||||||
$(item).val((inheritPossible ? 'inherit' : false));
|
$(item).val((inheritPossible ? 'inherit' : false));
|
||||||
}
|
}
|
||||||
|
|
||||||
optionObject[$(item).attr('name')] = $(item).val();
|
optionObject[$(item).attr('name')] = $(item).val();
|
||||||
});
|
});
|
||||||
|
|
||||||
globalForm.find('.selector_option_radio_field ').each(function (i, item) {
|
globalForm.find('.selector_option_radio_field ').each(function (i, item) {
|
||||||
//disabled items should be inherit or false
|
//disabled items should be inherit or false
|
||||||
if ($(item).prop('disabled')) {
|
if ($(item).prop('disabled')) {
|
||||||
$(item).val((inheritPossible ? 'inherit' : false));
|
$(item).val((inheritPossible ? 'inherit' : false));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($(item).attr('type') == 'radio') {
|
if ($(item).attr('type') == 'radio') {
|
||||||
if ($(item).prop('checked')) {
|
if ($(item).prop('checked')) {
|
||||||
optionObject[$(item).attr('name')] = $(item).val();
|
optionObject[$(item).attr('name')] = $(item).val();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
var newOptionObject = $.extend(true, {}, optionObject);
|
var newOptionObject = $.extend(true, {}, optionObject);
|
||||||
delete newOptionObject.general_inherit;
|
delete newOptionObject.general_inherit;
|
||||||
|
|
||||||
$('#TemplateConfiguration_options').val(JSON.stringify(newOptionObject));
|
$('#TemplateConfiguration_options').val(JSON.stringify(newOptionObject));
|
||||||
};
|
};
|
||||||
|
|
||||||
///////////////
|
///////////////
|
||||||
// Utility Methods
|
// Utility Methods
|
||||||
// -- small utilities i.g. for images or similar, or very specialized functions
|
// -- small utilities i.g. for images or similar, or very specialized functions
|
||||||
|
|
||||||
//Parses the option value for an item
|
//Parses the option value for an item
|
||||||
var parseOptionValue = function (item, fallbackValue) {
|
var parseOptionValue = function (item, fallbackValue) {
|
||||||
fallbackValue = fallbackValue || false;
|
fallbackValue = fallbackValue || false;
|
||||||
// If general inherit, then the value of the dropdown is inherit, else it's the value defined in advanced options
|
// If general inherit, then the value of the dropdown is inherit, else it's the value defined in advanced options
|
||||||
var itemValue = generalInherit() ? 'inherit' : optionObject[$(item).attr('name')];
|
var itemValue = generalInherit() ? 'inherit' : optionObject[$(item).attr('name')];
|
||||||
|
|
||||||
// If anything goes wrong (manual edit or anything else), we make sure it will have a correct value
|
// If anything goes wrong (manual edit or anything else), we make sure it will have a correct value
|
||||||
if (itemValue == null || itemValue == undefined) {
|
if (itemValue == null || itemValue == undefined) {
|
||||||
itemValue = inheritPossible ? 'inherit' : fallbackValue;
|
itemValue = inheritPossible ? 'inherit' : fallbackValue;
|
||||||
optionObject[$(item).attr('name')] = itemValue;
|
optionObject[$(item).attr('name')] = itemValue;
|
||||||
}
|
}
|
||||||
return itemValue;
|
return itemValue;
|
||||||
};
|
};
|
||||||
|
|
||||||
//Set value and propagate to bootstrapSwitch
|
//Set value and propagate to bootstrapSwitch
|
||||||
var setAndPropageteToSwitch = function (item) {
|
var setAndPropageteToSwitch = function (item) {
|
||||||
$(item).prop('checked', true).trigger('change');
|
$(item).prop('checked', true).trigger('change');
|
||||||
$(item).closest('label').addClass('active');
|
$(item).closest('label').addClass('active');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
///////////////
|
///////////////
|
||||||
// Parser methods
|
// Parser methods
|
||||||
// -- These methods will either parse through existing fields, or set existing fields to their correct values
|
// -- These methods will either parse through existing fields, or set existing fields to their correct values
|
||||||
|
|
||||||
// Update values in the form to the template options
|
// Update values in the form to the template options
|
||||||
// selector_option_value_field are the select dropdown (like variations and fonts)
|
// selector_option_value_field are the select dropdown (like variations and fonts)
|
||||||
var prepareSelectField = function () {
|
var prepareSelectField = function () {
|
||||||
globalForm.find('.selector_option_value_field').each(function (i, item) {
|
globalForm.find('.selector_option_value_field').each(function (i, item) {
|
||||||
var itemValue = parseOptionValue(item);
|
var itemValue = parseOptionValue(item);
|
||||||
$(item).val(itemValue);
|
$(item).val(itemValue);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
// Generate the state of switches (On/Off/Inherit)
|
// Generate the state of switches (On/Off/Inherit)
|
||||||
var parseParentSwitchFields = function () {
|
var parseParentSwitchFields = function () {
|
||||||
globalForm.find('.selector_option_radio_field').each(function (i, item) {
|
globalForm.find('.selector_option_radio_field').each(function (i, item) {
|
||||||
|
|
||||||
var itemValue = parseOptionValue(item, 'off');
|
var itemValue = parseOptionValue(item, 'off');
|
||||||
|
|
||||||
//if it is a radio selector, check it and propagate the change to bootstrapSwitch
|
//if it is a radio selector, check it and propagate the change to bootstrapSwitch
|
||||||
if ($(item).val() == itemValue) {
|
if ($(item).val() == itemValue) {
|
||||||
setAndPropageteToSwitch(item);
|
setAndPropageteToSwitch(item);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
var prepareFontField = function () {
|
var prepareFontField = function () {
|
||||||
optionObject.font = optionObject.font || (inheritPossible ? 'inherit' : 'roboto');
|
optionObject.font = optionObject.font || (inheritPossible ? 'inherit' : 'roboto');
|
||||||
|
|
||||||
if (optionObject.font !== 'inherit') {
|
if (optionObject.font !== 'inherit') {
|
||||||
$('#simple_edit_options_font').val(optionObject.font);
|
$('#simple_edit_options_font').val(optionObject.font);
|
||||||
}
|
}
|
||||||
updateFieldSettings();
|
updateFieldSettings();
|
||||||
};
|
};
|
||||||
|
|
||||||
///////////////
|
///////////////
|
||||||
// HotSwap methods
|
// HotSwap methods
|
||||||
// -- These methods connect an input directly to the value in the optionsObject
|
// -- These methods connect an input directly to the value in the optionsObject
|
||||||
|
|
||||||
// Disable dependent inputs when their parents are set to off, or inherit
|
// Disable dependent inputs when their parents are set to off, or inherit
|
||||||
var hotSwapParentRadioButtons = function () {
|
var hotSwapParentRadioButtons = function () {
|
||||||
// hotswapping the select fields to the radiobuttons
|
// hotswapping the select fields to the radiobuttons
|
||||||
// If an option is set to off, the attached selectors are disabled
|
// If an option is set to off, the attached selectors are disabled
|
||||||
$('.selector_radio_childfield').each(function (i, selectorItem) {
|
$('.selector_radio_childfield').each(function (i, selectorItem) {
|
||||||
$('input[name=' + $(selectorItem).data('parent') + ']').on('change', function () {
|
$('input[name=' + $(selectorItem).data('parent') + ']').on('change', function () {
|
||||||
|
|
||||||
if ($(this).val() === 'on' && $(this).prop('checked') == true) {
|
if ($(this).val() === 'on' && $(this).prop('checked') == true) {
|
||||||
$(selectorItem).prop('disabled', false);
|
$(selectorItem).prop('disabled', false);
|
||||||
} else {
|
} else {
|
||||||
$(selectorItem).prop('disabled', true);
|
$(selectorItem).prop('disabled', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// disabled this part to always be able to click on "Preview image" button
|
// disabled this part to always be able to click on "Preview image" button
|
||||||
/*
|
/*
|
||||||
if ($(selectorItem).hasClass('selector_image_selector')) {
|
if ($(selectorItem).hasClass('selector_image_selector')) {
|
||||||
$('button[data-target="#' + $(selectorItem).attr('id') + '"]').prop('disabled', $(selectorItem).val() == 'inherit');
|
$('button[data-target="#' + $(selectorItem).attr('id') + '"]').prop('disabled', $(selectorItem).val() == 'inherit');
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
// hotswapping the fields
|
// hotswapping the fields
|
||||||
var hotSwapFields = function () {
|
var hotSwapFields = function () {
|
||||||
|
|
||||||
globalForm.find('.selector_option_value_field').on('change', function (evt) {
|
globalForm.find('.selector_option_value_field').on('change', function (evt) {
|
||||||
updateFieldSettings();
|
updateFieldSettings();
|
||||||
});
|
});
|
||||||
|
|
||||||
globalForm.find('.selector_option_radio_field').on('change', updateFieldSettings);
|
globalForm.find('.selector_option_radio_field').on('change', updateFieldSettings);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
var hotswapGeneralInherit = function () {
|
var hotswapGeneralInherit = function () {
|
||||||
//hotswapping the general inherit
|
//hotswapping the general inherit
|
||||||
$('#general_inherit_on').on('change', function (evt) {
|
$('#general_inherit_on').on('change', function (evt) {
|
||||||
$('#TemplateConfiguration_options').val('inherit');
|
$('#TemplateConfiguration_options').val('inherit');
|
||||||
$('.action_hide_on_inherit').addClass('d-none');
|
$('.action_hide_on_inherit').addClass('d-none');
|
||||||
});
|
});
|
||||||
$('#general_inherit_off').on('change', function (evt) {
|
$('#general_inherit_off').on('change', function (evt) {
|
||||||
$('.action_hide_on_inherit').removeClass('d-none');
|
$('.action_hide_on_inherit').removeClass('d-none');
|
||||||
updateFieldSettings();
|
updateFieldSettings();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
var hotswapFontField = function () {
|
var hotswapFontField = function () {
|
||||||
$('#simple_edit_options_font').on('change', function (evt) {
|
$('#simple_edit_options_font').on('change', function (evt) {
|
||||||
var currentPackageObject = $('#TemplateConfiguration_packages_to_load').val() !== 'inherit'
|
var currentPackageObject = $('#TemplateConfiguration_packages_to_load').val() !== 'inherit'
|
||||||
? JSON.parse($('#TemplateConfiguration_packages_to_load').val())
|
? JSON.parse($('#TemplateConfiguration_packages_to_load').val())
|
||||||
: $(this).data('inheritvalue');
|
: $(this).data('inheritvalue');
|
||||||
|
|
||||||
if ($('#simple_edit_options_font').val() === 'inherit') {
|
if ($('#simple_edit_options_font').val() === 'inherit') {
|
||||||
|
|
||||||
$('#TemplateConfiguration_packages_to_load').val('inherit');
|
$('#TemplateConfiguration_packages_to_load').val('inherit');
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
var selectedFontPackage = $(this).find('option:selected');
|
var selectedFontPackage = $(this).find('option:selected');
|
||||||
var packageName = selectedFontPackage.data('font-package');
|
var packageName = selectedFontPackage.data('font-package');
|
||||||
var formatedPackageName = 'font-' + packageName;
|
var formatedPackageName = 'font-' + packageName;
|
||||||
|
|
||||||
var filteredAdd = currentPackageObject.add.filter(function (value, index) {
|
var filteredAdd = currentPackageObject.add.filter(function (value, index) {
|
||||||
return !(/^font-.*$/.test(String(value)));
|
return !(/^font-.*$/.test(String(value)));
|
||||||
});
|
});
|
||||||
filteredAdd.push(formatedPackageName);
|
filteredAdd.push(formatedPackageName);
|
||||||
currentPackageObject.add = filteredAdd;
|
currentPackageObject.add = filteredAdd;
|
||||||
$('#TemplateConfiguration_packages_to_load').val(JSON.stringify(currentPackageObject));
|
$('#TemplateConfiguration_packages_to_load').val(JSON.stringify(currentPackageObject));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
///////////////
|
///////////////
|
||||||
// Event methods
|
// Event methods
|
||||||
// -- These methods are triggered on events. Please see `bind´ method for more information
|
// -- These methods are triggered on events. Please see `bind´ method for more information
|
||||||
var onSaveButtonClickAction = function (evt) {
|
var onSaveButtonClickAction = function (evt) {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
|
|
||||||
if (generalInherit()) {
|
if (generalInherit()) {
|
||||||
$('#TemplateConfiguration_options').val('inherit');
|
$('#TemplateConfiguration_options').val('inherit');
|
||||||
$('#template-options-form').trigger('submit'); // submit the form
|
$('#template-options-form').trigger('submit'); // submit the form
|
||||||
} else {
|
} else {
|
||||||
//Create a copy of the inherent optionObject
|
//Create a copy of the inherent optionObject
|
||||||
var newOptionObject = $.extend(true, {}, optionObject);
|
var newOptionObject = $.extend(true, {}, optionObject);
|
||||||
newOptionObject.generalInherit = null;
|
newOptionObject.generalInherit = null;
|
||||||
|
|
||||||
// Now write the newly created object to the correspondent field as a json string
|
// Now write the newly created object to the correspondent field as a json string
|
||||||
$('#TemplateConfiguration_options').val(JSON.stringify(newOptionObject));
|
$('#TemplateConfiguration_options').val(JSON.stringify(newOptionObject));
|
||||||
|
|
||||||
// And submit the form
|
// And submit the form
|
||||||
// Beware, we are triggering 'submit' directly, which doesn't trigger HTML5 validations.
|
// Beware, we are triggering 'submit' directly, which doesn't trigger HTML5 validations.
|
||||||
// No HTML5 validations needed here, so all good.
|
// No HTML5 validations needed here, so all good.
|
||||||
// If not we would need to add a hidden submit button and trigger a 'click' on it. (see fruity theme).
|
// If not we would need to add a hidden submit button and trigger a 'click' on it. (see fruity theme).
|
||||||
// Like these: $('#template-options-form').find('button[type=submit]').trigger('click');
|
// Like these: $('#template-options-form').find('button[type=submit]').trigger('click');
|
||||||
$('#template-options-form').trigger('submit');
|
$('#template-options-form').trigger('submit');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
///////////////
|
///////////////
|
||||||
// Instance methods
|
// Instance methods
|
||||||
var bind = function () {
|
var bind = function () {
|
||||||
//if the save button is clicked write everything into the template option field and send the form
|
//if the save button is clicked write everything into the template option field and send the form
|
||||||
$('.action_update_options_string_button, #theme-options--submit').on('click', onSaveButtonClickAction);
|
$('.action_update_options_string_button, #theme-options--submit').on('click', onSaveButtonClickAction);
|
||||||
|
|
||||||
//Bind the hotwaps
|
//Bind the hotwaps
|
||||||
hotSwapParentRadioButtons();
|
hotSwapParentRadioButtons();
|
||||||
hotSwapFields();
|
hotSwapFields();
|
||||||
hotswapGeneralInherit();
|
hotswapGeneralInherit();
|
||||||
hotswapFontField();
|
hotswapFontField();
|
||||||
};
|
};
|
||||||
|
|
||||||
var run = function () {
|
var run = function () {
|
||||||
parseOptionObject();
|
parseOptionObject();
|
||||||
|
|
||||||
startupGeneralInherit();
|
startupGeneralInherit();
|
||||||
|
|
||||||
prepareSelectField();
|
prepareSelectField();
|
||||||
parseParentSwitchFields();
|
parseParentSwitchFields();
|
||||||
prepareFontField();
|
prepareFontField();
|
||||||
|
|
||||||
bind();
|
bind();
|
||||||
};
|
};
|
||||||
|
|
||||||
return run;
|
return run;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
var prepare = function () {
|
var prepare = function () {
|
||||||
|
|
||||||
var deferred = $.Deferred();
|
var deferred = $.Deferred();
|
||||||
|
|
||||||
//activate the bootstrap switch for checkboxes
|
//activate the bootstrap switch for checkboxes
|
||||||
$('.action_activate_bootstrapswitch').bootstrapSwitch();
|
$('.action_activate_bootstrapswitch').bootstrapSwitch();
|
||||||
|
|
||||||
var themeOptionStarter = new ThemeOptions();
|
var themeOptionStarter = new ThemeOptions();
|
||||||
themeOptionStarter();
|
themeOptionStarter();
|
||||||
|
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
deferred.resolve();
|
deferred.resolve();
|
||||||
}, 650);
|
}, 650);
|
||||||
return deferred.promise();
|
return deferred.promise();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
$(document).off('pjax:scriptcomplete.templateOptions').on('ready pjax:scriptcomplete.templateOptions', function () {
|
$(document).off('pjax:scriptcomplete.templateOptions').on('ready pjax:scriptcomplete.templateOptions', function () {
|
||||||
$('.simple-template-edit-loading').css('display', 'block');
|
$('.simple-template-edit-loading').css('display', 'block');
|
||||||
prepare().then(function (runsesolve) {
|
prepare().then(function (runsesolve) {
|
||||||
$('.simple-template-edit-loading').css('display', 'none');
|
$('.simple-template-edit-loading').css('display', 'none');
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.selector__open_lightbox').on('click', function (e) {
|
$('.selector__open_lightbox').on('click', function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var imgSrc = $($(this).data('bs-target')).find('option:selected').data('lightbox-src');
|
var imgSrc = $($(this).data('bs-target')).find('option:selected').data('lightbox-src');
|
||||||
var imgTitle = $($(this).data('bs-target')).val();
|
var imgTitle = $($(this).data('bs-target')).val();
|
||||||
imgTitle = imgTitle.split('/').pop();
|
imgTitle = imgTitle.split('/').pop();
|
||||||
$('#lightbox-modal').find('.selector__title').text(imgTitle);
|
$('#lightbox-modal').find('.selector__title').text(imgTitle);
|
||||||
$('#lightbox-modal').find('.selector__image').attr({'src': imgSrc, 'alt': imgTitle});
|
$('#lightbox-modal').find('.selector__image').attr({'src': imgSrc, 'alt': imgTitle});
|
||||||
$('#lightbox-modal').modal('show');
|
$('#lightbox-modal').modal('show');
|
||||||
});
|
});
|
||||||
|
|
||||||
var uploadImageBind = new bindUpload({
|
var uploadImageBind = new bindUpload({
|
||||||
form: '#upload_frontend',
|
form: '#upload_frontend',
|
||||||
input: '#upload_image_frontend',
|
input: '#upload_image_frontend',
|
||||||
progress: '#upload_progress_frontend',
|
progress: '#upload_progress_frontend',
|
||||||
onBeforeSend: function () {
|
onBeforeSend: function () {
|
||||||
$('.simple-template-edit-loading').css('display', 'block');
|
$('.simple-template-edit-loading').css('display', 'block');
|
||||||
},
|
},
|
||||||
onSuccess: function () {
|
onSuccess: function () {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
$(document).trigger('pjax:load', {url: window.location.href});
|
$(document).trigger('pjax:load', {url: window.location.href});
|
||||||
}, 2500);
|
}, 2500);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
226
sass/_base.sass
226
sass/_base.sass
|
|
@ -1,114 +1,114 @@
|
||||||
body.font-arial
|
body.font-arial
|
||||||
font-family: Arial, Helvetica, sans-serif
|
font-family: Arial, Helvetica, sans-serif
|
||||||
|
|
||||||
body.font-arial_black
|
body.font-arial_black
|
||||||
font-family: ArialBlack, Helvetica, sans-serif
|
font-family: ArialBlack, Helvetica, sans-serif
|
||||||
|
|
||||||
body.font-opensans
|
body.font-opensans
|
||||||
font-family: "Open Sans", Helvetica, sans-serif
|
font-family: "Open Sans", Helvetica, sans-serif
|
||||||
|
|
||||||
body.font-georgia
|
body.font-georgia
|
||||||
font-family: Georgia, 'Times New Roman', Times, serif
|
font-family: Georgia, 'Times New Roman', Times, serif
|
||||||
|
|
||||||
body.font-courier
|
body.font-courier
|
||||||
font-family: 'Courier New', Courier, monospace
|
font-family: 'Courier New', Courier, monospace
|
||||||
|
|
||||||
#welcome-container
|
#welcome-container
|
||||||
padding: 15px
|
padding: 15px
|
||||||
margin-top: 30px
|
margin-top: 30px
|
||||||
|
|
||||||
.top-container
|
.top-container
|
||||||
.top-content
|
.top-content
|
||||||
padding-bottom: 0
|
padding-bottom: 0
|
||||||
margin-bottom: 0
|
margin-bottom: 0
|
||||||
|
|
||||||
.row.question-container
|
.row.question-container
|
||||||
margin-left: 0
|
margin-left: 0
|
||||||
margin-right: 0
|
margin-right: 0
|
||||||
|
|
||||||
#navigator-container
|
#navigator-container
|
||||||
margin-top: 15px
|
margin-top: 15px
|
||||||
|
|
||||||
.privacy
|
.privacy
|
||||||
.ls-privacy-head, p.ls-privacy-body
|
.ls-privacy-head, p.ls-privacy-body
|
||||||
background: white
|
background: white
|
||||||
padding: 15px
|
padding: 15px
|
||||||
margin-bottom: 0
|
margin-bottom: 0
|
||||||
|
|
||||||
h1.survey-name
|
h1.survey-name
|
||||||
margin-top: 0
|
margin-top: 0
|
||||||
font-weight: bold
|
font-weight: bold
|
||||||
|
|
||||||
.group-description
|
.group-description
|
||||||
margin-bottom: 15px
|
margin-bottom: 15px
|
||||||
|
|
||||||
#surveys-list-container
|
#surveys-list-container
|
||||||
background: white
|
background: white
|
||||||
padding: 15px
|
padding: 15px
|
||||||
|
|
||||||
.question-container
|
.question-container
|
||||||
border: inherit
|
border: inherit
|
||||||
margin-bottom: 30px
|
margin-bottom: 30px
|
||||||
|
|
||||||
.ls-questionhelp
|
.ls-questionhelp
|
||||||
margin-bottom: 5px
|
margin-bottom: 5px
|
||||||
margin-top: 5px
|
margin-top: 5px
|
||||||
p
|
p
|
||||||
margin-bottom: 0
|
margin-bottom: 0
|
||||||
|
|
||||||
table.ls-answers
|
table.ls-answers
|
||||||
margin-top: 15px
|
margin-top: 15px
|
||||||
margin-bottom: 15px
|
margin-bottom: 15px
|
||||||
|
|
||||||
.sortable-rank
|
.sortable-rank
|
||||||
background: white
|
background: white
|
||||||
|
|
||||||
.ls-answers .ls-heading th
|
.ls-answers .ls-heading th
|
||||||
font-weight: inherit
|
font-weight: inherit
|
||||||
vertical-align: top
|
vertical-align: top
|
||||||
|
|
||||||
.privacy-block
|
.privacy-block
|
||||||
padding: 15px
|
padding: 15px
|
||||||
|
|
||||||
.privacy .form-check
|
.privacy .form-check
|
||||||
padding: 15px
|
padding: 15px
|
||||||
background: lightyellow
|
background: lightyellow
|
||||||
.form-check-input
|
.form-check-input
|
||||||
float: none
|
float: none
|
||||||
margin-left: 0
|
margin-left: 0
|
||||||
|
|
||||||
#datasecurity_notice
|
#datasecurity_notice
|
||||||
margin-bottom: 15px
|
margin-bottom: 15px
|
||||||
|
|
||||||
.save-form
|
.save-form
|
||||||
background: white
|
background: white
|
||||||
.return-to-survey
|
.return-to-survey
|
||||||
padding-left: 15px
|
padding-left: 15px
|
||||||
padding-bottom: 15px
|
padding-bottom: 15px
|
||||||
|
|
||||||
.save-message
|
.save-message
|
||||||
.h2
|
.h2
|
||||||
margin-top: 0
|
margin-top: 0
|
||||||
font-weight: 700
|
font-weight: 700
|
||||||
.text-warning
|
.text-warning
|
||||||
color: inherit !important
|
color: inherit !important
|
||||||
font-weight: 700
|
font-weight: 700
|
||||||
|
|
||||||
.save-survey-form
|
.save-survey-form
|
||||||
background: white
|
background: white
|
||||||
padding: 15px
|
padding: 15px
|
||||||
|
|
||||||
.checkbox-item input[type=checkbox]:checked + label::after,
|
.checkbox-item input[type=checkbox]:checked + label::after,
|
||||||
.checkbox-item input[type=radio]:checked + label::after
|
.checkbox-item input[type=radio]:checked + label::after
|
||||||
content: ""
|
content: ""
|
||||||
|
|
||||||
.btn-primary
|
.btn-primary
|
||||||
border: none
|
border: none
|
||||||
&:hover
|
&:hover
|
||||||
filter: grayscale(0.5)
|
filter: grayscale(0.5)
|
||||||
&:focus
|
&:focus
|
||||||
filter: grayscale(0.5)
|
filter: grayscale(0.5)
|
||||||
&.active
|
&.active
|
||||||
filter: grayscale(0.5)
|
filter: grayscale(0.5)
|
||||||
&:active
|
&:active
|
||||||
filter: grayscale(0.5)
|
filter: grayscale(0.5)
|
||||||
|
|
@ -1,32 +1,32 @@
|
||||||
.qback_red .question-title-container
|
.qback_red .question-title-container
|
||||||
background: red
|
background: red
|
||||||
|
|
||||||
.qback_orange .question-title-container
|
.qback_orange .question-title-container
|
||||||
background: darkorange
|
background: darkorange
|
||||||
|
|
||||||
.qback_green .question-title-container
|
.qback_green .question-title-container
|
||||||
background: darkgreen
|
background: darkgreen
|
||||||
|
|
||||||
.qback_transparent .question-title-container
|
.qback_transparent .question-title-container
|
||||||
background: transparent
|
background: transparent
|
||||||
|
|
||||||
div.qvideo
|
div.qvideo
|
||||||
display: flex
|
display: flex
|
||||||
.video
|
.video
|
||||||
max-width: 100%
|
max-width: 100%
|
||||||
height: auto
|
height: auto
|
||||||
.question-title-container, .answer-container
|
.question-title-container, .answer-container
|
||||||
flex-grow: 2
|
flex-grow: 2
|
||||||
.question-title-container
|
.question-title-container
|
||||||
background: transparent
|
background: transparent
|
||||||
color: #5A1D64
|
color: #5A1D64
|
||||||
.answer-container
|
.answer-container
|
||||||
padding-left: 30px
|
padding-left: 30px
|
||||||
.question-valid-container
|
.question-valid-container
|
||||||
display: none
|
display: none
|
||||||
|
|
||||||
.hide-first-row table.ls-answers tr.answers-list:first-child
|
.hide-first-row table.ls-answers tr.answers-list:first-child
|
||||||
display: none
|
display: none
|
||||||
|
|
||||||
.hidden
|
.hidden
|
||||||
display: none
|
display: none
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
.progress
|
.progress
|
||||||
border-radius: 0
|
border-radius: 0
|
||||||
box-shadow: none
|
box-shadow: none
|
||||||
|
|
||||||
.progress-bar
|
.progress-bar
|
||||||
font-size: 80%
|
font-size: 80%
|
||||||
padding-left: 2px
|
padding-left: 2px
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
#surveys-list-container
|
#surveys-list-container
|
||||||
background: white
|
background: white
|
||||||
padding: 15px
|
padding: 15px
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
@use 'base'
|
@use 'base'
|
||||||
@use 'surveys-list'
|
@use 'surveys-list'
|
||||||
@use 'progress'
|
@use 'progress'
|
||||||
@use 'extras'
|
@use 'extras'
|
||||||
|
|
@ -1,40 +1,40 @@
|
||||||
/******************
|
/******************
|
||||||
User custom JS
|
User custom JS
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
Put JS-functions for your template here.
|
Put JS-functions for your template here.
|
||||||
If possible use a closure, or add them to the general Template Object "Template"
|
If possible use a closure, or add them to the general Template Object "Template"
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
$(document).on('ready pjax:scriptcomplete',function(){
|
$(document).on('ready pjax:scriptcomplete',function(){
|
||||||
/**
|
/**
|
||||||
* Code included inside this will only run once the page Document Object Model (DOM) is ready for JavaScript code to execute
|
* Code included inside this will only run once the page Document Object Model (DOM) is ready for JavaScript code to execute
|
||||||
* @see https://learn.jquery.com/using-jquery-core/document-ready/
|
* @see https://learn.jquery.com/using-jquery-core/document-ready/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Replace classes
|
// Replace classes
|
||||||
$('.container-fluid').addClass('container');
|
$('.container-fluid').addClass('container');
|
||||||
$('.container-fluid').removeClass('container-fluid');
|
$('.container-fluid').removeClass('container-fluid');
|
||||||
|
|
||||||
// Remove classes
|
// Remove classes
|
||||||
$('.survey-name.text-center').removeClass('text-center');
|
$('.survey-name.text-center').removeClass('text-center');
|
||||||
$('.survey-description.text-center').removeClass('text-center');
|
$('.survey-description.text-center').removeClass('text-center');
|
||||||
$('.survey-welcome.h5.text-primary').removeClass('text-primary');
|
$('.survey-welcome.h5.text-primary').removeClass('text-primary');
|
||||||
$('.survey-welcome.h5').removeClass('h5');
|
$('.survey-welcome.h5').removeClass('h5');
|
||||||
$('.ls-privacy-head.h4.text-primary').removeClass('text-primary');
|
$('.ls-privacy-head.h4.text-primary').removeClass('text-primary');
|
||||||
$('.ls-privacy-head.h4').removeClass('h4');
|
$('.ls-privacy-head.h4').removeClass('h4');
|
||||||
$('.space-col').removeClass('space-col'); //The presence of .space-col is one of the greatest mistakes in the Vanilla theme IMHO
|
$('.space-col').removeClass('space-col'); //The presence of .space-col is one of the greatest mistakes in the Vanilla theme IMHO
|
||||||
$('.group-title.text-center.h3').removeClass('h3');
|
$('.group-title.text-center.h3').removeClass('h3');
|
||||||
$('.group-title.text-center').removeClass('text-center');
|
$('.group-title.text-center').removeClass('text-center');
|
||||||
$('.text-info').removeClass('text-info');
|
$('.text-info').removeClass('text-info');
|
||||||
$('.text-muted').removeClass('text-muted');
|
$('.text-muted').removeClass('text-muted');
|
||||||
$('.limit-text-window').removeClass('limit-text-window');
|
$('.limit-text-window').removeClass('limit-text-window');
|
||||||
$('.save-message.card').removeClass('card');
|
$('.save-message.card').removeClass('card');
|
||||||
$('.save-message.bg-light').removeClass('bg-light');
|
$('.save-message.bg-light').removeClass('bg-light');
|
||||||
$('.save-survey-form.col-lg-8.offset-lg-2').removeClass('offset-lg-2');
|
$('.save-survey-form.col-lg-8.offset-lg-2').removeClass('offset-lg-2');
|
||||||
$('.save-survey-form.col-lg-8').removeClass('col-lg-8');
|
$('.save-survey-form.col-lg-8').removeClass('col-lg-8');
|
||||||
$('.save-message .card-body').removeClass('card-body');
|
$('.save-message .card-body').removeClass('card-body');
|
||||||
$('.navbar-light.bg-light').removeClass('bg-light');
|
$('.navbar-light.bg-light').removeClass('bg-light');
|
||||||
$('.privacy.row').removeClass('row');
|
$('.privacy.row').removeClass('row');
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue