Files
edx-platform/themes/edx.org/lms/templates/footer.html
Ned Batchelder 3abd0e8e62 Update the Open edX logo urls (#25898)
The old URLs now serve the new logo, but at the old pixel size.  These
URLs serve the new logo at a natural pixel size.
2020-12-16 15:30:55 -05:00

176 lines
8.1 KiB
HTML
Executable File

## mako
<%page expression_filter="h"/>
<%!
import datetime
from django.utils.translation import ugettext as _
from lms.djangoapps.branding.api import get_footer
from openedx.core.djangoapps.lang_pref.api import footer_language_selector_is_enabled
%>
<% footer = get_footer(is_secure=is_secure, language=language) %>
<% icp_license_info = getattr(settings, 'ICP_LICENSE_INFO', {})%>
<%namespace name='static' file='static_content.html'/>
## WARNING: These files are specific to edx.org and are not used in installations outside of that domain. Open edX users will want to use the file "footer.html" for any changes or overrides.
<footer id="footer-edx-v3" role="contentinfo" aria-label="${_("Page Footer")}"
## When rendering the footer through the branding API,
## the direction may not be set on the parent element,
## so we set it here.
% if bidi:
dir=${bidi}
% endif
>
<div class="container">
<div class="row main-row"><!-- row -->
<div class="col-xl-2 col-lg-12 col-md-2 col-sm-8 col-xs-10 column-1 flex-column column-styles">
<div class="row">
<div class="col-12 column-2-2 column-styles">
<div class="edx-footer-logo">
<a href="${marketing_link('ROOT')}">
<img alt="${_('edX Home Page')}" src="${footer['logo_image']}">
</a>
</div>
% if context.get('include_language_selector', footer_language_selector_is_enabled()):
<%include file="${static.get_template_path('widgets/footer-language-selector.html')}"/>
% endif
</div>
</div>
</div>
<div class="col-xl-6 col-lg-8 col-md-9 col-sm-5 col-xs-12 column-2 flex-column column-styles">
<div class="row full-height">
<div class="col-xl-4 col-lg-4 col-md-4 col-sm-12 column-2-1 col-xs-12 first-div-border column-styles ">
<div class="row full-height">
<div class="ml-xl-0 col-lg-10 ml-lg-auto col-md-12 column-2-2 col-sm-10 full-height column-styles">
<h2 class="heading">edX</h2>
<ul class="list-unstyled clear-margins ">
% for link in footer["business_links"]:
<li>
<a href="${link['url']}">${link['title']}</a>
</li>
% endfor
</ul>
</div>
</div>
</div>
<div class="col-xl-4 col-lg-4 col-md-4 col-sm-12 col-xs-12 column-2-1 second-div-border column-styles ">
<div class="row full-height">
<div class="col-lg-12 col-md-12 col-sm-10 column-2-2 full-height column-styles">
<h2 class="heading">Legal</h2>
<ul class="list-unstyled clear-margins ">
% for link in footer["more_info_links"]:
<li>
<a href="${link['url']}">${link['title']}</a>
</li>
% endfor
</ul>
</div>
</div>
</div>
<div class="col-xl-4 col-lg-4 col-md-4 col-sm-12 col-xs-12 column-2-1 third-div-border column-styles">
<div class="row full-height">
<div class="col-lg-12 col-md-12 col-sm-10 full-height column-2-2 column-styles">
<h2 class="heading">${_(u"Connect")}</h2>
<ul class="list-unstyled clear-margins ">
% for link in footer["connect_links"]:
<li>
<a href="${link['url']}">${link['title']}</a>
</li>
% endfor
</ul>
</div>
</div>
</div>
## The Open edX link may be hidden when this view is served
## through an API to partner sites (such as marketing sites or blogs),
## which are not technically powered by Open edX.
% if not hide_openedx_link and hide_openedx_link != Undefined:
<div class="openedx-link">
<a href="${footer['openedx_link']['url']}" title="${footer['openedx_link']['title']}">
<img alt="${footer['openedx_link']['title']}" src="${footer['openedx_link']['image']}" width="175">
</a>
</div>
% endif
</div>
</div>
<div class="col-xl-4 col-lg-4 col-md-9 ml-md-auto col-sm-7 column-3 flex-column fourth-div-border column-styles">
<div class="row">
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-xs-12 column-3-1 social-app-links-div column-styles ml-auto">
<div class="row">
<div class="col-lg-12 col-md-12 column-3-2 column-styles">
<ul class="list-inline list-unstyled social">
% for link in footer['social_links']:
<li>
<a href="${link['url']}" class="social-links external" title="${link['title']}" rel="noreferrer">
<span class="icon fa ${link['icon-class']}" aria-hidden="true"></span>
<span class="sr">${link['action']}</span>
</a>
</li>
% endfor
</ul>
<ul class="list-inline list-unstyled app-links">
% for link in footer['mobile_links']:
<li>
<a href="${link['url']}" class="app-link external">
<img alt="${link['title']}" src="${link['image']}">
</a>
</li>
% endfor
</ul>
## \u00A9 is the copyright symbol.
## \u2013 is the en-dash. It looks like a year, but it isn't.
<!--"EdX, Open edX, and MicroMasters are trademarks of edX Inc. registered in the U.S. and other countries-->
<p class="copyright">${_(
u"\u00A9 {year} edX Inc. All rights reserved.").format(year=datetime.datetime.now().year)}
<br/>
% if icp_license_info.get('icp_license'):
${u" | {text}".format(text=icp_license_info.get('text'))}
<a href="${icp_license_info.get('icp_license_link', '#')}">
${u" {icp}".format(icp=icp_license_info.get('icp_license'))}
</a>
% endif
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</footer>
% if include_dependencies:
<%static:js group='base_vendor'/>
<%static:css group='style-vendor'/>
<%include file="widgets/segment-io.html" />
<%include file="widgets/segment-io-footer.html" />
% endif
% if bidi == 'rtl':
<%static:css group='style-lms-footer-edx-rtl'/>
% else:
<%static:css group='style-lms-footer-edx'/>
% endif
% if footer_js_url:
<script type="text/javascript" src="${footer_js_url}"></script>
% endif