Notice: file_get_contents(): Read of 8192 bytes failed with errno=12 Cannot allocate memory in /home/parkwood/public_html/wp-includes/functions.php on line 6948
Notice: require(): Read of 6445 bytes failed with errno=12 Cannot allocate memory in /home/parkwood/public_html/wp-content/plugins/elementor/includes/autoloader.php on line 300
Notice: require(): Read of 6445 bytes failed with errno=12 Cannot allocate memory in /home/parkwood/public_html/wp-content/plugins/elementor/includes/autoloader.php on line 300
=> $render_html,
];
}
/**
* Ajax get WordPress widget form.
*
* Ajax handler for Elementor editor get_wp_widget_form.
*
* Fired by `wp_ajax_elementor_editor_get_wp_widget_form` action.
*
* @since 1.0.0
* @access public
*
* @param array $request Ajax request.
*
* @return bool|string Rendered widget form.
* @throws \Exception If current user don't have permissions to edit the post.
*/
public function ajax_get_wp_widget_form( $request ) {
Plugin::$instance->documents->check_permissions( $request['editor_post_id'] );
if ( empty( $request['widget_type'] ) ) {
return false;
}
if ( empty( $request['data'] ) ) {
$request['data'] = [];
}
$element_data = [
'id' => $request['id'],
'elType' => 'widget',
'widgetType' => $request['widget_type'],
'settings' => $request['data'],
];
/**
* @var $widget_obj Widget_WordPress
*/
$widget_obj = Plugin::$instance->elements_manager->create_element_instance( $element_data );
if ( ! $widget_obj ) {
return false;
}
return $widget_obj->get_form();
}
/**
* Render widgets content.
*
* Used to generate the widget templates on the editor using Underscore JS
* template, for all the registered widget types.
*
* @since 1.0.0
* @access public
*/
public function render_widgets_content() {
foreach ( $this->get_widget_types() as $widget ) {
$widget->print_template();
}
}
/**
* Get widgets frontend settings keys.
*
* Retrieve frontend controls settings keys for all the registered widget
* types.
*
* @since 1.3.0
* @access public
*
* @return array Registered widget types with settings keys for each widget.
*/
public function get_widgets_frontend_settings_keys() {
$keys = [];
foreach ( $this->get_widget_types() as $widget_type_name => $widget_type ) {
$widget_type_keys = $widget_type->get_frontend_settings_keys();
if ( $widget_type_keys ) {
$keys[ $widget_type_name ] = $widget_type_keys;
}
}
return $keys;
}
/**
* Widgets with styles.
*
* This method returns the list of all the widgets in the `/includes/`
* folder that have styles.
*
* @since 3.24.0
* @access public
*
* @return array The names of the widgets that have styles.
*/
public function widgets_with_styles(): array {
return [
'counter',
'divider',
'google_maps',
'heading',
'image',
'image-carousel',
'menu-anchor',
'rating',
'social-icons',
'spacer',
'testimonial',
'text-editor',
'video',
];
}
/**
* Widgets with responsive styles.
*
* This method returns the list of all the widgets in the `/includes/`
* folder that have responsive styles.
*
* @since 3.24.0
* @access public
*
* @return array The names of the widgets that have responsive styles.
*/
public function widgets_with_responsive_styles(): array {
return [
'accordion',
'alert',
'icon-box',
'icon-list',
'image-box',
'image-gallery',
'progress',
'star-rating',
'tabs',
'toggle',
];
}
/**
* Enqueue widgets scripts.
*
* Enqueue all the scripts defined as a dependency for each widget.
*
* @since 1.3.0
* @access public
*/
public function enqueue_widgets_scripts() {
foreach ( $this->get_widget_types() as $widget ) {
$widget->enqueue_scripts();
}
}
public function register_frontend_handlers() {
foreach ( $this->get_widget_types() as $widget ) {
$widget->register_frontend_handlers();
}
}
/**
* Enqueue widgets styles
*
* Enqueue all the styles defined as a dependency for each widget
*
* @access public
*/
public function enqueue_widgets_styles() {
foreach ( $this->get_widget_types() as $widget ) {
$widget->enqueue_styles();
}
}
/**
* Retrieve inline editing configuration.
*
* Returns general inline editing configurations like toolbar types etc.
*
* @access public
* @since 1.8.0
*
* @return array {
* Inline editing configuration.
*
* @type array $toolbar {
* Toolbar types and the actions each toolbar includes.
* Note: Wysiwyg controls uses the advanced toolbar, textarea controls
* uses the basic toolbar and text controls has no toolbar.
*
* @type array $basic Basic actions included in the edit tool.
* @type array $advanced Advanced actions included in the edit tool.
* }
* }
*/
public function get_inline_editing_config() {
$basic_tools = [
'bold',
'underline',
'italic',
];
$advanced_tools = array_merge( $basic_tools, [
'createlink',
'unlink',
'h1' => [
'h1',
'h2',
'h3',
'h4',
'h5',
'h6',
'p',
'blockquote',
'pre',
],
'list' => [
'insertOrderedList',
'insertUnorderedList',
],
] );
return [
'toolbar' => [
'basic' => $basic_tools,
'advanced' => $advanced_tools,
],
];
}
/**
* Widgets manager constructor.
*
* Initializing Elementor widgets manager.
*
* @since 1.0.0
* @access public
*/
public function __construct() {
$this->require_files();
add_action( 'elementor/ajax/register_actions', [ $this, 'register_ajax_actions' ] );
}
/**
* Register ajax actions.
*
* Add new actions to handle data after an ajax requests returned.
*
* @since 2.0.0
* @access public
*
* @param Ajax $ajax_manager
*/
public function register_ajax_actions( Ajax $ajax_manager ) {
$ajax_manager->register_ajax_action( 'render_widget', [ $this, 'ajax_render_widget' ] );
$ajax_manager->register_ajax_action( 'editor_get_wp_widget_form', [ $this, 'ajax_get_wp_widget_form' ] );
$ajax_manager->register_ajax_action( 'get_widgets_config', [ $this, 'ajax_get_widget_types_controls_config' ] );
$ajax_manager->register_ajax_action( 'refresh_widgets_config', [ $this, 'ajax_refresh_widgets_config' ] );
$ajax_manager->register_ajax_action( 'get_widgets_default_value_translations', function ( array $data ) {
return $this->ajax_get_widgets_default_value_translations( $data );
} );
}
/**
* @param string $experiment_name
* @param array $classes
* @return void
*/
public function register_promoted_active_widgets( string $experiment_name, array $classes ): void {
if ( ! Plugin::$instance->experiments->is_feature_active( $experiment_name ) || empty( $classes ) ) {
return;
}
foreach ( $classes as $class_name ) {
$this->register( new $class_name() );
}
}
}
Fatal error: Uncaught Error: Class "Elementor\Widgets_Manager" not found in /home/parkwood/public_html/wp-content/plugins/elementor/includes/plugin.php:693
Stack trace:
#0 /home/parkwood/public_html/wp-content/plugins/elementor/includes/plugin.php(623): Elementor\Plugin->init_components()
#1 /home/parkwood/public_html/wp-includes/class-wp-hook.php(341): Elementor\Plugin->init('')
#2 /home/parkwood/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array)
#3 /home/parkwood/public_html/wp-includes/plugin.php(522): WP_Hook->do_action(Array)
#4 /home/parkwood/public_html/wp-settings.php(771): do_action('init')
#5 /home/parkwood/public_html/wp-config.php(95): require_once('/home/parkwood/...')
#6 /home/parkwood/public_html/wp-load.php(50): require_once('/home/parkwood/...')
#7 /home/parkwood/public_html/wp-blog-header.php(13): require_once('/home/parkwood/...')
#8 /home/parkwood/public_html/index.php(17): require('/home/parkwood/...')
#9 {main}
thrown in /home/parkwood/public_html/wp-content/plugins/elementor/includes/plugin.php on line 693