Changeset 2121854
- Timestamp:
- 07/12/2019 05:24:15 AM (5 years ago)
- Location:
- woocommerce-upcoming-product
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-upcoming-product/tags/1.5.5/woocommerce-upcoming-product.php
r1685130 r2121854 305 305 * 306 306 * @since 1.0 307 * 307 * 308 308 * @param int $post_id 309 309 */ … … 322 322 * 323 323 * @since 1.5.5 324 * 324 * 325 325 * @param bool true 326 326 * @param int $product_id … … 377 377 * 378 378 * @param obj 379 * 379 * 380 380 * @return obj 381 381 */ … … 421 421 <span class="available-from"> 422 422 <strong> 423 <?php 423 <?php 424 424 echo WC_Admin_Settings::get_option( 'wup_availabel_date_lebel', 'Available from' ) . ': '; 425 if ( empty( $_available_on ) ) { 425 if ( empty( $_available_on ) ) { 426 426 echo WC_Admin_Settings::get_option( 'wup_not_availabel_date_text', 'Date not set yet' ); 427 }else { 427 }else { 428 428 echo date_i18n( get_option( 'date_format' ), strtotime( $_available_on ) ) ; 429 } 429 } 430 430 ?> 431 431 </strong> … … 453 453 <span class="available-from"> 454 454 <strong> 455 <?php 455 <?php 456 456 echo WC_Admin_Settings::get_option( 'wup_availabel_date_lebel', 'Available from' ) . ': '; 457 if ( empty( $_available_on ) ) { 457 if ( empty( $_available_on ) ) { 458 458 echo WC_Admin_Settings::get_option( 'wup_not_availabel_date_text', 'Date not set yet' ); 459 }else { 459 }else { 460 460 echo date_i18n( get_option( 'date_format' ), strtotime( $_available_on ) ) ; 461 } 461 } 462 462 ?> 463 463 </strong> … … 590 590 591 591 array( 592 'title' => __( 'Available date l ebel', 'wup' ),593 'desc' => __( 'L ebel of showing available date', 'wup' ),592 'title' => __( 'Available date lbel', 'wup' ), 593 'desc' => __( 'Lbel of showing available date', 'wup' ), 594 594 'id' => 'wup_availabel_date_lebel', 595 595 'default'=> 'Available from', -
woocommerce-upcoming-product/tags/1.5.6/woocommerce-upcoming-product.php
r1690212 r2121854 221 221 /** 222 222 * Show action links on the plugin screen. 223 * 223 * 224 224 * @since 1.5.6 225 225 * … … 245 245 * - with precision = 2 : 3 days, 4 hours 246 246 * - with precision = 3 : 3 days, 4 hours, 12 minutes 247 * 247 * 248 248 * From: http://www.if-not-true-then-false.com/2010/php-calculate-real-differences-between-two-dates-or-timestamps/ 249 249 * 250 250 * @param mixed $time1 a time (string or timestamp) 251 251 * @param mixed $time2 a time (string or timestamp) 252 * @param integer $precision Optional precision 252 * @param integer $precision Optional precision 253 253 * @return string time difference 254 254 */ … … 428 428 * 429 429 * @since 1.0 430 * 430 * 431 431 * @param int $post_id 432 432 */ … … 434 434 $_upcoming = isset( $_POST['_upcoming'] ) ? $_POST['_upcoming'] : ''; 435 435 $_available_on = ( isset( $_POST['_available_on'] ) ) ? wc_clean( $_POST['_available_on'] ) : ''; 436 436 437 437 update_post_meta( $post_id, '_upcoming', $_upcoming ); 438 438 update_post_meta( $post_id, '_available_on', $_available_on ); … … 443 443 * 444 444 * @since 1.5.5 445 * 445 * 446 446 * @param bool true 447 447 * @param int $product_id … … 498 498 * 499 499 * @param obj 500 * 500 * 501 501 * @return obj 502 502 */ … … 546 546 echo WC_Admin_Settings::get_option( 'wup_availabel_date_lebel', 'Available from' ) . ': '; 547 547 } 548 if ( empty( $_available_on ) ) { 548 if ( empty( $_available_on ) ) { 549 549 echo WC_Admin_Settings::get_option( 'wup_not_availabel_date_text', 'Date not set yet' ); 550 550 }else { … … 554 554 echo $this->wup_get_date_diff( current_time('timestamp'), $_available_on ); 555 555 } 556 } 556 } 557 557 ?> 558 558 </strong> … … 584 584 echo WC_Admin_Settings::get_option( 'wup_availabel_date_lebel', 'Available from' ) . ': '; 585 585 } 586 if ( empty( $_available_on ) ) { 586 if ( empty( $_available_on ) ) { 587 587 echo WC_Admin_Settings::get_option( 'wup_not_availabel_date_text', 'Date not set yet' ); 588 588 }else { … … 592 592 echo $this->wup_get_date_diff( current_time('timestamp'), $_available_on ); 593 593 } 594 } 594 } 595 595 ?> 596 596 </strong> -
woocommerce-upcoming-product/tags/1.5.7/woocommerce-upcoming-product.php
r1695259 r2121854 77 77 add_action( 'woocommerce_process_product_meta_mix-and-match', array( $this,'wup_save_upcoming_options' ), 10 ); 78 78 79 79 80 80 add_filter( 'woocommerce_add_to_cart_validation', array( $this,'wup_stop_adding_to_cart' ), 2, 10 ); 81 81 … … 227 227 /** 228 228 * Show action links on the plugin screen. 229 * 229 * 230 230 * @since 1.5.6 231 231 * … … 386 386 * - with precision = 2 : 3 days, 4 hours 387 387 * - with precision = 3 : 3 days, 4 hours, 12 minutes 388 * 388 * 389 389 * From: http://www.if-not-true-then-false.com/2010/php-calculate-real-differences-between-two-dates-or-timestamps/ 390 390 * 391 391 * @param mixed $time1 a time (string or timestamp) 392 392 * @param mixed $time2 a time (string or timestamp) 393 * @param integer $precision Optional precision 393 * @param integer $precision Optional precision 394 394 * @return string time difference 395 395 */ … … 573 573 * 574 574 * @since 1.0 575 * 575 * 576 576 * @param int $post_id 577 577 */ … … 579 579 $_upcoming = isset( $_POST['_upcoming'] ) ? $_POST['_upcoming'] : ''; 580 580 $_available_on = ( isset( $_POST['_available_on'] ) ) ? wc_clean( $_POST['_available_on'] ) : ''; 581 581 582 582 update_post_meta( $post_id, '_upcoming', $_upcoming ); 583 583 update_post_meta( $post_id, '_available_on', $_available_on ); … … 588 588 * 589 589 * @since 1.5.5 590 * 590 * 591 591 * @param bool true 592 592 * @param int $product_id … … 643 643 * 644 644 * @param obj 645 * 645 * 646 646 * @return obj 647 647 */ … … 691 691 echo WC_Admin_Settings::get_option( 'wup_availabel_date_lebel', 'Available from' ) . ': '; 692 692 } 693 if ( empty( $_available_on ) ) { 693 if ( empty( $_available_on ) ) { 694 694 echo WC_Admin_Settings::get_option( 'wup_not_availabel_date_text', 'Date not set yet' ); 695 695 }else { … … 699 699 echo $this->wup_get_date_diff( current_time('timestamp'), $_available_on ); 700 700 } 701 } 701 } 702 702 ?> 703 703 </strong> … … 729 729 echo WC_Admin_Settings::get_option( 'wup_availabel_date_lebel', 'Available from' ) . ': '; 730 730 } 731 if ( empty( $_available_on ) ) { 731 if ( empty( $_available_on ) ) { 732 732 echo WC_Admin_Settings::get_option( 'wup_not_availabel_date_text', 'Date not set yet' ); 733 733 }else { … … 737 737 echo $this->wup_get_date_diff( current_time('timestamp'), $_available_on ); 738 738 } 739 } 739 } 740 740 ?> 741 741 </strong> -
woocommerce-upcoming-product/trunk/readme.txt
r2120727 r2121854 5 5 Requires at least: 3.1 6 6 Tested up to: 5.2.2 7 Stable tag: 1.5.9 7 Stable tag: 1.5.9 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 48 48 49 49 == Change log == 50 51 52 50 53 51 54 = 1.5.9 = July 4, 2019 -
woocommerce-upcoming-product/trunk/woocommerce-upcoming-product.php
r2120727 r2121854 4 4 Plugin URI: https://github.com/Sk-Shaikat/woocommerce-upcoming-product 5 5 Description: Best Plugin to Manage your upcoming product easily in WooCommerce. 6 Version: 1.5.9 6 Version: 1.5.9 7 7 Author: Mohaiminul Islam 8 8 Author URI: http://www.mohaiminulislam.com … … 909 909 910 910 array( 911 'title' => __( 'Available date l ebel', 'wup' ),912 'desc' => __( 'L ebel of showing available date', 'wup' ),911 'title' => __( 'Available date lbel', 'wup' ), 912 'desc' => __( 'Lbel of showing available date', 'wup' ), 913 913 'id' => 'wup_availabel_date_lebel', 914 914 'default'=> 'Available from',
Note: See TracChangeset
for help on using the changeset viewer.