| Server IP : 3.93.235.159 / Your IP : 216.73.216.140 Web Server : Apache System : Linux ip-172-26-0-169 5.10.0-46-cloud-amd64 #1 SMP Debian 5.10.262-1 (2026-07-31) x86_64 User : bitnami ( 1000) PHP Version : 8.2.9 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /bitnami/wordpress/wp-content/plugins/hello-plus/modules/theme/components/ |
Upload File : |
<?php
namespace HelloPlus\Modules\Theme\Components;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
use HelloPlus\Includes\Utils;
class Theme_Dependency {
public function activate() {
if ( ! Utils::has_hello_biz() ) {
deactivate_plugins( HELLOPLUS_PLUGIN_BASE );
wp_die(
wp_kses( __( '<strong>Hello+ needs an active Hello suite theme to work</strong>. Install and activate a theme from the Elementor Hello suite to start using the plugin.', 'hello-plus' ),
[
'strong' => [],
]
),
esc_html__( 'Plugin Activation Error', 'hello-plus' ),
[ 'back_link' => true ]
);
}
if ( Utils::is_elementor_active() && ! Utils::is_active_elementor_version_supported() ) {
deactivate_plugins( HELLOPLUS_PLUGIN_BASE );
wp_die(
esc_html( Utils::get_update_elementor_message() ),
esc_html__( 'Plugin Activation Error', 'hello-plus' ),
[ 'back_link' => true ]
);
}
}
public function __construct() {
add_action( 'hello-plus/activate', [ $this, 'activate' ] );
}
}