% # set doc language direction from django.utils.translation import get_language_bidi from dealer.git import git dir_rtl = 'rtl' if get_language_bidi() else 'ltr' %>
% if responsive: % endif <%! from django.utils.translation import ugettext as _ %> <%! from microsite_configuration import microsite %> <%! from microsite_configuration import page_title_breadcrumbs %> <%namespace name='static' file='static_content.html'/> <%! from django.utils.http import urlquote_plus %> ## 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">