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,
|
width: 728,
|
||||||
height: 90,
|
height: 90,
|
||||||
|
|
||||||
|
classNameBindings: ['adUnitClass'],
|
||||||
classNames: ['google-dfp-ad'],
|
classNames: ['google-dfp-ad'],
|
||||||
loadedGoogletag: false,
|
loadedGoogletag: false,
|
||||||
refreshOnChange: null,
|
refreshOnChange: null,
|
||||||
|
@ -159,6 +160,10 @@ export default Ember.Component.extend({
|
||||||
return "div-gpt-ad-" + this.get('placement');
|
return "div-gpt-ad-" + this.get('placement');
|
||||||
}.property('placement'),
|
}.property('placement'),
|
||||||
|
|
||||||
|
adUnitClass: function() {
|
||||||
|
return "dfp-ad-" + this.get("placement");
|
||||||
|
}.property('placement'),
|
||||||
|
|
||||||
adWrapperStyle: function() {
|
adWrapperStyle: function() {
|
||||||
return `width: ${this.get('width')}px; height: ${this.get('height')}px;`.htmlSafe();
|
return `width: ${this.get('width')}px; height: ${this.get('height')}px;`.htmlSafe();
|
||||||
}.property('width', 'height'),
|
}.property('width', 'height'),
|
||||||
|
|
Loading…
Reference in New Issue