Skip to content

Commit

Permalink
Dev: few fixes on vanilla to prepare fruity extension
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Dec 4, 2017
1 parent 2697cb4 commit 5de27e5
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 1 deletion.
5 changes: 5 additions & 0 deletions themes/survey/vanilla/config.xml
Expand Up @@ -88,6 +88,7 @@
<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/question.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_content.twig</file>
<file type="view" role="subview">./subviews/survey/question_subviews/answers.twig</file>
Expand Down Expand Up @@ -115,6 +116,10 @@
<file type="view" role="subview">./subviews/content/mainrow.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="subview">./subviews/header/head.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/progress_bar.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/no_js_alert.twig</file>
Expand Down
2 changes: 1 addition & 1 deletion themes/survey/vanilla/views/layout_global.twig
Expand Up @@ -97,7 +97,7 @@

{# Top Container: in this template, it contains only #}
{% block progress %}
{{ include('./subviews/header/progess_bar.twig') }}
{{ include('./subviews/header/progress_bar.twig') }}
{% endblock %}

<!-- Outer Frame Container -->
Expand Down
16 changes: 16 additions & 0 deletions themes/survey/vanilla/views/subviews/header/custom_header.twig
@@ -0,0 +1,16 @@
{#
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.
This file is empty in vanilla
#}
2 changes: 2 additions & 0 deletions themes/survey/vanilla/views/subviews/header/head.twig
Expand Up @@ -45,5 +45,7 @@
</script>
{% endif %}

{{ include('./subviews/header/custom_header.twig') }}

{{ include('./subviews/header/google_analytics.twig') }}
</head>

0 comments on commit 5de27e5

Please sign in to comment.