| @@ 215-223 (lines=9) @@ | ||
| 212 | } |
|
| 213 | ||
| 214 | // Catch sitemap xml. |
|
| 215 | if ( preg_match( $regex['sitemap'], $request['sitemap_name'] ) ) { |
|
| 216 | $this->serve_raw_and_die( |
|
| 217 | $xml_content_type, |
|
| 218 | $this->librarian->get_sitemap_text( |
|
| 219 | $request['sitemap_name'], |
|
| 220 | JP_PAGE_SITEMAP_TYPE |
|
| 221 | ) |
|
| 222 | ); |
|
| 223 | } |
|
| 224 | ||
| 225 | // Catch sitemap index xml. |
|
| 226 | if ( preg_match( $regex['index'], $request['sitemap_name'] ) ) { |
|
| @@ 226-234 (lines=9) @@ | ||
| 223 | } |
|
| 224 | ||
| 225 | // Catch sitemap index xml. |
|
| 226 | if ( preg_match( $regex['index'], $request['sitemap_name'] ) ) { |
|
| 227 | $this->serve_raw_and_die( |
|
| 228 | $xml_content_type, |
|
| 229 | $this->librarian->get_sitemap_text( |
|
| 230 | $request['sitemap_name'], |
|
| 231 | JP_PAGE_SITEMAP_INDEX_TYPE |
|
| 232 | ) |
|
| 233 | ); |
|
| 234 | } |
|
| 235 | ||
| 236 | // Catch sitemap xsl. |
|
| 237 | if ( preg_match( $regex['sitemap-style'], $request['sitemap_name'] ) ) { |
|
| @@ 253-261 (lines=9) @@ | ||
| 250 | } |
|
| 251 | ||
| 252 | // Catch image sitemap xml. |
|
| 253 | if ( preg_match( $regex['image'], $request['sitemap_name'] ) ) { |
|
| 254 | $this->serve_raw_and_die( |
|
| 255 | $xml_content_type, |
|
| 256 | $this->librarian->get_sitemap_text( |
|
| 257 | $request['sitemap_name'], |
|
| 258 | JP_IMAGE_SITEMAP_TYPE |
|
| 259 | ) |
|
| 260 | ); |
|
| 261 | } |
|
| 262 | ||
| 263 | // Catch image sitemap index xml. |
|
| 264 | if ( preg_match( $regex['image-index'], $request['sitemap_name'] ) ) { |
|
| @@ 264-272 (lines=9) @@ | ||
| 261 | } |
|
| 262 | ||
| 263 | // Catch image sitemap index xml. |
|
| 264 | if ( preg_match( $regex['image-index'], $request['sitemap_name'] ) ) { |
|
| 265 | $this->serve_raw_and_die( |
|
| 266 | $xml_content_type, |
|
| 267 | $this->librarian->get_sitemap_text( |
|
| 268 | $request['sitemap_name'], |
|
| 269 | JP_IMAGE_SITEMAP_INDEX_TYPE |
|
| 270 | ) |
|
| 271 | ); |
|
| 272 | } |
|
| 273 | ||
| 274 | // Catch image sitemap xsl. |
|
| 275 | if ( preg_match( $regex['image-style'], $request['sitemap_name'] ) ) { |
|
| @@ 283-291 (lines=9) @@ | ||
| 280 | } |
|
| 281 | ||
| 282 | // Catch video sitemap xml. |
|
| 283 | if ( preg_match( $regex['video'], $request['sitemap_name'] ) ) { |
|
| 284 | $this->serve_raw_and_die( |
|
| 285 | $xml_content_type, |
|
| 286 | $this->librarian->get_sitemap_text( |
|
| 287 | $request['sitemap_name'], |
|
| 288 | JP_VIDEO_SITEMAP_TYPE |
|
| 289 | ) |
|
| 290 | ); |
|
| 291 | } |
|
| 292 | ||
| 293 | // Catch video sitemap index xml. |
|
| 294 | if ( preg_match( $regex['video-index'], $request['sitemap_name'] ) ) { |
|
| @@ 294-302 (lines=9) @@ | ||
| 291 | } |
|
| 292 | ||
| 293 | // Catch video sitemap index xml. |
|
| 294 | if ( preg_match( $regex['video-index'], $request['sitemap_name'] ) ) { |
|
| 295 | $this->serve_raw_and_die( |
|
| 296 | $xml_content_type, |
|
| 297 | $this->librarian->get_sitemap_text( |
|
| 298 | $request['sitemap_name'], |
|
| 299 | JP_VIDEO_SITEMAP_INDEX_TYPE |
|
| 300 | ) |
|
| 301 | ); |
|
| 302 | } |
|
| 303 | ||
| 304 | // Catch video sitemap xsl. |
|
| 305 | if ( preg_match( $regex['video-style'], $request['sitemap_name'] ) ) { |
|