Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev: added a global layout (twig template)
- Loading branch information
LouisGac
committed
Jun 29, 2017
1 parent
423719d
commit 8976e9e
Showing
1 changed file
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 --> |