diff --git a/lms/djangoapps/branding/api.py b/lms/djangoapps/branding/api.py index a3d5112c8e..4f607501c3 100644 --- a/lms/djangoapps/branding/api.py +++ b/lms/djangoapps/branding/api.py @@ -35,7 +35,7 @@ def is_enabled(): def get_footer(is_secure=True): """Retrieve information used to render the footer. - This will handle both the OpenEdX and EdX.org versions + This will handle both the Open edX and edX.org versions of the footer. All user-facing text is internationalized. Currently, this does NOT support theming. @@ -101,6 +101,10 @@ def get_footer(is_secure=True): "mobile_links": _footer_mobile_links(is_secure), "legal_links": _footer_legal_links(), "openedx_link": _footer_openedx_link(), + "edx_org_link": { + "url": "https://www.edx.org/?utm_medium=affiliate_partner&utm_source=opensource-partner&utm_content=open-edx-partner-footer-link&utm_campaign=open-edx-footer", + "text": _("Take free online courses at edX.org"), + }, } @@ -120,7 +124,7 @@ def _footer_copyright(): def _footer_openedx_link(): - """Return the image link for "powered by OpenEdX". + """Return the image link for "Powered by Open edX". Args: is_secure (bool): Whether the request is using TLS. diff --git a/lms/djangoapps/branding/tests/test_api.py b/lms/djangoapps/branding/tests/test_api.py index 12e0ad47e3..a083c6c1cf 100644 --- a/lms/djangoapps/branding/tests/test_api.py +++ b/lms/djangoapps/branding/tests/test_api.py @@ -90,6 +90,10 @@ class TestFooter(TestCase): 'url': 'http://open.edx.org', 'image': 'https://files.edx.org/openedx-logos/edx-openedx-logo-tag.png', 'title': 'Powered by Open edX' - } + }, + 'edx_org_link': { + 'url': 'https://www.edx.org/?utm_medium=affiliate_partner&utm_source=opensource-partner&utm_content=open-edx-partner-footer-link&utm_campaign=open-edx-footer', + 'text': 'Take free online courses at edX.org', + }, } self.assertEqual(actual_footer, expected_footer) diff --git a/lms/templates/footer.html b/lms/templates/footer.html index 5b25ecb994..57fd108402 100644 --- a/lms/templates/footer.html +++ b/lms/templates/footer.html @@ -58,6 +58,7 @@ ${link['title']} % endfor +
  • ${footer['edx_org_link']['text']}