Plugin Directory

Changeset 2121854

Timestamp:
07/12/2019 05:24:15 AM (5 years ago)
Author:
sk.shaikat
Message:

update version and text

Location:
woocommerce-upcoming-product
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-upcoming-product/tags/1.5.5/woocommerce-upcoming-product.php

    r1685130 r2121854  
    305305     *
    306306     * @since 1.0
    307      * 
     307     *
    308308     * @param int $post_id
    309309     */
     
    322322     *
    323323     * @since 1.5.5
    324      * 
     324     *
    325325     * @param bool true
    326326     * @param int $product_id
     
    377377     *
    378378     * @param obj
    379      * 
     379     *
    380380     * @return obj
    381381     */
     
    421421                    <span class="available-from">
    422422                        <strong>
    423                             <?php 
     423                            <?php
    424424                            echo WC_Admin_Settings::get_option( 'wup_availabel_date_lebel', 'Available from' ) . ': ';
    425                             if ( empty( $_available_on ) ) { 
     425                            if ( empty( $_available_on ) ) {
    426426                                echo WC_Admin_Settings::get_option( 'wup_not_availabel_date_text', 'Date not set yet' );
    427                             }else { 
     427                            }else {
    428428                                echo date_i18n( get_option( 'date_format' ), strtotime( $_available_on ) ) ;
    429                             } 
     429                            }
    430430                            ?>
    431431                        </strong>
     
    453453                    <span class="available-from">
    454454                        <strong>
    455                             <?php 
     455                            <?php
    456456                            echo WC_Admin_Settings::get_option( 'wup_availabel_date_lebel', 'Available from' ) . ': ';
    457                             if ( empty( $_available_on ) ) { 
     457                            if ( empty( $_available_on ) ) {
    458458                                echo WC_Admin_Settings::get_option( 'wup_not_availabel_date_text', 'Date not set yet' );
    459                             }else { 
     459                            }else {
    460460                                echo date_i18n( get_option( 'date_format' ), strtotime( $_available_on ) ) ;
    461                             } 
     461                            }
    462462                            ?>
    463463                        </strong>
     
    590590
    591591                    array(
    592                         'title'  => __( 'Available date lebel', 'wup' ),
    593                         'desc'   => __( 'Lebel of showing available date', 'wup' ),
     592                        'title'  => __( 'Available date lbel', 'wup' ),
     593                        'desc'   => __( 'Lbel of showing available date', 'wup' ),
    594594                        'id'     => 'wup_availabel_date_lebel',
    595595                        'default'=> 'Available from',
  • woocommerce-upcoming-product/tags/1.5.6/woocommerce-upcoming-product.php

    r1690212 r2121854  
    221221    /**
    222222     * Show action links on the plugin screen.
    223      * 
     223     *
    224224     * @since 1.5.6
    225225     *
     
    245245     * - with precision = 2 : 3 days, 4 hours
    246246     * - with precision = 3 : 3 days, 4 hours, 12 minutes
    247      * 
     247     *
    248248     * From: http://www.if-not-true-then-false.com/2010/php-calculate-real-differences-between-two-dates-or-timestamps/
    249249     *
    250250     * @param mixed $time1 a time (string or timestamp)
    251251     * @param mixed $time2 a time (string or timestamp)
    252      * @param integer $precision Optional precision 
     252     * @param integer $precision Optional precision
    253253     * @return string time difference
    254254     */
     
    428428     *
    429429     * @since 1.0
    430      * 
     430     *
    431431     * @param int $post_id
    432432     */
     
    434434        $_upcoming = isset( $_POST['_upcoming'] ) ? $_POST['_upcoming'] : '';
    435435        $_available_on = ( isset( $_POST['_available_on'] ) ) ? wc_clean( $_POST['_available_on'] ) : '';
    436        
     436
    437437        update_post_meta( $post_id, '_upcoming', $_upcoming );
    438438        update_post_meta( $post_id, '_available_on', $_available_on );
     
    443443     *
    444444     * @since 1.5.5
    445      * 
     445     *
    446446     * @param bool true
    447447     * @param int $product_id
     
    498498     *
    499499     * @param obj
    500      * 
     500     *
    501501     * @return obj
    502502     */
     
    546546                                echo WC_Admin_Settings::get_option( 'wup_availabel_date_lebel', 'Available from' ) . ': ';
    547547                            }
    548                             if ( empty( $_available_on ) ) { 
     548                            if ( empty( $_available_on ) ) {
    549549                                echo WC_Admin_Settings::get_option( 'wup_not_availabel_date_text', 'Date not set yet' );
    550550                            }else {
     
    554554                                    echo $this->wup_get_date_diff( current_time('timestamp'), $_available_on );
    555555                                }
    556                             } 
     556                            }
    557557                            ?>
    558558                        </strong>
     
    584584                                echo WC_Admin_Settings::get_option( 'wup_availabel_date_lebel', 'Available from' ) . ': ';
    585585                            }
    586                             if ( empty( $_available_on ) ) { 
     586                            if ( empty( $_available_on ) ) {
    587587                                echo WC_Admin_Settings::get_option( 'wup_not_availabel_date_text', 'Date not set yet' );
    588588                            }else {
     
    592592                                    echo $this->wup_get_date_diff( current_time('timestamp'), $_available_on );
    593593                                }
    594                             } 
     594                            }
    595595                            ?>
    596596                        </strong>
  • woocommerce-upcoming-product/tags/1.5.7/woocommerce-upcoming-product.php

    r1695259 r2121854  
    7777        add_action( 'woocommerce_process_product_meta_mix-and-match', array( $this,'wup_save_upcoming_options' ), 10 );
    7878
    79        
     79
    8080        add_filter( 'woocommerce_add_to_cart_validation', array( $this,'wup_stop_adding_to_cart' ), 2, 10 );
    8181
     
    227227    /**
    228228     * Show action links on the plugin screen.
    229      * 
     229     *
    230230     * @since 1.5.6
    231231     *
     
    386386     * - with precision = 2 : 3 days, 4 hours
    387387     * - with precision = 3 : 3 days, 4 hours, 12 minutes
    388      * 
     388     *
    389389     * From: http://www.if-not-true-then-false.com/2010/php-calculate-real-differences-between-two-dates-or-timestamps/
    390390     *
    391391     * @param mixed $time1 a time (string or timestamp)
    392392     * @param mixed $time2 a time (string or timestamp)
    393      * @param integer $precision Optional precision 
     393     * @param integer $precision Optional precision
    394394     * @return string time difference
    395395     */
     
    573573     *
    574574     * @since 1.0
    575      * 
     575     *
    576576     * @param int $post_id
    577577     */
     
    579579        $_upcoming = isset( $_POST['_upcoming'] ) ? $_POST['_upcoming'] : '';
    580580        $_available_on = ( isset( $_POST['_available_on'] ) ) ? wc_clean( $_POST['_available_on'] ) : '';
    581        
     581
    582582        update_post_meta( $post_id, '_upcoming', $_upcoming );
    583583        update_post_meta( $post_id, '_available_on', $_available_on );
     
    588588     *
    589589     * @since 1.5.5
    590      * 
     590     *
    591591     * @param bool true
    592592     * @param int $product_id
     
    643643     *
    644644     * @param obj
    645      * 
     645     *
    646646     * @return obj
    647647     */
     
    691691                                echo WC_Admin_Settings::get_option( 'wup_availabel_date_lebel', 'Available from' ) . ': ';
    692692                            }
    693                             if ( empty( $_available_on ) ) { 
     693                            if ( empty( $_available_on ) ) {
    694694                                echo WC_Admin_Settings::get_option( 'wup_not_availabel_date_text', 'Date not set yet' );
    695695                            }else {
     
    699699                                    echo $this->wup_get_date_diff( current_time('timestamp'), $_available_on );
    700700                                }
    701                             } 
     701                            }
    702702                            ?>
    703703                        </strong>
     
    729729                                echo WC_Admin_Settings::get_option( 'wup_availabel_date_lebel', 'Available from' ) . ': ';
    730730                            }
    731                             if ( empty( $_available_on ) ) { 
     731                            if ( empty( $_available_on ) ) {
    732732                                echo WC_Admin_Settings::get_option( 'wup_not_availabel_date_text', 'Date not set yet' );
    733733                            }else {
     
    737737                                    echo $this->wup_get_date_diff( current_time('timestamp'), $_available_on );
    738738                                }
    739                             } 
     739                            }
    740740                            ?>
    741741                        </strong>
  • woocommerce-upcoming-product/trunk/readme.txt

    r2120727 r2121854  
    55Requires at least: 3.1
    66Tested up to: 5.2.2
    7 Stable tag: 1.5.9
     7Stable tag: 1.5.9
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    4848
    4949== Change log ==
     50
     51
     52
    5053
    5154= 1.5.9 = July 4, 2019
  • woocommerce-upcoming-product/trunk/woocommerce-upcoming-product.php

    r2120727 r2121854  
    44Plugin URI: https://github.com/Sk-Shaikat/woocommerce-upcoming-product
    55Description: Best Plugin to Manage your upcoming product easily in WooCommerce.
    6 Version: 1.5.9
     6Version: 1.5.9
    77Author: Mohaiminul Islam
    88Author URI: http://www.mohaiminulislam.com
     
    909909
    910910                    array(
    911                         'title'  => __( 'Available date lebel', 'wup' ),
    912                         'desc'   => __( 'Lebel of showing available date', 'wup' ),
     911                        'title'  => __( 'Available date lbel', 'wup' ),
     912                        'desc'   => __( 'Lbel of showing available date', 'wup' ),
    913913                        'id'     => 'wup_availabel_date_lebel',
    914914                        'default'=> 'Available from',
Note: See TracChangeset for help on using the changeset viewer.