| Server IP : 172.67.71.254 / Your IP : 216.73.216.4 Web Server : nginx/1.27.1 System : Linux in-5 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64 User : arabianexpress ( 1872) PHP Version : 8.0.30 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /storage/v9321/buzzbitesv3/public_html/wp-content/themes/bite/ |
Upload File : |
<?php
/**
* The main template file.
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
* Learn more: //codex.wordpress.org/Template_Hierarchy
*
* @package BITE
* @since BITE 1.0
*/
$bite_template = apply_filters( 'bite_filter_get_template_part', bite_blog_archive_get_template() );
if ( ! empty( $bite_template ) && 'index' != $bite_template ) {
get_template_part( $bite_template );
} else {
bite_storage_set( 'blog_archive', true );
get_header();
if ( have_posts() ) {
// Query params
$bite_stickies = is_home()
|| ( in_array( bite_get_theme_option( 'post_type' ), array( '', 'post' ) )
&& (int) bite_get_theme_option( 'parent_cat' ) == 0
)
? get_option( 'sticky_posts' )
: false;
$bite_post_type = bite_get_theme_option( 'post_type' );
$bite_args = array(
'blog_style' => bite_get_theme_option( 'blog_style' ),
'post_type' => $bite_post_type,
'taxonomy' => bite_get_post_type_taxonomy( $bite_post_type ),
'parent_cat' => bite_get_theme_option( 'parent_cat' ),
'posts_per_page' => bite_get_theme_option( 'posts_per_page' ),
'sticky' => bite_get_theme_option( 'sticky_style', 'inherit' ) == 'columns'
&& is_array( $bite_stickies )
&& count( $bite_stickies ) > 0
&& get_query_var( 'paged' ) < 1
);
bite_blog_archive_start();
do_action( 'bite_action_blog_archive_start' );
if ( is_author() ) {
do_action( 'bite_action_before_page_author' );
get_template_part( apply_filters( 'bite_filter_get_template_part', 'templates/author-page' ) );
do_action( 'bite_action_after_page_author' );
}
if ( bite_get_theme_option( 'show_filters', 0 ) ) {
do_action( 'bite_action_before_page_filters' );
bite_show_filters( $bite_args );
do_action( 'bite_action_after_page_filters' );
} else {
do_action( 'bite_action_before_page_posts' );
bite_show_posts( array_merge( $bite_args, array( 'cat' => $bite_args['parent_cat'] ) ) );
do_action( 'bite_action_after_page_posts' );
}
do_action( 'bite_action_blog_archive_end' );
bite_blog_archive_end();
} else {
if ( is_search() ) {
get_template_part( apply_filters( 'bite_filter_get_template_part', 'templates/content', 'none-search' ), 'none-search' );
} else {
get_template_part( apply_filters( 'bite_filter_get_template_part', 'templates/content', 'none-archive' ), 'none-archive' );
}
}
get_footer();
}