Файловый менеджер - Редактировать - /home/beautybuzzbeyond/public_html/wp-content/plugins/wp-user-profile-avatar/external/elementor.php
Назад
<?php namespace WPUserProfileAvatar; /** * Class Plugin * * Main Plugin class */ class Plugin { /** * Instance * * @access private * @static * * @var Plugin The single instance of the class. */ private static $_instance = null; /** * Instance * * Ensures only one instance of the class is loaded or can be loaded. * * @access public * * @return Plugin An instance of the class. */ public static function instance() { if ( is_null( self::$_instance ) ) { self::$_instance = new self(); } return self::$_instance; } /** * Plugin class constructor * * Register plugin action hooks and filters * * @access public */ public function __construct() { // Register Categories. add_action( 'elementor/elements/categories_registered', array( $this, 'register_categories' ) ); // Register widgets. add_action( 'elementor/widgets/widgets_registered', array( $this, 'register_widgets' ) ); } /** * Register new category for wp-user-profile-avatar-categories core widget * * @param $elementsManager */ public function register_categories( $elementsManager ) { $elementsManager = \Elementor\Plugin::instance()->elements_manager; $elementsManager->add_category( 'wp-user-profile-avatar-categories', array( 'title' => 'WP User Profile Avatar', 'icon' => 'user', ), 0 // 0 to TOP ); } /** * Include Widgets files * * Load widgets files * * @access private */ private function include_widgets_files() { require_once __DIR__ . '/elementor-widgets/elementor-user-profile-avatar.php'; require_once __DIR__ . '/elementor-widgets/elementor-user-profile-avatar-upload.php'; require_once __DIR__ . '/elementor-widgets/elementor-user-profile-avatar-authorbox.php'; } /** * Register Widgets * * Register new Elementor widgets. * * @access public */ public function register_widgets() { // Its is now safe to include Widgets files $this->include_widgets_files(); // Register Widgets. \Elementor\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\Elementor_WPUPA() ); \Elementor\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\Elementor_WPUPA_Upload() ); \Elementor\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\Elementor_WPUPA_Authorbox() ); } } // Instantiate Plugin Class Plugin::instance();
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка