@@ 221-229 (lines=9) @@ | ||
218 | } |
|
219 | ||
220 | // Catch sitemap xml. |
|
221 | if ( preg_match( $regex['sitemap'], $request['sitemap_name'] ) ) { |
|
222 | $this->serve_raw_and_die( |
|
223 | $xml_content_type, |
|
224 | $this->librarian->get_sitemap_text( |
|
225 | $request['sitemap_name'], |
|
226 | JP_PAGE_SITEMAP_TYPE |
|
227 | ) |
|
228 | ); |
|
229 | } |
|
230 | ||
231 | // Catch sitemap index xml. |
|
232 | if ( preg_match( $regex['index'], $request['sitemap_name'] ) ) { |
|
@@ 232-240 (lines=9) @@ | ||
229 | } |
|
230 | ||
231 | // Catch sitemap index xml. |
|
232 | if ( preg_match( $regex['index'], $request['sitemap_name'] ) ) { |
|
233 | $this->serve_raw_and_die( |
|
234 | $xml_content_type, |
|
235 | $this->librarian->get_sitemap_text( |
|
236 | $request['sitemap_name'], |
|
237 | JP_PAGE_SITEMAP_INDEX_TYPE |
|
238 | ) |
|
239 | ); |
|
240 | } |
|
241 | ||
242 | // Catch sitemap xsl. |
|
243 | if ( preg_match( $regex['sitemap-style'], $request['sitemap_name'] ) ) { |
|
@@ 259-267 (lines=9) @@ | ||
256 | } |
|
257 | ||
258 | // Catch image sitemap xml. |
|
259 | if ( preg_match( $regex['image'], $request['sitemap_name'] ) ) { |
|
260 | $this->serve_raw_and_die( |
|
261 | $xml_content_type, |
|
262 | $this->librarian->get_sitemap_text( |
|
263 | $request['sitemap_name'], |
|
264 | JP_IMAGE_SITEMAP_TYPE |
|
265 | ) |
|
266 | ); |
|
267 | } |
|
268 | ||
269 | // Catch image sitemap index xml. |
|
270 | if ( preg_match( $regex['image-index'], $request['sitemap_name'] ) ) { |
|
@@ 270-278 (lines=9) @@ | ||
267 | } |
|
268 | ||
269 | // Catch image sitemap index xml. |
|
270 | if ( preg_match( $regex['image-index'], $request['sitemap_name'] ) ) { |
|
271 | $this->serve_raw_and_die( |
|
272 | $xml_content_type, |
|
273 | $this->librarian->get_sitemap_text( |
|
274 | $request['sitemap_name'], |
|
275 | JP_IMAGE_SITEMAP_INDEX_TYPE |
|
276 | ) |
|
277 | ); |
|
278 | } |
|
279 | ||
280 | // Catch image sitemap xsl. |
|
281 | if ( preg_match( $regex['image-style'], $request['sitemap_name'] ) ) { |
|
@@ 289-297 (lines=9) @@ | ||
286 | } |
|
287 | ||
288 | // Catch video sitemap xml. |
|
289 | if ( preg_match( $regex['video'], $request['sitemap_name'] ) ) { |
|
290 | $this->serve_raw_and_die( |
|
291 | $xml_content_type, |
|
292 | $this->librarian->get_sitemap_text( |
|
293 | $request['sitemap_name'], |
|
294 | JP_VIDEO_SITEMAP_TYPE |
|
295 | ) |
|
296 | ); |
|
297 | } |
|
298 | ||
299 | // Catch video sitemap index xml. |
|
300 | if ( preg_match( $regex['video-index'], $request['sitemap_name'] ) ) { |
|
@@ 300-308 (lines=9) @@ | ||
297 | } |
|
298 | ||
299 | // Catch video sitemap index xml. |
|
300 | if ( preg_match( $regex['video-index'], $request['sitemap_name'] ) ) { |
|
301 | $this->serve_raw_and_die( |
|
302 | $xml_content_type, |
|
303 | $this->librarian->get_sitemap_text( |
|
304 | $request['sitemap_name'], |
|
305 | JP_VIDEO_SITEMAP_INDEX_TYPE |
|
306 | ) |
|
307 | ); |
|
308 | } |
|
309 | ||
310 | // Catch video sitemap xsl. |
|
311 | if ( preg_match( $regex['video-style'], $request['sitemap_name'] ) ) { |