D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
etb1lp46s9ed
/
www
/
commercevedaacademy.com
/
wp-content
/
themes
/
learnify
/
Filename :
index.php
back
Copy
<?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 LEARNIFY * @since LEARNIFY 1.0 */ $learnify_template = apply_filters( 'learnify_filter_get_template_part', learnify_blog_archive_get_template() ); if ( ! empty( $learnify_template ) && 'index' != $learnify_template ) { get_template_part( $learnify_template ); } else { learnify_storage_set( 'blog_archive', true ); get_header(); if ( have_posts() ) { // Query params $learnify_stickies = is_home() || ( in_array( learnify_get_theme_option( 'post_type' ), array( '', 'post' ) ) && (int) learnify_get_theme_option( 'parent_cat' ) == 0 ) ? get_option( 'sticky_posts' ) : false; $learnify_post_type = learnify_get_theme_option( 'post_type' ); $learnify_args = array( 'blog_style' => learnify_get_theme_option( 'blog_style' ), 'post_type' => $learnify_post_type, 'taxonomy' => learnify_get_post_type_taxonomy( $learnify_post_type ), 'parent_cat' => learnify_get_theme_option( 'parent_cat' ), 'posts_per_page' => learnify_get_theme_option( 'posts_per_page' ), 'sticky' => learnify_get_theme_option( 'sticky_style', 'inherit' ) == 'columns' && is_array( $learnify_stickies ) && count( $learnify_stickies ) > 0 && get_query_var( 'paged' ) < 1 ); learnify_blog_archive_start(); do_action( 'learnify_action_blog_archive_start' ); if ( is_author() ) { do_action( 'learnify_action_before_page_author' ); get_template_part( apply_filters( 'learnify_filter_get_template_part', 'templates/author-page' ) ); do_action( 'learnify_action_after_page_author' ); } if ( learnify_get_theme_option( 'show_filters', 0 ) ) { do_action( 'learnify_action_before_page_filters' ); learnify_show_filters( $learnify_args ); do_action( 'learnify_action_after_page_filters' ); } else { do_action( 'learnify_action_before_page_posts' ); learnify_show_posts( array_merge( $learnify_args, array( 'cat' => $learnify_args['parent_cat'] ) ) ); do_action( 'learnify_action_after_page_posts' ); } do_action( 'learnify_action_blog_archive_end' ); learnify_blog_archive_end(); } else { if ( is_search() ) { get_template_part( apply_filters( 'learnify_filter_get_template_part', 'templates/content', 'none-search' ), 'none-search' ); } else { get_template_part( apply_filters( 'learnify_filter_get_template_part', 'templates/content', 'none-archive' ), 'none-archive' ); } } get_footer(); }