The ADVERTISEMENT label can be translated and customized from admin

This commit is contained in:
Neil Lalonde 2018-01-08 13:54:21 -05:00
parent dce06afbdb
commit cf77b9fdc5
4 changed files with 8 additions and 5 deletions

View File

@ -1,10 +1,10 @@
{{#if checkTrustLevels}}
{{#if site.mobileView}}
<div class="amazon-product-links-label" style={{adTitleStyleMobile}}><h2>ADVERTISEMENT</h2></div>
<div class="amazon-product-links-label" style={{adTitleStyleMobile}}><h2>{{i18n 'adplugin.advertisement_label'}}</h2></div>
<iframe style={{adWrapperStyleMobile}} marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src={{userInputMobile}}>
</iframe>
{{else}}
<div class="amazon-product-links-label"><h2>ADVERTISEMENT</h2></div>
<div class="amazon-product-links-label"><h2>{{i18n 'adplugin.advertisement_label'}}</h2></div>
<div class="container" align="center">
<iframe style={{adWrapperStyle}} marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src={{userInput}}>
</iframe>

View File

@ -1,5 +1,5 @@
{{#if showAd}}
<div class="google-adsense-label"><h2>ADVERTISEMENT</h2></div>
<div class="google-adsense-label"><h2>{{i18n 'adplugin.advertisement_label'}}</h2></div>
<div class="google-adsense-content" style={{adWrapperStyle}}>
<ins class="adsbygoogle"
style={{adInsStyle}}

View File

@ -1,9 +1,9 @@
{{#if showAd}}
{{#if site.mobileView}}
<div class="google-dfp-ad-label" style={{adTitleStyleMobile}}><h2>ADVERTISEMENT</h2></div>
<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>ADVERTISEMENT</h2></div>
<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}}

View File

@ -1,4 +1,7 @@
en:
js:
adplugin:
advertisement_label: 'ADVERTISEMENT'
admin_js:
admin:
site_settings: