From 865556fb6ff3d9d0f55be84badfdbb8f7c6611a4 Mon Sep 17 00:00:00 2001 From: TeoAlex Date: Tue, 17 Dec 2024 14:37:56 +0200 Subject: [PATCH 1/3] disabled seasonal promotions --- admin/class-strong-testimonials-upsell.php | 20 ++++++++++---------- changelog.txt | 3 +++ includes/scripts.php | 2 +- package.json | 2 +- readme.txt | 5 ++++- strong-testimonials.php | 4 ++-- 6 files changed, 21 insertions(+), 15 deletions(-) diff --git a/admin/class-strong-testimonials-upsell.php b/admin/class-strong-testimonials-upsell.php index f4f7c406..6f29cb63 100644 --- a/admin/class-strong-testimonials-upsell.php +++ b/admin/class-strong-testimonials-upsell.php @@ -952,16 +952,16 @@ public function upsells_page() { * @since 3.1.10 */ private function set_offer() { - $month = gmdate( 'm' ); - - if ( '11' === $month ) { - add_filter( 'wpmtst_upsells_button_text', array( $this, 'bf_buttons' ), 15 ); - add_action( 'admin_print_styles', array( $this, 'footer_bf_styles' ), 999 ); - } - if ( '12' === $month ) { - add_filter( 'wpmtst_upsells_button_text', array( $this, 'xmas_buttons' ), 15 ); - add_action( 'admin_print_styles', array( $this, 'footer_xmas_styles' ), 999 ); - } + // $month = gmdate( 'm' ); + + // if ( '11' === $month ) { + // add_filter( 'wpmtst_upsells_button_text', array( $this, 'bf_buttons' ), 15 ); + // add_action( 'admin_print_styles', array( $this, 'footer_bf_styles' ), 999 ); + // } + // if ( '12' === $month ) { + // add_filter( 'wpmtst_upsells_button_text', array( $this, 'xmas_buttons' ), 15 ); + // add_action( 'admin_print_styles', array( $this, 'footer_xmas_styles' ), 999 ); + // } } /** diff --git a/changelog.txt b/changelog.txt index 4a21c099..5b9e57a3 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ + = 3.2.1 - 17.12.2024 - +- Changed: Disabled seasonal promotions notifications. + 3.2.0 - 13.11.2024 - - Fixed: Modern view tempalte path to quote marks was not correct. ( [#474](https://github.com/WPChill/strong-testimonials/issues/474) ) - Removed: License functionality diff --git a/includes/scripts.php b/includes/scripts.php index a8bc5d56..f6f12423 100644 --- a/includes/scripts.php +++ b/includes/scripts.php @@ -73,7 +73,7 @@ function wpmtst_scripts() { 'imagesloaded', WPMTST_PUBLIC_URL . 'js/lib/imagesloaded/imagesloaded.pkgd.min.js', array(), - '3.2.0', + '3.2.1', true ); } diff --git a/package.json b/package.json index 448d0b16..d9c6870c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "strong-testimonials", "author": "WPChill", - "version": "3.2.0", + "version": "3.2.1", "license": "GPL v3", "scripts": { "build": "cross-env NODE_ENV=production wp-scripts build --config webpack.config.js", diff --git a/readme.txt b/readme.txt index 84ccf557..b22a51f4 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: testimonials, testimonial slider, testimonial form, star ratings Requires at least: 5.2 Requires PHP: 5.6 Tested up to: 6.7 -Stable tag: 3.2.0 +Stable tag: 3.2.1 License: GPLv3 or later License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -199,6 +199,9 @@ No. If you already have testimonials in another plugin or theme, you will have t 8. View editor == Changelog == += 3.2.1 - 17.12.2024 - +- Changed: Disabled seasonal promotions notifications. + = 3.2.0 - 13.11.2024 - - Fixed: Modern view tempalte path to quote marks was not correct. ( [#474](https://github.com/WPChill/strong-testimonials/issues/474) ) - Removed: License functionality diff --git a/strong-testimonials.php b/strong-testimonials.php index 8ca3dfc2..17a045cf 100644 --- a/strong-testimonials.php +++ b/strong-testimonials.php @@ -5,7 +5,7 @@ * Description: Collect and display your testimonials or reviews. * Author: WPChill * Author URI: https://wpchill.com/ - * Version: 3.2.0 + * Version: 3.2.1 * Text Domain: strong-testimonials * Domain Path: /languages * Requires: 4.6 or higher @@ -45,7 +45,7 @@ exit; } -define( 'WPMTST_VERSION', '3.2.0' ); +define( 'WPMTST_VERSION', '3.2.1' ); define( 'WPMTST_PLUGIN', plugin_basename( __FILE__ ) ); // strong-testimonials/strong-testimonials.php define( 'WPMTST', dirname( WPMTST_PLUGIN ) ); // strong-testimonials From 2ac37a2c152a1cf02d2397aa4348f80e82132314 Mon Sep 17 00:00:00 2001 From: TeoAlex Date: Tue, 17 Dec 2024 16:55:58 +0200 Subject: [PATCH 2/3] relink with strongtestimonials.com free vs pro & changelog --- ...lass-strong-testimonials-admin-scripts.php | 8 -- ...s-strong-testimonials-lite-vs-pro-page.php | 88 +++++-------------- admin/class-strong-testimonials-updater.php | 2 +- admin/class-wpmtst-admin-helpers.php | 4 + changelog.txt | 1 + readme.txt | 3 +- 6 files changed, 28 insertions(+), 78 deletions(-) diff --git a/admin/class-strong-testimonials-admin-scripts.php b/admin/class-strong-testimonials-admin-scripts.php index 3bb4252b..d63b2334 100644 --- a/admin/class-strong-testimonials-admin-scripts.php +++ b/admin/class-strong-testimonials-admin-scripts.php @@ -54,14 +54,6 @@ public static function admin_register() { true ); - wp_register_script( - 'wpmtst-admin-script', - WPMTST_ASSETS_JS . 'admin.js', - array( 'jquery', 'underscore' ), - $plugin_version, - true - ); - wp_register_style( 'wpmtst-admin-global-style', WPMTST_ASSETS_CSS . 'admin-global.css', diff --git a/admin/class-strong-testimonials-lite-vs-pro-page.php b/admin/class-strong-testimonials-lite-vs-pro-page.php index 314d4caf..e1588458 100644 --- a/admin/class-strong-testimonials-lite-vs-pro-page.php +++ b/admin/class-strong-testimonials-lite-vs-pro-page.php @@ -7,6 +7,8 @@ class Strong_Testimonials_Lite_Vs_PRO_Page { public function __construct() { add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) ); + add_action( 'admin_print_footer_scripts', array( $this, 'inline_script_for_redirection' ) ); + add_filter( 'wpmtst_submenu_pages', array( $this, 'add_submenu' ) ); // Upgrade to PRO plugin action link @@ -56,82 +58,32 @@ public function get_submenu() { 'page_title' => esc_html__( 'Lite vs Pro', 'strong-testimonials' ), 'menu_title' => esc_html__( 'Lite vs Pro', 'strong-testimonials' ), 'capability' => 'strong_testimonials_options', - 'menu_slug' => 'strong-testimonials-lite-vs-pro', + 'menu_slug' => '#st-lite-vs-pro', 'function' => array( $this, 'render_page' ), ); } public function render_page() { + return; + } - $addons = new Strong_Testimonials_Addons(); + public function inline_script_for_redirection() { ?> -
-
-

-
- -
-
- -
-
-

PRO

-
-
-

LITE

-
-
- - - get_addons() as $pro ) { - ?> -
-
-

-

- -

-
-
- -
-
- -
-
- + document.addEventListener('DOMContentLoaded', function() { + const link = document.querySelector('a[href*="edit.php?post_type=wpm-testimonial&page=#st-lite-vs-pro"]'); + if (link) { + link.addEventListener('click', function(event) { + event.preventDefault(); + + window.open( + 'https://strongtestimonials.com/free-vs-pro/?utm_source=st-lite&utm_medium=link&utm_campaign=upsell&utm_term=lite-vs-pro', + '_blank' + ); + }); } - ?> - -
-
-

-
-
Priority
- -
- - -
-
+ }); + + + Date: Tue, 17 Dec 2024 16:57:39 +0200 Subject: [PATCH 3/3] Update package-lock.json --- package-lock.json | 73 +++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 71 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index c7fa54a6..6520a51e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "strong-testimonials", - "version": "3.1.20", + "version": "3.2.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "strong-testimonials", - "version": "3.1.20", + "version": "3.2.1", "license": "GPL v3", "dependencies": { "@wordpress/icons": "^9.18.0", @@ -19,6 +19,7 @@ "@wordpress/babel-plugin-makepot": "^6.5.0", "@wordpress/scripts": "^28.5.0", "archiver": "^5.3.1", + "cross-env": "^7.0.3", "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.29.1", @@ -7727,6 +7728,74 @@ "node": ">=8" } }, + "node_modules/cross-env": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", + "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.1" + }, + "bin": { + "cross-env": "src/bin/cross-env.js", + "cross-env-shell": "src/bin/cross-env-shell.js" + }, + "engines": { + "node": ">=10.14", + "npm": ">=6", + "yarn": ">=1" + } + }, + "node_modules/cross-env/node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/cross-env/node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cross-env/node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/cross-env/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/cross-fetch": { "version": "3.1.5", "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz",