File ManagerCurrent Directory: wp-content/plugins/profile-builder/assets/misc/elementorLinux appserver-0d5e4f1e-php-cc8da225320a42ba9b7d66cba40b1f03 6.6.123+ #1 SMP PREEMPT_DYNAMIC Wed Mar 11 09:04:28 UTC 2026 x86_64Edit File: class-elementor.php <?php // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) exit; use Elementor\Controls_Manager; class PB_Elementor { private static $_instance = null; public $locations = array( array( 'element' => 'common', 'action' => '_section_style', ), array( 'element' => 'section', 'action' => 'section_advanced', ) ); public $section_name = 'pb_section_visibility_settings'; /** * Register plugin action hooks and filters */ public function __construct() { // Add category add_action( 'elementor/elements/categories_registered', array( $this, 'add_category' ) ); // Register widgets add_action( 'elementor/widgets/widgets_registered', array( $this, 'register_widgets' ) ); } /** * * Ensures only one instance of the class is loaded or can be loaded. * * @return PB_Elementor An instance of the class. */ public static function instance() { if ( is_null( self::$_instance ) ) self::$_instance = new self(); return self::$_instance; } /** * Include Widgets files */ private function include_widgets_files() { require_once(__DIR__ . '/widgets/class-pb-widget-epf.php'); require_once(__DIR__ . '/widgets/class-pb-widget-l.php'); require_once(__DIR__ . '/widgets/class-pb-widget-rp.php'); require_once(__DIR__ . '/widgets/class-pb-widget-rf.php'); require_once(__DIR__ . '/widgets/class-pb-widget-ul.php'); } /** * Register Widgets */ public function register_widgets() { $this->include_widgets_files(); if( version_compare( ELEMENTOR_VERSION, '3.5,', '>=' ) ){ \Elementor\Plugin::instance()->widgets_manager->register( new PB_Elementor_Edit_Profile_Widget() ); \Elementor\Plugin::instance()->widgets_manager->register( new PB_Elementor_Login_Widget() ); \Elementor\Plugin::instance()->widgets_manager->register( new PB_Elementor_Recover_Password_Widget() ); \Elementor\Plugin::instance()->widgets_manager->register( new PB_Elementor_Register_Widget() ); if( defined( 'WPPB_PAID_PLUGIN_DIR' ) && file_exists( WPPB_PAID_PLUGIN_DIR . '/add-ons/user-listing/userlisting.php' ) ){ \Elementor\Plugin::instance()->widgets_manager->register( new PB_Elementor_User_Listing_Widget() ); } } else { \Elementor\Plugin::instance()->widgets_manager->register_widget_type( new PB_Elementor_Edit_Profile_Widget() ); \Elementor\Plugin::instance()->widgets_manager->register_widget_type( new PB_Elementor_Login_Widget() ); \Elementor\Plugin::instance()->widgets_manager->register_widget_type( new PB_Elementor_Recover_Password_Widget() ); \Elementor\Plugin::instance()->widgets_manager->register_widget_type( new PB_Elementor_Register_Widget() ); if( defined( 'WPPB_PAID_PLUGIN_DIR' ) && file_exists( WPPB_PAID_PLUGIN_DIR . '/add-ons/user-listing/userlisting.php' ) ){ \Elementor\Plugin::instance()->widgets_manager->register_widget_type( new PB_Elementor_User_Listing_Widget() ); } } } public function add_category( $elements_manager ) { $elements_manager->add_category( 'profile-builder', array( 'title' => __( 'Profile Builder Forms', 'profile-builder' ), 'icon' => 'fa fa-plug', ) ); } } // Instantiate Plugin Class PB_Elementor::instance(); Upload File Directory Listing NameTypeSizeActions.. (Parent Directory)Dirclass-elementor.phpFile3.46 KB Rename | Delete | EditwidgetsDirectory Rename | Delete