Skip to content

Commit

Permalink
Dev: Leave only one template for testing for alpha tester
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnoulle committed Nov 2, 2016
1 parent 9c261a6 commit 4e6bb87
Show file tree
Hide file tree
Showing 184 changed files with 1,204 additions and 38,338 deletions.
180 changes: 89 additions & 91 deletions templates/default/config.xml
Expand Up @@ -7,113 +7,111 @@

<config>
<!-- Those metadatas will be display in the template configuration page. They are not used for now. -->
<metadatas>
<name>New Default</name>
<creationDate>20/10/2016</creationDate>
<author>Tammo ter Hark</author>
<authorEmail>Tammo.terHark@toolsforresearch.com</authorEmail>
<authorUrl>http://www.toolsforresearch.com</authorUrl>
<copyright>Copyright 2016 Tools for Research BV. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later</license>
<version>1.0</version>
<description>Another Default LimeSurvey Template.</description>
<last_update>2016-10-20 10:10:10</last_update>
</metadatas>
<metadatas>
<name>Default</name>
<creationDate>08/01/2016</creationDate>

This comment has been minimized.

Copy link
@olleharstedt

olleharstedt Mar 23, 2018

Collaborator

I think we should use ISO standard for dates... Like "2016-10-20".

This comment has been minimized.

Copy link
@LouisGac

LouisGac Mar 23, 2018

Contributor

good idea

<author>Louis-Sébastien Gac Artigas</author>
<authorEmail>louis.gac@limesurvey.org</authorEmail>
<authorUrl>http://www.limesurvey.org</authorUrl>
<copyright>Copyright (C) 2005 - 2016 LimeSurvey Gmbh, Inc. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later</license>
<version>1.0</version>
<description>Default LimeSurvey Template.</description>
<last_update>2016-05-13 10:46:00</last_update>
</metadatas>

<!--
Here the list of the css/js files to load.
Any file here will be loaded via the asset manager
-->
<files>
<css>
<filename>css/bootstrap.min.css</filename>
<filename>css/jquery-ui-custom.css</filename>
<filename>css/bootstrap-slider.css</filename>
<filename>css/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css</filename>
<filename>css/ls-functional.css</filename>
<filename>css/template.css</filename>
</css>
<js>
<filename>scripts/template.js</filename>
<filename>scripts/bootstrap-slider.js</filename>
</js>
<print_css>
<filename>css/print_template.css</filename>
</print_css>
<files>
<css>
<filename>css/jquery-ui-custom.css</filename>

<!--
Those files will be loaded for right to left languages only
NOTE 1: If for any reason, you need to edit the RTL behaviors, feel free to contact the LimeSurvey team about it.
We'll be always pleased to make the right to left display better.
<filename>css/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css</filename>
<filename>css/flat_and_modern.css</filename>
<filename>css/bootstrap-ls.css</filename>
<filename>css/bootstrap-complement.css</filename>
<filename>css/template-core.css</filename>
<filename>css/template.css</filename>
</css>
<js>
<filename>scripts/template.js</filename>
</js>
<print_css>
<filename>css/print_template.css</filename>
</print_css>

NOTE 2: those files are generated with the script R2. See: https://github.com/ded/R2
-->
<rtl>
<css>
<filename>cssrtl/jquery-ui-custom-rtl.css</filename>
<filename>cssrtl/bootstrap-slider-rtl.css</filename>
<filename>cssrtl/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox-rtl.css</filename>
<filename>cssrtl/flat_and_modern-rtl.css</filename>
<filename>cssrtl/template-rtl.css</filename>
</css>
<js>
<filename>scripts/template.js</filename>
<filename>scripts/bootstrap-slider.js</filename>
</js>
<print_css>
<filename>css/print_template-rtl.css</filename>
</print_css>
</rtl>
<!--
Those files will be loaded for right to left languages only
NOTE 1: If for any reason, you need to edit the RTL behaviors, feel free to contact the LimeSurvey team about it.
We'll be always pleased to make the right to left display better.
NOTE 2: those files are generated with the script R2. See: https://github.com/ded/R2
-->
<rtl>
<css>
<filename>css/jquery-ui-custom-rtl.css</filename>
<filename>css/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox-rtl.css</filename>
<filename>css/flat_and_modern-rtl.css</filename>
<filename>css/template-rtl.css</filename>
</css>
<js>
<filename>scripts/template.js</filename>
</js>
<print_css>
<filename>css/print_template-rtl.css</filename>
</print_css>
</rtl>

<!-- The logo is used for now only for Surveys List -->
<logo>
<filename>files/logo.png</filename>
</logo>
</files>
<!-- The logo is used for now only for Surveys List -->
<logo>
<filename>files/logo.png</filename>
</logo>
</files>

<!--
Here the list of the css/js files the user is allowed to edit from the template editor.
If the template does not contain any reference to external images, those files will be published one by one with the asset manager.
So any edition of those files will update the tmp/asset directory, and users will not need to refresh browser cache
-->
<files_editable>
<css>
<filename>css/template.css</filename>
<filename>css/ls-functional.css</filename>
</css>
<js>
<filename>scripts/template.js</filename>
<filename>scripts/bootstrap-slider.js</filename>
</js>
</files_editable>
<files_editable>
<css>
<filename>css/flat_and_modern.css</filename>
<filename>css/template.css</filename>
</css>
<js>
<filename>scripts/template.js</filename>
<filename>scripts/bootstrap-slider.js</filename>
</js>
</files_editable>

<!-- Here datas about how LimeSurvey should load the template -->
<engine>
<!-- If empty, bootstrap css/js files will not be loaded. In the future, we could had more engines, like foundation -->
<cssframework>bootstrap</cssframework>
<!-- Path of the pstpl files -->
<pstpldirectory>views</pstpldirectory>
<!-- Here datas about how LimeSurvey should load the template -->
<engine>
<!-- If empty, bootstrap css/js files will not be loaded. In the future, we could had more engines, like foundation -->
<cssframework>bootstrap</cssframework>
<!-- Path of the pstpl files -->
<pstpldirectory>views</pstpldirectory>

<!--
Set to yes to overwrite the question views,
then, just copy application/views/survey/* to template/{your_view_directory}/survey/
You also must allow the template to overwrite the views from your site configuration
In application/config/config.php, find : 'config'=>array
and add this line in it : 'allow_templates_to_overwrite_views'=>1
-->
<overwrite_question_views>false</overwrite_question_views>
<!--
Set to yes to overwrite the question views,
then, just copy application/views/survey/* to template/{your_view_directory}/survey/
You also must allow the template to overwrite the views from your site configuration
In application/config/config.php, find : 'config'=>array
and add this line in it : 'allow_templates_to_overwrite_views'=>1
-->
<overwrite_question_views>false</overwrite_question_views>

<!-- Asset manager will copy the whole template 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>
<!-- Asset manager will copy the whole template 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>

<!-- Here, you can publish packages set as third party extensions in application/config/third_party -->
<!-- If bootstrap is registred as a css framework, it will be loaded first -->
<packages>
<!-- Add the limesurvey needed package. Without : no backwards-compatible for minor version -->
<package>limesurvey-public</package>
<!-- we still use jquery-ui -->
<package>jqueryui</package>
<package>jquery-touch-punch</package>
</packages>
</engine>
<!-- Here, you can publish packages set as third party extensions in application/config/third_party -->
<!-- If bootstrap is registred as a css framework, it will be loaded first -->
<packages>
<package>jqueryui</package>
<package>jquery-touch-punch</package>
<!-- Add the limesurvey needed package. Without : no backwards-compatible for minor version -->
<package>limesurvey-public</package>
</packages>
</engine>
</config>

0 comments on commit 4e6bb87

Please sign in to comment.