__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
// phpcs:disable Generic.Classes.DuplicateClassName.Found -- sitemap-builder.php will require correct class file.
/**
* Sitemaps (per the protocol) are essentially lists of XML fragments;
* lists which are subject to size constraints. The Jetpack_Sitemap_Buffer_Image
* extends the Jetpack_Sitemap_Buffer class to represent the single image sitemap
* buffer.
*
* @since 5.3.0
* @package automattic/jetpack
*/
/**
* A buffer for constructing sitemap image xml files for users that have no libxml support.
*
* @since 5.3.0
*/
class Jetpack_Sitemap_Buffer_Image extends Jetpack_Sitemap_Buffer_Fallback {
/**
* Returns a DOM element that contains all image sitemap elements.
*/
protected function get_root_element() {
if ( ! isset( $this->root ) ) {
/**
* Filter the XML namespaces included in image sitemaps.
*
* @module sitemaps
*
* @since 4.8.0
*
* @param array $namespaces Associative array with namespaces and namespace URIs.
*/
$namespaces = apply_filters(
'jetpack_sitemap_image_ns',
array(
'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance',
'xsi:schemaLocation' => 'http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd',
'xmlns' => 'http://www.sitemaps.org/schemas/sitemap/0.9',
'xmlns:image' => 'http://www.google.com/schemas/sitemap-image/1.1',
)
);
$sitemap_xsl_url = $this->finder->construct_sitemap_url( 'sitemap.xsl' );
$jetpack_version = JETPACK__VERSION;
$this->root = array(
"<!-- generator='jetpack-{$jetpack_version}' -->" . PHP_EOL
. "<?xml-stylesheet type='text/xsl' href='{$sitemap_xsl_url}'?>" . PHP_EOL
. '<urlset ' . $this->array_to_xml_attr_string( $namespaces ) . '>' . PHP_EOL,
'</urlset>',
);
$this->byte_capacity -= strlen( implode( '', $this->root ) );
}
return $this->root;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| sitemap-buffer-fallback.php | File | 4.04 KB | 0644 |
|
| sitemap-buffer-image-fallback.php | File | 1.95 KB | 0644 |
|
| sitemap-buffer-image.php | File | 2.57 KB | 0644 |
|
| sitemap-buffer-master-fallback.php | File | 1.32 KB | 0644 |
|
| sitemap-buffer-master.php | File | 1.9 KB | 0644 |
|
| sitemap-buffer-news-fallback.php | File | 1.97 KB | 0644 |
|
| sitemap-buffer-news.php | File | 2.58 KB | 0644 |
|
| sitemap-buffer-page-fallback.php | File | 1.88 KB | 0644 |
|
| sitemap-buffer-page.php | File | 2.5 KB | 0644 |
|
| sitemap-buffer-video-fallback.php | File | 1.96 KB | 0644 |
|
| sitemap-buffer-video.php | File | 2.57 KB | 0644 |
|
| sitemap-buffer.php | File | 8.01 KB | 0644 |
|
| sitemap-builder.php | File | 39.82 KB | 0644 |
|
| sitemap-constants.php | File | 5.66 KB | 0644 |
|
| sitemap-finder.php | File | 2.95 KB | 0644 |
|
| sitemap-librarian.php | File | 11.59 KB | 0644 |
|
| sitemap-logger.php | File | 2.34 KB | 0644 |
|
| sitemap-state.php | File | 4.23 KB | 0644 |
|
| sitemap-stylist.php | File | 20.49 KB | 0644 |
|
| sitemaps.php | File | 17.92 KB | 0644 |
|