/**
 * The front page template.
 *
 * This is the template that displays all pages by default.
 * Please note that this is the WordPress construct of pages
 * and that other 'pages' on your WordPress site will use a
 * different template.
 *
 * @since 1.0.0
 */
get_header();
?>

	<?php 
bavotasan_header_image();
?>

	<div class="home-container">
		<div class="wrapper">
		<?php 
if ('page' == get_option('show_on_front')) {
    include get_page_template();
} else {
    ?>
			<div class="container">
				<div class="row">
					<div id="primary" <?php 
    bavotasan_primary_attr();
    ?>
>
Example #2
0
/**
 * Adds the needed HTML before all WooCommerce pages
 *
 * This function is attached to the 'woocommerce_before_main_content' action hook.
 *
 * @uses	get_query_var()
 * @uses	is_front_page()
 * @uses	bavotasan_header_image()
 * @uses	bavotasan_primary_attr()
 *
 * @since 1.0.0
 */
function bavotasan_wrapper_start()
{
    $paged = get_query_var('paged') ? get_query_var('paged') : 1;
    if (is_front_page() && 1 == $paged) {
        bavotasan_header_image();
        ?>
		<div class="home-container">
			<div class="wrapper">
				<?php 
    }
    ?>
	<div class="container">
		<div class="row">
			<div id="primary" <?php 
    bavotasan_primary_attr();
    ?>
>
	<?php 
}