Skip to content
This repository

added esc_attr where needed. fixed price thousands separator #507

Merged
merged 1 commit into from over 2 years ago

2 participants

piffpaffpuff Robert Rhoades
piffpaffpuff

No description provided.

Robert Rhoades studioromeo merged commit badd8c6 into from
Robert Rhoades

Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Jan 18, 2012
piffpaffpuff piffpaffpuff added esc_attr where needed. fixed price thousands separator aca509f
This page is out of date. Refresh to see the latest.
5 admin/jigoshop-admin-settings.php
@@ -255,8 +255,7 @@ function jigoshop_admin_fields($options) {
255 255 ?><tr>
256 256 <td class="titledesc"><?php if ($value['tip']) { ?><a href="#" tip="<?php echo $value['tip'] ?>" class="tips" tabindex="99"></a><?php } ?><?php echo $value['name'] ?>:</td>
257 257
258   - <td class="forminp"><input name="<?php echo $value['id'] ?>" id="<?php echo $value['id'] ?>" type="<?php echo $value['type'] ?>" style="<?php echo $value['css'] ?>"
259   - value="<?php if ( get_option( $value['id']) !== false && get_option( $value['id']) !== null ) echo get_option( $value['id'] ); else echo $value['std'] ?>" /><br /><small><?php echo $value['desc'] ?></small></td>
  258 + <td class="forminp"><input name="<?php echo $value['id'] ?>" id="<?php echo $value['id'] ?>" type="<?php echo $value['type'] ?>" style="<?php echo $value['css'] ?>" value="<?php if ( get_option( $value['id']) !== false && get_option( $value['id']) !== null ) echo esc_attr( stripslashes( get_option( $value['id'] ) ) ); else echo $value['std'] ?>" /><br /><small><?php echo $value['desc'] ?></small></td>
260 259 </tr><?php
261 260 break;
262 261 case 'select':
@@ -266,7 +265,7 @@ function jigoshop_admin_fields($options) {
266 265 <?php
267 266 foreach ($value['options'] as $key => $val) {
268 267 ?>
269   - <option value="<?php echo $key ?>" <?php if (get_option($value['id']) == $key) { ?> selected="selected" <?php } ?>><?php echo ucfirst($val) ?></option>
  268 + <option value="<?php echo esc_attr( $key ); ?>" <?php if (get_option($value['id']) == $key) { ?> selected="selected" <?php } ?>><?php echo ucfirst($val) ?></option>
270 269 <?php
271 270 }
272 271 ?>
4 admin/write-panels/product-data.php
@@ -410,10 +410,10 @@ function jigoshop_product_data_box() {
410 410 <input type="hidden" name="attribute_position[<?php echo $i; ?>]" class="attribute_position" value="<?php echo $position; ?>" />
411 411 </td>
412 412 <td>
413   - <input type="text" name="attribute_names[<?php echo $i; ?>]" value="<?php echo $attribute['name']; ?>" />
  413 + <input type="text" name="attribute_names[<?php echo $i; ?>]" value="<?php echo esc_attr( $attribute['name'] ); ?>" />
414 414 <input type="hidden" name="attribute_is_taxonomy[<?php echo $i; ?>]" value="0" />
415 415 </td>
416   - <td><input type="text" name="attribute_values[<?php echo $i; ?>]" value="<?php echo $attribute['value']; ?>" /></td>
  416 + <td><input type="text" name="attribute_values[<?php echo $i; ?>]" value="<?php echo esc_attr( $attribute['value'] ); ?>" /></td>
417 417 <td class="center"><input type="checkbox" <?php checked(boolval($attribute['visible']), true); ?> name="attribute_visibility[<?php echo $i; ?>]" value="1" /></td>
418 418 <td class="center"><input type="checkbox" <?php checked(boolval($attribute['variation']), true); ?> name="attribute_variation[<?php echo $i; ?>]" value="1" /></td>
419 419 <td class="center"><button type="button" class="remove_row button">&times;</button></td>
9 jigoshop.php
@@ -547,12 +547,7 @@ function jigoshop_price( $price, $args = array() ) {
547 547 $return = '';
548 548 $currency_pos = get_option('jigoshop_currency_pos');
549 549 $currency_symbol = get_jigoshop_currency_symbol();
550   - $price = number_format(
551   - (double) $price,
552   - (int) get_option('jigoshop_price_num_decimals'),
553   - get_option('jigoshop_price_decimal_sep'),
554   - get_option('jigoshop_price_thousand_sep')
555   - );
  550 + $price = number_format( (double) $price, (int) get_option('jigoshop_price_num_decimals'), stripslashes(get_option('jigoshop_price_decimal_sep')), stripslashes(get_option('jigoshop_price_thousand_sep')));
556 551
557 552 switch ($currency_pos) :
558 553 case 'left' :
@@ -729,7 +724,7 @@ function jigoshop_comments($comment, $args, $depth) {
729 724 <?php echo get_avatar( $comment, $size='60' ); ?>
730 725
731 726 <div class="comment-text">
732   - <div class="star-rating" title="<?php echo get_comment_meta( $comment->comment_ID, 'rating', true ); ?>">
  727 + <div class="star-rating" title="<?php echo esc_attr( get_comment_meta( $comment->comment_ID, 'rating', true ) ); ?>">
733 728 <span style="width:<?php echo get_comment_meta( $comment->comment_ID, 'rating', true )*16; ?>px"><?php echo get_comment_meta( $comment->comment_ID, 'rating', true ); ?> <?php _e('out of 5', 'jigoshop'); ?></span>
734 729 </div>
735 730 <?php if ($comment->comment_approved == '0') : ?>
20 shortcodes/my_account.php
@@ -212,36 +212,36 @@ function jigoshop_edit_address() {
212 212
213 213 <p class="form-row form-row-first">
214 214 <label for="address-first_name"><?php _e('First Name', 'jigoshop'); ?> <span class="required">*</span></label>
215   - <input type="text" class="input-text" name="address-first_name" id="address-first_name" placeholder="<?php _e('First Name', 'jigoshop'); ?>" value="<?php echo $address['first_name']; ?>" />
  215 + <input type="text" class="input-text" name="address-first_name" id="address-first_name" placeholder="<?php _e('First Name', 'jigoshop'); ?>" value="<?php echo esc_attr( $address['first_name'] ); ?>" />
216 216 </p>
217 217 <p class="form-row form-row-last">
218 218 <label for="address-last_name"><?php _e('Last Name', 'jigoshop'); ?> <span class="required">*</span></label>
219   - <input type="text" class="input-text" name="address-last_name" id="address-last_name" placeholder="<?php _e('Last Name', 'jigoshop'); ?>" value="<?php echo $address['last_name']; ?>" />
  219 + <input type="text" class="input-text" name="address-last_name" id="address-last_name" placeholder="<?php _e('Last Name', 'jigoshop'); ?>" value="<?php echo esc_attr( $address['last_name'] ); ?>" />
220 220 </p>
221 221 <div class="clear"></div>
222 222
223 223 <p class="form-row columned">
224 224 <label for="address-company"><?php _e('Company', 'jigoshop'); ?></label>
225   - <input type="text" class="input-text" name="address-company" id="address-company" placeholder="<?php _e('Company', 'jigoshop'); ?>" value="<?php echo $address['company']; ?>" />
  225 + <input type="text" class="input-text" name="address-company" id="address-company" placeholder="<?php _e('Company', 'jigoshop'); ?>" value="<?php echo esc_attr( $address['company'] ); ?>" />
226 226 </p>
227 227
228 228 <p class="form-row form-row-first">
229 229 <label for="address-address"><?php _e('Address', 'jigoshop'); ?> <span class="required">*</span></label>
230   - <input type="text" class="input-text" name="address-address" id="address-address" placeholder="<?php _e('1 Infinite Loop', 'jigoshop'); ?>" value="<?php echo $address['address']; ?>" />
  230 + <input type="text" class="input-text" name="address-address" id="address-address" placeholder="<?php _e('Street, Number, P.O. Box', 'jigoshop'); ?>" value="<?php echo esc_attr( $address['address'] ); ?>" />
231 231 </p>
232 232 <p class="form-row form-row-last">
233 233 <label for="address-address2" class="hidden"><?php _e('Address 2', 'jigoshop'); ?></label>
234   - <input type="text" class="input-text" name="address-address2" id="address-address2" placeholder="<?php _e('Cupertino', 'jigoshop'); ?>" value="<?php echo $address['address2']; ?>" />
  234 + <input type="text" class="input-text" name="address-address2" id="address-address2" placeholder="<?php _e('Floor, Department, etc', 'jigoshop'); ?>" value="<?php echo esc_attr( $address['address2'] ); ?>" />
235 235 </p>
236 236 <div class="clear"></div>
237 237
238 238 <p class="form-row form-row-first">
239 239 <label for="address-city"><?php _e('City', 'jigoshop'); ?> <span class="required">*</span></label>
240   - <input type="text" class="input-text" name="address-city" id="address-city" placeholder="<?php _e('City', 'jigoshop'); ?>" value="<?php echo $address['city']; ?>" />
  240 + <input type="text" class="input-text" name="address-city" id="address-city" placeholder="<?php _e('City', 'jigoshop'); ?>" value="<?php echo esc_attr( $address['city'] ); ?>" />
241 241 </p>
242 242 <p class="form-row form-row-last">
243 243 <label for="address-postcode"><?php _e('Postcode', 'jigoshop'); ?> <span class="required">*</span></label>
244   - <input type="text" class="input-text" name="address-postcode" id="address-postcode" placeholder="123456" value="<?php echo $address['postcode']; ?>" />
  244 + <input type="text" class="input-text" name="address-postcode" id="address-postcode" placeholder="123456" value="<?php echo esc_attr( $address['postcode'] ); ?>" />
245 245 </p>
246 246 <div class="clear"></div>
247 247
@@ -292,16 +292,16 @@ function jigoshop_edit_address() {
292 292 <?php if ($load_address=='billing') : ?>
293 293 <p class="form-row columned">
294 294 <label for="address-email"><?php _e('Email Address', 'jigoshop'); ?> <span class="required">*</span></label>
295   - <input type="text" class="input-text" name="address-email" id="address-email" placeholder="<?php _e('you@yourdomain.com', 'jigoshop'); ?>" value="<?php echo $address['email']; ?>" />
  295 + <input type="text" class="input-text" name="address-email" id="address-email" placeholder="<?php _e('email@domain.com', 'jigoshop'); ?>" value="<?php echo esc_attr( $address['email'] ); ?>" />
296 296 </p>
297 297
298 298 <p class="form-row form-row-first">
299 299 <label for="address-phone"><?php _e('Phone', 'jigoshop'); ?> <span class="required">*</span></label>
300   - <input type="text" class="input-text" name="address-phone" id="address-phone" placeholder="0123456789" value="<?php echo $address['phone']; ?>" />
  300 + <input type="text" class="input-text" name="address-phone" id="address-phone" placeholder="0123456789" value="<?php echo esc_attr( $address['phone'] ); ?>" />
301 301 </p>
302 302 <p class="form-row form-row-last">
303 303 <label for="address-fax"><?php _e('Fax', 'jigoshop'); ?></label>
304   - <input type="text" class="input-text" name="address-fax" id="address-fax" placeholder="0123456789" value="<?php echo $address['fax']; ?>" />
  304 + <input type="text" class="input-text" name="address-fax" id="address-fax" placeholder="0123456789" value="<?php echo esc_attr( $address['fax'] ); ?>" />
305 305 </p>
306 306 <div class="clear"></div>
307 307 <?php endif; ?>
10 widgets/cart.php
@@ -139,10 +139,12 @@ public function form($instance) {
139 139 $title = (isset($instance['title'])) ? esc_attr($instance['title']) : null;
140 140
141 141 // Widget title
142   - echo '<p>';
143   - echo '<label for="' . $this->get_field_id('title') . '">' . _e('Title:', 'jigoshop') . '</label>';
144   - echo '<input type="text" class="widefat" id="' . $this->get_field_id('title') . '" name="' . $this->get_field_name('title') . '" value="' . $title . '" />';
145   - echo '</p>';
  142 + ?>
  143 + <p>
  144 + <label for="<?php echo esc_attr( $this->get_field_id('title') ); ?>"><?php _e('Title:', 'jigoshop'); ?></label>
  145 + <input type="text" class="widefat" id="<?php echo esc_attr( $this->get_field_id('title') ); ?>" name="<?php echo esc_attr( $this->get_field_name('title') ); ?>" value="<?php echo $title; ?>" />
  146 + </p>
  147 + <?php
146 148 }
147 149
148 150 } // class Jigoshop_Widget_Cart
21 widgets/featured_products.php
@@ -188,15 +188,16 @@ function form( $instance ) {
47 widgets/layered_nav.php
@@ -210,27 +210,30 @@ public function form( $instance ) {
210 210 $attr_tax = jigoshop_product::getAttributeTaxonomies();
211 211
212 212 // Widget title
213   - echo '<p>';
214   - echo '<label for="' . $this->get_field_id('title') . '"> ' . _e('Title:', 'jigoshop') . '</label>';
215   - echo '<input type="text" class="widefat" id="' . $this->get_field_id('title') . '" name="' . $this->get_field_name('title') . '" value="' . $title . '" />';
216   - echo '</p>';
217   -
218   - // Print attribute selector
219   - if ( ! empty($attr_tax) ) {
220   - echo '<p>';
221   - echo '<label for="' . $this->get_field_id('attribute') . '">' . __('Attribute:', 'jigoshop') . '</label> ';
222   - echo '<select id="' . $this->get_field_id('attribute') . '" name="' . $this->get_field_name('attribute') . '">';
223   - foreach($attr_tax as $tax) {
224   -
225   - if (taxonomy_exists('pa_'.strtolower(sanitize_title($tax->attribute_name)))) {
226   - echo '<option value="' . $tax->attribute_name . '" ' . (isset($instance['attribute']) && $instance['attribute'] == $tax->attribute_name ? 'selected' : null) . '>';
227   - echo $tax->attribute_name;
228   - echo '</option>';
229   - }
230   - }
231   -
232   - echo '</select>';
233   - echo '</p>';
234   - }
  213 + ?>
  214 + <p>
  215 + <label for="<?php echo esc_attr( $this->get_field_id('title') ); ?>"> <?php _e('Title:', 'jigoshop'); ?></label>
  216 + <input type="text" class="widefat" id="<?php echo esc_attr( $this->get_field_id('title') ); ?>" name="<?php echo esc_attr( $this->get_field_name('title') ); ?>" value="<?php echo $title; ?>" />
  217 + </p>
  218 + <?php
  219 + // Print attribute selector
  220 + if ( ! empty($attr_tax) ) :
  221 + ?>
  222 + <p>
  223 + <label for="<?php echo esc_attr( $this->get_field_id('attribute') ); ?>"><?php _e('Attribute:', 'jigoshop'); ?></label>
  224 + <select id="<?php echo esc_attr( $this->get_field_id('attribute') ); ?>" name="<?php echo esc_attr( $this->get_field_name('attribute') ); ?>">
  225 + <?php
  226 + foreach($attr_tax as $tax) :
  227 + if (taxonomy_exists('pa_'.strtolower(sanitize_title($tax->attribute_name)))) :
  228 + ?>
  229 + <option value="<?php echo esc_attr( $tax->attribute_name ); ?>" <?php if(isset($instance['attribute']) && $instance['attribute'] == $tax->attribute_name) : ?>selected<?php endif; ?>><?php echo $tax->attribute_name; ?></option>
  230 + <?php
  231 + endif;
  232 + endforeach;
  233 + ?>
  234 + </select>
  235 + </p>
  236 + <?php
  237 + endif;
235 238 }
236 239 } // class Jigoshop_Widget_Layered_Nav
2  widgets/price_filter.php
@@ -111,7 +111,7 @@ function form( $instance ) {
111 111 global $wpdb;
112 112 ?>
113 113 <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:', 'jigoshop') ?></label>
114   - <input type="text" class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" value="<?php if (isset ( $instance['title'])) {echo esc_attr( $instance['title'] );} ?>" /></p>
  114 + <input type="text" class="widefat" id="<?php echo esc_attr( $this->get_field_id('title') ); ?>" name="<?php echo esc_attr( $this->get_field_name('title') ); ?>" value="<?php if (isset ( $instance['title'])) {echo esc_attr( $instance['title'] );} ?>" /></p>
115 115 <?php
116 116 }
117 117 } // class Jigoshop_Widget_Price_Filter
43 widgets/product_categories.php
@@ -160,28 +160,27 @@ function form( $instance ) {
160 160 $dropdown = (bool) isset($instance['dropdown']) ? $instance['dropdown'] : false;
161 161
162 162 // Widget title
163   - echo '<p>';
164   - echo '<label for="' . $this->get_field_id('title') . '"> ' . _e('Title:', 'jigoshop') . '</label>';
165   - echo '<input type="text" class="widefat" id="' . $this->get_field_id('title') . '" name="' . $this->get_field_name('title') . '" value="' . $title . '" />';
166   - echo '</p>';
167   -
168   - // As a dropdown?
169   - echo '<p>';
170   - echo '<input type="checkbox" class="checkbox" id="' . $this->get_field_id('dropdown') . '" name="' . $this->get_field_name('dropdown') . '"' . ( $dropdown ? 'checked' : null ) . '/>';
171   - echo '<label for="' . $this->get_field_id('dropdown') . '"> ' . __( 'Show as dropdown', 'jigoshop' ) . '</label>';
172   - echo '</p>';
173   -
174   - // Show product count?
175   - echo '<p>';
176   - echo '<input type="checkbox" class="checkbox" id="' . $this->get_field_id('count') . '" name="' . $this->get_field_name('count') . '"' . ( $count ? 'checked' : null ) . '/>';
177   - echo '<label for="' . $this->get_field_id('count') . '"> ' . __( 'Show product counts', 'jigoshop' ) . '</label>';
178   - echo '</p>';
179   -
180   - // Is hierarchical?
181   - echo '<p>';
182   - echo '<input type="checkbox" class="checkbox" id="' . $this->get_field_id('hierarchical') . '" name="' . $this->get_field_name('hierarchical') . '"' . ( $hierarchical ? 'checked' : null ) . '/>';
183   - echo '<label for="' . $this->get_field_id('hierarchical') . '"> ' . __( 'Show hierarchy', 'jigoshop' ) . '</label>';
184   - echo '</p>';
  163 + ?>
  164 + <p>
  165 + <label for="<?php echo esc_attr( $this->get_field_id('title') ); ?>"><?php _e('Title:', 'jigoshop'); ?></label>
  166 + <input type="text" class="widefat" id="<?php echo esc_attr( $this->get_field_id('title') ); ?>" name="<?php echo esc_attr( $this->get_field_name('title') ); ?>" value="<?php echo $title; ?>" />
  167 + </p>
  168 + <?php // As a dropdown ?>
  169 + <p>
  170 + <input type="checkbox" class="checkbox" id="<?php echo esc_attr( $this->get_field_id('dropdown') ); ?>" name="<?php echo esc_attr( $this->get_field_name('dropdown') ); ?>" <?php checked( $dropdown ); ?> />
  171 + <label for="<?php echo esc_attr( $this->get_field_id('dropdown') ); ?>"><?php _e( 'Show as dropdown', 'jigoshop' ); ?></label>
  172 + </p>
  173 + <?php // Show product count ?>
  174 + <p>
  175 + <input type="checkbox" class="checkbox" id="<?php echo esc_attr( $this->get_field_id('count') ); ?>" name="<?php echo esc_attr( $this->get_field_name('count') ); ?>" <?php checked( $count ); ?> />
  176 + <label for="<?php echo esc_attr( $this->get_field_id('count') ); ?>"><?php _e( 'Show product counts', 'jigoshop' ); ?></label>
  177 + </p>
  178 + <?php // Is hierarchical ?>
  179 + <p>
  180 + <input type="checkbox" class="checkbox" id="<?php echo esc_attr( $this->get_field_id('hierarchical') ); ?>" name="<?php echo esc_attr( $this->get_field_name('hierarchical') ); ?>" <?php checked( $hierarchical ); ?> />
  181 + <label for="<?php echo esc_attr( $this->get_field_id('hierarchical') ); ?>"><?php _e( 'Show hierarchy', 'jigoshop' ); ?></label>
  182 + </p>
  183 + <?php
185 184 }
186 185
187 186 } // class Jigoshop_Widget_Product_Categories
10 widgets/product_search.php
@@ -98,9 +98,11 @@ public function form($instance) {
98 98 $title = (isset($instance['title'])) ? esc_attr($instance['title']) : null;
99 99
100 100 // Widget title
101   - echo '<p>';
102   - echo '<label for="' . $this->get_field_id('title') . '">' . _e('Title:', 'jigoshop') . '</label>';
103   - echo '<input type="text" class="widefat" id="' . $this->get_field_id('title') . '" name="' . $this->get_field_name('title') . '" value="' . $title . '" />';
104   - echo '</p>';
  101 + ?>
  102 + <p>
  103 + <label for="<?php echo esc_attr( $this->get_field_id('title') ); ?>"><?php _e('Title:', 'jigoshop'); ?></label>
  104 + <input type="text" class="widefat" id="<?php echo esc_attr( $this->get_field_id('title') ); ?>" name="<?php echo esc_attr( $this->get_field_name('title') ); ?>" value="<?php echo $title; ?>" />
  105 + </p>
  106 + <?php
105 107 }
106 108 } // Jigoshop_Widget_Product_Search
10 widgets/product_tag_cloud.php
@@ -93,10 +93,12 @@ public function form( $instance ) {
93 93 $title = (isset($instance['title'])) ? esc_attr($instance['title']) : null;
94 94
95 95 // Widget title
96   - echo '<p>';
97   - echo '<label for="' . $this->get_field_id('title') . '">' . __('Title:', 'jigoshop') . '</label>';
98   - echo '<input type="text" class="widefat" id="' . $this->get_field_id('title') . '" name="' . $this->get_field_name('title') . '" value="' . $title .'" />';
99   - echo '</p>';
  96 + ?>
  97 + <p>
  98 + <label for="<?php echo esc_attr( $this->get_field_id('title') ); ?>"><?php _e('Title:', 'jigoshop'); ?></label>
  99 + <input type="text" class="widefat" id="<?php echo esc_attr( $this->get_field_id('title') ); ?>" name="<?php echo esc_attr( $this->get_field_name('title') ); ?>" value="<?php echo $title; ?>" />
  100 + </p>
  101 + <?php
100 102 }
101 103
102 104 } // class Jigoshop_Widget_Tag_Cloud
33 widgets/recent_products.php
@@ -210,23 +210,22 @@ public function form( $instance ) {
210 210 $show_variations = (bool) isset($instance['show_variations']) ? $instance['show_variations'] : false;
211 211
212 212 // Widget Title
213   - echo '<p>';
214   - echo '<label for="' . $this->get_field_id('title') . '">' . _e('Title:', 'jigoshop') . '</label>';
215   - echo '<input class="widefat" id="' . $this->get_field_id('title') . '" name="' . $this->get_field_name('title') . '" type="text" value="'. $title .'" />';
216   - echo '</p>';
217   -
218   - // Number of posts to fetch
219   - echo '<p>';
220   - echo '<label for="' . $this->get_field_id('number') . '">' . _e('Number of products to show:', 'jigoshop') . '</label>';
221   - echo '<input id="' . $this->get_field_id('number') . '" name="' . $this->get_field_name('number') . '" type="text" value="' . $number . '" size="3" />';
222   - echo '</p>';
223   -
224   - // Show variations?
225   - echo '<p>';
226   - echo '<input type="checkbox" class="checkbox" id="' . $this->get_field_id('show_variations') . '" name="' . $this->get_field_name('show_variations') . '"' . checked( $show_variations ) . '/>';
227   - echo '<label for="' . $this->get_field_id('show_variations') . '"> ' . __( 'Show hidden product variations', 'jigoshop' ) . '</label>';
228   - echo '</p>';
229   -
  213 + ?>
  214 + <p>
  215 + <label for="<?php echo esc_attr( $this->get_field_id('title') ); ?>"><?php _e('Title:', 'jigoshop'); ?></label>
  216 + <input class="widefat" id="<?php echo esc_attr( $this->get_field_id('title') ); ?>" name="<?php echo esc_attr( $this->get_field_name('title') ); ?>" type="text" value="<?php echo $title; ?>" />
  217 + </p>
  218 + <?php // Number of posts to fetch ?>
  219 + <p>
  220 + <label for="<?php echo esc_attr( $this->get_field_id('number') ); ?>"><?php _e('Number of products to show:', 'jigoshop'); ?></label>
  221 + <input id="<?php echo esc_attr( $this->get_field_id('number') ); ?>" name="<?php echo esc_attr( $this->get_field_name('number') ); ?>" type="text" value="<?php echo $number; ?>" size="3" />
  222 + </p>
  223 + <?php // Show variations ?>
  224 + <p>
  225 + <input type="checkbox" class="checkbox" id="<?php echo esc_attr( $this->get_field_id('show_variations') ); ?>" name="<?php echo esc_attr( $this->get_field_name('show_variations') ); ?>" <?php checked( $show_variations ); ?> />
  226 + <label for="<?php echo esc_attr( $this->get_field_id('show_variations') ); ?>"><?php _e( 'Show hidden product variations', 'jigoshop' ); ?></label>
  227 + </p>
  228 + <?php
230 229 }
231 230
232 231 } // class Jigoshop_Widget_Recent_Products

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.