Plugin Directory

Changeset 2442219


Ignore:
Timestamp:
12/18/2020 10:51:08 AM (5 years ago)
Author:
opurockey
Message:

Release version 1.7.3

Location:
erp
Files:
2349 added
3 edited

Legend:

Unmodified
Added
Removed
  • erp/trunk/includes/class-promotion.php

    r2422366 r2442219  
    2929        }
    3030        $current_time       = erp_current_datetime()->setTimezone ( new \DateTimeZone( 'America/New_York' ) );
    31         $promotion1_start   = $current_time->setDate( 2020, 11, 23 )->setTime( 9, 0, 0 );
    32         $promotion1_end     = $promotion1_start->setTime( 14, 0, 0 );
    33         $promotion2_start   = $promotion1_end->setTime( 14, 0, 1 );
    34         $promotion2_end     = $promotion2_start->modify( '+4 days' )->setTime( 23, 59, 59 );
    35         $promotion3_start   = $promotion2_end->modify( 'next day' )->setTime( 0, 0, 0 );
    36         $promotion3_end     = $current_time->setDate( 2020, 12, 4 )->setTime( 23, 59, 59 );
    37         // 2020-12-04 23:59:00
    38         if ( $current_time > $promotion3_end || $current_time < $promotion1_start ) {
     31        $promotion_start   = $current_time->setDate( 2020, 12, 22 )->setTime( 9, 0, 0 );
     32        $promotion_end     = $promotion_start->modify( '+17 days' )->setTime( 23, 59, 59 );
     33        // 2020-12-22 09:00:00 - 2021-01-08 23:59:59
     34        if ( $current_time > $promotion_end || $current_time < $promotion_start ) {
    3935            return;
    4036        }
    41         if ( $current_time >= $promotion1_start && $current_time <= $promotion1_end ) {
    42             $msg            = 'Enjoy Flat 50% OFF on WP ERP Pro. Get Your Early Bird Black Friday';
    43             $option_name    = 'erp_2020_early_black_friday';
    44             $this->generate_notice( $msg, $option_name );
    45             return;
    46         }
    47         if ( $current_time >= $promotion2_start && $current_time <= $promotion2_end ) {
    48             $msg            = 'Enjoy Up To 50% OFF on WP ERP Pro. Get Your Black Friday';
    49             $option_name    = 'erp_2020_black_friday';
    50             $this->generate_notice( $msg, $option_name );
    51             return;
    52         }
    53         if ( $current_time >= $promotion3_start && $current_time <= $promotion3_end ) {
    54             $msg            = 'Enjoy Up To 50% OFF on WP ERP Pro. Get Your Cyber Monday';
    55             $option_name    = 'erp_2020_cyber_monday';
     37        if ( $current_time >= $promotion_start && $current_time <= $promotion_end ) {
     38            $msg            = 'Enjoy Up To 50% OFF on WP ERP Pro. Get Your ';
     39            $option_name    = 'erp_2020_holiday';
    5640            $this->generate_notice( $msg, $option_name );
    5741            return;
     
    7559
    7660        $offer_msg = '<p><strong class="highlight-text" style="font-size: 18px">' . $msg . '
    77                 <a target="_blank" href="https://wperp.com/pricing/?nocache&utm_medium=text&utm_source=wordpress-erp">  Deals Now </a>.</strong>
     61                <a target="_blank" href="https://wperp.com/pricing/?nocache&utm_medium=text&utm_source=wordpress-erp-holidays">  Holiday Deals Now</a>.</strong>
    7862            </p>';
    7963        ?>
  • erp/trunk/readme.txt

    r2441411 r2442219  
    66Tested up to: 5.6
    77Requires PHP: 5.6
    8 Stable tag: 1.7.2
     8Stable tag: 1.7.3
    99License: GPLv2
    1010License: GPLv2 or later
     
    280280
    281281== Changelog ==
     282
     283= v1.7.3 -> December 18, 2020 =
     284--------------------------
     285- [update] Improved the code quality & fixed a minor issue
     286- [update] Added holiday gift promotional notice
    282287
    283288= v1.7.2 -> December 17, 2020 =
  • erp/trunk/wp-erp.php

    r2441411 r2442219  
    66 * Author: weDevs
    77 * Author URI: https://wedevs.com
    8  * Version: 1.7.2
     8 * Version: 1.7.3
    99 * License: GPL2
    1010 * Text Domain: erp
     
    5353     * @var string
    5454     */
    55     public $version = '1.7.2';
     55    public $version = '1.7.3';
    5656
    5757    /**
Note: See TracChangeset for help on using the changeset viewer.