Changeset 3005728
- Timestamp:
- 12/05/2023 01:40:28 PM (2 years ago)
- Location:
- sizeme-for-woocommerce
- Files:
-
- 4 edited
- 6 copied
-
tags/2.3.4 (copied) (copied from sizeme-for-woocommerce/trunk)
-
tags/2.3.4/classes/class-wc-settings-sizeme-for-woocommerce.php (copied) (copied from sizeme-for-woocommerce/trunk/classes/class-wc-settings-sizeme-for-woocommerce.php) (1 diff)
-
tags/2.3.4/readme.txt (copied) (copied from sizeme-for-woocommerce/trunk/readme.txt) (2 diffs)
-
tags/2.3.4/sizeme-for-woocommerce.php (copied) (copied from sizeme-for-woocommerce/trunk/sizeme-for-woocommerce.php) (4 diffs)
-
tags/2.3.4/templates/sizeme-product.php (copied) (copied from sizeme-for-woocommerce/trunk/templates/sizeme-product.php) (1 diff)
-
tags/2.3.4/woocommerce/single-product/add-to-cart/variable.php (copied) (copied from sizeme-for-woocommerce/trunk/woocommerce/single-product/add-to-cart/variable.php)
-
trunk/classes/class-wc-settings-sizeme-for-woocommerce.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/sizeme-for-woocommerce.php (modified) (4 diffs)
-
trunk/templates/sizeme-product.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sizeme-for-woocommerce/tags/2.3.4/classes/class-wc-settings-sizeme-for-woocommerce.php
r2942526 r3005728 255 255 ), 256 256 array( 257 'title' => __( 'Show measurements flat (not circular) in size guide', 'sizeme-for-woocommerce' ), 258 'type' => 'select', 259 'options' => array( 260 self::ADD_TOGGLER_NO => 'No', // re-using setting 261 self::ADD_TOGGLER_YES => 'Yes', 262 ), 263 'default' => get_option( WC_SizeMe_for_WooCommerce::FLAT_MEASUREMENTS, self::ADD_TOGGLER_YES ), 264 'id' => WC_SizeMe_for_WooCommerce::FLAT_MEASUREMENTS, 265 ), 266 array( 257 267 'title' => __( 'Custom styles', 'sizeme-for-woocommerce' ), 258 268 'type' => 'textarea', -
sizeme-for-woocommerce/tags/2.3.4/readme.txt
r2967403 r3005728 3 3 Tags: sizeme, measurements, sizeguide, size guide, size recommendations 4 4 Requires at least: 3.8 5 Tested up to: 6. 3.16 Stable tag: 2.3. 35 Tested up to: 6.4.1 6 Stable tag: 2.3.4 7 7 Requires PHP: 5.2.4 8 8 WC requires at least: 2.5 9 WC tested up to: 8. 1.09 WC tested up to: 8.3.1 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 86 86 87 87 == Changelog == 88 = 2.3.4 = 89 * Added user interface option for showing flat or circular measurements in size guide 90 88 91 = 2.3.3 = 89 92 * Litespeed compatibility improved -
sizeme-for-woocommerce/tags/2.3.4/sizeme-for-woocommerce.php
r2967403 r3005728 10 10 * Plugin Name: SizeMe for WooCommerce 11 11 * Description: SizeMe is a web store plugin that enables your consumers to input their measurements and get personalised fit recommendations based on actual product data. 12 * Version: 2.3. 312 * Version: 2.3.4 13 13 * Author: SizeMe Ltd 14 14 * Author URI: https://www.sizeme.com/ … … 54 54 * @var string VERSION The plugin version. 55 55 */ 56 const VERSION = '2.3. 3';56 const VERSION = '2.3.4'; 57 57 58 58 /** … … 272 272 */ 273 273 const MEASUREMENT_UNIT_CHOICE_DISALLOWED = 'sizeme_measurement_unit_choice_disallowed'; 274 275 /** 276 * UI option, whether to show flat or circular measurements in size guide 277 * 278 * @since 2.3.4 279 * 280 * @var boolean FLAT_MEASUREMENTS. 281 */ 282 const FLAT_MEASUREMENTS = 'sizeme_flat_measurements'; 274 283 275 284 /** … … 449 458 * 450 459 * Gets the a boolean state from the configuration. 451 * Either 'no' or 'yes'460 * Either true of false 452 461 * 453 462 * @since 2.0.0 454 * @changed 2.3. 0455 * 456 * @return string The toggler status as a string.463 * @changed 2.3.4 464 * 465 * @return boolean The toggler yes status as a boolean. 457 466 */ 458 467 public function is_toggler_yes( $option ) { 459 468 return ( get_option( $option ) == 'yes' ); 469 } 470 471 /** 472 * Get a boolean state. 473 * 474 * Gets the a boolean state from the configuration. 475 * Either true of false 476 * 477 * @since 2.3.4 478 * @changed 2.3.4 479 * 480 * @return boolean The toggler no status as a boolean. 481 */ 482 public function is_toggler_no( $option ) { 483 return ( get_option( $option ) == 'no' ); 460 484 } 461 485 -
sizeme-for-woocommerce/tags/2.3.4/templates/sizeme-product.php
r2967403 r3005728 83 83 } 84 84 85 // possible flat measurement setting 86 if ( $sizeme->is_toggler_no( WC_SizeMe_for_WooCommerce::FLAT_MEASUREMENTS ) ) { 87 echo 'sizeme_options.uiOptions.flatMeasurements = false;'.PHP_EOL; 88 } 89 85 90 // possible string 86 91 $gender_string = trim( $sizeme->get_ui_option( WC_SizeMe_for_WooCommerce::MATCH_GENDER_FROM_NAME_MALE, '' ) ); -
sizeme-for-woocommerce/trunk/classes/class-wc-settings-sizeme-for-woocommerce.php
r2942526 r3005728 255 255 ), 256 256 array( 257 'title' => __( 'Show measurements flat (not circular) in size guide', 'sizeme-for-woocommerce' ), 258 'type' => 'select', 259 'options' => array( 260 self::ADD_TOGGLER_NO => 'No', // re-using setting 261 self::ADD_TOGGLER_YES => 'Yes', 262 ), 263 'default' => get_option( WC_SizeMe_for_WooCommerce::FLAT_MEASUREMENTS, self::ADD_TOGGLER_YES ), 264 'id' => WC_SizeMe_for_WooCommerce::FLAT_MEASUREMENTS, 265 ), 266 array( 257 267 'title' => __( 'Custom styles', 'sizeme-for-woocommerce' ), 258 268 'type' => 'textarea', -
sizeme-for-woocommerce/trunk/readme.txt
r2967403 r3005728 3 3 Tags: sizeme, measurements, sizeguide, size guide, size recommendations 4 4 Requires at least: 3.8 5 Tested up to: 6. 3.16 Stable tag: 2.3. 35 Tested up to: 6.4.1 6 Stable tag: 2.3.4 7 7 Requires PHP: 5.2.4 8 8 WC requires at least: 2.5 9 WC tested up to: 8. 1.09 WC tested up to: 8.3.1 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 86 86 87 87 == Changelog == 88 = 2.3.4 = 89 * Added user interface option for showing flat or circular measurements in size guide 90 88 91 = 2.3.3 = 89 92 * Litespeed compatibility improved -
sizeme-for-woocommerce/trunk/sizeme-for-woocommerce.php
r2967403 r3005728 10 10 * Plugin Name: SizeMe for WooCommerce 11 11 * Description: SizeMe is a web store plugin that enables your consumers to input their measurements and get personalised fit recommendations based on actual product data. 12 * Version: 2.3. 312 * Version: 2.3.4 13 13 * Author: SizeMe Ltd 14 14 * Author URI: https://www.sizeme.com/ … … 54 54 * @var string VERSION The plugin version. 55 55 */ 56 const VERSION = '2.3. 3';56 const VERSION = '2.3.4'; 57 57 58 58 /** … … 272 272 */ 273 273 const MEASUREMENT_UNIT_CHOICE_DISALLOWED = 'sizeme_measurement_unit_choice_disallowed'; 274 275 /** 276 * UI option, whether to show flat or circular measurements in size guide 277 * 278 * @since 2.3.4 279 * 280 * @var boolean FLAT_MEASUREMENTS. 281 */ 282 const FLAT_MEASUREMENTS = 'sizeme_flat_measurements'; 274 283 275 284 /** … … 449 458 * 450 459 * Gets the a boolean state from the configuration. 451 * Either 'no' or 'yes'460 * Either true of false 452 461 * 453 462 * @since 2.0.0 454 * @changed 2.3. 0455 * 456 * @return string The toggler status as a string.463 * @changed 2.3.4 464 * 465 * @return boolean The toggler yes status as a boolean. 457 466 */ 458 467 public function is_toggler_yes( $option ) { 459 468 return ( get_option( $option ) == 'yes' ); 469 } 470 471 /** 472 * Get a boolean state. 473 * 474 * Gets the a boolean state from the configuration. 475 * Either true of false 476 * 477 * @since 2.3.4 478 * @changed 2.3.4 479 * 480 * @return boolean The toggler no status as a boolean. 481 */ 482 public function is_toggler_no( $option ) { 483 return ( get_option( $option ) == 'no' ); 460 484 } 461 485 -
sizeme-for-woocommerce/trunk/templates/sizeme-product.php
r2967403 r3005728 83 83 } 84 84 85 // possible flat measurement setting 86 if ( $sizeme->is_toggler_no( WC_SizeMe_for_WooCommerce::FLAT_MEASUREMENTS ) ) { 87 echo 'sizeme_options.uiOptions.flatMeasurements = false;'.PHP_EOL; 88 } 89 85 90 // possible string 86 91 $gender_string = trim( $sizeme->get_ui_option( WC_SizeMe_for_WooCommerce::MATCH_GENDER_FROM_NAME_MALE, '' ) );
Note: See TracChangeset
for help on using the changeset viewer.