diff --git a/lms/templates/main.html b/lms/templates/main.html index 8e18bf06e0..8fe5db0796 100644 --- a/lms/templates/main.html +++ b/lms/templates/main.html @@ -49,14 +49,16 @@ - + % if not allow_iframing: + + % endif @@ -141,25 +143,29 @@ <%include file="mathjax_accessible.html" /> - <%include file="${header_file}" /> + % if not disable_header: + <%include file="${header_file}" /> + % endif
${self.body()} <%block name="bodyextra"/>
- <%block name="footer"> - ## Can be overridden by child templates wanting to hide the footer. - <% - if theme_enabled() and not is_microsite(): - footer_file = 'theme-footer.html' - elif settings.FEATURES.get('IS_EDX_DOMAIN', False) and not is_microsite(): - footer_file = microsite.get_template_path('footer-edx-new.html') - else: - footer_file = microsite.get_template_path('footer.html') - %> - <%include file="${footer_file}" /> - + % if not disable_footer: + <%block name="footer"> + ## Can be overridden by child templates wanting to hide the footer. + <% + if theme_enabled() and not is_microsite(): + footer_file = 'theme-footer.html' + elif settings.FEATURES.get('IS_EDX_DOMAIN', False) and not is_microsite(): + footer_file = microsite.get_template_path('footer-edx-new.html') + else: + footer_file = microsite.get_template_path('footer.html') + %> + <%include file="${footer_file}" /> + + % endif