mirror of
https://github.com/discourse/discourse-adplugin.git
synced 2025-07-07 22:02:11 +00:00
Added Advertisement Label on top of Ad
This commit is contained in:
parent
e0b3e64962
commit
292951e302
@ -1,4 +1,5 @@
|
|||||||
{{#if checkTrustLevels}}
|
{{#if checkTrustLevels}}
|
||||||
|
<div class="amazon-product-links-label"><h2>ADVERTISEMENT</h2></div>
|
||||||
{{#if site.mobileView}}
|
{{#if site.mobileView}}
|
||||||
<iframe style={{adWrapperStyleMobile}} marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src={{userInput}}>
|
<iframe style={{adWrapperStyleMobile}} marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src={{userInput}}>
|
||||||
</iframe>
|
</iframe>
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{{#if checkTrustLevels}}
|
{{#if checkTrustLevels}}
|
||||||
|
<div class="google-adsense-label"><h2>ADVERTISEMENT</h2></div>
|
||||||
{{#if site.mobileView}}
|
{{#if site.mobileView}}
|
||||||
<div style={{adWrapperStyleMobile}}>
|
<div style={{adWrapperStyleMobile}}>
|
||||||
<ins class="adsbygoogle"
|
<ins class="adsbygoogle"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{{#if checkTrustLevels}}
|
{{#if checkTrustLevels}}
|
||||||
{{#if loadedGoogletag}}
|
{{#if loadedGoogletag}}
|
||||||
|
<div class="google-dfp-ad-label"><h2>ADVERTISEMENT</h2></div>
|
||||||
{{#if site.mobileView}}
|
{{#if site.mobileView}}
|
||||||
<div id={{divId}} style={{adWrapperStyleMobile}} class="dfp-ad-unit" align=center>
|
<div id={{divId}} style={{adWrapperStyleMobile}} class="dfp-ad-unit" align=center>
|
||||||
<script type='text/javascript'>
|
<script type='text/javascript'>
|
||||||
|
42
plugin.rb
42
plugin.rb
@ -35,4 +35,46 @@ register_css <<CSS
|
|||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.amazon-product-links .amazon-product-links-label {
|
||||||
|
width: 728px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.amazon-product-links .amazon-product-links-label h2 {
|
||||||
|
margin: 4px 0 !important;
|
||||||
|
color: #858a8c;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-size: 12px;
|
||||||
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.google-adsense .google-adsense-label {
|
||||||
|
width: 728px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.google-adsense .google-adsense-label h2 {
|
||||||
|
margin: 4px 0 !important;
|
||||||
|
color: #858a8c;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-size: 12px;
|
||||||
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.google-dfp-ad .google-dfp-ad-label {
|
||||||
|
width: 728px;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.google-dfp-ad .google-dfp-ad-label h2 {
|
||||||
|
margin: 4px 0 !important;
|
||||||
|
color: #858a8c;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-size: 12px;
|
||||||
|
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
CSS
|
CSS
|
Loading…
x
Reference in New Issue
Block a user