This commit is contained in:
proelements
2026-02-16 11:44:35 +02:00
parent 08ec8d01f1
commit b499583e5a
348 changed files with 3915 additions and 1414 deletions

View File

@@ -1,22 +1,18 @@
<?php
namespace ElementorPro\License;
use Elementor\Core\Admin\Admin_Notices;
use Elementor\Settings;
use Elementor\Utils;
use ElementorPro\Core\Utils as Pro_Utils;
use ElementorPro\Base\Editor_One_Trait;
use ElementorPro\Core\Connect\Apps\Activate;
use ElementorPro\License\Data\Controller;
use ElementorPro\License\Notices\Trial_Expired_Notice;
use ElementorPro\License\Notices\Trial_Period_Notice;
use ElementorPro\Plugin;
use ElementorPro\License\API as License_API;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
class Admin {
use Editor_One_Trait;
const API_TEMPLATES_URL = 'https://my.elementor.com/api/connect/v1/library/templates';
public function __construct() {
@@ -79,6 +75,7 @@ class Admin {
return $response;
}
public function register_actions() {
add_filter( 'http_response', [ $this, 'http_remove_pro_templates'], 10, 3 );
@@ -88,4 +85,18 @@ class Admin {
private function register_rest_controller() {
new Controller();
}
private function get_license_box_classes( string $additional_classes = '' ): string {
$classes = [ 'elementor-license-box' ];
if ( $additional_classes ) {
$classes[] = $additional_classes;
}
if ( $this->is_editor_one_active() ) {
$classes[] = 'e-one-section-outlined';
}
return implode( ' ', $classes );
}
}

View File

@@ -3,7 +3,6 @@ namespace ElementorPro\License;
use Elementor\Core\Common\Modules\Connect\Module as ConnectModule;
use ElementorPro\Plugin;
use ElementorPro\Modules\Tiers\Module as Tiers;
use Elementor\Api as Core_API;
if ( ! defined( 'ABSPATH' ) ) {
@@ -108,26 +107,26 @@ class API {
$license_data['success'] = true;
$license_data['expires'] = 'lifetime';
$license_data['features'] = [
'custom-attributes',
'custom_code',
'custom-css',
'global-css',
'display-conditions',
'dynamic-tags-acf',
'dynamic-tags-pods',
'dynamic-tags-toolset',
'element-manager-permissions',
'global-widget',
'editor_comments',
'stripe-button',
'popup',
'role-manager',
'woocommerce-menu-cart',
'product-single',
'product-archive',
'settings-woocommerce-pages',
'settings-woocommerce-notices',
'dynamic-tags-wc',
'custom-attributes',
'custom_code',
'custom-css',
'global-css',
'display-conditions',
'dynamic-tags-acf',
'dynamic-tags-pods',
'dynamic-tags-toolset',
'element-manager-permissions',
'global-widget',
'editor_comments',
'stripe-button',
'popup',
'role-manager',
'woocommerce-menu-cart',
'product-single',
'product-archive',
'settings-woocommerce-pages',
'settings-woocommerce-notices',
'dynamic-tags-wc',
'atomic-custom-attributes',
'theme-builder',
'form-submissions',