mirror of
https://github.com/discourse/discourse-adplugin.git
synced 2025-07-05 04:42:12 +00:00
Render nth post dfp ads in position where post would be
This commit is contained in:
parent
13b5d21565
commit
cee3f66009
@ -151,6 +151,7 @@ export default Ember.Component.extend({
|
||||
width: 728,
|
||||
height: 90,
|
||||
|
||||
classNameBindings: ['adUnitClass'],
|
||||
classNames: ['google-dfp-ad'],
|
||||
loadedGoogletag: false,
|
||||
refreshOnChange: null,
|
||||
@ -159,6 +160,10 @@ export default Ember.Component.extend({
|
||||
return "div-gpt-ad-" + this.get('placement');
|
||||
}.property('placement'),
|
||||
|
||||
adUnitClass: function() {
|
||||
return "dfp-ad-" + this.get("placement");
|
||||
}.property('placement'),
|
||||
|
||||
adWrapperStyle: function() {
|
||||
return `width: ${this.get('width')}px; height: ${this.get('height')}px;`.htmlSafe();
|
||||
}.property('width', 'height'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user