Amazon Associates Link Builder - Version 1.4.8

Version Description

Improvement in error display message on product search, fix for the issue of handleBar template not being loaded for a few users on product search and other minor bug fixes.

Download this release

Release Info

Developer amazonlinkbuilder
Plugin Icon 128x128 Amazon Associates Link Builder
Version 1.4.8
Comparing to
See all releases

Code changes from version 1.4.7 to 1.4.8

aalb_admin_item_search_items.hbs DELETED
@@ -1,27 +0,0 @@
1
- <!--
2
- Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
-
4
- Licensed under the GNU General Public License as published by the Free Software Foundation,
5
- Version 2.0 (the "License"). You may not use this file except in compliance with the License.
6
- A copy of the License is located in the "license" file accompanying this file.
7
-
8
- This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
9
- either express or implied. See the License for the specific language governing permissions
10
- and limitations under the License.
11
- -->
12
-
13
- <div class="aalb-modal-box">
14
- {{#each this}}
15
- <div class="aalb-admin-item-search-items-item" data-asin="{{asin}}">
16
- <div class="aalb-admin-item-search-items-item-img">
17
- <img id="aalb-admin-item-search-items-item-img" src="{{image}}" />
18
- </div>
19
- <div class="aalb-admin-item-search-items-item-title">
20
- {{title}}
21
- </div>
22
- <div class="aalb-admin-item-search-items-item-price">
23
- {{price}}
24
- </div>
25
- </div>
26
- {{/each}}
27
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
aalb_admin_item_search_items.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ Copyright 2016-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+
4
+ Licensed under the GNU General Public License as published by the Free Software Foundation,
5
+ Version 2.0 (the "License"). You may not use this file except in compliance with the License.
6
+ A copy of the License is located in the "license" file accompanying this file.
7
+
8
+ This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
9
+ either express or implied. See the License for the specific language governing permissions
10
+ and limitations under the License.
11
+ -->
12
+ <?php
13
+ ?>
14
+
15
+ <script id="aalb-hbs-admin-items-search" type="text/x-handlebars-template">
16
+ <div class="aalb-modal-box">
17
+ {{#each this}}
18
+ <div class="aalb-admin-item-search-items-item" data-asin="{{asin}}">
19
+ <div class="aalb-admin-item-search-items-item-img">
20
+ <img id="aalb-admin-item-search-items-item-img" src="{{image}}" />
21
+ </div>
22
+ <div class="aalb-admin-item-search-items-item-title">
23
+ {{title}}
24
+ </div>
25
+ <div class="aalb-admin-item-search-items-item-price">
26
+ {{price}}
27
+ </div>
28
+ </div>
29
+ {{/each}}
30
+ </div>
31
+ </script>
aalb_config.php CHANGED
@@ -13,7 +13,7 @@ and limitations under the License.
13
  */
14
 
15
  //version
16
- define( 'AALB_PLUGIN_CURRENT_VERSION', '1.4.7' );
17
 
18
  //PHP version compatible for AALB plugin
19
  define('AALB_PLUGIN_MINIMUM_SUPPORTED_PHP_VERSION','5.3.0');
@@ -109,7 +109,7 @@ define( 'AALB_TEMPLATE_JS', AALB_PLUGIN_URL . 'admin/sidebar/js/aalb_template.js
109
  define( 'AALB_CREDENTIALS_JS', AALB_PLUGIN_URL . 'admin/sidebar/js/aalb_credentials.js' );
110
 
111
  //Templates
112
- define( 'AALB_ADMIN_ITEM_SEARCH_ITEMS_URL', AALB_PLUGIN_URL . 'aalb_admin_item_search_items.hbs?ver=' . AALB_PLUGIN_CURRENT_VERSION );
113
 
114
  //External Scripts
115
  define( 'HANDLEBARS_JS', 'https://d8fd03967nrad.cloudfront.net/libs/handlebars.js/4.0.5/handlebars.min.js' );
13
  */
14
 
15
  //version
16
+ define( 'AALB_PLUGIN_CURRENT_VERSION', '1.4.8' );
17
 
18
  //PHP version compatible for AALB plugin
19
  define('AALB_PLUGIN_MINIMUM_SUPPORTED_PHP_VERSION','5.3.0');
109
  define( 'AALB_CREDENTIALS_JS', AALB_PLUGIN_URL . 'admin/sidebar/js/aalb_credentials.js' );
110
 
111
  //Templates
112
+ define( 'AALB_ADMIN_ITEM_SEARCH_ITEMS_PATH', AALB_PLUGIN_DIR . 'aalb_admin_item_search_items.php' );
113
 
114
  //External Scripts
115
  define( 'HANDLEBARS_JS', 'https://d8fd03967nrad.cloudfront.net/libs/handlebars.js/4.0.5/handlebars.min.js' );
admin/aalb_admin.php CHANGED
@@ -85,7 +85,6 @@ class Aalb_Admin {
85
  */
86
  private function get_paapi_pref() {
87
  return array(
88
- 'template_url' => AALB_ADMIN_ITEM_SEARCH_ITEMS_URL,
89
  'max_search_result_items' => AALB_MAX_SEARCH_RESULT_ITEMS,
90
  'store_id' => get_option( AALB_DEFAULT_STORE_ID ),
91
  'marketplace' => get_option( AALB_DEFAULT_MARKETPLACE ),
85
  */
86
  private function get_paapi_pref() {
87
  return array(
 
88
  'max_search_result_items' => AALB_MAX_SEARCH_RESULT_ITEMS,
89
  'store_id' => get_option( AALB_DEFAULT_STORE_ID ),
90
  'marketplace' => get_option( AALB_DEFAULT_MARKETPLACE ),
admin/js/aalb_admin.js CHANGED
@@ -30,9 +30,8 @@ jQuery( document ).ready( function() {
30
  jQuery( "#aalb-admin-popup-content" ).data( 'old-state', jQuery( "#aalb-admin-popup-content" ).html() );
31
 
32
  //Load the search result template
33
- jQuery.get( api_pref.template_url, function( data ) {
34
- template = Handlebars.compile( data );
35
- } );
36
 
37
  //Resize thickbox on window resize
38
  jQuery( window ).on( 'resize', resize_thickbox );
30
  jQuery( "#aalb-admin-popup-content" ).data( 'old-state', jQuery( "#aalb-admin-popup-content" ).html() );
31
 
32
  //Load the search result template
33
+ var aalb_hbs_admin_items_search_source = jQuery( "#aalb-hbs-admin-items-search" ).html();
34
+ template = Handlebars.compile( aalb_hbs_admin_items_search_source );
 
35
 
36
  //Resize thickbox on window resize
37
  jQuery( window ).on( 'resize', resize_thickbox );
admin/partials/aalb_meta_box.php CHANGED
@@ -18,6 +18,9 @@ and limitations under the License.
18
  * details selected by plugin user short code is generated.
19
  */
20
 
 
 
 
21
  $aalb_template_names = get_option( AALB_TEMPLATE_NAMES );
22
  $config_loader = new Aalb_Config_Loader();
23
  $aalb_marketplace_names = $config_loader->fetch_marketplaces();
@@ -96,4 +99,4 @@ $aalb_admin->aalb_enqueue_scripts();
96
  </div><!--end .aalb-add-shortcode-button-->
97
  </div><!--end .aalb-admin-popup-container-->
98
  <?php
99
- ?>
18
  * details selected by plugin user short code is generated.
19
  */
20
 
21
+ // HandleBar template
22
+ include AALB_ADMIN_ITEM_SEARCH_ITEMS_PATH;
23
+
24
  $aalb_template_names = get_option( AALB_TEMPLATE_NAMES );
25
  $config_loader = new Aalb_Config_Loader();
26
  $aalb_marketplace_names = $config_loader->fetch_marketplaces();
99
  </div><!--end .aalb-add-shortcode-button-->
100
  </div><!--end .aalb-admin-popup-container-->
101
  <?php
102
+ ?>
amazon-associates-link-builder.php CHANGED
@@ -7,10 +7,12 @@
7
  /*
8
  Plugin Name: Amazon Associates Link Builder
9
  Description: Amazon Associates Link Builder is the official free Amazon Associates Program plugin for WordPress. The plugin enables you to search for products in the Amazon catalog, access real-time price and availability information, and easily create links in your posts to products on Amazon.com. You will be able to generate text links, create custom ad units, or take advantage of out-of-the-box widgets that we’ve designed and included with the plugin.
10
- Version: 1.4.7
11
  Author: Amazon Associates Program
12
  Author URI: https://affiliate-program.amazon.com/
13
  License: GPLv2
 
 
14
  */
15
 
16
  /*
@@ -96,6 +98,15 @@ function aalb_execute() {
96
  $aalb_manager->execute();
97
  }
98
 
99
- aalb_execute();
 
 
 
 
 
 
 
 
100
 
 
101
  ?>
7
  /*
8
  Plugin Name: Amazon Associates Link Builder
9
  Description: Amazon Associates Link Builder is the official free Amazon Associates Program plugin for WordPress. The plugin enables you to search for products in the Amazon catalog, access real-time price and availability information, and easily create links in your posts to products on Amazon.com. You will be able to generate text links, create custom ad units, or take advantage of out-of-the-box widgets that we’ve designed and included with the plugin.
10
+ Version: 1.4.8
11
  Author: Amazon Associates Program
12
  Author URI: https://affiliate-program.amazon.com/
13
  License: GPLv2
14
+ Text Domain: amazon-associates-link-builder
15
+ Domain Path: /languages/
16
  */
17
 
18
  /*
98
  $aalb_manager->execute();
99
  }
100
 
101
+ add_action( 'plugins_loaded', 'aalb_plugin_load_textdomain');
102
+
103
+ /**
104
+ * Adds a text-domain to facilitate translation feature
105
+ * @since 1.4.8
106
+ */
107
+ function aalb_plugin_load_textdomain() {
108
+ load_plugin_textdomain( 'amazon-associates-link-builder', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/');
109
+ }
110
 
111
+ aalb_execute();
112
  ?>
lib/php/Paapi/aalb_paapi_helper.php CHANGED
@@ -122,7 +122,12 @@ class Aalb_Paapi_Helper {
122
  case HTTP_TIME_OUT:
123
  return HTTP_TIME_OUT_MESSAGE;
124
  default:
125
- return $error;
 
 
 
 
 
126
  }
127
  }
128
 
122
  case HTTP_TIME_OUT:
123
  return HTTP_TIME_OUT_MESSAGE;
124
  default:
125
+ /**
126
+ * <h4> tag ensures that the message is treated as HTML element in jQuery.find in aalb_admin.js.
127
+ * Otherwise due to the error message string's characters like "!,:,etc", string is parsed as
128
+ * if it contains partial css classes and later given syntax error
129
+ */
130
+ return '<h4>'.$error.'</h4>';
131
  }
132
  }
133
 
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: amazonlinkbuilder
3
  Tags: Amazon, Affiliate, Associates, Amazon Associates, Amazon Associate, Product Advertising API, Amazon API, Amazon Link, Amazon Ad, Amazon Affiliate, eCommerce
4
  Requires at least: 3.0.1
5
- Tested up to: 4.8.0
6
- Stable tag: 1.4.7
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -100,6 +100,11 @@ Amazon Product Advertising API credentials are not required to use the feature t
100
 
101
  == Changelog ==
102
 
 
 
 
 
 
103
  = 1.4.7 - July 27, 2017 =
104
  * Fix: `Warning: DOMDocument::loadHTML(): Empty string supplied as input.`
105
  * Fix: Ad would not be rendered even if one ASIN has expired for any multi-ASIN shortcode.
@@ -171,6 +176,9 @@ Amazon Product Advertising API credentials are not required to use the feature t
171
 
172
  == Upgrade Notice ==
173
 
 
 
 
174
  = 1.4.7 =
175
  Fix for the issue of trailing spaces in a few deafult templates, failed rendering due to expired ASIN and other minor bug fixes.
176
 
2
  Contributors: amazonlinkbuilder
3
  Tags: Amazon, Affiliate, Associates, Amazon Associates, Amazon Associate, Product Advertising API, Amazon API, Amazon Link, Amazon Ad, Amazon Affiliate, eCommerce
4
  Requires at least: 3.0.1
5
+ Tested up to: 4.8.1
6
+ Stable tag: 1.4.8
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
100
 
101
  == Changelog ==
102
 
103
+ = 1.4.8 - August 10, 2017 =
104
+ * Improvement in error display message on product search.
105
+ * Fix: HandleBar template not being loaded for a few users on product search.
106
+
107
+
108
  = 1.4.7 - July 27, 2017 =
109
  * Fix: `Warning: DOMDocument::loadHTML(): Empty string supplied as input.`
110
  * Fix: Ad would not be rendered even if one ASIN has expired for any multi-ASIN shortcode.
176
 
177
  == Upgrade Notice ==
178
 
179
+ = 1.4.8 =
180
+ Improvement in error display message on product search, fix for the issue of handleBar template not being loaded for a few users on product search and other minor bug fixes.
181
+
182
  = 1.4.7 =
183
  Fix for the issue of trailing spaces in a few deafult templates, failed rendering due to expired ASIN and other minor bug fixes.
184
 
template/ProductCarousel.css CHANGED
@@ -1,17 +1,17 @@
1
- .aalb-pc-ad-unit {
2
  /*Enable this border property to have a border around the ad unit*/
3
  /*border: 1px solid #d4d4c4;*/
4
  background: #ffffff;
5
  }
6
 
7
  /* Actual styles start below */
8
- .aalb-pc-ad-unit {
9
  position: relative;
10
  overflow: hidden;
11
  padding: 22px 40px;
12
  }
13
 
14
- .aalb-pc-ad-unit * {
15
  box-sizing: content-box;
16
  box-shadow: none;
17
  font-family: Arial, Helvetica, sans-serif;
@@ -28,27 +28,27 @@
28
  padding-top: 0;
29
  }
30
 
31
- .aalb-pc-ad-unit.pull-left {
32
  float: left;
33
  }
34
 
35
- .aalb-pc-ad-unit.pull-right {
36
  float: right;
37
  }
38
 
39
- .aalb-pc-ad-unit.pull-left .aalb-pc-product, .aalb-pc-ad-unit.pull-right .aalb-pc-product {
40
  width: 185px !important;
41
  }
42
 
43
- .aalb-pc-ad-unit a {
44
  box-shadow: none !important;
45
  }
46
 
47
- .aalb-pc-ad-unit a:hover {
48
  color: #c45500;
49
  }
50
 
51
- .aalb-pc-ad-unit .aalb-pc-ad-header {
52
  padding-left: 3px;
53
  padding-bottom: 9px;
54
  font-size: 17px;
@@ -56,13 +56,13 @@
56
  color: #111111;
57
  }
58
 
59
- .aalb-pc-ad-unit .aalb-pc-product-list {
60
  /* Remove the border-top to remove the horizontal line after the Ad Header*/
61
  border-top: 2px solid #f7f7f7;
62
  overflow: hidden;
63
  }
64
 
65
- .aalb-pc-ad-unit .aalb-pc-product {
66
  min-width: 185px;
67
  max-width: 385px;
68
  height: auto !important;
@@ -75,7 +75,7 @@
75
  text-align: center;
76
  }
77
 
78
- .aalb-pc-ad-unit .aalb-pc-product-image {
79
  display: table;
80
  width: 150px;
81
  height: 150px;
@@ -83,24 +83,24 @@
83
  text-align: center;
84
  }
85
 
86
- .aalb-pc-ad-unit .aalb-pc-product-image-wrapper {
87
  display: table-cell;
88
  vertical-align: middle;
89
  }
90
 
91
- .aalb-pc-ad-unit .aalb-pc-product-image a {
92
  position: relative;
93
  display: inline-block;
94
  vertical-align: middle;
95
  }
96
 
97
- .aalb-pc-ad-unit .aalb-pc-product-image img {
98
  max-width: 150px;
99
  max-height: 150px;
100
  vertical-align: bottom;
101
  }
102
 
103
- .aalb-pc-ad-unit .aalb-pc-percent-off {
104
  display: block;
105
  width: 32px;
106
  height: 27px;
@@ -120,18 +120,18 @@
120
  background-image: linear-gradient(to bottom, #cb0400, #a50200);
121
  }
122
 
123
- .aalb-pc-ad-unit.hide-percent-off-badge .aalb-pc-percent-off {
124
  display: none;
125
  }
126
 
127
- .aalb-pc-ad-unit .aalb-pc-product-details {
128
  display: inline-block;
129
  max-width: 100%;
130
  margin-top: 11px;
131
  text-align: left;
132
  }
133
 
134
- .aalb-pc-ad-unit .aalb-pc-product-title a {
135
  display: block;
136
  width: 100%;
137
  overflow: hidden;
@@ -142,31 +142,31 @@
142
  text-decoration: none;
143
  }
144
 
145
- .aalb-pc-ad-unit.no-truncate .aalb-pc-product-title a {
146
  text-overflow: initial;
147
  white-space: initial;
148
  }
149
 
150
- .aalb-pc-ad-unit .aalb-pc-product-offer-price {
151
  font-size: 13px;
152
  color: #111111;
153
  }
154
 
155
- .aalb-pc-ad-unit .aalb-pc-product-offer-price-value {
156
  color: #AB1700;
157
  font-weight: bold;
158
  }
159
 
160
- .aalb-pc-ad-unit .aalb-pc-product-list-price {
161
  font-size: 13px;
162
  color: #565656;
163
  }
164
 
165
- .aalb-pc-ad-unit .aalb-pc-product-list-price-value {
166
  text-decoration: line-through;
167
  }
168
 
169
- .aalb-pc-ad-unit .aalb-pc-product-prime-icon .icon-prime-all {
170
  background: url("https://images-na.ssl-images-amazon.com/images/G/01/AUIClients/AmazonUIBaseCSS-sprite_2x_weblab_AUI_100106_T1-4e9f4ae74b1b576e5f55de370aae7aedaedf390d._V2_.png") no-repeat;
171
  display: inline-block;
172
  margin-top: -1px;
@@ -177,15 +177,15 @@
177
  height: 15px;
178
  }
179
 
180
- .aalb-pc-ad-unit .aalb-pc-product-offer-price,
181
- .aalb-pc-ad-unit .aalb-pc-product-list-price,
182
- .aalb-pc-ad-unit .aalb-pc-product-prime-icon {
183
  display: inline-block;
184
  margin-right: 2px;
185
  }
186
 
187
- .aalb-pc-ad-unit .aalb-pc-btn-prev,
188
- .aalb-pc-ad-unit .aalb-pc-btn-next {
189
  position: absolute;
190
  top: 50%;
191
  margin-top: -52px;
@@ -205,24 +205,24 @@
205
  box-shadow: 0 0 4px #e9e9e9;
206
  }
207
 
208
- .aalb-pc-ad-unit .aalb-pc-btn-prev:hover,
209
- .aalb-pc-ad-unit .aalb-pc-btn-next:hover {
210
  color: #999999;
211
  }
212
 
213
- .aalb-pc-ad-unit .aalb-pc-btn-prev:focus,
214
- .aalb-pc-ad-unit .aalb-pc-btn-next:focus {
215
  outline: none;
216
  }
217
 
218
- .aalb-pc-ad-unit .aalb-pc-btn-prev {
219
  left: 0;
220
  border-left: 0;
221
  border-top-right-radius: 20px;
222
  border-bottom-right-radius: 20px;
223
  }
224
 
225
- .aalb-pc-ad-unit .aalb-pc-btn-next {
226
  right: 0;
227
  border-right: 0;
228
  border-top-left-radius: 20px;
@@ -230,7 +230,7 @@
230
  }
231
 
232
  @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
233
- .aalb-pc-ad-unit .aalb-pc-product-prime-icon .icon-prime-all {
234
  background: url("https://images-na.ssl-images-amazon.com/images/G/01/AUIClients/AmazonUIBaseCSS-sprite_2x_weblab_AUI_100106_T1-4e9f4ae74b1b576e5f55de370aae7aedaedf390d._V2_.png") no-repeat;
235
  display: inline-block;
236
  margin-top: -1px;
1
+ .aalb-product-carousel-unit {
2
  /*Enable this border property to have a border around the ad unit*/
3
  /*border: 1px solid #d4d4c4;*/
4
  background: #ffffff;
5
  }
6
 
7
  /* Actual styles start below */
8
+ .aalb-product-carousel-unit {
9
  position: relative;
10
  overflow: hidden;
11
  padding: 22px 40px;
12
  }
13
 
14
+ .aalb-product-carousel-unit * {
15
  box-sizing: content-box;
16
  box-shadow: none;
17
  font-family: Arial, Helvetica, sans-serif;
28
  padding-top: 0;
29
  }
30
 
31
+ .aalb-product-carousel-unit.pull-left {
32
  float: left;
33
  }
34
 
35
+ .aalb-product-carousel-unit.pull-right {
36
  float: right;
37
  }
38
 
39
+ .aalb-product-carousel-unit.pull-left .aalb-pc-product, .aalb-product-carousel-unit.pull-right .aalb-pc-product {
40
  width: 185px !important;
41
  }
42
 
43
+ .aalb-product-carousel-unit a {
44
  box-shadow: none !important;
45
  }
46
 
47
+ .aalb-product-carousel-unit a:hover {
48
  color: #c45500;
49
  }
50
 
51
+ .aalb-product-carousel-unit .aalb-pc-ad-header {
52
  padding-left: 3px;
53
  padding-bottom: 9px;
54
  font-size: 17px;
56
  color: #111111;
57
  }
58
 
59
+ .aalb-product-carousel-unit .aalb-pc-product-list {
60
  /* Remove the border-top to remove the horizontal line after the Ad Header*/
61
  border-top: 2px solid #f7f7f7;
62
  overflow: hidden;
63
  }
64
 
65
+ .aalb-product-carousel-unit .aalb-pc-product {
66
  min-width: 185px;
67
  max-width: 385px;
68
  height: auto !important;
75
  text-align: center;
76
  }
77
 
78
+ .aalb-product-carousel-unit .aalb-pc-product-image {
79
  display: table;
80
  width: 150px;
81
  height: 150px;
83
  text-align: center;
84
  }
85
 
86
+ .aalb-product-carousel-unit .aalb-pc-product-image-wrapper {
87
  display: table-cell;
88
  vertical-align: middle;
89
  }
90
 
91
+ .aalb-product-carousel-unit .aalb-pc-product-image a {
92
  position: relative;
93
  display: inline-block;
94
  vertical-align: middle;
95
  }
96
 
97
+ .aalb-product-carousel-unit .aalb-pc-product-image img {
98
  max-width: 150px;
99
  max-height: 150px;
100
  vertical-align: bottom;
101
  }
102
 
103
+ .aalb-product-carousel-unit .aalb-pc-percent-off {
104
  display: block;
105
  width: 32px;
106
  height: 27px;
120
  background-image: linear-gradient(to bottom, #cb0400, #a50200);
121
  }
122
 
123
+ .aalb-product-carousel-unit.hide-percent-off-badge .aalb-pc-percent-off {
124
  display: none;
125
  }
126
 
127
+ .aalb-product-carousel-unit .aalb-pc-product-details {
128
  display: inline-block;
129
  max-width: 100%;
130
  margin-top: 11px;
131
  text-align: left;
132
  }
133
 
134
+ .aalb-product-carousel-unit .aalb-pc-product-title a {
135
  display: block;
136
  width: 100%;
137
  overflow: hidden;
142
  text-decoration: none;
143
  }
144
 
145
+ .aalb-product-carousel-unit.no-truncate .aalb-pc-product-title a {
146
  text-overflow: initial;
147
  white-space: initial;
148
  }
149
 
150
+ .aalb-product-carousel-unit .aalb-pc-product-offer-price {
151
  font-size: 13px;
152
  color: #111111;
153
  }
154
 
155
+ .aalb-product-carousel-unit .aalb-pc-product-offer-price-value {
156
  color: #AB1700;
157
  font-weight: bold;
158
  }
159
 
160
+ .aalb-product-carousel-unit .aalb-pc-product-list-price {
161
  font-size: 13px;
162
  color: #565656;
163
  }
164
 
165
+ .aalb-product-carousel-unit .aalb-pc-product-list-price-value {
166
  text-decoration: line-through;
167
  }
168
 
169
+ .aalb-product-carousel-unit .aalb-pc-product-prime-icon .icon-prime-all {
170
  background: url("https://images-na.ssl-images-amazon.com/images/G/01/AUIClients/AmazonUIBaseCSS-sprite_2x_weblab_AUI_100106_T1-4e9f4ae74b1b576e5f55de370aae7aedaedf390d._V2_.png") no-repeat;
171
  display: inline-block;
172
  margin-top: -1px;
177
  height: 15px;
178
  }
179
 
180
+ .aalb-product-carousel-unit .aalb-pc-product-offer-price,
181
+ .aalb-product-carousel-unit .aalb-pc-product-list-price,
182
+ .aalb-product-carousel-unit .aalb-pc-product-prime-icon {
183
  display: inline-block;
184
  margin-right: 2px;
185
  }
186
 
187
+ .aalb-product-carousel-unit .aalb-pc-btn-prev,
188
+ .aalb-product-carousel-unit .aalb-pc-btn-next {
189
  position: absolute;
190
  top: 50%;
191
  margin-top: -52px;
205
  box-shadow: 0 0 4px #e9e9e9;
206
  }
207
 
208
+ .aalb-product-carousel-unit .aalb-pc-btn-prev:hover,
209
+ .aalb-product-carousel-unit .aalb-pc-btn-next:hover {
210
  color: #999999;
211
  }
212
 
213
+ .aalb-product-carousel-unit .aalb-pc-btn-prev:focus,
214
+ .aalb-product-carousel-unit .aalb-pc-btn-next:focus {
215
  outline: none;
216
  }
217
 
218
+ .aalb-product-carousel-unit .aalb-pc-btn-prev {
219
  left: 0;
220
  border-left: 0;
221
  border-top-right-radius: 20px;
222
  border-bottom-right-radius: 20px;
223
  }
224
 
225
+ .aalb-product-carousel-unit .aalb-pc-btn-next {
226
  right: 0;
227
  border-right: 0;
228
  border-top-left-radius: 20px;
230
  }
231
 
232
  @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
233
+ .aalb-product-carousel-unit .aalb-pc-product-prime-icon .icon-prime-all {
234
  background: url("https://images-na.ssl-images-amazon.com/images/G/01/AUIClients/AmazonUIBaseCSS-sprite_2x_weblab_AUI_100106_T1-4e9f4ae74b1b576e5f55de370aae7aedaedf390d._V2_.png") no-repeat;
235
  display: inline-block;
236
  margin-top: -1px;
template/ProductCarousel.mustache CHANGED
@@ -1,6 +1,6 @@
1
  <!-- Ad Template with Carousel Layout-->
2
  {{#Items}} <!--Section tag for iterating through the list of items-->
3
- <div class="aalb-pc-ad-unit" id="{{ID}}">
4
  <h2 class="aalb-pc-ad-header">{{#AalbHeader}}{{#MarketplaceUS}}Products from Amazon.com{{/MarketplaceUS}}{{#MarketplaceFR}}Produits disponibles sur Amazon.fr {{/MarketplaceFR}}{{#MarketplaceIT}}Acquista su Amazon.it{{/MarketplaceIT}}{{#MarketplaceDE}}Produkte von Amazon.de{{/MarketplaceDE}}{{#MarketplaceES}}Producto disponible en Amazon.es{{/MarketplaceES}}{{#MarketplaceBR}}Products from Amazon.com.br{{/MarketplaceBR}}{{#MarketplaceCA}}Products from Amazon.ca{{/MarketplaceCA}}{{#MarketplaceCN}}Products from Amazon.cn{{/MarketplaceCN}}{{#MarketplaceIN}}Products from Amazon.in{{/MarketplaceIN}}{{#MarketplaceJP}}Products from Amazon.co.jp{{/MarketplaceJP}}{{#MarketplaceMX}}Products from Amazon.com.mx{{/MarketplaceMX}}{{#MarketplaceUK}}Products from Amazon.co.uk{{/MarketplaceUK}}{{/AalbHeader}}</h2> <!-- Title of the ad localized according to the marketplace picked from the AalbHeader tag-->
5
  <div class="aalb-pc-wrapper">
6
  <div class="aalb-pc-product-container">
@@ -61,7 +61,7 @@
61
  productMargin : 20
62
  };
63
 
64
- var $adUnits = jQuery('.aalb-pc-ad-unit');
65
  $adUnits.each(function() {
66
  var $adUnit = jQuery(this),
67
  $wrapper = $adUnit.find('.aalb-pc-wrapper'),
1
  <!-- Ad Template with Carousel Layout-->
2
  {{#Items}} <!--Section tag for iterating through the list of items-->
3
+ <div class="aalb-product-carousel-unit" id="{{ID}}">
4
  <h2 class="aalb-pc-ad-header">{{#AalbHeader}}{{#MarketplaceUS}}Products from Amazon.com{{/MarketplaceUS}}{{#MarketplaceFR}}Produits disponibles sur Amazon.fr {{/MarketplaceFR}}{{#MarketplaceIT}}Acquista su Amazon.it{{/MarketplaceIT}}{{#MarketplaceDE}}Produkte von Amazon.de{{/MarketplaceDE}}{{#MarketplaceES}}Producto disponible en Amazon.es{{/MarketplaceES}}{{#MarketplaceBR}}Products from Amazon.com.br{{/MarketplaceBR}}{{#MarketplaceCA}}Products from Amazon.ca{{/MarketplaceCA}}{{#MarketplaceCN}}Products from Amazon.cn{{/MarketplaceCN}}{{#MarketplaceIN}}Products from Amazon.in{{/MarketplaceIN}}{{#MarketplaceJP}}Products from Amazon.co.jp{{/MarketplaceJP}}{{#MarketplaceMX}}Products from Amazon.com.mx{{/MarketplaceMX}}{{#MarketplaceUK}}Products from Amazon.co.uk{{/MarketplaceUK}}{{/AalbHeader}}</h2> <!-- Title of the ad localized according to the marketplace picked from the AalbHeader tag-->
5
  <div class="aalb-pc-wrapper">
6
  <div class="aalb-pc-product-container">
61
  productMargin : 20
62
  };
63
 
64
+ var $adUnits = jQuery('.aalb-product-carousel-unit');
65
  $adUnits.each(function() {
66
  var $adUnit = jQuery(this),
67
  $wrapper = $adUnit.find('.aalb-pc-wrapper'),