diff --git a/scripts/custom.js b/scripts/custom.js
new file mode 100644
index 0000000..a42ca80
--- /dev/null
+++ b/scripts/custom.js
@@ -0,0 +1,40 @@
+/******************
+ User custom JS
+ ---------------
+
+ Put JS-functions for your template here.
+ If possible use a closure, or add them to the general Template Object "Template"
+*/
+
+
+$(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
+ * @see https://learn.jquery.com/using-jquery-core/document-ready/
+ */
+
+ // Replace classes
+ $('.container-fluid').addClass('container');
+ $('.container-fluid').removeClass('container-fluid');
+
+ // Remove classes
+ $('.survey-name.text-center').removeClass('text-center');
+ $('.survey-description.text-center').removeClass('text-center');
+ $('.survey-welcome.h5.text-primary').removeClass('text-primary');
+ $('.survey-welcome.h5').removeClass('h5');
+ $('.ls-privacy-head.h4.text-primary').removeClass('text-primary');
+ $('.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
+ $('.group-title.text-center.h3').removeClass('h3');
+ $('.group-title.text-center').removeClass('text-center');
+ $('.text-info').removeClass('text-info');
+ $('.text-muted').removeClass('text-muted');
+ $('.limit-text-window').removeClass('limit-text-window');
+ $('.save-message.card').removeClass('card');
+ $('.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').removeClass('col-lg-8');
+ $('.save-message .card-body').removeClass('card-body');
+ $('.navbar-light.bg-light').removeClass('bg-light');
+ $('.privacy.row').removeClass('row');
+});
diff --git a/views/layout_survey_list.twig b/views/layout_survey_list.twig
new file mode 100644
index 0000000..a92b049
--- /dev/null
+++ b/views/layout_survey_list.twig
@@ -0,0 +1,223 @@
+{#
+LimeSurvey
+Copyright (C) 2007-2017 The LimeSurvey Project Team / Louis Gac
+All rights reserved.
+License: GNU/GPL License v2 or later, see LICENSE.php
+LimeSurvey is free software. This version may have been modified pursuant
+to the GNU General Public License, and as distributed it includes or
+is derivative of works licensed under the GNU General Public License or
+other free or open source software licenses.
+See COPYRIGHT.php for copyright notices and details.
+(¯`·._.·(¯`·._.· Survey List Layout ·._.·´¯)·._.·´¯)
+This file renders the list of publicly listed surveys in your LimeSurvey home page.
+NOTE: see layout_main.twig for more infos
+#}
+
+
+
+{#
+LimeSurvey
+Copyright (C) 2007-2017 The LimeSurvey Project Team / Louis Gac
+All rights reserved.
+License: GNU/GPL License v2 or later, see LICENSE.php
+LimeSurvey is free software. This version may have been modified pursuant
+to the GNU General Public License, and as distributed it includes or
+is derivative of works licensed under the GNU General Public License or
+other free or open source software licenses.
+See COPYRIGHT.php for copyright notices and details.
+
+(¯`·._.·(¯`·._.· Global Layout ·._.·´¯)·._.·´¯)
+
+This is the global layout that will be used to displayed most pages (less the error page)
+If you're creating your own template, remember there is no obligation to respect the current file flow of this template.
+This is different from the old LimeSurvey template engine, where you had to provide every one of the pstpl files.
+Here, you must have a file called main_layout.twig (called from SurveyRuntimeHelper::run() ).
+Other than that, you're free to organize your files and inclusions as you want.
+
+
+
+(¯`·._.·(¯`·._.· Bootstrap ·._.·´¯)·._.·´¯)
+
+LimeSurvey uses Bootstrap.
+See: https://getbootstrap.com
+
+This template is an instance of Bootswatch Theme Flatly.
+See: https://bootswatch.com/
+
+
+
+(¯`·._.·(¯`·._.· Twig Engine ·._.·´¯)·._.·´¯)
+
+The template engine uses Twig.
+See: http://twig.sensiolabs.org/
+
+The main variable is aSurveyInfo. It's an array containing the main information about the survey.
+aSurveyInfo also contains other needed arrays, such as aNavigator, or aQuestionGroups (which contain aQuestions), etc.
+
+If you want to see what is availabe in aSurveyInfo, turn debug mode on in application/config.php, and copy the following line to the end of the element below:
+{{ dump(aSurveyInfo) }}
+
+To echo a variable, just insert : {{ variable }}
+To translate a string, just insert : {{gT( string )}}
+
+NOTE: aSurveyInfo should be cleaned to remove the unnecessary data.
+
+
+(¯`·._.·(¯`·._.· Twig Engine: advanced ·._.·´¯)·._.·´¯)
+
+For security reason, Twig is in a sandBox.
+About sandBox, see: http://twig.sensiolabs.org/doc/2.x/api.html#sandbox-extension
+
+Available functions/Object Methods are defined in internal.php: components => twigRenderer
+Eg:
+ Functions : 'include', 'dump', 'flatEllipsizeText', 'getLanguageData', 'array_flip', 'array_intersect_key', 'registerPublicCssFile', 'getAllQuestionClasses', 'getShowqnumcode', 'intval'
+
+ Methods :
+ - CHtml::textfield() (and: form, link, emailField, beginForm, endForm, dropDownList,htmlButton)
+ - Survey::getAllLanguages()
+ - LSHttpRequest::getParam()
+
+If you need to add simple functions or static methods, just add them to internal.php.
+If you need to add complex process, use application/core/LS_Twig_Extension.php (more help/comments there)
+
+
+NOTE: Feel free to ask for functions, variables, etc, that you feel are missing - https://bugs.limesurvey.org/my_view_page.php
+#}
+
+
+
+
+{# Headers, metadata, etc #}
+{{ include('./subviews/header/head.twig') }}
+
+
+
+{# This used for the pjax system #}
+
+ <###begin###>
+
+
+{# Ajaxify cannot handle an element that is a direct child of body, so => create simple wrapper section #}
+
+
+
+ {% block body %}
+ {# Bootstrap Navigation Bar: the top menu #}
+ {% block nav_bar %}
+ {{ include('./subviews/header/nav_bar.twig') }}
+ {% endblock %}
+
+
+ {# Replace the content block #}
+ {% block content %}
+
+{% block themescripts %}
+
+{% endblock %}
+
+
diff --git a/views/subviews/header/custom_header.twig b/views/subviews/header/custom_header.twig
new file mode 100644
index 0000000..301fbc1
--- /dev/null
+++ b/views/subviews/header/custom_header.twig
@@ -0,0 +1,205 @@
+{#
+ LimeSurvey
+ Copyright (C) 2007-2017 The LimeSurvey Project Team / Louis Gac
+ All rights reserved.
+ License: GNU/GPL License v2 or later, see LICENSE.php
+ LimeSurvey is free software. This version may have been modified pursuant
+ to the GNU General Public License, and as distributed it includes or
+ is derivative of works licensed under the GNU General Public License or
+ other free or open source software licenses.
+ See COPYRIGHT.php for copyright notices and details.
+
+ (¯`·._.·(¯`·._.· Custom Header ·._.·´¯)·._.·´¯)
+
+ If you extend a template, and want to add custom headers (js, css, scripts, meta etc), you'd rather do it here.
+#}
+
+{# Custom logo option #}
+{# Custom backgroud option #}
+
diff --git a/views/subviews/header/nav_bar.twig b/views/subviews/header/nav_bar.twig
new file mode 100644
index 0000000..73e007d
--- /dev/null
+++ b/views/subviews/header/nav_bar.twig
@@ -0,0 +1,67 @@
+{#
+LimeSurvey
+Copyright (C) 2007-2017 The LimeSurvey Project Team / Louis Gac
+All rights reserved.
+License: GNU/GPL License v2 or later, see LICENSE.php
+LimeSurvey is free software. This version may have been modified pursuant
+to the GNU General Public License, and as distributed it includes or
+is derivative of works licensed under the GNU General Public License or
+other free or open source software licenses.
+See COPYRIGHT.php for copyright notices and details.
+
+(¯`·._.·(¯`·._.· Bootstrap Navigation Bar ·._.·´¯)·._.·´¯)
+
+This file renders a typical bootstrap navigation bar.
+See: https://getbootstrap.com/components/#navbar
+
+For the survey navigator ("Next", "Back", etc.), see: navigation/navigator.twig
+#}
+{% if not aSurveyInfo.popupPreview %}
+ {% set navClass = "navbar-light bg-light" %}
+ {% if( aSurveyInfo.template == "bootswatch") %}
+ {% set navClass = "navbar-default bg-primary" %}
+ {% endif %}
+
+ {# ShowMenu used for navbar-toggler and navbar-collapse #}
+ {% set ShowMenu = (aSurveyInfo.aNavigator.load.show == "Y" or aSurveyInfo.aNavigator.save.show == "Y")
+ or ((aSurveyInfo.bShowClearAll == true or aSurveyInfo.bShowClearAll == null) and aSurveyInfo.options.showclearall == 'on')
+ or (aSurveyInfo.aQuestionIndex.bShow == true and aSurveyInfo.format != 'A')
+ or (aSurveyInfo.alanguageChanger.show)
+ %}
+
+{% endif %}
diff --git a/views/subviews/survey/group_subviews/group_desc.twig b/views/subviews/survey/group_subviews/group_desc.twig
new file mode 100644
index 0000000..344092e
--- /dev/null
+++ b/views/subviews/survey/group_subviews/group_desc.twig
@@ -0,0 +1,30 @@
+{#
+ LimeSurvey
+ Copyright (C) 2007-2017 The LimeSurvey Project Team / Louis Gac
+ All rights reserved.
+ License: GNU/GPL License v2 or later, see LICENSE.php
+ LimeSurvey is free software. This version may have been modified pursuant
+ to the GNU General Public License, and as distributed it includes or
+ is derivative of works licensed under the GNU General Public License or
+ other free or open source software licenses.
+ See COPYRIGHT.php for copyright notices and details.
+
+
+
+ (¯`·._.·(¯`·._.· Group Name ·._.·´¯)·._.·´¯)
+
+ Presentation of the group description
+
+ NOTE: see views/subviews/survey/group.twig comments for more infos
+#}
+
+{% if aGroup.showgroupinfo == 'D' or aGroup.showgroupinfo == 'B' %}
+ {% if aGroup.description != '' %}
+
+
+
+ {{ processString(aGroup.description) }}
+
+
+ {% endif %}
+{% endif %}
diff --git a/views/subviews/survey/question.twig b/views/subviews/survey/question.twig
new file mode 100644
index 0000000..613159c
--- /dev/null
+++ b/views/subviews/survey/question.twig
@@ -0,0 +1,55 @@
+{#
+ LimeSurvey
+ Copyright (C) 2007-2017 The LimeSurvey Project Team / Louis Gac
+ All rights reserved.
+ License: GNU/GPL License v2 or later, see LICENSE.php
+ LimeSurvey is free software. This version may have been modified pursuant
+ to the GNU General Public License, and as distributed it includes or
+ is derivative of works licensed under the GNU General Public License or
+ other free or open source software licenses.
+ See COPYRIGHT.php for copyright notices and details.
+
+
+
+ (¯`·._.·(¯`·._.· Question Layout ·._.·´¯)·._.·´¯)
+
+ This file is one of the most important of the rendering progress.
+ It will render a question. It's included in the for loop in group.twig
+
+ Here, you have access to the array aQuestion that contains the data of the current question.
+ To see what's inside aQuestion, turn debug mode on, and copy the following line to the end of this file:
+ {{ dump(aQuestion) }}
+
+ All content of aQuestion itself is generated from qanda_helper.
+ To modify it, you must create a question theme and apply it to the question in its display settings
+ (here, you're inside the survey theme, applied to the survey in its settings).
+
+#}
+
+
+{# Showing question code/number is a survey level setting, so it's inside the array aSurveyInfo #}
+{% set aShow = aSurveyInfo.aShow %}
+
+
+
+ {# Question Text #}
+ {{ include('./subviews/survey/question_subviews/question_text_container.twig') }}
+
+ {# Survey question Help - top position #}
+ {% if aSurveyInfo.options.questionhelptextposition == 'top' %}
+ {{ include('./subviews/survey/question_subviews/survey_question_help.twig') }}
+ {# Valide message and help #}
+ {{ include('./subviews/survey/question_subviews/valid_message_and_help.twig') }}
+ {% endif %}
+
+ {# Answers #}
+ {{ include('./subviews/survey/question_subviews/answers.twig') }}
+
+ {# Survey question Help - bottom position #}
+ {% if aSurveyInfo.options.questionhelptextposition == 'bottom' %}
+ {{ include('./subviews/survey/question_subviews/survey_question_help.twig') }}
+ {# Valide message and help #}
+ {{ include('./subviews/survey/question_subviews/valid_message_and_help.twig') }}
+ {% endif %}
+
+
\ No newline at end of file