Changeset 2820735
- Timestamp:
- 11/18/2022 09:03:19 PM (3 years ago)
- Location:
- setary
- Files:
-
- 6 edited
- 1 copied
-
tags/0.4.0 (copied) (copied from setary/trunk)
-
tags/0.4.0/README.md (modified) (2 diffs)
-
tags/0.4.0/inc/class-products-with-variations.php (modified) (3 diffs)
-
tags/0.4.0/setary.php (modified) (2 diffs)
-
trunk/README.md (modified) (2 diffs)
-
trunk/inc/class-products-with-variations.php (modified) (3 diffs)
-
trunk/setary.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
setary/tags/0.4.0/README.md
r2802527 r2820735 3 3 Tested up to: 6.0.2 4 4 Requires PHP: 5.6 5 Stable tag: 0. 3.05 Stable tag: 0.4.0 6 6 License: MIT 7 7 License URI: https://opensource.org/licenses/MIT … … 54 54 == Changelog == 55 55 56 = v0.4.0 (2022-11-18) = 57 * [new] Enabled sale date to/from columns 58 56 59 = v0.3.0 (2022-10-06) = 57 60 * [new] Ability to [manage product images](https://setary.com/docs/manage-product-images/?utm_source=setary&utm_medium=changelog). -
setary/tags/0.4.0/inc/class-products-with-variations.php
r2795354 r2820735 95 95 16 => 'regular_price', 96 96 17 => 'sale_price', 97 //18 => 'date_on_sale_from',98 //19 => 'date_on_sale_from_gmt',99 //20 => 'date_on_sale_to',100 //21 => 'date_on_sale_to_gmt',97 18 => 'date_on_sale_from', 98 19 => 'date_on_sale_from_gmt', 99 20 => 'date_on_sale_to', 100 21 => 'date_on_sale_to_gmt', 101 101 // 22 => 'price_html', 102 102 23 => 'on_sale', … … 164 164 $item['formatted_categories'] = $this->format_categories( $item ); 165 165 $item['formatted_images'] = $this->format_images( $item ); 166 $item['date_on_sale_from'] = $this->format_date( $item['date_on_sale_from'] ); 167 $item['date_on_sale_to'] = $this->format_date( $item['date_on_sale_to'] ); 166 168 167 169 return $item; … … 304 306 return implode( ' | ', $categories ); 305 307 } 308 309 /** 310 * Format date string. 311 * 312 * @param string $date Date. 313 * 314 * @return string 315 */ 316 public function format_date( $date ) { 317 if ( empty( $date ) ) { 318 return $date; 319 } 320 321 $date_parts = explode( 'T', $date ); 322 323 return $date_parts[0]; 324 } 306 325 } -
setary/tags/0.4.0/setary.php
r2795354 r2820735 10 10 * Author: Setary 11 11 * 12 * Version: 0. 3.012 * Version: 0.4.0 13 13 * Requires at least: 5.7 14 14 * Tested up to: 6.0.2 … … 23 23 define( 'SETARY_PATH', \plugin_dir_path( __FILE__ ) ); 24 24 define( 'SETARY_URL', \plugins_url( '/', __FILE__ ) ); 25 define( 'SETARY_VERSION', '0. 3.0' );25 define( 'SETARY_VERSION', '0.4.0' ); 26 26 define( 'SETARY_SITE_URL', 'https://setary.com/' ); 27 27 define( 'SETARY_APP_URL', 'https://setary.com/app/' ); -
setary/trunk/README.md
r2802527 r2820735 3 3 Tested up to: 6.0.2 4 4 Requires PHP: 5.6 5 Stable tag: 0. 3.05 Stable tag: 0.4.0 6 6 License: MIT 7 7 License URI: https://opensource.org/licenses/MIT … … 54 54 == Changelog == 55 55 56 = v0.4.0 (2022-11-18) = 57 * [new] Enabled sale date to/from columns 58 56 59 = v0.3.0 (2022-10-06) = 57 60 * [new] Ability to [manage product images](https://setary.com/docs/manage-product-images/?utm_source=setary&utm_medium=changelog). -
setary/trunk/inc/class-products-with-variations.php
r2795354 r2820735 95 95 16 => 'regular_price', 96 96 17 => 'sale_price', 97 //18 => 'date_on_sale_from',98 //19 => 'date_on_sale_from_gmt',99 //20 => 'date_on_sale_to',100 //21 => 'date_on_sale_to_gmt',97 18 => 'date_on_sale_from', 98 19 => 'date_on_sale_from_gmt', 99 20 => 'date_on_sale_to', 100 21 => 'date_on_sale_to_gmt', 101 101 // 22 => 'price_html', 102 102 23 => 'on_sale', … … 164 164 $item['formatted_categories'] = $this->format_categories( $item ); 165 165 $item['formatted_images'] = $this->format_images( $item ); 166 $item['date_on_sale_from'] = $this->format_date( $item['date_on_sale_from'] ); 167 $item['date_on_sale_to'] = $this->format_date( $item['date_on_sale_to'] ); 166 168 167 169 return $item; … … 304 306 return implode( ' | ', $categories ); 305 307 } 308 309 /** 310 * Format date string. 311 * 312 * @param string $date Date. 313 * 314 * @return string 315 */ 316 public function format_date( $date ) { 317 if ( empty( $date ) ) { 318 return $date; 319 } 320 321 $date_parts = explode( 'T', $date ); 322 323 return $date_parts[0]; 324 } 306 325 } -
setary/trunk/setary.php
r2795354 r2820735 10 10 * Author: Setary 11 11 * 12 * Version: 0. 3.012 * Version: 0.4.0 13 13 * Requires at least: 5.7 14 14 * Tested up to: 6.0.2 … … 23 23 define( 'SETARY_PATH', \plugin_dir_path( __FILE__ ) ); 24 24 define( 'SETARY_URL', \plugins_url( '/', __FILE__ ) ); 25 define( 'SETARY_VERSION', '0. 3.0' );25 define( 'SETARY_VERSION', '0.4.0' ); 26 26 define( 'SETARY_SITE_URL', 'https://setary.com/' ); 27 27 define( 'SETARY_APP_URL', 'https://setary.com/app/' );
Note: See TracChangeset
for help on using the changeset viewer.