Create a theme named 'stanford-style' to be used by comprehensive theming
This commit is contained in:
@@ -19,18 +19,6 @@ from branding import api as branding_api
|
||||
## embedding theme conditionals into templates. All inheriting
|
||||
## templates have access to these functions, and we can import these
|
||||
## into non-inheriting templates via the %namespace tag.
|
||||
<%def name="theme_enabled()">
|
||||
<% return settings.FEATURES.get("USE_CUSTOM_THEME", False) %>
|
||||
</%def>
|
||||
|
||||
<%def name="stanford_theme_enabled()">
|
||||
<%
|
||||
if not theme_enabled():
|
||||
return False
|
||||
|
||||
return getattr(settings, "THEME_NAME", None) == "stanford"
|
||||
%>
|
||||
</%def>
|
||||
|
||||
## this needs to be here to prevent the title from mysteriously appearing in the body, in one case
|
||||
<%def name="pagetitle()" />
|
||||
|
||||
Reference in New Issue
Block a user