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…
Reference in New Issue