From 73509f91103c0d48cebf55dd8c3f0d9f290056e7 Mon Sep 17 00:00:00 2001 From: Michel Velis Date: Thu, 6 Jan 2022 14:41:08 -0500 Subject: [PATCH] Updated License Details view inside my account page > my licenses (woo-commerce support) replaced expand view for modal for my licenses inside my licenses page Update WP support --- includes/slm-scripts.php | 17 +- public/assets/css/slm-front-end.css | 25 +++ public/assets/js/slm-js.js | 23 +-- software-license-manager.php | 18 +- woocommerce/includes/wc_licenses_class.php | 199 +++++++++++---------- 5 files changed, 153 insertions(+), 129 deletions(-) diff --git a/includes/slm-scripts.php b/includes/slm-scripts.php index 958dd10..a565f91 100644 --- a/includes/slm-scripts.php +++ b/includes/slm-scripts.php @@ -1,5 +1,10 @@ Tips and Tricks HQ Text Domain: softwarelicensemanager Domain Path: /i18n/languages/ -WC tested up to: 4.3.0 +WC tested up to: 5.9.2 */ // If this file is called directly, abort. @@ -19,9 +19,9 @@ global $wpdb, $slm_debug_logger; //Short name/slug "SLM" or "slm" -define('SLM_VERSION', '5.5.12'); -define('SLM_DB_VERSION', '4.3.3'); -define('SLM_REWRITE_VERSION', '2.4.4'); +define('SLM_VERSION', '5.6.1'); +define('SLM_DB_VERSION', '4.3.5'); +define('SLM_REWRITE_VERSION', '2.4.5'); define('SLM_FOLDER', dirname(plugin_basename(__FILE__))); define('SLM_URL', plugins_url('', __FILE__)); define('SLM_ASSETS_URL', SLM_URL . '/public/assets/'); @@ -49,10 +49,6 @@ if (file_exists(SLM_LIB . 'slm-plugin-core.php')) { include_once SLM_LIB . 'slm-plugin-core.php'; } -// TODO: Addons Loader -if (file_exists(SLM_ADDONS . 'stripe/stripe.php')) { - include_once SLM_ADDONS . 'stripe/stripe.php'; -} // Options and filters define('WOO_SLM_API_SECRET', SLM_Helper_Class::slm_get_option('lic_creation_secret')); diff --git a/woocommerce/includes/wc_licenses_class.php b/woocommerce/includes/wc_licenses_class.php index c673955..94a26e3 100755 --- a/woocommerce/includes/wc_licenses_class.php +++ b/woocommerce/includes/wc_licenses_class.php @@ -5,6 +5,11 @@ * @link https://github.com/michelve/software-license-manager */ +// If this file is called directly, abort. +if (!defined('WPINC')) { + die(); +} + class SLM_Woo_Account { public static $endpoint = 'my-licenses'; @@ -98,52 +103,6 @@ public function endpoint_content() } ?> - - - - - - - - - - - - - - - - - - - -
> @@ -159,7 +118,7 @@ public function endpoint_content() - + - + + +
-