芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/optimyar/wp-content/plugins/elementskit-lite/modules/controls/widget-area-utils.php
frontend->get_builder_content_for_display( $post_id ), $post_id ) ); } else { echo esc_html__( 'Click on the Edit Content button to edit/add the content.', 'elementskit-lite' ); } wp_die(); } public function modal_content() { ob_start(); ?>
ID ) ? $builder_post->ID : null; if ( ! $post_id ) { $builder_post_title = 'dynamic-content-widget-' . $extract_key . '-' . $index; $builder_post = \ElementsKit_Lite\Utils::get_page_by_title( $builder_post_title, 'elementskit_content' ); } if ( $isAjax === 'yes' ) { $post_id = isset( $builder_post->ID ) ? $builder_post->ID : ''; echo '
'; } else { ?>
ID ) ) { $builder_post_id = $builder_post->ID; // if wpml is active, get the post id from wpml if( defined( 'ICL_SITEPRESS_VERSION' ) ) { $language_details = apply_filters( 'wpml_post_language_details', NULL, get_the_ID() ); if( !is_wp_error($language_details) ) { $builder_post_id = apply_filters( 'wpml_object_id', $builder_post_id, 'elementskit_content', true, $language_details['language_code'] ); } } $builder_content = $elementor->frontend->get_builder_content_for_display($builder_post_id); $rendered_tab_content = \ElementsKit_Lite\Utils::render_tab_content($builder_content, $builder_post_id); // Remove '#elementor' from the rendered content, except when it's part of 'href="#elementor"' $final_content = preg_replace('/(?