mirror of
https://github.com/discourse/discourse-adplugin.git
synced 2025-07-08 06:12:11 +00:00
Mobile slots now within htmlSafe
This commit is contained in:
parent
3ef8699900
commit
c566f0c71d
@ -1,21 +1,20 @@
|
|||||||
<div class="google-dfp-ad-label"><h2>Google Ad Plugin Display</h2></div>
|
<div class="google-dfp-ad-label"><h2>Google Ad Plugin Display</h2></div>
|
||||||
|
|
||||||
{{#if site.mobileView}}
|
{{#if site.mobileView}}
|
||||||
|
{{#if loadedGoogletag}}
|
||||||
<div id={{divId}} style={{adWrapperStyleMobile}} class="dfp-ad-unit" align=center>
|
<div id={{divId}} style={{adWrapperStyleMobile}} class="dfp-ad-unit" align=center>
|
||||||
{{#if loadedGoogletag}}
|
|
||||||
<script type='text/javascript'>
|
<script type='text/javascript'>
|
||||||
googletag.cmd.push(function() { googletag.display('{{divId}}'); });
|
googletag.cmd.push(function() { googletag.display('{{divId}}'); });
|
||||||
</script>
|
</script>
|
||||||
|
</div>
|
||||||
{{else}}
|
|
||||||
|
|
||||||
<div id={{divId}} style={{adWrapperStyle}} class="dfp-ad-unit" align=center>
|
|
||||||
{{#if loadedGoogletag}}
|
|
||||||
<script type='text/javascript'>
|
|
||||||
googletag.cmd.push(function() { googletag.display('{{divId}}'); });
|
|
||||||
</script>
|
|
||||||
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
{{else}}
|
||||||
|
{{#if loadedGoogletag}}
|
||||||
|
<div id={{divId}} style={{adWrapperStyle}} class="dfp-ad-unit" align=center>
|
||||||
|
<script type='text/javascript'>
|
||||||
|
googletag.cmd.push(function() { googletag.display('{{divId}}'); });
|
||||||
|
</script>
|
||||||
</div>
|
</div>
|
||||||
|
{{/if}}
|
||||||
|
{{/if}}
|
Loading…
x
Reference in New Issue
Block a user