- % if mktg_site_enabled:
@@ -35,7 +33,6 @@
- % endif
% if allows_login:
% if can_discover_courses:
diff --git a/lms/templates/instructor/edx_ace/addbetatester/email/body.html b/lms/templates/instructor/edx_ace/addbetatester/email/body.html
index 39389f39ac0c..d3eff9d684b5 100644
--- a/lms/templates/instructor/edx_ace/addbetatester/email/body.html
+++ b/lms/templates/instructor/edx_ace/addbetatester/email/body.html
@@ -31,7 +31,7 @@
{% include "ace_common/edx_ace/common/return_to_course_cta.html" with course_cta_text=display_name|default:course.display_name_with_default course_cta_url=course_url %}
- {% elif course_about_url is not None %}
+ {% else %}
{% filter force_escape %}
{% blocktrans %}To enroll in this course and begin the beta test:{% endblocktrans %}
@@ -43,19 +43,6 @@
{% endfilter %}
{% include "ace_common/edx_ace/common/return_to_course_cta.html" with course_cta_text=course_cta_text course_cta_url=course_about_url %}
- {% else %}
-
- {% filter force_escape %}
- {% blocktrans %}To enroll in this course and begin the beta test:{% endblocktrans %}
- {% endfilter %}
-
-
- {% filter force_escape %}
- {% blocktrans asvar course_cta_text %}Visit {{ site_name }}
- {% endblocktrans %}
- {%endfilter%}
-
- {% include "ace_common/edx_ace/common/return_to_course_cta.html" with course_cta_text=course_cta_text course_cta_url=course_url %}
{% endif %}
diff --git a/lms/templates/instructor/edx_ace/addbetatester/email/body.txt b/lms/templates/instructor/edx_ace/addbetatester/email/body.txt
index e748d8e508d4..2d67d8d5e556 100644
--- a/lms/templates/instructor/edx_ace/addbetatester/email/body.txt
+++ b/lms/templates/instructor/edx_ace/addbetatester/email/body.txt
@@ -3,10 +3,8 @@
{% blocktrans %}You have been invited to be a beta tester for {{ course_name }} at {{ site_name }} by a member of the course staff.{% endblocktrans %}
{% if auto_enroll %}
{% blocktrans %}To start accessing course materials, please visit {{ course_url }}{% endblocktrans %}
-{% elif course_about_url is not None %}
-{% blocktrans %}Visit {{ course_about_url }} to enroll in this course and begin the beta test.{% endblocktrans %}
{% else %}
-{% blocktrans %}Visit {{ site_name }} to enroll in this course and begin the beta test.{% endblocktrans %}
+{% blocktrans %}Visit {{ course_about_url }} to enroll in this course and begin the beta test.{% endblocktrans %}
{% endif %}
----
{% blocktrans %}This email was automatically sent from {{ site_name }} to {{ email_address }}{% endblocktrans %}{% endautoescape %}
\ No newline at end of file
diff --git a/lms/templates/instructor/edx_ace/allowedenroll/email/body.html b/lms/templates/instructor/edx_ace/allowedenroll/email/body.html
index 37aef5de4a1f..88bf45c43fe9 100644
--- a/lms/templates/instructor/edx_ace/allowedenroll/email/body.html
+++ b/lms/templates/instructor/edx_ace/allowedenroll/email/body.html
@@ -31,7 +31,7 @@
{% include "ace_common/edx_ace/common/return_to_course_cta.html" with course_cta_text=course_name course_cta_url=course_url %}
- {% elif course_about_url is not None %}
+ {% else %}
{% filter force_escape %}
{% blocktrans %}To access this course visit it and register:{% endblocktrans %}
@@ -58,16 +58,11 @@
{# xss-lint: disable=django-blocktrans-missing-escape-filter #}
{% blocktrans %}Once you have registered and activated your account, you will see {{ course_name }} listed on your dashboard.{% endblocktrans %}
{% endautoescape %}
- {% elif course_about_url is not None %}
+ {% else %}
{% filter force_escape %}
{% blocktrans %}Once you have registered and activated your account, you will be able to access this course:{% endblocktrans %}
{% endfilter %}
{% include "ace_common/edx_ace/common/return_to_course_cta.html" with course_cta_text=course_name course_cta_url=course_about_url %}
- {% else %}
- {% autoescape off %}
- {# xss-lint: disable=django-blocktrans-missing-escape-filter #}
- {% blocktrans %}You can then enroll in {{ course_name }}.{% endblocktrans %}
- {% endautoescape %}
{% endif %}
diff --git a/lms/templates/instructor/edx_ace/allowedenroll/email/body.txt b/lms/templates/instructor/edx_ace/allowedenroll/email/body.txt
index bd172559646a..510ef039221e 100644
--- a/lms/templates/instructor/edx_ace/allowedenroll/email/body.txt
+++ b/lms/templates/instructor/edx_ace/allowedenroll/email/body.txt
@@ -2,13 +2,12 @@
{% blocktrans %}You have been invited to join {{ course_name }} at {{ site_name }} by a member of the course staff.{% endblocktrans %}
{% if is_shib_course %}{% if auto_enroll %}{% blocktrans %}To access this course visit {{ course_url }} and login.{% endblocktrans %}
-{% elif course_about_url is not None %}
+{% else %}
{% blocktrans %}To access this course visit {{ course_about_url }} and register for this course.{% endblocktrans %}
{% endif %}
{% else %}{% blocktrans %}To finish your registration, please visit {{ registration_url }} and fill out the registration form making sure to use {{ email_address }} in the Email field.{% endblocktrans %}
{% if auto_enroll %}{% blocktrans %}Once you have registered and activated your account, you will see {{ course_name }} listed on your dashboard.{% endblocktrans %}
-{% elif course_about_url is not None %}{% blocktrans %}Once you have registered and activated your account, visit {{ course_about_url }} to join this course.{% endblocktrans %}
-{% else %}{% blocktrans %}You can then enroll in {{ course_name }}.{% endblocktrans %}
+{% else %}{% blocktrans %}Once you have registered and activated your account, visit {{ course_about_url }} to join this course.{% endblocktrans %}
{% endif %}
{% endif %}----
{% blocktrans %}This email was automatically sent from {{ site_name }} to {{ email_address }}{% endblocktrans %}{% endautoescape %}
\ No newline at end of file
diff --git a/lms/templates/navigation/navbar-not-authenticated.html b/lms/templates/navigation/navbar-not-authenticated.html
index 316de3dc9387..526af45f4a0b 100644
--- a/lms/templates/navigation/navbar-not-authenticated.html
+++ b/lms/templates/navigation/navbar-not-authenticated.html
@@ -11,19 +11,17 @@
<%block name="navigation_global_links">
- % if static.get_value('ENABLE_MKTG_SITE', settings.FEATURES.get('ENABLE_MKTG_SITE', False)):
- -
- ${_("How it Works")}
-
- % if settings.FEATURES.get('COURSES_ARE_BROWSABLE'):
- -
- ${_("Courses")}
-
- % endif
- -
- ${_("Schools")}
+
-
+ ${_("How it Works")}
+
+ % if settings.FEATURES.get('COURSES_ARE_BROWSABLE'):
+ -
+ ${_("Courses")}
% endif
+ -
+ ${_("Schools")}
+
%block>
<%block name="navigation_other_global_links">
diff --git a/lms/templates/signup_modal.html b/lms/templates/signup_modal.html
index 9f2705a9b8ad..6a2fe3404a4e 100644
--- a/lms/templates/signup_modal.html
+++ b/lms/templates/signup_modal.html
@@ -4,7 +4,7 @@
from openedx.core.djangolib.markup import HTML, Text
from openedx.core.djangolib.js_utils import js_escaped_string
from django.conf import settings
-from django.urls import reverse
+from common.djangoapps.edxmako.shortcuts import marketing_link
from django_countries import countries
from common.djangoapps.student.models import UserProfile
from datetime import date
@@ -134,7 +134,7 @@
@@ -142,7 +142,7 @@
% endif
diff --git a/lms/templates/static_templates/about.html b/lms/templates/static_templates/about.html
deleted file mode 100644
index dae42e36dedb..000000000000
--- a/lms/templates/static_templates/about.html
+++ /dev/null
@@ -1,16 +0,0 @@
-<%page expression_filter="h"/>
-<%! from django.utils.translation import gettext as _ %>
-<%inherit file="../main.html" />
-
-<%block name="pagetitle">${_("About")}%block>
-
-
-
-
- <%block name="pageheader">${page_header or _("About")}%block>
-
-
- <%block name="pagecontent">${page_content or _("This page left intentionally blank. Feel free to add your own content.")}%block>
-
-
-
diff --git a/lms/templates/static_templates/blog.html b/lms/templates/static_templates/blog.html
deleted file mode 100644
index ba4d1ebae19a..000000000000
--- a/lms/templates/static_templates/blog.html
+++ /dev/null
@@ -1,16 +0,0 @@
-<%page expression_filter="h"/>
-<%! from django.utils.translation import gettext as _ %>
-<%inherit file="../main.html" />
-
-<%block name="pagetitle">${_("Blog")}%block>
-
-
-
-
- <%block name="pageheader">${page_header or _("Blog")}%block>
-
-
- <%block name="pagecontent">${page_content or _("This page left intentionally blank. Feel free to add your own content.")}%block>
-
-
-
diff --git a/lms/templates/static_templates/contact.html b/lms/templates/static_templates/contact.html
deleted file mode 100644
index a5d772edaf07..000000000000
--- a/lms/templates/static_templates/contact.html
+++ /dev/null
@@ -1,16 +0,0 @@
-<%page expression_filter="h"/>
-<%! from django.utils.translation import gettext as _ %>
-<%inherit file="../main.html" />
-
-<%block name="pagetitle">${_("Contact")}%block>
-
-
-
-
- <%block name="pageheader">${page_header or _("Contact")}%block>
-
-
- <%block name="pagecontent">${page_content or _("This page left intentionally blank. Feel free to add your own content.")}%block>
-
-
-
diff --git a/lms/templates/static_templates/donate.html b/lms/templates/static_templates/donate.html
deleted file mode 100644
index 22f7a80df7c4..000000000000
--- a/lms/templates/static_templates/donate.html
+++ /dev/null
@@ -1,16 +0,0 @@
-<%page expression_filter="h"/>
-<%! from django.utils.translation import gettext as _ %>
-<%inherit file="../main.html" />
-
-<%block name="pagetitle">${_("Donate")}%block>
-
-
-
-
- <%block name="pageheader">${page_header or _("Donate")}%block>
-
-
- <%block name="pagecontent">${page_content or _("This page left intentionally blank. Feel free to add your own content.")}%block>
-
-
-
diff --git a/lms/templates/static_templates/faq.html b/lms/templates/static_templates/faq.html
deleted file mode 100644
index 6c22cfb0075e..000000000000
--- a/lms/templates/static_templates/faq.html
+++ /dev/null
@@ -1,16 +0,0 @@
-<%page expression_filter="h"/>
-<%! from django.utils.translation import gettext as _ %>
-<%inherit file="../main.html" />
-
-<%block name="pagetitle">${_("FAQ")}%block>
-
-
-
-
- <%block name="pageheader">${page_header or _("FAQ")}%block>
-
-
- <%block name="pagecontent">${page_content or _("This page left intentionally blank. Feel free to add your own content.")}%block>
-
-
-
diff --git a/lms/templates/static_templates/help.html b/lms/templates/static_templates/help.html
deleted file mode 100644
index 054187b85aae..000000000000
--- a/lms/templates/static_templates/help.html
+++ /dev/null
@@ -1,16 +0,0 @@
-<%page expression_filter="h"/>
-<%! from django.utils.translation import gettext as _ %>
-<%inherit file="../main.html" />
-
-<%block name="pagetitle">${_("Help")}%block>
-
-
-
-
- <%block name="pageheader">${page_header or _("Help")}%block>
-
-
- <%block name="pagecontent">${page_content or _("This page left intentionally blank. Feel free to add your own content.")}%block>
-
-
-
diff --git a/lms/templates/static_templates/honor.html b/lms/templates/static_templates/honor.html
deleted file mode 100644
index 84247773c64d..000000000000
--- a/lms/templates/static_templates/honor.html
+++ /dev/null
@@ -1,16 +0,0 @@
-<%page expression_filter="h"/>
-<%! from django.utils.translation import gettext as _ %>
-<%inherit file="../main.html" />
-
-<%block name="pagetitle">${_("Honor Code")}%block>
-
-
-
-
- <%block name="pageheader">${page_header or _("Honor Code")}%block>
-
-
- <%block name="pagecontent">${page_content or _("This page left intentionally blank. Feel free to add your own content.")}%block>
-
-
-
diff --git a/lms/templates/static_templates/jobs.html b/lms/templates/static_templates/jobs.html
deleted file mode 100644
index 61546e50b038..000000000000
--- a/lms/templates/static_templates/jobs.html
+++ /dev/null
@@ -1,16 +0,0 @@
-<%page expression_filter="h"/>
-<%! from django.utils.translation import gettext as _ %>
-<%inherit file="../main.html" />
-
-<%block name="pagetitle">${_("Jobs")}%block>
-
-
-
-
- <%block name="pageheader">${page_header or _("Jobs")}%block>
-
-
- <%block name="pagecontent">${page_content or _("This page left intentionally blank. Feel free to add your own content.")}%block>
-
-
-
diff --git a/lms/templates/static_templates/media-kit.html b/lms/templates/static_templates/media-kit.html
deleted file mode 100644
index e9626fb37298..000000000000
--- a/lms/templates/static_templates/media-kit.html
+++ /dev/null
@@ -1,16 +0,0 @@
-<%page expression_filter="h"/>
-<%! from django.utils.translation import gettext as _ %>
-<%inherit file="../main.html" />
-
-<%block name="pagetitle">${_("Media Kit")}%block>
-
-
-
-
- <%block name="pageheader">${page_header or _("Media Kit")}%block>
-
-
- <%block name="pagecontent">${page_content or _("This page left intentionally blank. Feel free to add your own content.")}%block>
-
-
-
diff --git a/lms/templates/static_templates/news.html b/lms/templates/static_templates/news.html
deleted file mode 100644
index 6e930a6308c2..000000000000
--- a/lms/templates/static_templates/news.html
+++ /dev/null
@@ -1,17 +0,0 @@
-<%page expression_filter="h"/>
-<%! from django.utils.translation import gettext as _ %>
-
-<%inherit file="../main.html" />
-
-<%block name="pagetitle">${_("In the Press")}%block>
-
-
-
-
- <%block name="pageheader">${page_header or _("In the Press")}%block>
-
-
- <%block name="pagecontent">${page_content or _("This page left intentionally blank. Feel free to add your own content.")}%block>
-
-
-
diff --git a/lms/templates/static_templates/press.html b/lms/templates/static_templates/press.html
deleted file mode 100644
index 6e930a6308c2..000000000000
--- a/lms/templates/static_templates/press.html
+++ /dev/null
@@ -1,17 +0,0 @@
-<%page expression_filter="h"/>
-<%! from django.utils.translation import gettext as _ %>
-
-<%inherit file="../main.html" />
-
-<%block name="pagetitle">${_("In the Press")}%block>
-
-
-
-
- <%block name="pageheader">${page_header or _("In the Press")}%block>
-
-
- <%block name="pagecontent">${page_content or _("This page left intentionally blank. Feel free to add your own content.")}%block>
-
-
-
diff --git a/lms/templates/static_templates/privacy.html b/lms/templates/static_templates/privacy.html
deleted file mode 100644
index 2ed74c7481f9..000000000000
--- a/lms/templates/static_templates/privacy.html
+++ /dev/null
@@ -1,17 +0,0 @@
-<%page expression_filter="h"/>
-<%! from django.utils.translation import gettext as _ %>
-
-<%inherit file="../main.html" />
-
-<%block name="pagetitle">${_("Privacy Policy")}%block>
-
-
-
-
- <%block name="pageheader">${page_header or _("Privacy Policy")}%block>
-
-
- <%block name="pagecontent">${page_content or _("This page left intentionally blank. Feel free to add your own content.")}%block>
-
-
-
diff --git a/lms/templates/static_templates/sitemap.xml b/lms/templates/static_templates/sitemap.xml
deleted file mode 100644
index a181c9f0a912..000000000000
--- a/lms/templates/static_templates/sitemap.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-## This page left intentionally blank. Feel free to add your own content.
-
-
-https://www.example.com/2016-01-01weekly1.0
-
diff --git a/lms/templates/static_templates/tos.html b/lms/templates/static_templates/tos.html
deleted file mode 100644
index e8f893d7f288..000000000000
--- a/lms/templates/static_templates/tos.html
+++ /dev/null
@@ -1,16 +0,0 @@
-<%page expression_filter="h"/>
-<%! from django.utils.translation import gettext as _ %>
-<%inherit file="../main.html" />
-
-<%block name="pagetitle">${_("Terms of Service")}%block>
-
-
-
-
- <%block name="pageheader">${page_header or _("Terms of Service")}%block>
-
-
- <%block name="pagecontent">${page_content or _("This page left intentionally blank. Feel free to add your own content.")}%block>
-
-
-
diff --git a/openedx/core/djangoapps/common_initialization/checks.py b/openedx/core/djangoapps/common_initialization/checks.py
index 3eb41ce48518..358dc4122d0f 100644
--- a/openedx/core/djangoapps/common_initialization/checks.py
+++ b/openedx/core/djangoapps/common_initialization/checks.py
@@ -33,19 +33,11 @@ def validate_marketing_site_setting(app_configs, **kwargs): # pylint: disable=u
Validates marketing site related settings.
"""
errors = []
- if settings.FEATURES.get('ENABLE_MKTG_SITE'):
- if not hasattr(settings, 'MKTG_URLS'):
- errors.append(
- Error(
- 'ENABLE_MKTG_SITE is True, but MKTG_URLS is not defined.',
- id='common.djangoapps.common_initialization.E002',
- )
- )
- if not settings.MKTG_URLS.get('ROOT'):
- errors.append(
- Error(
- 'There is no ROOT defined in MKTG_URLS.',
- id='common.djangoapps.common_initialization.E003',
- )
+ if not hasattr(settings, 'MKTG_URLS'):
+ errors.append(
+ Error(
+ 'MKTG_URLS is not defined.',
+ id='common.djangoapps.common_initialization.E002',
)
+ )
return errors
diff --git a/openedx/core/djangoapps/content/course_overviews/models.py b/openedx/core/djangoapps/content/course_overviews/models.py
index 3115999a87fb..c9aa305bb9b1 100644
--- a/openedx/core/djangoapps/content/course_overviews/models.py
+++ b/openedx/core/djangoapps/content/course_overviews/models.py
@@ -567,7 +567,7 @@ def has_marketing_url(self):
"""
Returns whether the course has marketing url.
"""
- return settings.FEATURES.get('ENABLE_MKTG_SITE') and bool(self.marketing_url)
+ return bool(self.marketing_url)
def has_social_sharing_url(self):
"""
diff --git a/openedx/core/djangoapps/schedules/docs/README.rst b/openedx/core/djangoapps/schedules/docs/README.rst
index 3004704c9c6e..7670ee71d85c 100644
--- a/openedx/core/djangoapps/schedules/docs/README.rst
+++ b/openedx/core/djangoapps/schedules/docs/README.rst
@@ -208,9 +208,6 @@ add/change the following:
.. code:: python
- FEATURES = {
- 'ENABLE_MKTG_SITE': True,
- }
MKTG_URLS = {
'ROOT': '',
}
diff --git a/openedx/core/djangoapps/site_configuration/tests/mixins.py b/openedx/core/djangoapps/site_configuration/tests/mixins.py
index 82a74fe3a6d0..a2a5254767ec 100644
--- a/openedx/core/djangoapps/site_configuration/tests/mixins.py
+++ b/openedx/core/djangoapps/site_configuration/tests/mixins.py
@@ -33,7 +33,6 @@ def setUp(self):
"SITE_NAME": self.site_other.domain,
"SESSION_COOKIE_DOMAIN": self.site_other.domain,
"course_org_filter": "fakeOtherX",
- "ENABLE_MKTG_SITE": True,
"SHOW_ECOMMERCE_REPORTS": True,
"MKTG_URLS": {
"ROOT": "https://marketing.fakeother",
diff --git a/openedx/core/djangoapps/user_authn/views/tests/test_register.py b/openedx/core/djangoapps/user_authn/views/tests/test_register.py
index 5ba40a6c960e..2f0cb4694a4d 100644
--- a/openedx/core/djangoapps/user_authn/views/tests/test_register.py
+++ b/openedx/core/djangoapps/user_authn/views/tests/test_register.py
@@ -1131,7 +1131,6 @@ def test_registration_form_confirm_email(self):
@override_settings(
MKTG_URLS={"ROOT": "https://www.test.com/", "HONOR": "honor"},
)
- @mock.patch.dict(settings.FEATURES, {"ENABLE_MKTG_SITE": True})
def test_registration_honor_code_mktg_site_enabled(self):
link_template = "{link_label}"
link_template2 = "{link_label}"
@@ -1163,44 +1162,11 @@ def test_registration_honor_code_mktg_site_enabled(self):
}
)
- @override_settings(MKTG_URLS_LINK_MAP={"HONOR": "honor"})
- @mock.patch.dict(settings.FEATURES, {"ENABLE_MKTG_SITE": False})
- def test_registration_honor_code_mktg_site_disabled(self):
- link_template = "{link_label}"
- link_label = "Terms of Service and Honor Code"
- link_label2 = "Privacy Policy"
- self._assert_reg_field(
- {"honor_code": "required"},
- {
- "label": ("By creating an account, you agree to the {spacing}"
- "{link_label} {spacing}"
- "and you acknowledge that {platform_name} and each Member process your "
- "personal data in accordance {spacing}"
- "with the {link_label2}.").format(
- platform_name=settings.PLATFORM_NAME,
- link_label=self.link_template.format(link_label=link_label),
- link_label2=link_template.format(link_label=link_label2),
- spacing=' ' * 18
- ),
- "name": "honor_code",
- "defaultValue": False,
- "type": "plaintext",
- "required": True,
- "errorMessages": {
- "required": "You must agree to the {platform_name} {link_label}".format( # noqa: UP032
- platform_name=settings.PLATFORM_NAME,
- link_label=link_label
- )
- }
- }
- )
-
@override_settings(MKTG_URLS={
"ROOT": "https://www.test.com/",
"HONOR": "honor",
"TOS": "tos",
})
- @mock.patch.dict(settings.FEATURES, {"ENABLE_MKTG_SITE": True})
def test_registration_separate_terms_of_service_mktg_site_enabled(self):
# Honor code field should say ONLY honor code,
# not "terms of service and honor code"
@@ -1249,53 +1215,6 @@ def test_registration_separate_terms_of_service_mktg_site_enabled(self):
}
)
- @override_settings(MKTG_URLS_LINK_MAP={"HONOR": "honor", "TOS": "tos"})
- @mock.patch.dict(settings.FEATURES, {"ENABLE_MKTG_SITE": False})
- def test_registration_separate_terms_of_service_mktg_site_disabled(self):
- # Honor code field should say ONLY honor code,
- # not "terms of service and honor code"
- link_label = 'Honor Code'
- self._assert_reg_field(
- {"honor_code": "required", "terms_of_service": "required"},
- {
- "label": "I agree to the {platform_name} {link_label}".format( # noqa: UP032
- platform_name=settings.PLATFORM_NAME,
- link_label=self.link_template.format(link_label=link_label)
- ),
- "name": "honor_code",
- "defaultValue": False,
- "type": "checkbox",
- "required": True,
- "errorMessages": {
- "required": "You must agree to the {platform_name} Honor Code".format( # noqa: UP032
- platform_name=settings.PLATFORM_NAME
- )
- }
- }
- )
-
- link_label = 'Terms of Service'
- # Terms of service field should also be present
- link_template = "{link_label}"
- self._assert_reg_field(
- {"honor_code": "required", "terms_of_service": "required"},
- {
- "label": "I agree to the {platform_name} {link_label}".format( # noqa: UP032
- platform_name=settings.PLATFORM_NAME,
- link_label=link_template.format(link_label=link_label)
- ),
- "name": "terms_of_service",
- "defaultValue": False,
- "type": "checkbox",
- "required": True,
- "errorMessages": {
- "required": "You must agree to the {platform_name} Terms of Service".format( # noqa: UP032
- platform_name=settings.PLATFORM_NAME
- )
- }
- }
- )
-
@override_settings(
REGISTRATION_EXTRA_FIELDS={
"level_of_education": "optional",
diff --git a/openedx/envs/common.py b/openedx/envs/common.py
index 31b0015d34d9..fb7898e60143 100644
--- a/openedx/envs/common.py
+++ b/openedx/envs/common.py
@@ -1103,16 +1103,6 @@ def add_optional_apps(optional_apps, installed_apps):
# .. toggle_tickets: https://github.com/openedx/edx-platform/pull/2749
EMBARGO = False
-# .. toggle_name: ENABLE_MKTG_SITE
-# .. toggle_implementation: DjangoSetting
-# .. toggle_default: False
-# .. toggle_description: Toggle to enable alternate urls for marketing links.
-# .. toggle_use_cases: open_edx
-# .. toggle_creation_date: 2014-03-24
-# .. toggle_warning: When this is enabled, the MKTG_URLS setting should be defined. The use case of this feature
-# toggle is uncertain.
-ENABLE_MKTG_SITE = False
-
# Expose Mobile REST API.
ENABLE_MOBILE_REST_API = False
@@ -2141,7 +2131,6 @@ def add_optional_apps(optional_apps, installed_apps):
MKTG_URLS = {}
MKTG_URL_OVERRIDES = {}
-MKTG_URL_LINK_MAP = {}
SUPPORT_SITE_LINK = ''
diff --git a/themes/stanford-style/lms/templates/footer.html b/themes/stanford-style/lms/templates/footer.html
index afd4dfd4e41b..1a0986a1c48c 100644
--- a/themes/stanford-style/lms/templates/footer.html
+++ b/themes/stanford-style/lms/templates/footer.html
@@ -1,9 +1,9 @@
## mako
<%!
from datetime import date
- from django.urls import reverse
from django.utils.translation import gettext as _
from openedx.core.djangoapps.lang_pref.api import footer_language_selector_is_enabled
+ from common.djangoapps.edxmako.shortcuts import marketing_link
%>
<%namespace name='static' file='static_content.html'/>
@@ -12,13 +12,13 @@
-% if settings.MKTG_URL_LINK_MAP.get('FAQ'):
+% if is_marketing_link_set('FAQ'):
${_("Need Help?")}
${_("Need help in registering with {platform_name}?").format(platform_name=platform_name)}
diff --git a/themes/stanford-style/lms/templates/static_templates/about.html b/themes/stanford-style/lms/templates/static_templates/about.html
deleted file mode 100644
index b2698a267dd6..000000000000
--- a/themes/stanford-style/lms/templates/static_templates/about.html
+++ /dev/null
@@ -1,106 +0,0 @@
-## mako
-<%!
- from django.utils.translation import gettext as _
-%>
-<%namespace name='static' file='/static_content.html'/>
-
-<%inherit file="/main.html" />
-
-<%block name="title">
${_('About')}%block>
-
-<%block name="js_extra">
-
-%block>
-
-
-
-
-
-
-## About Section ##
-
-
-
-
})
-
-
- ${_('About')}
-
- Your about text goes here!
-
-
-
-
-
-
-## Careers Section ##
-
-
-
-
})
-
-
- ${_('Careers')}
-
- Your job postings go here!
-
-
-
-
-
-
-## Contact Section ##
-
-
-
-
diff --git a/themes/stanford-style/lms/templates/static_templates/tos.html b/themes/stanford-style/lms/templates/static_templates/tos.html
deleted file mode 100644
index d6f33a6c93b6..000000000000
--- a/themes/stanford-style/lms/templates/static_templates/tos.html
+++ /dev/null
@@ -1,38 +0,0 @@
-## mako
-<%page expression_filter="h"/>
-<%!
- from django.utils.translation import gettext as _
-%>
-<%inherit file="/main.html" />
-
-<%block name="title">
${_('Terms of Service')}%block>
-
-
- ${_('Terms of Service')}
-
- ${_('Put your Terms of Service here!')}
-
- ${_('Privacy Policy')}
-
- ${_('Put your Privacy Policy here!')}
-
- ${_('Honor Code')}
-
- ${_('Put your Honor Code here!')}
-
- ${_('Copyright')}
-
- ${_('Put your Copyright Text here!')}
-
-
-