summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/modules/wordads/php/networks/amazon.php')
-rw-r--r--plugins/jetpack/modules/wordads/php/networks/amazon.php50
1 files changed, 1 insertions, 49 deletions
diff --git a/plugins/jetpack/modules/wordads/php/networks/amazon.php b/plugins/jetpack/modules/wordads/php/networks/amazon.php
index fc1edef9..19f53fbe 100644
--- a/plugins/jetpack/modules/wordads/php/networks/amazon.php
+++ b/plugins/jetpack/modules/wordads/php/networks/amazon.php
@@ -1,51 +1,3 @@
<?php
-/**
- * Amazon network class
- *
- * @since 4.5.0
- */
-class WordAds_Amazon {
-
- /**
- * Instantiate
- *
- * @since 4.5.0
- */
- function __construct() {
- add_action( 'wp_head', array( $this, 'insert_head_amazon' ), 25 );
- }
-
- function insert_head_amazon() {
- $data_tags = ( WordAds_Params::is_cloudflare() ) ? ' data-cfasync="false"' : '';
- echo <<<HTML
- <script$data_tags type="text/javascript" src="//c.amazon-adsystem.com/aax2/amzn_ads.js"></script>
- <script$data_tags type="text/javascript">
- try {
- amznads.getAds("3033");
- } catch(e) { /* ignore */ }
- </script>
- <script$data_tags type="text/javascript">
- var a9_p = amznads.getKeys();
- if ("undefined" != typeof a9_p && "" != a9_p && null !== a9_p && "[object Array]" === Object.prototype.toString.call(a9_p)) {
- var a = "",
- b = 0,
- c = a9_p.length,
- d, e;
- a9_p.sort();
- for (d = 0; d < c; d+=1) {
- a9_p[d - b] = a9_p[d - b].replace(/a1x6p/, "a160x600p");
- e = a9_p[d - b].split("p");
- e[0] == a && (a9_p.splice(d - b, 1), b++);
- a = e[0];
- }
- _ipw_custom.amznPay = a9_p;
- }
- document.close();
- </script>
-HTML;
- }
-}
-
-global $wordads_amazon;
-$wordads_amazon = new WordAds_Amazon();
+// stub