File ManagerCurrent Directory: wp-content/plugins/header-footer-elementor/inc/widgets-manager/baseLinux appserver-0d5e4f1e-php-cc8da225320a42ba9b7d66cba40b1f03 6.6.123+ #1 SMP PREEMPT_DYNAMIC Wed Mar 11 09:04:28 UTC 2026 x86_64Edit File: module-base.php <?php /** * HFE Module Base. * * @package header-footer-elementor */ namespace HFE\WidgetsManager\Base; use HFE\WidgetsManager\Base\HFE_Helper; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Module Base * * @since x.x.x */ abstract class Module_Base { /** * Reflection * * @var reflection */ private $reflection; /** * Reflection * * @var instances */ protected static $instances = []; /** * Get Name * * @since x.x.x */ abstract public function get_name(); /** * Class name to Call * * @since x.x.x */ public static function class_name() { return get_called_class(); } /** * Check if this is a widget. * * @since 1.12.0 * @access public * * @return bool true|false. */ public function is_widget() { return true; } /** * Class instance * * @since x.x.x * * @return static */ public static function instance() { $class_name = static::class_name(); if ( empty( static::$instances[ $class_name ] ) ) { static::$instances[ $class_name ] = new static(); } return static::$instances[ $class_name ]; } /** * Constructor */ public function __construct() { $this->reflection = new \ReflectionClass( $this ); add_action( 'elementor/widgets/register', [ $this, 'init_widgets' ] ); } /** * Init Widgets * * @since x.x.x */ public function init_widgets() { $widget_manager = \Elementor\Plugin::instance()->widgets_manager; foreach ( $this->get_widgets() as $widget ) { if ( HFE_Helper::is_widget_active( $widget ) ) { $class_name = $this->reflection->getNamespaceName() . '\\' . ucfirst( $widget ); if ( $this->is_widget() ) { $widget_manager->register( new $class_name() ); } } } } /** * Get Widgets * * @since x.x.x * * @return array */ public function get_widgets() { return []; } } Upload File Directory Listing NameTypeSizeActions.. (Parent Directory)Dircommon-widget.phpFile1.37 KB Rename | Delete | Edithfe-helper.phpFile9.99 KB Rename | Delete | Editmodule-base.phpFile1.84 KB Rename | Delete | Editwidgets-config.phpFile53.67 KB Rename | Delete | Edit