PATH:
home
/
lab2454c
/
mact34.com
/
wp-content
/
plugins
/
jetpack
/
modules
/
sitemaps
<?php /** * 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. * * @since 5.3.0 */ class Jetpack_Sitemap_Buffer_Image extends Jetpack_Sitemap_Buffer { public function __construct( $item_limit, $byte_limit, $time = '1970-01-01 00:00:00' ) { parent::__construct( $item_limit, $byte_limit, $time ); $this->doc->appendChild( $this->doc->createComment( "generator='jetpack-" . JETPACK__VERSION . "'" ) ); $this->doc->appendChild( $this->doc->createProcessingInstruction( 'xml-stylesheet', 'type="text/xsl" href="' . $this->finder->construct_sitemap_url( 'image-sitemap.xsl' ) . '"' ) ); } 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', ) ); $this->root = $this->doc->createElement( 'urlset' ); foreach ( $namespaces as $name => $value ) { $this->root->setAttribute( $name, $value ); } $this->doc->appendChild( $this->root ); $this->byte_capacity -= strlen( $this->doc->saveXML( $this->root ) ); } return $this->root; } }
[-] sitemap-constants.php
[edit]
[-] sitemap-buffer-video-fallback.php
[edit]
[-] sitemap-buffer-news.php
[edit]
[+]
..
[-] sitemap-logger.php
[edit]
[-] sitemap-buffer-master-fallback.php
[edit]
[-] sitemap-buffer-page-fallback.php
[edit]
[-] sitemaps.php
[edit]
[-] sitemap-buffer-image.php
[edit]
[-] sitemap-state.php
[edit]
[-] sitemap-builder.php
[edit]
[-] sitemap-buffer-video.php
[edit]
[-] sitemap-buffer-fallback.php
[edit]
[-] sitemap-stylist.php
[edit]
[-] sitemap-buffer-news-fallback.php
[edit]
[-] sitemap-finder.php
[edit]
[-] sitemap-buffer-master.php
[edit]
[-] sitemap-buffer.php
[edit]
[-] sitemap-buffer-image-fallback.php
[edit]
[-] sitemap-buffer-page.php
[edit]
[-] sitemap-librarian.php
[edit]