HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: /home/mirz4654/www/wp-content/plugins/elementor-pro/core/behaviors/feature-lock.php
<?php
namespace ElementorPro\Core\Behaviors;

use ElementorPro\License\API;
use ElementorPro\Plugin;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

class Feature_Lock implements Temp_Lock_Behavior {

	private $config;

	public function __construct( $config = [] ) {
		$this->config = $config;
	}

	public function is_locked() {
		return ! API::is_license_active();
	}

	public function get_config() {
		$utm_args = [
			'utm_source' => '%%utm_source%%', // Will be replaced in the frontend.
			'utm_medium' => '%%utm_medium%%',
			'utm_campaign' => API::is_license_expired()
				? 'renew-license'
				: 'connect-and-activate-license',
			'utm_term' => $this->config['type'],
		];

		$connect_url = Plugin::instance()->license_admin->get_connect_url( $utm_args );

		$renew_url = add_query_arg( $utm_args, 'https://my.elementor.com/subscriptions/' );

		return [
			'is_locked' => $this->is_locked(),
			'badge' => [
				'icon' => 'eicon-lock',
				'text' => esc_html__( 'Pro', 'elementor-pro' ),
			],
			'content' => [
				'heading' => esc_html__( 'You need an active Elementor Pro license', 'elementor-pro' ),
				'description' => esc_html__( 'Your Elementor Pro license is inactive. To access premium Elementor widgets, templates, support & plugin updates activate your Pro license.', 'elementor-pro' ),
			],
			'button' => [
				'text' => API::is_license_expired()
					? esc_html__( 'Renew now', 'elementor-pro' )
					: esc_html__( 'Connect & Activate', 'elementor-pro' ),

				'url' => API::is_license_expired()
					? $renew_url
					: $connect_url,
			],
		];
	}
}