discourse-adplugin/assets/javascripts/discourse/templates/components/google-dfp-ad.hbs

10 lines
461 B
Handlebars
Executable File

{{#if showAd}}
{{#if site.mobileView}}
<div class="google-dfp-ad-label" style={{adTitleStyleMobile}}><h2>{{i18n "adplugin.advertisement_label"}}</h2></div>
<div id={{divId}} style={{adWrapperStyle}} class="dfp-ad-unit" align="center"></div>
{{else}}
<div class="google-dfp-ad-label"><h2>{{i18n "adplugin.advertisement_label"}}</h2></div>
<div id={{divId}} style={{adWrapperStyle}} class="dfp-ad-unit" align="center"></div>
{{/if}}
{{/if}}