���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/elirickard.com/wp-content/plugins/micdrop-core/inc/plugins/elementor/helper.php
���ѧ٧ѧ�
<?php if ( ! function_exists( 'micdrop_core_get_elementor_instance' ) ) { /** * Function that return page builder module instance */ function micdrop_core_get_elementor_instance() { return \Elementor\Plugin::instance(); } } if ( ! function_exists( 'micdrop_core_get_elementor_widgets_manager' ) ) { /** * Function that return page builder widget module instance */ function micdrop_core_get_elementor_widgets_manager() { return micdrop_core_get_elementor_instance()->widgets_manager; } } if ( ! function_exists( 'micdrop_core_load_elementor_widgets' ) ) { /** * Function that include modules into page builder */ function micdrop_core_load_elementor_widgets() { $check_code = class_exists( 'MasterdsCore_Dashboard' ) ? MicdropCore_Dashboard::get_instance()->get_code() : true; if ( ! empty( $check_code ) ) { include_once MICDROP_CORE_PLUGINS_PATH . '/elementor/class-micdropcore-elementor-widget-base.php'; $widgets = array(); foreach ( glob( MICDROP_CORE_SHORTCODES_PATH . '/*', GLOB_ONLYDIR ) as $shortcode ) { if ( basename( $shortcode ) !== 'dashboard' ) { $is_disabled = micdrop_core_performance_get_option_value( $shortcode, 'micdrop_core_performance_shortcode_' ); if ( empty( $is_disabled ) ) { foreach ( glob( $shortcode . '/*-elementor.php' ) as $shortcode_load ) { $widgets[ basename( $shortcode_load ) ] = $shortcode_load; } } } } foreach ( glob( MICDROP_CORE_INC_PATH . '/*/shortcodes/*/*-elementor.php' ) as $shortcode_load ) { $widgets[ basename( $shortcode_load ) ] = $shortcode_load; } foreach ( glob( MICDROP_CORE_CPT_PATH . '/*', GLOB_ONLYDIR ) as $post_type ) { if ( 'dashboard' !== basename( $post_type ) ) { $is_disabled = micdrop_core_performance_get_option_value( $post_type, 'micdrop_core_performance_post_type_' ); if ( empty( $is_disabled ) ) { foreach ( glob( $post_type . '/shortcodes/*/*-elementor.php' ) as $shortcode_load ) { $widgets[ basename( $shortcode_load ) ] = $shortcode_load; } } } } foreach ( glob( MICDROP_CORE_PLUGINS_PATH . '/*/shortcodes/*/*-elementor.php' ) as $shortcode_load ) { $widgets[ basename( $shortcode_load ) ] = $shortcode_load; } foreach ( glob( MICDROP_CORE_PLUGINS_PATH . '/*/post-types/*/shortcodes/*/*-elementor.php' ) as $shortcode_load ) { $widgets[ basename( $shortcode_load ) ] = $shortcode_load; } foreach ( glob( MICDROP_CORE_PLUGINS_PATH . '/*/roles/*/shortcodes/*/*-elementor.php' ) as $shortcode_load ) { $widgets[ basename( $shortcode_load ) ] = $shortcode_load; } if ( ! empty( $widgets ) ) { ksort( $widgets ); foreach ( $widgets as $widget ) { include_once $widget; } } } } add_action( 'elementor/widgets/widgets_registered', 'micdrop_core_load_elementor_widgets' ); }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�