rl, ], ]; $settings['settings'] = SettingsManager::get_settings_frontend_config(); $kit = Plugin::$instance->kits_manager->get_active_kit_for_frontend(); $settings['kit'] = $kit->get_frontend_settings(); if ( is_singular() ) { $post = get_post(); $title = Utils::urlencode_html_entities( wp_get_document_title() ); // Try to use the 'large' WP image size because the Pinterest share API // has problems accepting shares with large images sometimes, and the WP 'large' thumbnail is // the largest default WP image size that will probably not be changed in most sites $featured_image_url = get_the_post_thumbnail_url( null, 'large' ); // If the large size was nullified, use the full size which cannot be nullified/deleted if ( ! $featured_image_url ) { $featured_image_url = get_the_post_thumbnail_url( null, 'full' ); } $settings['post'] = [ 'id' => $post->ID, 'title' => $title, 'excerpt' => $post->post_excerpt, 'featuredImage' => $featured_image_url, ]; } else { $settings['post'] = [ 'id' => 0, 'title' => wp_get_document_title(), 'excerpt' => get_the_archive_description(), ]; } $empty_object = (object) []; if ( $is_preview_mode ) { $settings['elements'] = [ 'data' => $empty_object, 'editSettings' => $empty_object, 'keys' => $empty_object, ]; } if ( is_user_logged_in() ) { $user = wp_get_current_user(); if ( ! empty( $user->roles ) ) { $settings['user'] = [ 'roles' => $user->roles, ]; } } return $settings; } /** * Restore content filters. * * Restore removed WordPress filters that conflicted with Elementor. * * @since 1.5.0 * @access public */ public function restore_content_filters() { foreach ( $this->content_removed_filters as $filter ) { add_filter( 'the_content', $filter ); } $this->content_removed_filters = []; } /** * Process More Tag * * Respect the native WP () tag * * @access private * @since 2.0.4 * * @param $content * * @return string */ private function process_more_tag( $content ) { $post = get_post(); $content = str_replace( '<!--more-->', '', $content ); $parts = get_extended( $content ); if ( empty( $parts['extended'] ) ) { return $content; } if ( is_singular() ) { return $parts['main'] . '
' . $parts['extended']; } if ( empty( $parts['more_text'] ) ) { $parts['more_text'] = esc_html__( '(more…)', 'elementor' ); } $more_link_text = sprintf( '%2$s', sprintf( /* translators: %s: Current post name. */ __( 'Continue reading %s', 'elementor' ), the_title_attribute( [ 'echo' => false, ] ) ), $parts['more_text'] ); $more_link = sprintf( ' %s', get_permalink(), $post->ID, $more_link_text ); /** * The content "more" link. * * Filters the "more" link displayed after the content. * * This hook can be used either to change the link syntax or to change the * text inside the link. * * @since 2.0.4 * * @param string $more_link The more link. * @param string $more_link_text The text inside the more link. */ $more_link = apply_filters( 'the_content_more_link', $more_link, $more_link_text ); return force_balance_tags( $parts['main'] ) . $more_link; } private function is_improved_assets_loading() { return Plugin::$instance->experiments->is_feature_active( 'e_optimized_assets_loading' ); } private function get_elementor_frontend_dependencies() { $dependencies = [ 'elementor-frontend-modules', 'elementor-waypoints', 'jquery-ui-position', ]; if ( ! $this->is_improved_assets_loading() ) { wp_register_script( 'swiper', $this->get_js_assets_url( 'swiper', 'assets/lib/swiper/' ), [], '5.3.6', true ); $dependencies[] = 'swiper'; $dependencies[] = 'share-link'; $dependencies[] = 'elementor-dialog'; } return $dependencies; } private function is_optimized_css_mode() { $is_optimized_css_loading = Plugin::$instance->experiments->is_feature_active( 'e_optimized_css_loading' ); return ! Utils::is_script_debug() && $is_optimized_css_loading && ! Plugin::$instance->preview->is_preview_mode(); } }
Fatal error: Uncaught Error: Class 'Elementor\Frontend' not found in /home/ocb/public_html/wp-content/plugins/elementor/includes/plugin.php:716 Stack trace: #0 /home/ocb/public_html/wp-content/plugins/elementor/includes/plugin.php(636): Elementor\Plugin->init_components() #1 /home/ocb/public_html/wp-includes/class-wp-hook.php(324): Elementor\Plugin->init('') #2 /home/ocb/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #3 /home/ocb/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #4 /home/ocb/public_html/wp-settings.php(700): do_action('init') #5 /home/ocb/public_html/wp-config.php(77): require_once('/home/ocb/publi...') #6 /home/ocb/public_html/wp-load.php(50): require_once('/home/ocb/publi...') #7 /home/ocb/public_html/wp-blog-header.php(13): require_once('/home/ocb/publi...') #8 /home/ocb/public_html/index.php(17): require('/home/ocb/publi...') #9 {main} thrown in /home/ocb/public_html/wp-content/plugins/elementor/includes/plugin.php on line 716