Skip to content

Commit

Permalink
Release version 2.4.17
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmayjay committed Feb 8, 2022
1 parent b982908 commit f2a75ee
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 11 deletions.
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
= v2.4.17 - Feb 07, 2022 =

**Notice** Limited time promotional notice on Super Bowl sale

= v2.4.16 - Dec 23, 2021 =

**Fix** Discussion file url was not downloadable for PDF
Expand Down
2 changes: 1 addition & 1 deletion config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
return [
'name' => 'Project Manager',
'slug' => 'pm',
'version' => '2.4.16',
'version' => '2.4.17',
'api' => '2',
'db_version' => '2.5',
'text_domain' => 'pm',
Expand Down
18 changes: 13 additions & 5 deletions core/Promotions/Offers.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
namespace WeDevs\PM\Core\Promotions;

use AmpProject\Validator\Spec\Tag\Strong;
namespace WeDevs\PM\Core\Promotions;

/**
* Promotion class
Expand All @@ -10,11 +9,19 @@
*/
class Offers {

function __construct() {
/**
* Class constructor
*/
public function __construct() {
add_action( 'admin_notices', array( $this, 'promotional_offer' ) );
add_action( 'wp_ajax_pm-dismiss-offer-notice', array( $this, 'dismiss_offer' ) );
}

/**
* Retrieves offer data.
*
* @return object
*/
public function get_offer() {
$offer = new \stdClass;
$offer->status = false;
Expand All @@ -38,7 +45,6 @@ public function get_offer() {
$disabled_key = get_option( 'pm_offer_notice' );

if ( $current_time >= $promo_notice['start_date'] && $current_time <= $promo_notice['end_date'] ) {
$offer->status = $disabled_key == $promo_notice['key'] ? false : true;
$offer->link = $promo_notice['action_url'];
$offer->key = $promo_notice['key'];
$offer->btn_txt = ! empty( $promo_notice['action_title'] ) ? $promo_notice['action_title'] : 'Get Now';
Expand All @@ -52,7 +58,9 @@ public function get_offer() {
$offer->message[] = sprintf( __( '%s', 'wedevs-project-manager' ), $promo_notice['content'] );
$offer->message = implode( '<br>', $offer->message );

return $offer;
if ( $disabled_key != $promo_notice['key'] ) {
$offer->status = true;
}
}

return $offer;
Expand Down
2 changes: 1 addition & 1 deletion cpm.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: WordPress Project Management plugin. Manage your projects and tasks, get things done.
* Author: weDevs
* Author URI: https://wedevs.com
* Version: 2.4.16
* Version: 2.4.17
* Text Domain: wedevs-project-manager
* Domain Path: /languages
* License: GPL2
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pmapi",
"version": "2.4.16",
"version": "2.4.17",
"description": "Front-end package manager for project manager",
"main": "index.js",
"directories": {
Expand Down
8 changes: 6 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Contributors: tareq1988, nizamuddinbabu, wedevs, asaquzzaman
Donate Link: https://tareq.co/donate/
Tags: project, project manager, project management, web project management, task manager, online collaboration tool,
Requires at least: 4.4 or higher
Tested up to: 5.8.2
Tested up to: 5.9
Requires PHP: 5.6
Stable tag: 2.4.16
Stable tag: 2.4.17
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -262,6 +262,10 @@ A. Found any bugs? Please create an [issue](https://github.com/tareq1988/wp-proj

== Changelog ==

= v2.4.17 - Feb 07, 2022 =

**Notice** Limited time promotional notice on Super Bowl sale

= v2.4.16 - Dec 23, 2021 =

**Fix** Discussion file url was not downloadable for PDF
Expand Down

0 comments on commit f2a75ee

Please sign in to comment.