Skip to content

Commit 25a1d3b

Browse files
Use another web advertiser, update
1 parent 03680a0 commit 25a1d3b

3 files changed

Lines changed: 135 additions & 639 deletions

File tree

app/Resources/views/base.html.twig

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
{% if 'Y' == app.request.attributes.get('donated') or (noAds is defined and true == noAds) or (app.user and app.user.isDonor) or 'dev' == app.environment %}
22
{% set ads = false %}
33
{% else %}
4-
{% set ads = displayAds() %}
4+
{% set ads = true %}
55
{% endif %}
66
<!DOCTYPE html>
77
<html{% if rtl is defined and true == rtl %} dir="rtl"{% endif %} lang="{{ app.request.locale }}">
88
<head>
99
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
10-
{% if ads %}
11-
<link rel="preload" as="script" href="https://securepubads.g.doubleclick.net/tag/js/gpt.js" />
12-
<link rel="preconnect" href="//htlbid.com" crossorigin>
13-
{% endif %}
1410
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
1511
<meta name="viewport" content="width=device-width, initial-scale=1" />
1612
<title>{% block title %}MediaInfo{% endblock %}</title>
@@ -91,7 +87,7 @@
9187
{% endfor %}
9288

9389
{% if ads %}
94-
{{ include('@App/adSlot.html.twig', { adSlotId: 'desktop-1fixedfooter-ros' }, with_context = false) }}
90+
{{ include('@App/adSlot.html.twig', { adSlotId: 'desktop_leaderboard_atf_ros' }, with_context = false) }}
9591
{% endif %}
9692

9793
{% block body %}{% endblock %}
@@ -102,7 +98,7 @@
10298
<div class="clearfix"></div>
10399
{% if ads %}
104100
<div class="container">
105-
{{ include('@App/adSlot.html.twig', { adSlotId: 'desktop-2fixedfooter-ros' }, with_context = false) }}
101+
{{ include('@App/adSlot.html.twig', { adSlotId: 'desktop_fixedfooter_ros' }, with_context = false) }}
106102
</div>
107103
{% endif %}
108104
<footer id="footer">
@@ -132,7 +128,21 @@
132128
{{ include('@App/socialShare.html.twig') }}
133129
{% block javascripts %}{% endblock %}
134130
{% if ads %}
135-
<script async src="//htlbid.com/v3/mediaarea.net/htlbid.js"></script>
131+
<script async src="https://vertex-cdn.relevant-digital.com/static/tags/692817b31f4d475762e8cd3c.js"></script>
132+
<script>
133+
function loadAds(ids) {
134+
window.relevantDigital = window.relevantDigital || {}; relevantDigital.cmd = relevantDigital.cmd || []; relevantDigital.cmd.push(function () {
135+
relevantDigital.loadPrebid({ configId: '6928818d359be190f5e8cd9f', manageAdserver: true, collapseEmptyDivs: true, collapseBeforeAdFetch: false,
136+
allowedDivIds: null,
137+
noSlotReload: true,
138+
noGpt: true
139+
});
140+
});
141+
};
142+
</script>
143+
<script>
144+
loadAds();
145+
</script>
136146
{% endif %}
137147
</body>
138148
</html>
Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1 @@
1-
<div id="ad_{{ adSlotId }}"></div>
2-
<script>
3-
window.tude = window.tude || { cmd: [] };
4-
tude.cmd.push(function() {
5-
tude.refreshAdsViaDivMappings([
6-
{
7-
divId: 'ad_{{ adSlotId }}',
8-
baseDivId: '{{ adSlotId }}',
9-
}
10-
]);
11-
});
12-
</script>
1+
<div id="placement" data-ad-unit-id="/78655843/Mediaarea/mediaarea.net_{{ adSlotId }}"></div>

0 commit comments

Comments
 (0)