Commit 3f7d6377 by Phil McGachey

[LTI Provider] Adding options to suppress chrome for embedding courseware

parent e62e6b4c
...@@ -49,14 +49,16 @@ ...@@ -49,14 +49,16 @@
</title> </title>
</%block> </%block>
<script type="text/javascript"> % if not allow_iframing:
/* immediately break out of an iframe if coming from the marketing website */ <script type="text/javascript">
(function(window) { /* immediately break out of an iframe if coming from the marketing website */
if (window.location !== window.top.location) { (function(window) {
window.top.location = window.location; if (window.location !== window.top.location) {
} window.top.location = window.location;
})(this); }
</script> })(this);
</script>
% endif
<script type="text/javascript" src="/jsi18n/"></script> <script type="text/javascript" src="/jsi18n/"></script>
...@@ -141,25 +143,29 @@ ...@@ -141,25 +143,29 @@
<%include file="mathjax_accessible.html" /> <%include file="mathjax_accessible.html" />
<%include file="${header_file}" /> % if not disable_header:
<%include file="${header_file}" />
% endif
<div class="content-wrapper" id="content"> <div class="content-wrapper" id="content">
${self.body()} ${self.body()}
<%block name="bodyextra"/> <%block name="bodyextra"/>
</div> </div>
<%block name="footer"> % if not disable_footer:
## Can be overridden by child templates wanting to hide the 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' if theme_enabled() and not is_microsite():
elif settings.FEATURES.get('IS_EDX_DOMAIN', False) and not is_microsite(): footer_file = 'theme-footer.html'
footer_file = microsite.get_template_path('footer-edx-new.html') elif settings.FEATURES.get('IS_EDX_DOMAIN', False) and not is_microsite():
else: footer_file = microsite.get_template_path('footer-edx-new.html')
footer_file = microsite.get_template_path('footer.html') else:
%> footer_file = microsite.get_template_path('footer.html')
<%include file="${footer_file}" /> %>
</%block> <%include file="${footer_file}" />
</%block>
% endif
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment