Skip to content

Commit

Permalink
Dev: added a global layout (twig template)
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jun 29, 2017
1 parent 423719d commit 8976e9e
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions templates/default/views/layout_global.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.
(¯`·._.·(¯`·._.· Global Layout ·._.·´¯)·._.·´¯)
This is the global layout that will be used to displayed most pages (less the error page)
Other layout extend it, and will replace/extends the block "content".
#}
<!DOCTYPE html>
<html lang="{{ aSurveyInfo.languagecode }}" dir="{{ aSurveyInfo.dir }}" class="no-js {{ aSurveyInfo.languagecode }} dir-{{ aSurveyInfo.dir }} ">

{# Headers, metadata, etc #}
{{ include('./subviews/head.twig') }}

<body class="default lang-{{surveylanguage}} {{surveyformat}}">

{# Bootstrap Navigation Bar: the top menu #}
{% block nav_bar %}
{{ include('./subviews/nav_bar.twig') }}
{% endblock %}

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

<!-- Outer Frame Container -->
<div class="outerframe container" id="outerframeContainer">

<!-- Main Row -->
<div id="main-row">
<!-- Main Col -->
<div class="col-centered" id="main-col">

{# This is the main block that will be replaced/extended by other layouts#}
{% block content %}
{# Include the various Warnings (preview mode, unanswered mandatory questions, etc) #}
{{ include('./subviews/warnings.twig') }}

{% endblock %}
</div> <!-- main col -->
</div> <!-- main row -->
</div> <!-- outer frame container -->

{# Bootstrap alert modal #}
{{ include('./subviews/bootstrap_alert_modal.twig') }}

<!-- some template.js function launched before ready -->
<script type="text/javascript">
/*<![CDATA[*/
sliderSuffixClone();
fixBodyPadding();
hideQuestionWithRelevanceSubQuestion();
hideEmptyPart();
/*]]>*/
</script>
</body>
</html>
<!-- end of startpage.twig -->

0 comments on commit 8976e9e

Please sign in to comment.