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