D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
etb1lp46s9ed
/
public_html
/
commercevedaacademy.com
/
wp-content
/
themes
/
learnify
/
Filename :
front-page.php
back
Copy
<?php /** * The Front Page template file. * * @package LEARNIFY * @since LEARNIFY 1.0.31 */ get_header(); // If front-page is a static page if ( get_option( 'show_on_front' ) == 'page' ) { // If Front Page Builder is enabled - display sections if ( learnify_is_on( learnify_get_theme_option( 'front_page_enabled', false ) ) ) { if ( have_posts() ) { the_post(); } $learnify_sections = learnify_array_get_keys_by_value( learnify_get_theme_option( 'front_page_sections' ) ); if ( is_array( $learnify_sections ) ) { foreach ( $learnify_sections as $learnify_section ) { get_template_part( apply_filters( 'learnify_filter_get_template_part', 'front-page/section', $learnify_section ), $learnify_section ); } } // Else if this page is a blog archive } elseif ( is_page_template( 'blog.php' ) ) { get_template_part( apply_filters( 'learnify_filter_get_template_part', 'blog' ) ); // Else - display a native page content } else { get_template_part( apply_filters( 'learnify_filter_get_template_part', 'page' ) ); } // Else get the template 'index.php' to show posts } else { get_template_part( apply_filters( 'learnify_filter_get_template_part', 'index' ) ); } get_footer();