-
Notifications
You must be signed in to change notification settings - Fork 555
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26969 from guardian/ei/affiliate-links-allowlist
Enable affiliate links for articles on an allowlist
- Loading branch information
Showing
11 changed files
with
119 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 10 additions & 34 deletions
44
common/app/views/fragments/affiliateLinksDisclaimer.scala.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,10 @@ | ||
@(contentType: String) | ||
|
||
|
||
@articleDisclaimer() = { | ||
<p><sup> | ||
The Guardian’s product and service reviews are independent and are | ||
in no way influenced by any advertiser or commercial initiative. We | ||
will earn a commission from the retailer if you buy something | ||
through an affiliate link. | ||
<a | ||
href="https://www.theguardian.com/info/2017/nov/01/reader-information-on-affiliate-links" | ||
data-link-name="in body link" | ||
class="u-underline" | ||
>Learn more</a | ||
>. | ||
</sup></p> | ||
} | ||
|
||
@galleryDisclaimer() = { | ||
<br> | ||
The Guardian’s product and service reviews are independent and are in no | ||
way influenced by any advertiser or commercial initiative. We will earn a | ||
commission from the retailer if you buy something through an affiliate link. | ||
<a | ||
href="https://www.theguardian.com/info/2017/nov/01/reader-information-on-affiliate-links" | ||
>Learn more</a | ||
>. | ||
} | ||
|
||
@{contentType match { | ||
case "gallery" => galleryDisclaimer() | ||
case "article" => articleDisclaimer() | ||
case _ => Html("") | ||
}} | ||
<br> | ||
<p class="gallery__disclaimer"> | ||
The Guardian’s product and service reviews are independent and are in no | ||
way influenced by any advertiser or commercial initiative. We will earn a | ||
commission from the retailer if you buy something through an affiliate link. | ||
<a | ||
href="https://www.theguardian.com/info/2017/nov/01/reader-information-on-affiliate-links" | ||
>Learn more</a | ||
>. | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.