File manager - Edit - /home/verseaumee/middletvnew/wp-content/themes/mediaflex/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 MEDIAFLEX * @since MEDIAFLEX 1.0 */ $mediaflex_template = apply_filters( 'mediaflex_filter_get_template_part', mediaflex_blog_archive_get_template() ); if ( ! empty( $mediaflex_template ) && 'index' != $mediaflex_template ) { get_template_part( $mediaflex_template ); } else { mediaflex_storage_set( 'blog_archive', true ); get_header(); if ( have_posts() ) { // Query params $mediaflex_stickies = is_home() || ( in_array( mediaflex_get_theme_option( 'post_type' ), array( '', 'post' ) ) && (int) mediaflex_get_theme_option( 'parent_cat' ) == 0 ) ? get_option( 'sticky_posts' ) : false; $mediaflex_post_type = mediaflex_get_theme_option( 'post_type' ); $mediaflex_args = array( 'blog_style' => mediaflex_get_theme_option( 'blog_style' ), 'post_type' => $mediaflex_post_type, 'taxonomy' => mediaflex_get_post_type_taxonomy( $mediaflex_post_type ), 'parent_cat' => mediaflex_get_theme_option( 'parent_cat' ), 'posts_per_page' => mediaflex_get_theme_option( 'posts_per_page' ), 'sticky' => mediaflex_get_theme_option( 'sticky_style', 'inherit' ) == 'columns' && is_array( $mediaflex_stickies ) && count( $mediaflex_stickies ) > 0 && get_query_var( 'paged' ) < 1 ); mediaflex_blog_archive_start(); do_action( 'mediaflex_action_blog_archive_start' ); if ( is_author() ) { do_action( 'mediaflex_action_before_page_author' ); get_template_part( apply_filters( 'mediaflex_filter_get_template_part', 'templates/author-page' ) ); do_action( 'mediaflex_action_after_page_author' ); } if ( mediaflex_get_theme_option( 'show_filters', 0 ) ) { do_action( 'mediaflex_action_before_page_filters' ); mediaflex_show_filters( $mediaflex_args ); do_action( 'mediaflex_action_after_page_filters' ); } else { do_action( 'mediaflex_action_before_page_posts' ); mediaflex_show_posts( array_merge( $mediaflex_args, array( 'cat' => $mediaflex_args['parent_cat'] ) ) ); do_action( 'mediaflex_action_after_page_posts' ); } do_action( 'mediaflex_action_blog_archive_end' ); mediaflex_blog_archive_end(); } else { if ( is_search() ) { get_template_part( apply_filters( 'mediaflex_filter_get_template_part', 'templates/content', 'none-search' ), 'none-search' ); } else { get_template_part( apply_filters( 'mediaflex_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