File manager - Edit - /home/verseaumee/blueversionx/wp-content/themes/stargaze/index.php
Back
<?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 STARGAZE * @since STARGAZE 1.0 */ $stargaze_template = apply_filters( 'stargaze_filter_get_template_part', stargaze_blog_archive_get_template() ); if ( ! empty( $stargaze_template ) && 'index' != $stargaze_template ) { get_template_part( $stargaze_template ); } else { stargaze_storage_set( 'blog_archive', true ); get_header(); if ( have_posts() ) { // Query params $stargaze_stickies = is_home() || ( in_array( stargaze_get_theme_option( 'post_type' ), array( '', 'post' ) ) && (int) stargaze_get_theme_option( 'parent_cat' ) == 0 ) ? get_option( 'sticky_posts' ) : false; $stargaze_post_type = stargaze_get_theme_option( 'post_type' ); $stargaze_args = array( 'blog_style' => stargaze_get_theme_option( 'blog_style' ), 'post_type' => $stargaze_post_type, 'taxonomy' => stargaze_get_post_type_taxonomy( $stargaze_post_type ), 'parent_cat' => stargaze_get_theme_option( 'parent_cat' ), 'posts_per_page' => stargaze_get_theme_option( 'posts_per_page' ), 'sticky' => stargaze_get_theme_option( 'sticky_style' ) == 'columns' && is_array( $stargaze_stickies ) && count( $stargaze_stickies ) > 0 && get_query_var( 'paged' ) < 1 ); stargaze_blog_archive_start(); do_action( 'stargaze_action_blog_archive_start' ); if ( is_author() ) { do_action( 'stargaze_action_before_page_author' ); get_template_part( apply_filters( 'stargaze_filter_get_template_part', 'templates/author-page' ) ); do_action( 'stargaze_action_after_page_author' ); } if ( stargaze_get_theme_option( 'show_filters' ) ) { do_action( 'stargaze_action_before_page_filters' ); stargaze_show_filters( $stargaze_args ); do_action( 'stargaze_action_after_page_filters' ); } else { do_action( 'stargaze_action_before_page_posts' ); stargaze_show_posts( array_merge( $stargaze_args, array( 'cat' => $stargaze_args['parent_cat'] ) ) ); do_action( 'stargaze_action_after_page_posts' ); } do_action( 'stargaze_action_blog_archive_end' ); stargaze_blog_archive_end(); } else { if ( is_search() ) { get_template_part( apply_filters( 'stargaze_filter_get_template_part', 'templates/content', 'none-search' ), 'none-search' ); } else { get_template_part( apply_filters( 'stargaze_filter_get_template_part', 'templates/content', 'none-archive' ), 'none-archive' ); } } get_footer(); }
| ver. 1.4 |
Github
|
.
| PHP 8.5.7 | Generation time: 0 |
proxy
|
phpinfo
|
Settings