Skip to content

Commit ce5c283

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

5 files changed

Lines changed: 141 additions & 641 deletions

File tree

app/Resources/views/base.html.twig

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
<head>
99
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
1010
{% 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>
11+
<link rel="preload" as="script" href="https://vertex-cdn.relevant-digital.com/static/tags/692817b31f4d475762e8cd3c.js" />
1312
{% endif %}
1413
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
1514
<meta name="viewport" content="width=device-width, initial-scale=1" />
@@ -91,7 +90,8 @@
9190
{% endfor %}
9291

9392
{% if ads %}
94-
{{ include('@App/adSlot.html.twig', { adSlotId: 'desktop-1fixedfooter-ros' }, with_context = false) }}
93+
{{ include('@App/adSlot.html.twig', { adSlotId: 'desktop_leaderboard_atf_ros' }, with_context = false) }}
94+
{{ include('@App/adSlot.html.twig', { adSlotId: 'mobile_leaderboard_atf_ros' }, with_context = false) }}
9595
{% endif %}
9696

9797
{% block body %}{% endblock %}
@@ -102,7 +102,8 @@
102102
<div class="clearfix"></div>
103103
{% if ads %}
104104
<div class="container">
105-
{{ include('@App/adSlot.html.twig', { adSlotId: 'desktop-2fixedfooter-ros' }, with_context = false) }}
105+
{{ include('@App/adSlot.html.twig', { adSlotId: 'desktop_fixedfooter_ros' }, with_context = false) }}
106+
{{ include('@App/adSlot.html.twig', { adSlotId: 'Mobile_fixedfooter_ros' }, with_context = false) }}
106107
</div>
107108
{% endif %}
108109
<footer id="footer">
@@ -132,7 +133,21 @@
132133
{{ include('@App/socialShare.html.twig') }}
133134
{% block javascripts %}{% endblock %}
134135
{% if ads %}
135-
<script async src="//htlbid.com/v3/mediaarea.net/htlbid.js"></script>
136+
<script async src="https://vertex-cdn.relevant-digital.com/static/tags/692817b31f4d475762e8cd3c.js"></script>
137+
<script>
138+
function loadAds(ids) {
139+
window.relevantDigital = window.relevantDigital || {}; relevantDigital.cmd = relevantDigital.cmd || []; relevantDigital.cmd.push(function () {
140+
relevantDigital.loadPrebid({ configId: '6928818d359be190f5e8cd9f', manageAdserver: true, collapseEmptyDivs: true, collapseBeforeAdFetch: false,
141+
allowedDivIds: null,
142+
noSlotReload: true,
143+
noGpt: true
144+
});
145+
});
146+
};
147+
</script>
148+
<script>
149+
loadAds();
150+
</script>
136151
{% endif %}
137152
</body>
138153
</html>

src/AppBundle/Resources/public/js/sidebar.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,7 @@ var sidebar = (function () {
4747

4848
var ads = function() {
4949
if (1 == $('#sidebar .sidebar-ads').length) {
50-
var slot = '<ins class="adsbygoogle"\
51-
style="display:block;"\
52-
data-ad-client="ca-pub-8386011224798635"\
53-
data-ad-slot="3057614716"\
54-
data-ad-format="auto"></ins>';
50+
var slot = '<div id="placement" data-ad-unit-id="/78655843/Mediaarea/mediaarea.net_desktop_sticky_side_left"></div>';
5551

5652
$('#sidebar .sidebar-ads').append(slot);
5753
(adsbygoogle = window.adsbygoogle || []).push({});
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>

src/MediaInfoBundle/Resources/views/Default/about.html.twig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@
154154
<br>
155155
You can also use <a href="{{ path('mi_online') }}" target="_blank">MediaInfoOnline</a> to test MediaInfo without installing any software on your computer.
156156
</div>
157+
{% if ads %}
158+
{{ include('@App/adSlot.html.twig', { adSlotId: 'mediaarea.net_mobile-square-btf-ros' }, with_context = false) }}
159+
{% endif %}
157160
<div class="alert alert-info text-center">
158161
{% trans with {'%donateRoute%': path('supportUs_individual')} %}about.what.donate{% endtrans %}
159162
</div>

0 commit comments

Comments
 (0)