Create a theme named 'stanford-style' to be used by comprehensive theming

This commit is contained in:
Saleem Latif
2016-02-01 16:47:45 +05:00
parent 599173c6b6
commit 14572c19d4
33 changed files with 921 additions and 175 deletions

View File

@@ -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()" />