mirror of
https://github.com/proelements/proelements.git
synced 2026-04-05 20:13:47 +00:00
v3.33.1
This commit is contained in:
45
modules/compatibility-tag/compatibility-tag-component.php
Normal file
45
modules/compatibility-tag/compatibility-tag-component.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
namespace ElementorPro\Modules\CompatibilityTag;
|
||||
|
||||
use Elementor\Modules\CompatibilityTag\Base_Module as Compatibility_Tag_Base_Module;
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly.
|
||||
}
|
||||
|
||||
class Compatibility_Tag_Component extends Compatibility_Tag_Base_Module {
|
||||
/**
|
||||
* This is the header used by extensions to show testing.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const PLUGIN_VERSION_TESTED_HEADER = 'PRO Elements tested up to';
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
protected function get_plugin_header() {
|
||||
return self::PLUGIN_VERSION_TESTED_HEADER;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
protected function get_plugin_label() {
|
||||
return esc_html__( 'PRO Elements', 'elementor-pro' );
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
protected function get_plugin_name() {
|
||||
return ELEMENTOR_PRO_PLUGIN_BASE;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
protected function get_plugin_version() {
|
||||
return ELEMENTOR_PRO_VERSION;
|
||||
}
|
||||
}
|
||||
39
modules/compatibility-tag/module.php
Normal file
39
modules/compatibility-tag/module.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
namespace ElementorPro\Modules\CompatibilityTag;
|
||||
|
||||
use ElementorPro\Base\Module_Base;
|
||||
use Elementor\Modules\CompatibilityTag\Base_Module as Compatibility_Tag_Base_Module;
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly.
|
||||
}
|
||||
|
||||
class Module extends Module_Base {
|
||||
const MODULE_NAME = 'compatibility-tag-pro';
|
||||
|
||||
/**
|
||||
* Checks if elementor core compatibility module is exists before
|
||||
* activate this module
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function is_active() {
|
||||
return class_exists( Compatibility_Tag_Base_Module::class );
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function get_name() {
|
||||
return self::MODULE_NAME;
|
||||
}
|
||||
|
||||
/**
|
||||
* Module constructor.
|
||||
*/
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
|
||||
$this->add_component( 'compatibility-tag-pro-handler', new Compatibility_Tag_Component() );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user