|
1 | 1 | {% 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 %} |
2 | 2 | {% set ads = false %} |
3 | 3 | {% else %} |
4 | | -{% set ads = displayAds() %} |
| 4 | +{% set ads = true %} |
5 | 5 | {% endif %} |
6 | 6 | <!DOCTYPE html> |
7 | 7 | <html{% if rtl is defined and true == rtl %} dir="rtl"{% endif %} lang="{{ app.request.locale }}"> |
8 | 8 | <head> |
9 | 9 | <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 %} |
14 | 10 | <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
15 | 11 | <meta name="viewport" content="width=device-width, initial-scale=1" /> |
16 | 12 | <title>{% block title %}MediaInfo{% endblock %}</title> |
|
91 | 87 | {% endfor %} |
92 | 88 |
|
93 | 89 | {% 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) }} |
95 | 91 | {% endif %} |
96 | 92 |
|
97 | 93 | {% block body %}{% endblock %} |
|
102 | 98 | <div class="clearfix"></div> |
103 | 99 | {% if ads %} |
104 | 100 | <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) }} |
106 | 102 | </div> |
107 | 103 | {% endif %} |
108 | 104 | <footer id="footer"> |
|
132 | 128 | {{ include('@App/socialShare.html.twig') }} |
133 | 129 | {% block javascripts %}{% endblock %} |
134 | 130 | {% 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> |
136 | 146 | {% endif %} |
137 | 147 | </body> |
138 | 148 | </html> |
0 commit comments