Commit 225e99d1 by Nate Hardison

Add hooks to override default edX header

Adds two hooks:

1. Allows Stanford brand bar to go on top of the header
2. Allows Stanford to replace main site logo with its own
parent bf1d5052
...@@ -10,6 +10,8 @@ import branding ...@@ -10,6 +10,8 @@ import branding
from status.status import get_site_status_msg from status.status import get_site_status_msg
%> %>
<%block name="navigation_top"/>
<%block cached="False"> <%block cached="False">
<% <%
try: try:
...@@ -37,10 +39,13 @@ site_status_msg = get_site_status_msg(course_id) ...@@ -37,10 +39,13 @@ site_status_msg = get_site_status_msg(course_id)
% endif % endif
<nav> <nav>
<h1 class="logo"> <h1 class="logo">
<a href="${marketing_link('ROOT')}"> <a href="${marketing_link('ROOT')}">
<img src="${static.url(branding.get_logo_url(request.META.get('HTTP_HOST')))}"/> <%block name="navigation_logo">
</a></h1> <img src="${static.url(branding.get_logo_url(request.META.get('HTTP_HOST')))}"/>
</%block>
</a>
</h1>
% if course: % if course:
<h2><span class="provider">${course.org}:</span> ${course.number} ${course.display_name_with_default}</h2> <h2><span class="provider">${course.org}:</span> ${course.number} ${course.display_name_with_default}</h2>
......
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