Skip to content

Commit

Permalink
Dev: added background-image option
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jul 5, 2017
1 parent 9a0bf7b commit c0537e2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions templates/default/config.xml
Expand Up @@ -42,6 +42,7 @@
<!-- will be available with aSurveyInfo.options.ajaxmode -->
<ajaxmode>on</ajaxmode>
<brandlogo>on</brandlogo>
<backgroundimage>on</backgroundimage>
</options>

<!-- Here datas about how LimeSurvey should load the template -->
Expand Down
7 changes: 7 additions & 0 deletions templates/default/css/background-image.css
@@ -0,0 +1,7 @@
body {
background-image: url("../files/pattern.png");
}

.top-container {
background-color: rgba(236, 240, 241, 0.2);
}
Binary file added templates/default/files/pattern.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions templates/default/views/layout_global.twig
Expand Up @@ -24,10 +24,17 @@
</html>

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

{% if (aSurveyInfo.options.backgroundimage == "on") %}
{{ registerTemplateCssFile("css/background-image.css") }}
{% endif %}

{% else %}
{{ unregisterScriptForAjax()}}
{% endif %}



{% block body %}

{# Bootstrap Navigation Bar: the top menu #}
Expand Down

0 comments on commit c0537e2

Please sign in to comment.