Skip to content

Commit

Permalink
Dev: renamed startapage.twig to layout.twig 😻
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jan 17, 2017
1 parent d34cfb7 commit 32581f0
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/SurveyRuntimeHelper.php
Expand Up @@ -654,7 +654,7 @@ public function run($surveyid,$args)
}

$redata = compact(array_keys(get_defined_vars()));
echo templatereplace(file_get_contents($sTemplateViewPath."startpage.twig"), array(), $redata);
echo templatereplace(file_get_contents($sTemplateViewPath."layout.twig"), array(), $redata);
}


Expand Down
68 changes: 68 additions & 0 deletions templates/default/views/layout.twig
@@ -0,0 +1,68 @@
{#
If you want to see what is availabe in aSurveyInfo, turn debug mode on and uncomment the following line:
{{ dump(aSurveyInfo) }}
#}

<!DOCTYPE html>
<html lang="{{ aSurveyInfo.languagecode }}" dir="{{ aSurveyInfo.dir }}" class="no-js {{ aSurveyInfo.languagecode }} dir-{{ aSurveyInfo.dir }} ">

{{ include('./subviews/head.twig') }}

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

{# Bootstrap Navigation Bar #}
{{ include('./subviews/nav_bar.twig') }}

{# Top Container #}
{{ include('./subviews/top_container.twig') }}


<div class="outerframe container" id="outerframeContainer">
<div id="main-row">
{{ include('./subviews/flash_message.twig') }}

<div class="col-centered" id="main-col">

{# include the form tag #}
{{ include('./subviews/start_form.twig') }} <!-- main form -->

{{ include('./subviews/no_js_alert.twig') }}

{# If survey mode is "All in One", it will add the welcome/privacy messages if needed #}
{{ include('./subviews/allinone_mode_welcome_privacy.twig') }}

{# PRESENT THE QUESTION GROUPS #}
{# NOTE: this file will also render the questions via question.twig #}
{% for aGroup in aSurveyInfo.aGroups %}
{{ include('./group.twig') }}
{% endfor %}

{# Presents the navigator #}
{% if aSurveyInfo.aNavigator.show %}
{{ include('./navigator.twig') }}
{% endif %}

{# Data shown when LEM debug timing mode is ON #}
{{ include('./subviews/LEMDebug.twig') }}

</form> <!-- main form -->
</div> <!-- main col -->
</div> <!-- main row -->
</div> <!-- outer frame container -->

{# Bootstrap Navigation Bar #}
{{ 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 32581f0

Please sign in to comment.