Browse Source

Merge pull request #1303 from aragonc/1.11.x

Arrangement show header and footer to show iframe lessons - refs CT#8348
Alex Aragon Calixto 8 years ago
parent
commit
cd470f51dd

+ 1 - 1
main/template/default/layout/page_footer.tpl

@@ -86,6 +86,6 @@
     </div>
 </div>
                 
-{% include template ~ '/layout/footer.js.tpl' %}
+
 
 {{ execution_stats }}

+ 1 - 1
main/template/default/layout/page_header.tpl

@@ -50,4 +50,4 @@
 {% block menu %}
     {% include template ~ "/layout/menu.tpl" %}
 {% endblock %}
-</header>
+</header>

+ 6 - 3
main/template/default/layout/show_footer.tpl

@@ -1,6 +1,9 @@
+{% if show_footer == true %}
     </div>
-</section>
-{% include template ~ "/layout/page_footer.tpl" %}
-</div>
+    </section>
+    {% include template ~ "/layout/page_footer.tpl" %}
+{% endif %}
+    </div>
+    {% include template ~ '/layout/footer.js.tpl' %}
 </body>
 </html>

+ 3 - 1
main/template/default/layout/show_header.tpl

@@ -11,6 +11,7 @@
 </head>
 <body dir="{{ text_direction }}" class="{{ section_name }} {{ login_class }}">
 <noscript>{{ "NoJavascript"|get_lang }}</noscript>
+{% if show_header == true %}
 <div class="wrap">   
     {% if displayCookieUsageWarning == true %}
     <!-- Display Cookies validation -->
@@ -37,4 +38,5 @@
     <div class="container">
         {% block breadcrumb %}
             {{ breadcrumb }}
-        {% endblock %}
+        {% endblock %}
+{% endif %}