Skip to content

Commit 887bbe4

Browse files
authored
Merge pull request #6115 from readthedocs/davidfischer/fixedfooter-ads-all-themes
Fixed footer ads supported on all themes
2 parents 6290200 + 74b0887 commit 887bbe4

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

readthedocs/core/static-src/core/js/doc-embed/rtd-data.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ var configMethods = {
2222
return constants.ALABASTER_LIKE_THEMES.indexOf(this.get_theme_name()) > -1;
2323
},
2424

25-
theme_supports_paid_promo: function () {
26-
return this.is_rtd_like_theme() || this.is_alabaster_like_theme();
27-
},
28-
2925
is_sphinx_builder: function () {
3026
return (!('builder' in this) || this.builder !== 'mkdocs');
3127
},

readthedocs/core/static-src/core/js/doc-embed/sponsorship.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -320,10 +320,6 @@ function init() {
320320
request_data.project = rtd.project;
321321
request_data.theme = rtd.get_theme_name();
322322

323-
// These will get community only ads temporarily
324-
// After the fixed footer rollout is complete, this can be removed
325-
request_data.community_only = (rtd.theme_supports_paid_promo() || explicit_placement) ? 0 : 1;
326-
327323
if (typeof URL !== 'undefined' && typeof URLSearchParams !== 'undefined') {
328324
// Force a specific promo to be displayed
329325
params = new URL(window.location).searchParams;

0 commit comments

Comments
 (0)