ngs 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;
}
/**
* 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();
}
}
/**
* 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( 'get_widgets_default_value_translations', function ( array $data ) {
return $this->ajax_get_widgets_default_value_translations( $data );
} );
}
/**
* @param $experiment_name
* @param $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/rahjooian/public_html/wp-content/plugins/elementor/includes/plugin.php:718
Stack trace:
#0 /home/rahjooian/public_html/wp-content/plugins/elementor/includes/plugin.php(647): Elementor\Plugin->init_components()
#1 /home/rahjooian/public_html/wp-includes/class-wp-hook.php(324): Elementor\Plugin->init('')
#2 /home/rahjooian/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#3 /home/rahjooian/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#4 /home/rahjooian/public_html/wp-settings.php(643): do_action('init')
#5 /home/rahjooian/public_html/wp-config.php(168): require_once('/home/rahjooian...')
#6 /home/rahjooian/public_html/wp-load.php(50): require_once('/home/rahjooian...')
#7 /home/rahjooian/public_html/wp-blog-header.php(13): require_once('/home/rahjooian...')
#8 /home/rahjooian/public_html/index.php(17): require('/home/rahjooian...')
#9 {main}
thrown in /home/rahjooian/public_html/wp-content/plugins/elementor/includes/plugin.php on line 718