Commit 46051ef2 by Sarina Canelake

Merge pull request #3495 from eduNEXT/feature/fmo/theme-microsite-support

Microsites alongside Theme
parents 7bb2535d 8fd3ab07
...@@ -36,7 +36,7 @@ def is_request_in_microsite(): ...@@ -36,7 +36,7 @@ def is_request_in_microsite():
""" """
This will return if current request is a request within a microsite This will return if current request is a request within a microsite
""" """
return get_configuration() return bool(get_configuration())
def get_value(val_name, default=None): def get_value(val_name, default=None):
......
...@@ -20,6 +20,9 @@ ...@@ -20,6 +20,9 @@
<%def name="theme_enabled()"> <%def name="theme_enabled()">
<% return settings.FEATURES.get("USE_CUSTOM_THEME", False) %> <% return settings.FEATURES.get("USE_CUSTOM_THEME", False) %>
</%def> </%def>
<%def name="is_microsite()">
<% return microsite.is_request_in_microsite() %>
</%def>
<%def name="stanford_theme_enabled()"> <%def name="stanford_theme_enabled()">
<% <%
...@@ -61,7 +64,7 @@ ...@@ -61,7 +64,7 @@
<%block name="headextra"/> <%block name="headextra"/>
<% <%
if theme_enabled(): if theme_enabled() and not is_microsite():
header_extra_file = 'theme-head-extra.html' header_extra_file = 'theme-head-extra.html'
header_file = 'theme-header.html' header_file = 'theme-header.html'
google_analytics_file = 'theme-google-analytics.html' google_analytics_file = 'theme-google-analytics.html'
......
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