discourse-adplugin/assets/javascripts/discourse/templates/connectors/topic-above-suggested/discourse-adplugin.hbs

27 lines
1.1 KiB
Handlebars

{{#if site.mobileView}}
{{#if siteSettings.adsense_mobile_topic_above_suggested_code}}
{{google-adsense placement="topic-above-suggested"}}
{{/if}}
{{#if siteSettings.dfp_mobile_topic_above_suggested_code}}
{{google-dfp-ad placement="topic-above-suggested" refreshOnChange=model.id category=model.category.slug}}
{{/if}}
{{#if siteSettings.amazon_mobile_topic_above_suggested_src_code}}
{{amazon-product-links placement="topic-above-suggested"}}
{{/if}}
{{#if siteSettings.codefund_above_suggested_enabled}}
{{codefund-ad placement="topic-above-suggested"}}
{{/if}}
{{else}}
{{#if siteSettings.adsense_topic_above_suggested_code}}
{{google-adsense placement="topic-above-suggested"}}
{{/if}}
{{#if siteSettings.dfp_topic_above_suggested_code}}
{{google-dfp-ad placement="topic-above-suggested" refreshOnChange=model.id category=model.category.slug}}
{{/if}}
{{#if siteSettings.amazon_topic_above_suggested_src_code}}
{{amazon-product-links placement="topic-above-suggested"}}
{{/if}}
{{#if siteSettings.codefund_above_suggested_enabled}}
{{codefund-ad placement="topic-above-suggested"}}
{{/if}}
{{/if}}