cles'; } if ( ! empty( $element['settings']['eael_parallax_switcher'] ) ) { $list['section-parallax'] = 'section-parallax'; } } else { if ( ! empty( $element['settings']['eael_tooltip_section_enable'] ) ) { $list['tooltip-section'] = 'tooltip-section'; } if ( ! empty( $element['settings']['eael_ext_content_protection'] ) ) { $list['content-protection'] = 'content-protection'; } } if ( ! empty( $element['settings']['eael_wrapper_link_switch'] ) ) { $list['wrapper-link'] = 'wrapper-link'; } if ( ! empty( $element['settings']['eael_enable_custom_cursor'] ) || ! empty( $element['settings']['eael_cursor_trail_show'] ) ) { $list['custom-cursor'] = 'custom-cursor'; } if ( ! empty( $element['settings']['eael_ext_advanced_dynamic_tags'] ) ) { $list['advanced-dynamic-tags'] = 'advanced-dynamic-tags'; } //Smooth Animation if ( ! empty( $element['settings']['eael_smooth_animation_section'] ) ) { $list['smooth-animation'] = 'smooth-animation'; } //Hover Interactions if ( ! empty( $element['settings']['eael_hover_effect_switch'] ) ) { $list['special-hover-effect'] = 'special-hover-effect'; } //Liquid Glass Effects if ( ! empty( $element['settings']['eael_liquid_glass_effect_switch'] ) ) { $list['liquid-glass-effect'] = 'liquid-glass-effect'; } // Vertical Text Orientation if ( ! empty( $element['settings']['eael_vertical_text_orientation_switch'] ) ) { $list['vertical-text-orientation'] = 'vertical-text-orientation'; } //Image Masking if ( ! empty( $element['settings']['eael_enable_image_masking'] ) ) { $list['image-masking'] = 'image-masking'; } //Advanced Slider if ( ! empty( $element['settings']['eael_enable_advanced_slider'] ) ) { $list['advanced-slider'] = 'advanced-slider'; } return $list; } /* * replace_widget_name * Added backward compatibility */ public static function replace_widget_name() { return [ 'eicon-woocommerce' => 'eael-product-grid', 'eael-countdown' => 'eael-count-down', 'eael-creative-button' => 'eael-creative-btn', 'eael-team-member' => 'eael-team-members', 'eael-testimonial' => 'eael-testimonials', 'eael-weform' => 'eael-weforms', 'eael-cta-box' => 'eael-call-to-action', 'eael-dual-color-header' => 'eael-dual-header', 'eael-pricing-table' => 'eael-price-table', 'eael-filterable-gallery' => 'eael-filter-gallery', 'eael-one-page-nav' => 'eael-one-page-navigation', 'eael-interactive-card' => 'eael-interactive-cards', 'eael-image-comparison' => 'eael-img-comparison', 'eael-dynamic-filterable-gallery' => 'eael-dynamic-filter-gallery', 'eael-google-map' => 'eael-adv-google-map', 'eael-instafeed' => 'eael-instagram-gallery', 'eael-ninja' => 'eael-ninja-form', ]; } /** * save_widgets_list * save widget list and custom js data in option table * @param int $post_id * @param array $list * @param string $custom_js * * @return bool|mixed */ public function save_widgets_list( $post_id, $list, $custom_js = '' ) { if ( \defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { return $post_id; } $documents = is_object( Plugin::$instance->documents ) ? Plugin::$instance->documents->get( $post_id ) : []; if ( ! in_array( get_post_status( $post_id ), [ 'publish', 'private' ] ) || ( is_object( $documents ) && ! $documents->is_built_with_elementor() ) ) { return false; } if ( in_array( get_post_meta( $post_id, '_elementor_template_type', true ), $this->excluded_template_type() ) ) { return false; } if ( $custom_js !== false ) { update_post_meta( $post_id, '_eael_custom_js', $custom_js ); } if ( md5( implode( '', (array) $list ) ) == md5( implode( '', (array) get_post_meta( $post_id, self::ELEMENT_KEY, true ) ) ) ) { return false; } try { update_post_meta( $post_id, self::ELEMENT_KEY, $list ); $this->remove_files( $post_id ); if ( $this->has_exist( $post_id ) ) { $this->update_asset( $post_id, $list ); } return true; } catch ( \Exception $e ) { return false; } } /** * generate_script * create js/css file as per widget loaded in page * @param int $post_id * @param array $elements * @param string $context * @param string $ext */ public function generate_script( $post_id, $elements, $context, $ext ) { // if folder not exists, create new folder if ( ! file_exists( EAEL_ASSET_PATH ) ) { wp_mkdir_p( EAEL_ASSET_PATH ); } // naming asset file $file_name = 'eael' . ( $post_id ? '-' . $post_id : '' ) . '.' . $ext; // output asset string $output = $this->generate_strings( $elements, $context, $ext ); // write to file $file_path = $this->safe_path( EAEL_ASSET_PATH . DIRECTORY_SEPARATOR . $file_name ); file_put_contents( $file_path, $output ); } /** * generate_strings * Load assets for inline loading * @param string $elements * @param string $context * @param string $ext * * @return string */ public function generate_strings( $elements, $context, $ext ) { $output = ''; $paths = $this->generate_dependency( $elements, $context, $ext ); if ( ! empty( $paths ) ) { foreach ( $paths as $path ) { $output .= file_get_contents( $this->safe_path( $path ) ); } } return $output; } /** * generate_dependency * Load core library for widget list which are defined on config.php file * @param array $elements * @param string $context * @param string $type * * @return array */ public function generate_dependency( $elements, $context, $type ) { $lib = [ 'view' => [], 'edit' => [] ]; $self = [ 'general' => [], 'view' => [], 'edit' => [] ]; if ( $type == 'js' ) { $self['general'][] = EAEL_PLUGIN_PATH . 'assets/front-end/js/view/general.min.js'; $self['edit'][] = EAEL_PLUGIN_PATH . 'assets/front-end/js/edit/promotion.min.js'; } else if ( $type == 'css' && ! $this->is_edit_mode() ) { $self['view'][] = EAEL_PLUGIN_PATH . "assets/front-end/css/view/general.min.css"; } foreach ( $elements as $element ) { if ( isset( $this->registered_elements[ $element ] ) ) { if ( ! empty( $this->registered_elements[ $element ]['dependency'][ $type ] ) ) { foreach ( $this->registered_elements[ $element ]['dependency'][ $type ] as $file ) { if ( ! empty( $file['type'] ) && ! empty( $file['context'] ) && ! empty( $file['file'] ) ) { ${$file['type']}[ $file['context'] ][] = $file['file']; } } } } elseif ( isset( $this->registered_extensions[ $element ] ) ) { if ( ! empty( $this->registered_extensions[ $element ]['dependency'][ $type ] ) ) { foreach ( $this->registered_extensions[ $element ]['dependency'][ $type ] as $file ) { if ( ! empty( $file['type'] ) && ! empty( $file['context'] ) && ! empty( $file['file'] ) ) { ${$file['type']}[ $file['context'] ][] = $file['file']; } } } } } if ( $context == 'view' ) { return array_unique( array_merge( $lib['view'], $self['view'] ) ); } return array_unique( array_merge( $lib['view'], $lib['edit'], $self['edit'], $self['view'] ) ); } /** * has_exist * @param $post_id * check widget list already saved in option table weather load or not * @return bool */ public function has_exist( $post_id ) { $status = get_post_meta( $post_id, self::ELEMENT_KEY, true ); return ! empty( $status ); } /** * update_asset * @param int $post_id * @param $elements */ public function update_asset( $post_id, $elements ) { if ( $this->css_print_method != 'internal' ) { $this->generate_script( $post_id, $elements, 'view', 'css' ); } if ( $this->js_print_method != 'internal' ) { $this->generate_script( $post_id, $elements, 'view', 'js' ); } } /** * excluded_template_type * @return string[] */ public function excluded_template_type() { return [ 'kit', ]; } }
Fatal error: Uncaught Error: Class "Essential_Addons_Elementor\Classes\Elements_Manager" not found in /htdocs/westingenieriegn.com/wp-content/plugins/essential-addons-for-elementor-lite/includes/Classes/Asset_Builder.php:85 Stack trace: #0 /htdocs/westingenieriegn.com/wp-content/plugins/essential-addons-for-elementor-lite/includes/Classes/Bootstrap.php(132): Essential_Addons_Elementor\Classes\Asset_Builder->__construct(Array, Array) #1 /htdocs/westingenieriegn.com/wp-content/plugins/essential-addons-for-elementor-lite/includes/Classes/Bootstrap.php(89): Essential_Addons_Elementor\Classes\Bootstrap->__construct() #2 /htdocs/westingenieriegn.com/wp-content/plugins/essential-addons-for-elementor-lite/essential_adons_elementor.php(91): Essential_Addons_Elementor\Classes\Bootstrap::instance() #3 /htdocs/westingenieriegn.com/wp-includes/class-wp-hook.php(353): {closure}('') #4 /htdocs/westingenieriegn.com/wp-includes/class-wp-hook.php(377): WP_Hook->apply_filters(NULL, Array) #5 /htdocs/westingenieriegn.com/wp-includes/plugin.php(523): WP_Hook->do_action(Array) #6 /htdocs/westingenieriegn.com/wp-settings.php(630): do_action('plugins_loaded') #7 /htdocs/westingenieriegn.com/wp-config.php(91): require_once('/htdocs/westing...') #8 /htdocs/westingenieriegn.com/wp-load.php(50): require_once('/htdocs/westing...') #9 /htdocs/westingenieriegn.com/wp-blog-header.php(13): require_once('/htdocs/westing...') #10 /htdocs/westingenieriegn.com/index.php(17): require('/htdocs/westing...') #11 {main} thrown in /htdocs/westingenieriegn.com/wp-content/plugins/essential-addons-for-elementor-lite/includes/Classes/Asset_Builder.php on line 85