| @@ 209-217 (lines=9) @@ | ||
| 206 | } |
|
| 207 | ||
| 208 | // Catch sitemap xml. |
|
| 209 | if ( preg_match( $regex['sitemap'], $request['sitemap_name'] ) ) { |
|
| 210 | $this->serve_raw_and_die( |
|
| 211 | $xml_content_type, |
|
| 212 | $this->librarian->get_sitemap_text( |
|
| 213 | $request['sitemap_name'], |
|
| 214 | JP_PAGE_SITEMAP_TYPE |
|
| 215 | ) |
|
| 216 | ); |
|
| 217 | } |
|
| 218 | ||
| 219 | // Catch sitemap index xml. |
|
| 220 | if ( preg_match( $regex['index'], $request['sitemap_name'] ) ) { |
|
| @@ 220-228 (lines=9) @@ | ||
| 217 | } |
|
| 218 | ||
| 219 | // Catch sitemap index xml. |
|
| 220 | if ( preg_match( $regex['index'], $request['sitemap_name'] ) ) { |
|
| 221 | $this->serve_raw_and_die( |
|
| 222 | $xml_content_type, |
|
| 223 | $this->librarian->get_sitemap_text( |
|
| 224 | $request['sitemap_name'], |
|
| 225 | JP_PAGE_SITEMAP_INDEX_TYPE |
|
| 226 | ) |
|
| 227 | ); |
|
| 228 | } |
|
| 229 | ||
| 230 | // Catch sitemap xsl. |
|
| 231 | if ( preg_match( $regex['sitemap-style'], $request['sitemap_name'] ) ) { |
|
| @@ 247-255 (lines=9) @@ | ||
| 244 | } |
|
| 245 | ||
| 246 | // Catch image sitemap xml. |
|
| 247 | if ( preg_match( $regex['image'], $request['sitemap_name'] ) ) { |
|
| 248 | $this->serve_raw_and_die( |
|
| 249 | $xml_content_type, |
|
| 250 | $this->librarian->get_sitemap_text( |
|
| 251 | $request['sitemap_name'], |
|
| 252 | JP_IMAGE_SITEMAP_TYPE |
|
| 253 | ) |
|
| 254 | ); |
|
| 255 | } |
|
| 256 | ||
| 257 | // Catch image sitemap index xml. |
|
| 258 | if ( preg_match( $regex['image-index'], $request['sitemap_name'] ) ) { |
|
| @@ 258-266 (lines=9) @@ | ||
| 255 | } |
|
| 256 | ||
| 257 | // Catch image sitemap index xml. |
|
| 258 | if ( preg_match( $regex['image-index'], $request['sitemap_name'] ) ) { |
|
| 259 | $this->serve_raw_and_die( |
|
| 260 | $xml_content_type, |
|
| 261 | $this->librarian->get_sitemap_text( |
|
| 262 | $request['sitemap_name'], |
|
| 263 | JP_IMAGE_SITEMAP_INDEX_TYPE |
|
| 264 | ) |
|
| 265 | ); |
|
| 266 | } |
|
| 267 | ||
| 268 | // Catch image sitemap xsl. |
|
| 269 | if ( preg_match( $regex['image-style'], $request['sitemap_name'] ) ) { |
|
| @@ 277-285 (lines=9) @@ | ||
| 274 | } |
|
| 275 | ||
| 276 | // Catch video sitemap xml. |
|
| 277 | if ( preg_match( $regex['video'], $request['sitemap_name'] ) ) { |
|
| 278 | $this->serve_raw_and_die( |
|
| 279 | $xml_content_type, |
|
| 280 | $this->librarian->get_sitemap_text( |
|
| 281 | $request['sitemap_name'], |
|
| 282 | JP_VIDEO_SITEMAP_TYPE |
|
| 283 | ) |
|
| 284 | ); |
|
| 285 | } |
|
| 286 | ||
| 287 | // Catch video sitemap index xml. |
|
| 288 | if ( preg_match( $regex['video-index'], $request['sitemap_name'] ) ) { |
|
| @@ 288-296 (lines=9) @@ | ||
| 285 | } |
|
| 286 | ||
| 287 | // Catch video sitemap index xml. |
|
| 288 | if ( preg_match( $regex['video-index'], $request['sitemap_name'] ) ) { |
|
| 289 | $this->serve_raw_and_die( |
|
| 290 | $xml_content_type, |
|
| 291 | $this->librarian->get_sitemap_text( |
|
| 292 | $request['sitemap_name'], |
|
| 293 | JP_VIDEO_SITEMAP_INDEX_TYPE |
|
| 294 | ) |
|
| 295 | ); |
|
| 296 | } |
|
| 297 | ||
| 298 | // Catch video sitemap xsl. |
|
| 299 | if ( preg_match( $regex['video-style'], $request['sitemap_name'] ) ) { |
|