Changeset 583327
- Timestamp:
- 08/09/2012 04:07:48 AM (14 years ago)
- Location:
- e-commerce-multi-currency-support
- Files:
-
- 3 edited
- 6 copied
-
tags/0.7.2 (copied) (copied from e-commerce-multi-currency-support/trunk)
-
tags/0.7.2/config.php (copied) (copied from e-commerce-multi-currency-support/trunk/config.php)
-
tags/0.7.2/config_admin.php (copied) (copied from e-commerce-multi-currency-support/trunk/config_admin.php)
-
tags/0.7.2/readme.txt (copied) (copied from e-commerce-multi-currency-support/trunk/readme.txt) (2 diffs)
-
tags/0.7.2/widgets/currency_chooser_widget.php (copied) (copied from e-commerce-multi-currency-support/trunk/widgets/currency_chooser_widget.php) (5 diffs)
-
tags/0.7.2/wpsc-currency-changer.php (copied) (copied from e-commerce-multi-currency-support/trunk/wpsc-currency-changer.php) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/widgets/currency_chooser_widget.php (modified) (5 diffs)
-
trunk/wpsc-currency-changer.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
e-commerce-multi-currency-support/tags/0.7.2/readme.txt
r583044 r583327 4 4 Requires at least: 2.9 5 5 Tested up to: 3.1.1 6 Stable tag: 0.7. 16 Stable tag: 0.7.2 7 7 8 8 … … 17 17 18 18 == Changelog == 19 = 0.7.2 = 20 - added hide country name checkbox. 19 21 = 0.7 = 20 22 - by request from Seedlab.net added possibility to display currency in readable way and symbol (if available). Check proper boxes in Widget settings. -
e-commerce-multi-currency-support/tags/0.7.2/widgets/currency_chooser_widget.php
r583021 r583327 58 58 $selected_code = "selected='selected'"; 59 59 } 60 $output .="<option ".$selected_code." value=".$country['id'].">".$country['country'].$country_code."</option>"; 60 $output_value = $country['country'].$country_code; 61 if ($instance['hide_country_name'] == 1) 62 { 63 $skip = false; 64 $output_value = preg_replace("/[()]/","",$country_code); 65 if (in_array($output_value, $only_code_ar)) 66 $skip = true; 67 $only_code_ar[] = $output_value; 68 } 69 if (!$skip) 70 $output .="<option ".$selected_code." value=".$country['id'].">".$output_value."</option>"; 61 71 62 72 } … … 96 106 $instance['show_reset'] = $new_instance['show_reset']; 97 107 $instance['show_submit'] = $new_instance['show_submit']; 108 $instance['hide_country_name'] = $new_instance['hide_country_name']; 98 109 $instance['show_code'] = $new_instance['show_code']; 99 110 $instance['show_code_readable'] = $new_instance['show_code_readable']; … … 115 126 $show_code_check = ''; 116 127 } 128 $hide_country_name =$instance['hide_country_name']; 129 if ($hide_country_name == 1) { 130 $hide_country_name_check = 'checked="checked"'; 131 }else{ 132 $hide_country_name_check = ''; 133 } 117 134 $show_code_readable =$instance['show_code_readable']; 118 135 if ($show_code_readable == 1) { … … 149 166 <p><label for="<?php echo $this->get_field_id('show_conversion'); ?>"><?php _e('Show Conversion Rate:'); ?> 150 167 <input id="<?php echo $this->get_field_id('show_conversion'); ?>" name="<?php echo $this->get_field_name('show_conversion'); ?>" type="checkbox" value="1" <?php echo $checked; ?> /></label></p> 168 <p><label for="<?php echo $this->get_field_id('hide_country_name'); ?>"><?php _e('Hide country name:'); ?> 169 <input id="<?php echo $this->get_field_id('hide_country_name'); ?>" name="<?php echo $this->get_field_name('hide_country_name'); ?>" type="checkbox" value="1" <?php echo $hide_country_name_check; ?> /></label></p> 151 170 <p><label for="<?php echo $this->get_field_id('show_code'); ?>"><?php _e('Show currency code:'); ?> 152 171 <input id="<?php echo $this->get_field_id('show_code'); ?>" name="<?php echo $this->get_field_name('show_code'); ?>" type="checkbox" value="1" <?php echo $show_code_check; ?> /></label></p> … … 176 195 } 177 196 }); 197 jQuery("#<?php echo $this->get_field_id('hide_country_name'); ?>").click(function() { 198 if (jQuery("#<?php echo $this->get_field_id('hide_country_name'); ?>").is(':checked')) 199 { 200 jQuery("#<?php echo $this->get_field_id('show_code'); ?>").attr("checked", true); 201 202 } 203 }); 178 204 }); 179 205 </script> -
e-commerce-multi-currency-support/tags/0.7.2/wpsc-currency-changer.php
r583044 r583327 4 4 Plugin URI: http://misha.beshkin.lv 5 5 Description: A plugin that provides a currency converter tool integrated into the WordPress Shopping Cart. This is trunk from wp-e-commerce-multi-currency-magic plugin. 6 Version: 0.7. 16 Version: 0.7.2 7 7 Author: Misha Beshkin 8 8 Author URI: http://misha.beshkin.lv -
e-commerce-multi-currency-support/trunk/readme.txt
r583044 r583327 4 4 Requires at least: 2.9 5 5 Tested up to: 3.1.1 6 Stable tag: 0.7. 16 Stable tag: 0.7.2 7 7 8 8 … … 17 17 18 18 == Changelog == 19 = 0.7.2 = 20 - added hide country name checkbox. 19 21 = 0.7 = 20 22 - by request from Seedlab.net added possibility to display currency in readable way and symbol (if available). Check proper boxes in Widget settings. -
e-commerce-multi-currency-support/trunk/widgets/currency_chooser_widget.php
r583021 r583327 58 58 $selected_code = "selected='selected'"; 59 59 } 60 $output .="<option ".$selected_code." value=".$country['id'].">".$country['country'].$country_code."</option>"; 60 $output_value = $country['country'].$country_code; 61 if ($instance['hide_country_name'] == 1) 62 { 63 $skip = false; 64 $output_value = preg_replace("/[()]/","",$country_code); 65 if (in_array($output_value, $only_code_ar)) 66 $skip = true; 67 $only_code_ar[] = $output_value; 68 } 69 if (!$skip) 70 $output .="<option ".$selected_code." value=".$country['id'].">".$output_value."</option>"; 61 71 62 72 } … … 96 106 $instance['show_reset'] = $new_instance['show_reset']; 97 107 $instance['show_submit'] = $new_instance['show_submit']; 108 $instance['hide_country_name'] = $new_instance['hide_country_name']; 98 109 $instance['show_code'] = $new_instance['show_code']; 99 110 $instance['show_code_readable'] = $new_instance['show_code_readable']; … … 115 126 $show_code_check = ''; 116 127 } 128 $hide_country_name =$instance['hide_country_name']; 129 if ($hide_country_name == 1) { 130 $hide_country_name_check = 'checked="checked"'; 131 }else{ 132 $hide_country_name_check = ''; 133 } 117 134 $show_code_readable =$instance['show_code_readable']; 118 135 if ($show_code_readable == 1) { … … 149 166 <p><label for="<?php echo $this->get_field_id('show_conversion'); ?>"><?php _e('Show Conversion Rate:'); ?> 150 167 <input id="<?php echo $this->get_field_id('show_conversion'); ?>" name="<?php echo $this->get_field_name('show_conversion'); ?>" type="checkbox" value="1" <?php echo $checked; ?> /></label></p> 168 <p><label for="<?php echo $this->get_field_id('hide_country_name'); ?>"><?php _e('Hide country name:'); ?> 169 <input id="<?php echo $this->get_field_id('hide_country_name'); ?>" name="<?php echo $this->get_field_name('hide_country_name'); ?>" type="checkbox" value="1" <?php echo $hide_country_name_check; ?> /></label></p> 151 170 <p><label for="<?php echo $this->get_field_id('show_code'); ?>"><?php _e('Show currency code:'); ?> 152 171 <input id="<?php echo $this->get_field_id('show_code'); ?>" name="<?php echo $this->get_field_name('show_code'); ?>" type="checkbox" value="1" <?php echo $show_code_check; ?> /></label></p> … … 176 195 } 177 196 }); 197 jQuery("#<?php echo $this->get_field_id('hide_country_name'); ?>").click(function() { 198 if (jQuery("#<?php echo $this->get_field_id('hide_country_name'); ?>").is(':checked')) 199 { 200 jQuery("#<?php echo $this->get_field_id('show_code'); ?>").attr("checked", true); 201 202 } 203 }); 178 204 }); 179 205 </script> -
e-commerce-multi-currency-support/trunk/wpsc-currency-changer.php
r583044 r583327 4 4 Plugin URI: http://misha.beshkin.lv 5 5 Description: A plugin that provides a currency converter tool integrated into the WordPress Shopping Cart. This is trunk from wp-e-commerce-multi-currency-magic plugin. 6 Version: 0.7. 16 Version: 0.7.2 7 7 Author: Misha Beshkin 8 8 Author URI: http://misha.beshkin.lv
Note: See TracChangeset
for help on using the changeset viewer.