| Server IP : 104.26.4.103 / 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 Front Page template file.
*
* @package BITE
* @since BITE 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 ( bite_is_on( bite_get_theme_option( 'front_page_enabled', false ) ) ) {
if ( have_posts() ) {
the_post();
}
$bite_sections = bite_array_get_keys_by_value( bite_get_theme_option( 'front_page_sections' ) );
if ( is_array( $bite_sections ) ) {
foreach ( $bite_sections as $bite_section ) {
get_template_part( apply_filters( 'bite_filter_get_template_part', 'front-page/section', $bite_section ), $bite_section );
}
}
// Else if this page is a blog archive
} elseif ( is_page_template( 'blog.php' ) ) {
get_template_part( apply_filters( 'bite_filter_get_template_part', 'blog' ) );
// Else - display a native page content
} else {
get_template_part( apply_filters( 'bite_filter_get_template_part', 'page' ) );
}
// Else get the template 'index.php' to show posts
} else {
get_template_part( apply_filters( 'bite_filter_get_template_part', 'index' ) );
}
get_footer();