mirror of
https://github.com/discourse/discourse-adplugin.git
synced 2025-07-07 13:52:12 +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>
|
||||
|
||||
{{#if site.mobileView}}
|
||||
|
||||
<div id={{divId}} style={{adWrapperStyleMobile}} class="dfp-ad-unit" align=center>
|
||||
{{#if loadedGoogletag}}
|
||||
<script type='text/javascript'>
|
||||
googletag.cmd.push(function() { googletag.display('{{divId}}'); });
|
||||
</script>
|
||||
{{#if loadedGoogletag}}
|
||||
<div id={{divId}} style={{adWrapperStyleMobile}} class="dfp-ad-unit" align=center>
|
||||
<script type='text/javascript'>
|
||||
googletag.cmd.push(function() { googletag.display('{{divId}}'); });
|
||||
</script>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{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 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>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
</div>
|
Loading…
x
Reference in New Issue
Block a user