## coding=utf-8 <%namespace name='static' file='static_content.html'/> <%! from django.core.urlresolvers import reverse from django.utils.http import urlquote_plus from django.utils.translation import ugettext as _ from microsite_configuration import microsite from microsite_configuration import page_title_breadcrumbs from branding import api as branding_api %>
% if responsive: % endif ## Define a couple of helper functions to make life easier when ## 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="is_microsite()"> <% return microsite.is_request_in_microsite() %> %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()" /> <%block name="title">