@@ 246-254 (lines=9) @@ | ||
243 | } |
|
244 | ||
245 | // Catch sitemap xml. |
|
246 | if ( preg_match( $regex['sitemap'], $request['sitemap_name'] ) ) { |
|
247 | $this->serve_raw_and_die( |
|
248 | $xml_content_type, |
|
249 | $this->librarian->get_sitemap_text( |
|
250 | $request['sitemap_name'], |
|
251 | JP_PAGE_SITEMAP_TYPE |
|
252 | ) |
|
253 | ); |
|
254 | } |
|
255 | ||
256 | // Catch sitemap index xml. |
|
257 | if ( preg_match( $regex['index'], $request['sitemap_name'] ) ) { |
|
@@ 257-265 (lines=9) @@ | ||
254 | } |
|
255 | ||
256 | // Catch sitemap index xml. |
|
257 | if ( preg_match( $regex['index'], $request['sitemap_name'] ) ) { |
|
258 | $this->serve_raw_and_die( |
|
259 | $xml_content_type, |
|
260 | $this->librarian->get_sitemap_text( |
|
261 | $request['sitemap_name'], |
|
262 | JP_PAGE_SITEMAP_INDEX_TYPE |
|
263 | ) |
|
264 | ); |
|
265 | } |
|
266 | ||
267 | // Catch sitemap xsl. |
|
268 | if ( preg_match( $regex['sitemap-style'], $request['sitemap_name'] ) ) { |
|
@@ 284-292 (lines=9) @@ | ||
281 | } |
|
282 | ||
283 | // Catch image sitemap xml. |
|
284 | if ( preg_match( $regex['image'], $request['sitemap_name'] ) ) { |
|
285 | $this->serve_raw_and_die( |
|
286 | $xml_content_type, |
|
287 | $this->librarian->get_sitemap_text( |
|
288 | $request['sitemap_name'], |
|
289 | JP_IMAGE_SITEMAP_TYPE |
|
290 | ) |
|
291 | ); |
|
292 | } |
|
293 | ||
294 | // Catch image sitemap index xml. |
|
295 | if ( preg_match( $regex['image-index'], $request['sitemap_name'] ) ) { |
|
@@ 295-303 (lines=9) @@ | ||
292 | } |
|
293 | ||
294 | // Catch image sitemap index xml. |
|
295 | if ( preg_match( $regex['image-index'], $request['sitemap_name'] ) ) { |
|
296 | $this->serve_raw_and_die( |
|
297 | $xml_content_type, |
|
298 | $this->librarian->get_sitemap_text( |
|
299 | $request['sitemap_name'], |
|
300 | JP_IMAGE_SITEMAP_INDEX_TYPE |
|
301 | ) |
|
302 | ); |
|
303 | } |
|
304 | ||
305 | // Catch image sitemap xsl. |
|
306 | if ( preg_match( $regex['image-style'], $request['sitemap_name'] ) ) { |
|
@@ 314-322 (lines=9) @@ | ||
311 | } |
|
312 | ||
313 | // Catch video sitemap xml. |
|
314 | if ( preg_match( $regex['video'], $request['sitemap_name'] ) ) { |
|
315 | $this->serve_raw_and_die( |
|
316 | $xml_content_type, |
|
317 | $this->librarian->get_sitemap_text( |
|
318 | $request['sitemap_name'], |
|
319 | JP_VIDEO_SITEMAP_TYPE |
|
320 | ) |
|
321 | ); |
|
322 | } |
|
323 | ||
324 | // Catch video sitemap index xml. |
|
325 | if ( preg_match( $regex['video-index'], $request['sitemap_name'] ) ) { |
|
@@ 325-333 (lines=9) @@ | ||
322 | } |
|
323 | ||
324 | // Catch video sitemap index xml. |
|
325 | if ( preg_match( $regex['video-index'], $request['sitemap_name'] ) ) { |
|
326 | $this->serve_raw_and_die( |
|
327 | $xml_content_type, |
|
328 | $this->librarian->get_sitemap_text( |
|
329 | $request['sitemap_name'], |
|
330 | JP_VIDEO_SITEMAP_INDEX_TYPE |
|
331 | ) |
|
332 | ); |
|
333 | } |
|
334 | ||
335 | // Catch video sitemap xsl. |
|
336 | if ( preg_match( $regex['video-style'], $request['sitemap_name'] ) ) { |