Skip to content

Commit 8eafb6b

Browse files
authored
Merge pull request #349 from Wikia/IW-2016
IW-2016 | Tracking pixel for sponsored content
2 parents 1f0e295 + cfcc6bb commit 8eafb6b

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

app/components/tracking-pixel.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import Component from '@ember/component';
2+
3+
export default Component.extend({
4+
tagName: 'div',
5+
classNames: ['wds-is-hidden'],
6+
});

app/templates/components/global-navigation/sponsored-content-card.hbs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,10 @@
1414
</span>
1515
{{/if}}
1616
</div>
17+
18+
{{#if model.pixelContent}}
19+
<TrackingPixel
20+
@pixelContent={{model.pixelContent}}
21+
@pixelType={{model.pixelType}}
22+
/>
23+
{{/if}}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{{#if (equal pixelType "url")}}
2+
<img src="{{pixelContent}}">
3+
{{else}}
4+
{{{pixelContent}}}
5+
{{/if}}

0 commit comments

Comments
 (0)