���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/dr.rickard.co/wp-content/plugins/caster-core/admin/elementor/config.php
���ѧ٧ѧ�
<?php if ( ! defined( 'ABSPATH' ) ) exit; if ( ! class_exists( 'Caster_Elementor_Config' ) ) { class Caster_Elementor_Config { private static $_instance = null; public $widgets; public function __construct() { $this->widgets = [ 'call-to-action-config', 'portfolio-section-config', 'team-member-config', 'testimonial-carousel-config', 'portfolio-slider-config', 'portfolio-listing-config', 'portfolio-carousel-config', ]; // Check if Elementor installed and activated if ( ! did_action( 'elementor/loaded' ) ) { add_action( 'admin_notices', array( $this, 'admin_notice_missing_main_plugin' ) ); return; } // Add Plugin actions add_action( 'elementor/elements/categories_registered', array( $this, 'add_elementor_widget_categories' ) ); add_action( 'elementor/widgets/widgets_registered', array( $this, 'init_widgets' ) ); } public static function instance() { if ( is_null( self::$_instance ) ) { self::$_instance = new self(); } return self::$_instance; } public function add_elementor_widget_categories( $elements_manager ) { $category = 'caster'; $elements_manager->add_category( $category, array( 'title' => esc_html__( 'Caster Elements', 'caster' ), 'icon' => 'fa fa-plug', ) ); } public function init_widgets() { foreach ( $this->widgets as $widget ) { $template_file = CASTER_CORE_PATH . 'admin/elementor/elementor-widgets/' . $widget . '.php'; if ( file_exists( $template_file ) ) { require_once $template_file; } } } public function admin_notice_missing_main_plugin() { if ( isset( $_GET['activate'] ) ) unset( $_GET['activate'] ); $message = sprintf( /* translators: 1: Plugin name 2: Elementor */ esc_html__( '"%1$s" requires "%2$s" to be installed and activated.', 'caster' ), '<strong>' . esc_html__( 'Caster', 'caster' ) . '</strong>', '<strong>' . esc_html__( 'Elementor', 'caster' ) . '</strong>' ); printf( '<div class="notice notice-warning is-dismissible"><p>%1$s</p></div>', $message ); } } Caster_Elementor_Config::instance(); }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.2 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�