Files
edx-platform/cms/templates/widgets/footer.html
Eugene Dyudyunov 8bd43207ca refactor!: switch from LegacyWaffle* to modern waffles (#30330)
This is a first stage for removing the LegacyWaffle* classes.

LegacyWaffleFlag usage replaced with WaffleFlag;
LegacyWaffleSwitche usage replaced with WaffleSwitch;
New CourseWaffleFlag added to the temporary module __future__ as FutureCourseWaffleFlag;
Updated all the imports to use CourseWaffleFlag from the __future__ module;

BREAKING CHANGE: A number of toggle related constants (e.g. ENABLE_ACCESSIBILITY_POLICY_PAGE)
changed types. They were strings, and are now toggle instances (e.g. WaffleSwitch). Although the entire
refactor should be self-contained in edx-platform, if any plugins or dependencies were directly
using these constants, they will break. If this is the case, try to find a better publicized way of
exposing those toggles.
2022-05-05 12:03:10 -04:00

65 lines
2.5 KiB
HTML

## mako
<%page expression_filter="h"/>
<%!
from django.utils.translation import gettext as _
from django.urls import reverse
from datetime import datetime
from django.conf import settings
import pytz
from cms.djangoapps.contentstore.config.waffle import ENABLE_ACCESSIBILITY_POLICY_PAGE
from openedx.core.djangolib.markup import HTML, Text
%>
<div class="wrapper-footer wrapper">
<footer class="primary" role="contentinfo">
<div class="footer-content-primary">
<div class="colophon">
<p>&copy; ${datetime.now(pytz.timezone(settings.TIME_ZONE)).year} <a href="${marketing_link('ROOT')}" rel="external">${settings.PLATFORM_NAME}</a>.</p>
</div>
<nav class="nav-peripheral" aria-label="${_("Policies")}">
<ol>
% if is_marketing_link_set('TOS'):
<li class="nav-item nav-peripheral-tos">
<a href="${marketing_link('TOS')}">${_("Terms of Service")}</a>
</li>
% endif
% if is_marketing_link_set('PRIVACY'):
<li class="nav-item nav-peripheral-pp">
<a href="${marketing_link('PRIVACY')}">${_("Privacy Policy")}</a>
</li>
% endif
% if ENABLE_ACCESSIBILITY_POLICY_PAGE.is_enabled():
<li class="nav-item nav-peripheral-aar">
<a href="${reverse('accessibility')}">${_("Accessibility Accommodation Request")}</a>
</li>
%endif
<li class="nav-item">
<a id="lms-link" href="${settings.LMS_ROOT_URL}">${_("LMS")}</a>
</li>
</ol>
</nav>
</div>
<div class="footer-content-secondary" aria-label="${_("Legal")}">
<div class="footer-about-copyright">
## Site operators: Please do not remove this paragraph! This attributes back to edX and makes your acknowledgement of edX's trademarks clear.
<p>
## Translators: 'edX' and 'Open edX' are trademarks of 'edX Inc.'. Please do not translate any of these trademarks and company names.
${Text(_("edX, Open edX, and the edX and Open edX logos are registered trademarks of {link_start}edX Inc.{link_end}")).format(
link_start=HTML(u"<a href='https://www.edx.org/'>"),
link_end=HTML(u"</a>")
)}
</p>
</div>
<div class="footer-about-openedx">
<a href="https://open.edx.org" title="${_("Powered by Open edX")}">
<img alt="${_("Powered by Open edX")}" src="https://logos.openedx.org/open-edx-logo-tag.png">
</a>
</div>
</div>
</footer>
</div>