726 lines
44 KiB
PHP
726 lines
44 KiB
PHP
<?php get_header(); /* Template Name: Home */?>
|
|
|
|
<?php while ( have_posts() ) : the_post(); ?>
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<!-- Content Side -->
|
|
<div class="col-sm-9 mobile-pad-adjust">
|
|
|
|
<!-- Main Slide -->
|
|
<div id="myCarousel" class="carousel slide carousel-fade" data-ride="carousel">
|
|
<ol class="carousel-indicators">
|
|
<?php if(get_field('carousel')): $i = 0; ?>
|
|
<?php while(has_sub_field('carousel')): ?>
|
|
<li data-target="#myCarousel" data-slide-to="<?php echo $i;?>" <?php if($i==0){?>class="active"<?php }?> contenteditable="false"></li>
|
|
<?php $i++;endwhile;
|
|
endif;?>
|
|
</ol>
|
|
<div class="carousel-inner">
|
|
<?php if(get_field('carousel')): $i = 0; ?>
|
|
<div class="carousel-inner">
|
|
<?php while(has_sub_field('carousel')): $i++; ?>
|
|
<div class="item <?php if($i==1){echo 'active';}?>"><a href="<?php the_sub_field('page_link');?>" target="_blank"><img src="<?php the_sub_field('image');?>" alt="" class="img-responsive"></a></div>
|
|
<?php endwhile; ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
<a class="left carousel-control" href="#myCarousel" data-slide="prev"><span class="glyphicon glyphicon-chevron-left"></span><span class="sr-only">Previous</span></a>
|
|
<a class="right carousel-control" href="#myCarousel" data-slide="next"><span class="glyphicon glyphicon-chevron-right"></span><span class="sr-only">Next</span></a>
|
|
</div>
|
|
|
|
<!-- Content Blocks -->
|
|
|
|
<hr>
|
|
|
|
<!-- BateFuel Slider DESKTOP -->
|
|
<div class="hidden-xs visible-sm visible-md visible-lg">
|
|
<div class="col-xs-8 nopadding-left"><h2 class="home-headings">Bate Fuel</h2></div>
|
|
<div class="col-xs-4 text-right">
|
|
<div class="pad25top">
|
|
<a href="#carousel-batefuel" class="orange" data-slide="prev"><i class="fas fa-long-arrow-alt-left fa-2x"></i></a>
|
|
<a href="#carousel-batefuel" class="orange" data-slide="next"><i class="fas fa-long-arrow-alt-right fa-2x"></i></a>
|
|
</div>
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
<div id="carousel-batefuel" class="carousel slide" data-wrap="false">
|
|
<div class="carousel-inner">
|
|
<!-- Item -->
|
|
<div class="item active">
|
|
<div class="row-fluid">
|
|
<?php $query = new WP_Query( array(
|
|
'post_type' => 'batefuel',
|
|
'posts_per_page' => 4,
|
|
'post_status' => 'publish',
|
|
'orderby' => 'publish_date',
|
|
'order' => 'DESC',
|
|
'tax_query' => array (
|
|
array(
|
|
'taxonomy' => 'batefuel_category', // My Custom Taxonomy
|
|
'terms' => 'live-cams', // My Taxonomy Term that I wanted to exclude
|
|
'field' => 'slug', // Whether I am passing term Slug or term ID
|
|
'operator' => 'NOT IN', // Selection operator - use IN to include, NOT IN to exclude
|
|
),
|
|
),
|
|
) );
|
|
if ( $query->have_posts() ) : ?>
|
|
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
|
|
<div class="col-sm-3 nopadding-left">
|
|
<figure class="col-lg-12 nopadding">
|
|
<a href="<?php the_permalink();?>"><img class="img img-responsive article-img" src="<?php the_post_thumbnail_url(); ?>"></a>
|
|
<figcaption class="article-caption"><h3 class="article-title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h3></figcaption>
|
|
</figure>
|
|
</div>
|
|
|
|
<?php endwhile; wp_reset_postdata(); ?>
|
|
<?php else : ?>
|
|
<?php endif; ?>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
</div>
|
|
<!-- / -->
|
|
|
|
<!-- Item -->
|
|
<div class="item">
|
|
<div class="row-fluid">
|
|
<?php $query = new WP_Query( array(
|
|
'post_type' => 'batefuel',
|
|
'posts_per_page' => 4,
|
|
'offset' => 4,
|
|
'post_status' => 'publish',
|
|
'orderby' => 'publish_date',
|
|
'order' => 'DESC',
|
|
'tax_query' => array (
|
|
array(
|
|
'taxonomy' => 'batefuel_category', // My Custom Taxonomy
|
|
'terms' => 'live-cams', // My Taxonomy Term that I wanted to exclude
|
|
'field' => 'slug', // Whether I am passing term Slug or term ID
|
|
'operator' => 'NOT IN', // Selection operator - use IN to include, NOT IN to exclude
|
|
),
|
|
),
|
|
) );
|
|
if ( $query->have_posts() ) : ?>
|
|
|
|
|
|
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
|
|
<div class="col-sm-3 nopadding-left">
|
|
<figure class="col-lg-12 nopadding">
|
|
<a href="<?php the_permalink();?>"><img class="img img-responsive article-img" src="<?php the_post_thumbnail_url(); ?>"></a>
|
|
<figcaption class="article-caption"><h3 class="article-title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h3></figcaption>
|
|
</figure>
|
|
</div>
|
|
<?php endwhile; wp_reset_postdata(); ?>
|
|
<?php else : ?>
|
|
<?php endif; ?>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
</div>
|
|
<!-- / -->
|
|
|
|
<!-- Item -->
|
|
<div class="item">
|
|
<div class="row-fluid">
|
|
<?php $query = new WP_Query( array(
|
|
'post_type' => 'batefuel',
|
|
'posts_per_page' => 4,
|
|
'offset' => 8,
|
|
'post_status' => 'publish',
|
|
'orderby' => 'publish_date',
|
|
'order' => 'DESC',
|
|
'tax_query' => array (
|
|
array(
|
|
'taxonomy' => 'batefuel_category', // My Custom Taxonomy
|
|
'terms' => 'live-cams', // My Taxonomy Term that I wanted to exclude
|
|
'field' => 'slug', // Whether I am passing term Slug or term ID
|
|
'operator' => 'NOT IN', // Selection operator - use IN to include, NOT IN to exclude
|
|
),
|
|
),
|
|
) );
|
|
if ( $query->have_posts() ) : ?>
|
|
|
|
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
|
|
<div class="col-sm-3 nopadding-left">
|
|
<figure class="col-lg-12 nopadding">
|
|
<a href="<?php the_permalink();?>"><img class="img img-responsive article-img" src="<?php the_post_thumbnail_url(); ?>"></a>
|
|
<figcaption class="article-caption"><h3 class="article-title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h3></figcaption>
|
|
</figure>
|
|
</div>
|
|
|
|
<?php endwhile; wp_reset_postdata(); ?>
|
|
<?php else : ?>
|
|
<?php endif; ?>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
</div>
|
|
<!-- / -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- / -->
|
|
|
|
<!-- BateFuel Slider MOBILE -->
|
|
<div class="visible-xs hidden-sm hidden-md hidden-lg">
|
|
<div class="col-xs-8 nopadding-left"><h2 class="home-headings">Bate Fuel</h2></div>
|
|
<div class="col-xs-4 text-right">
|
|
<div class="pad25top">
|
|
<a href="#carousel-batefuel-mobile" class="orange" data-slide="prev"><i class="fas fa-long-arrow-alt-left fa-2x"></i></a>
|
|
<a href="#carousel-batefuel-mobile" class="orange" data-slide="next"><i class="fas fa-long-arrow-alt-right fa-2x"></i></a>
|
|
</div>
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
<div id="carousel-batefuel-mobile" class="carousel slide" data-wrap="false">
|
|
<div class="carousel-inner">
|
|
<!-- Item -->
|
|
<div class="item active">
|
|
<div class="row-fluid">
|
|
<?php $query = new WP_Query( array(
|
|
'post_type' => 'batefuel',
|
|
'posts_per_page' => 2,
|
|
'post_status' => 'publish',
|
|
'orderby' => 'publish_date',
|
|
'order' => 'DESC',
|
|
'tax_query' => array (
|
|
array(
|
|
'taxonomy' => 'batefuel_category', // My Custom Taxonomy
|
|
'terms' => 'live-cams', // My Taxonomy Term that I wanted to exclude
|
|
'field' => 'slug', // Whether I am passing term Slug or term ID
|
|
'operator' => 'NOT IN', // Selection operator - use IN to include, NOT IN to exclude
|
|
),
|
|
),
|
|
) );
|
|
if ( $query->have_posts() ) : ?>
|
|
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
|
|
<div class="col-xs-6 nopadding-left">
|
|
<figure class="col-lg-12 nopadding">
|
|
<a href="<?php the_permalink();?>"><img class="img img-responsive article-img" src="<?php the_post_thumbnail_url(); ?>"></a>
|
|
<figcaption class="article-caption"><h3 class="article-title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h3></figcaption>
|
|
</figure>
|
|
</div>
|
|
|
|
<?php endwhile; wp_reset_postdata(); ?>
|
|
<?php else : ?>
|
|
<?php endif; ?>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
</div>
|
|
<!-- / -->
|
|
|
|
<!-- Item -->
|
|
<div class="item">
|
|
<div class="row-fluid">
|
|
<?php $query = new WP_Query( array(
|
|
'post_type' => 'batefuel',
|
|
'posts_per_page' => 2,
|
|
'offset' => 2,
|
|
'post_status' => 'publish',
|
|
'orderby' => 'publish_date',
|
|
'order' => 'DESC',
|
|
'tax_query' => array (
|
|
array(
|
|
'taxonomy' => 'batefuel_category', // My Custom Taxonomy
|
|
'terms' => 'live-cams', // My Taxonomy Term that I wanted to exclude
|
|
'field' => 'slug', // Whether I am passing term Slug or term ID
|
|
'operator' => 'NOT IN', // Selection operator - use IN to include, NOT IN to exclude
|
|
),
|
|
),
|
|
) );
|
|
if ( $query->have_posts() ) : ?>
|
|
|
|
|
|
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
|
|
<div class="col-xs-6 nopadding-left">
|
|
<figure class="col-lg-12 nopadding">
|
|
<a href="<?php the_permalink();?>"><img class="img img-responsive article-img" src="<?php the_post_thumbnail_url(); ?>"></a>
|
|
<figcaption class="article-caption"><h3 class="article-title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h3></figcaption>
|
|
</figure>
|
|
</div>
|
|
<?php endwhile; wp_reset_postdata(); ?>
|
|
<?php else : ?>
|
|
<?php endif; ?>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
</div>
|
|
<!-- / -->
|
|
|
|
<!-- Item -->
|
|
<div class="item">
|
|
<div class="row-fluid">
|
|
<?php $query = new WP_Query( array(
|
|
'post_type' => 'batefuel',
|
|
'posts_per_page' => 2,
|
|
'offset' => 6,
|
|
'post_status' => 'publish',
|
|
'orderby' => 'publish_date',
|
|
'order' => 'DESC',
|
|
'tax_query' => array (
|
|
array(
|
|
'taxonomy' => 'batefuel_category', // My Custom Taxonomy
|
|
'terms' => 'live-cams', // My Taxonomy Term that I wanted to exclude
|
|
'field' => 'slug', // Whether I am passing term Slug or term ID
|
|
'operator' => 'NOT IN', // Selection operator - use IN to include, NOT IN to exclude
|
|
),
|
|
),
|
|
) );
|
|
if ( $query->have_posts() ) : ?>
|
|
|
|
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
|
|
<div class="col-xs-6 nopadding-left">
|
|
<figure class="col-lg-12 nopadding">
|
|
<a href="<?php the_permalink();?>"><img class="img img-responsive article-img" src="<?php the_post_thumbnail_url(); ?>"></a>
|
|
<figcaption class="article-caption"><h3 class="article-title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h3></figcaption>
|
|
</figure>
|
|
</div>
|
|
|
|
<?php endwhile; wp_reset_postdata(); ?>
|
|
<?php else : ?>
|
|
<?php endif; ?>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
</div>
|
|
<!-- / -->
|
|
|
|
<!-- Item -->
|
|
<div class="item">
|
|
<div class="row-fluid">
|
|
<?php $query = new WP_Query( array(
|
|
'post_type' => 'batefuel',
|
|
'posts_per_page' => 2,
|
|
'offset' => 8,
|
|
'post_status' => 'publish',
|
|
'orderby' => 'publish_date',
|
|
'order' => 'DESC',
|
|
'tax_query' => array (
|
|
array(
|
|
'taxonomy' => 'batefuel_category', // My Custom Taxonomy
|
|
'terms' => 'live-cams', // My Taxonomy Term that I wanted to exclude
|
|
'field' => 'slug', // Whether I am passing term Slug or term ID
|
|
'operator' => 'NOT IN', // Selection operator - use IN to include, NOT IN to exclude
|
|
),
|
|
),
|
|
) );
|
|
if ( $query->have_posts() ) : ?>
|
|
|
|
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
|
|
<div class="col-xs-6 nopadding-left">
|
|
<figure class="col-lg-12 nopadding">
|
|
<a href="<?php the_permalink();?>"><img class="img img-responsive article-img" src="<?php the_post_thumbnail_url(); ?>"></a>
|
|
<figcaption class="article-caption"><h3 class="article-title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h3></figcaption>
|
|
</figure>
|
|
</div>
|
|
|
|
<?php endwhile; wp_reset_postdata(); ?>
|
|
<?php else : ?>
|
|
<?php endif; ?>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
</div>
|
|
<!-- / -->
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- / -->
|
|
|
|
|
|
|
|
|
|
<div class="clearfix"></div>
|
|
<div class="text-right"><a href="<?php bloginfo('url');?>/batefuel" class="viewall">Continue for more Bate Fuel →</a></div>
|
|
|
|
<hr>
|
|
|
|
<!-- Products Slider DESKTOP -->
|
|
<div class="hidden-xs visible-sm visible-md visible-lg">
|
|
<div class="col-xs-8 nopadding-left"><h2 class="home-headings">Products</h2></div>
|
|
<div class="col-xs-4 text-right">
|
|
<div class="pad25top">
|
|
<a href="#carousel-products" class="orange" data-slide="prev"><i class="fas fa-long-arrow-alt-left fa-2x"></i></a>
|
|
<a href="#carousel-products" class="orange" data-slide="next"><i class="fas fa-long-arrow-alt-right fa-2x"></i></a>
|
|
</div>
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
|
|
<div id="carousel-products" class="carousel slide" data-wrap="false">
|
|
<div class="carousel-inner">
|
|
|
|
<!-- Item -->
|
|
<div class="item active">
|
|
<div class="row-fluid">
|
|
<?php $query = new WP_Query( array( 'post_type' => 'af_product', 'posts_per_page' => 4, 'post_status' => 'publish', 'orderby' => 'publish_date', 'order' => 'DESC', 'post__not_in' => array(17786), ) ); if ( $query->have_posts() ) : ?>
|
|
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
|
|
<div class="col-sm-3 nopadding-left">
|
|
<figure class="col-lg-12 nopadding">
|
|
<a href="<?php the_permalink();?>"><img class="img img-responsive article-img" src="<?php the_post_thumbnail_url(); ?>"></a>
|
|
<figcaption class="article-caption"><h3 class="article-title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h3></figcaption>
|
|
</figure>
|
|
</div>
|
|
<?php endwhile; wp_reset_postdata(); ?>
|
|
<?php else : ?>
|
|
<?php endif; ?>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
</div>
|
|
<!-- / -->
|
|
|
|
<!-- Item -->
|
|
<div class="item">
|
|
<div class="row-fluid">
|
|
<?php $query = new WP_Query( array( 'post_type' => 'af_product', 'posts_per_page' => 4, 'offset' => 4 , 'post_status' => 'publish', 'orderby' => 'publish_date', 'order' => 'DESC', 'post__not_in' => array(17786), ) ); if ( $query->have_posts() ) : ?>
|
|
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
|
|
<div class="col-sm-3 nopadding-left">
|
|
<figure class="col-lg-12 nopadding">
|
|
<a href="<?php the_permalink();?>"><img class="img img-responsive article-img" src="<?php the_post_thumbnail_url(); ?>"></a>
|
|
<figcaption class="article-caption"><h3 class="article-title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h3></figcaption>
|
|
</figure>
|
|
</div>
|
|
<?php endwhile; wp_reset_postdata(); ?>
|
|
<?php else : ?>
|
|
<?php endif; ?>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
</div>
|
|
<!-- / -->
|
|
|
|
<!-- Item -->
|
|
<div class="item">
|
|
<div class="row-fluid">
|
|
<?php $query = new WP_Query( array( 'post_type' => 'af_product', 'posts_per_page' => 4, 'offset' => 8, 'post_status' => 'publish', 'orderby' => 'publish_date', 'order' => 'DESC', 'post__not_in' => array(17786), ) ); if ( $query->have_posts() ) : ?>
|
|
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
|
|
<div class="col-sm-3 nopadding-left">
|
|
<figure class="col-lg-12 nopadding">
|
|
<a href="<?php the_permalink();?>"><img class="img img-responsive article-img" src="<?php the_post_thumbnail_url(); ?>"></a>
|
|
<figcaption class="article-caption"><h3 class="article-title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h3></figcaption>
|
|
</figure>
|
|
</div>
|
|
|
|
<?php endwhile; wp_reset_postdata(); ?>
|
|
<?php else : ?>
|
|
<?php endif; ?>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
</div>
|
|
<!-- / -->
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Products Slider MOBILE -->
|
|
<div class="visible-xs hidden-sm hidden-md hidden-lg">
|
|
<div class="col-xs-8 nopadding-left"><h2 class="home-headings">Products</h2></div>
|
|
<div class="col-xs-4 text-right">
|
|
<div class="pad25top">
|
|
<a href="#carousel-products-mobile" class="orange" data-slide="prev"><i class="fas fa-long-arrow-alt-left fa-2x"></i></a>
|
|
<a href="#carousel-products-mobile" class="orange" data-slide="next"><i class="fas fa-long-arrow-alt-right fa-2x"></i></a>
|
|
</div>
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
|
|
<div id="carousel-products-mobile" class="carousel slide" data-wrap="false">
|
|
<div class="carousel-inner">
|
|
|
|
<!-- Item -->
|
|
<div class="item active">
|
|
<div class="row-fluid">
|
|
<?php $query = new WP_Query( array( 'post_type' => 'af_product', 'posts_per_page' => 2, 'post_status' => 'publish', 'orderby' => 'publish_date', 'order' => 'DESC', 'post__not_in' => array(17786), ) ); if ( $query->have_posts() ) : ?>
|
|
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
|
|
<div class="col-xs-6 nopadding-left">
|
|
<figure class="col-lg-12 nopadding">
|
|
<a href="<?php the_permalink();?>"><img class="img img-responsive article-img" src="<?php the_post_thumbnail_url(); ?>"></a>
|
|
<figcaption class="article-caption"><h3 class="article-title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h3></figcaption>
|
|
</figure>
|
|
</div>
|
|
<?php endwhile; wp_reset_postdata(); ?>
|
|
<?php else : ?>
|
|
<?php endif; ?>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
</div>
|
|
<!-- / -->
|
|
|
|
<!-- Item -->
|
|
<div class="item">
|
|
<div class="row-fluid">
|
|
<?php $query = new WP_Query( array( 'post_type' => 'af_product', 'posts_per_page' => 2, 'offset' => 2 , 'post_status' => 'publish', 'orderby' => 'publish_date', 'order' => 'DESC', 'post__not_in' => array(17786), ) ); if ( $query->have_posts() ) : ?>
|
|
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
|
|
<div class="col-xs-6 nopadding-left">
|
|
<figure class="col-lg-12 nopadding">
|
|
<a href="<?php the_permalink();?>"><img class="img img-responsive article-img" src="<?php the_post_thumbnail_url(); ?>"></a>
|
|
<figcaption class="article-caption"><h3 class="article-title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h3></figcaption>
|
|
</figure>
|
|
</div>
|
|
<?php endwhile; wp_reset_postdata(); ?>
|
|
<?php else : ?>
|
|
<?php endif; ?>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
</div>
|
|
<!-- / -->
|
|
|
|
<!-- Item -->
|
|
<div class="item">
|
|
<div class="row-fluid">
|
|
<?php $query = new WP_Query( array( 'post_type' => 'af_product', 'posts_per_page' => 2, 'offset' => 6, 'post_status' => 'publish', 'orderby' => 'publish_date', 'order' => 'DESC', 'post__not_in' => array(17786), ) ); if ( $query->have_posts() ) : ?>
|
|
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
|
|
<div class="col-xs-6 nopadding-left">
|
|
<figure class="col-lg-12 nopadding">
|
|
<a href="<?php the_permalink();?>"><img class="img img-responsive article-img" src="<?php the_post_thumbnail_url(); ?>"></a>
|
|
<figcaption class="article-caption"><h3 class="article-title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h3></figcaption>
|
|
</figure>
|
|
</div>
|
|
|
|
<?php endwhile; wp_reset_postdata(); ?>
|
|
<?php else : ?>
|
|
<?php endif; ?>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
</div>
|
|
<!-- / -->
|
|
|
|
<!-- Item -->
|
|
<div class="item">
|
|
<div class="row-fluid">
|
|
<?php $query = new WP_Query( array( 'post_type' => 'af_product', 'posts_per_page' => 2, 'offset' => 8, 'post_status' => 'publish', 'orderby' => 'publish_date', 'order' => 'DESC', 'post__not_in' => array(17786), ) ); if ( $query->have_posts() ) : ?>
|
|
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
|
|
<div class="col-xs-6 nopadding-left">
|
|
<figure class="col-lg-12 nopadding">
|
|
<a href="<?php the_permalink();?>"><img class="img img-responsive article-img" src="<?php the_post_thumbnail_url(); ?>"></a>
|
|
<figcaption class="article-caption"><h3 class="article-title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h3></figcaption>
|
|
</figure>
|
|
</div>
|
|
|
|
<?php endwhile; wp_reset_postdata(); ?>
|
|
<?php else : ?>
|
|
<?php endif; ?>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
</div>
|
|
<!-- / -->
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="clearfix"></div>
|
|
<div class="text-right"><a href="<?php bloginfo('url');?>/products/" class="viewall">Continue for more Products →</a></div>
|
|
<!-- / -->
|
|
|
|
<hr>
|
|
|
|
<!-- LiveCams Slider DEKSTOP -->
|
|
<div class="hidden-xs visible-sm visible-md visible-lg">
|
|
<div class="col-xs-8 nopadding-left"><h2 class="home-headings">Live Cams</h2></div>
|
|
<div class="col-xs-4 text-right">
|
|
<div class="pad25top">
|
|
<a href="#carousel-livecams" class="orange" data-slide="prev"><i class="fas fa-long-arrow-alt-left fa-2x"></i></a>
|
|
<a href="#carousel-livecams" class="orange" data-slide="next"><i class="fas fa-long-arrow-alt-right fa-2x"></i></a>
|
|
</div>
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
|
|
<div id="carousel-livecams" class="carousel slide" data-wrap="false">
|
|
<div class="carousel-inner">
|
|
|
|
<!-- Item -->
|
|
<div class="item active">
|
|
<div class="row-fluid">
|
|
<?php $query = new WP_Query( array(
|
|
'post_type' => 'batefuel',
|
|
'posts_per_page' => 4,
|
|
'tax_query' => array(
|
|
array(
|
|
'taxonomy' => 'batefuel_category',
|
|
'field' => 'term_id',
|
|
'terms' => 150,
|
|
)
|
|
|
|
)
|
|
) );
|
|
?>
|
|
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
|
|
<div class="col-sm-3 nopadding-left">
|
|
<figure class="col-lg-12 nopadding">
|
|
<a href="<?php the_permalink();?>"><img class="img img-responsive article-img" src="<?php the_post_thumbnail_url(); ?>"></a>
|
|
<figcaption class="article-caption"><h3 class="article-title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h3></figcaption>
|
|
</figure>
|
|
</div>
|
|
<?php endwhile; wp_reset_query();?>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
</div>
|
|
<!-- / -->
|
|
|
|
<!-- Item -->
|
|
<div class="item">
|
|
<div class="row-fluid">
|
|
<?php $query = new WP_Query( array(
|
|
'post_type' => 'batefuel',
|
|
'posts_per_page' => 4,
|
|
'offset' => 4,
|
|
'tax_query' => array(
|
|
array(
|
|
'taxonomy' => 'batefuel_category',
|
|
'field' => 'term_id',
|
|
'terms' => 150,
|
|
)
|
|
|
|
)
|
|
) );
|
|
?>
|
|
|
|
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
|
|
<div class="col-sm-3 nopadding-left">
|
|
<figure class="col-lg-12 nopadding">
|
|
<a href="<?php the_permalink();?>"><img class="img img-responsive article-img" src="<?php the_post_thumbnail_url(); ?>"></a>
|
|
<figcaption class="article-caption"><h3 class="article-title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h3></figcaption>
|
|
</figure>
|
|
</div>
|
|
<?php endwhile; wp_reset_query();?>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
</div>
|
|
<!-- / -->
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- LiveCams Slider Mobile -->
|
|
<div class="visible-xs hidden-sm hidden-md hidden-lg">
|
|
<div class="col-xs-8 nopadding-left"><h2 class="home-headings">Live Cams</h2></div>
|
|
<div class="col-xs-4 text-right">
|
|
<div class="pad25top">
|
|
<a href="#carousel-livecams-mobile" class="orange" data-slide="prev"><i class="fas fa-long-arrow-alt-left fa-2x"></i></a>
|
|
<a href="#carousel-livecams-mobile" class="orange" data-slide="next"><i class="fas fa-long-arrow-alt-right fa-2x"></i></a>
|
|
</div>
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
|
|
<div id="carousel-livecams-mobile" class="carousel slide" data-wrap="false">
|
|
<div class="carousel-inner">
|
|
|
|
<!-- Item -->
|
|
<div class="item active">
|
|
<div class="row-fluid">
|
|
<?php $query = new WP_Query( array(
|
|
'post_type' => 'batefuel',
|
|
'posts_per_page' => 2,
|
|
'tax_query' => array(
|
|
array(
|
|
'taxonomy' => 'batefuel_category',
|
|
'field' => 'term_id',
|
|
'terms' => 150,
|
|
)
|
|
|
|
)
|
|
) );
|
|
?>
|
|
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
|
|
<div class="col-xs-6 nopadding-left">
|
|
<figure class="col-lg-12 nopadding">
|
|
<a href="<?php the_permalink();?>"><img class="img img-responsive article-img" src="<?php the_post_thumbnail_url(); ?>"></a>
|
|
<figcaption class="article-caption"><h3 class="article-title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h3></figcaption>
|
|
</figure>
|
|
</div>
|
|
<?php endwhile; wp_reset_query();?>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
</div>
|
|
<!-- / -->
|
|
|
|
<!-- Item -->
|
|
<div class="item">
|
|
<div class="row-fluid">
|
|
<?php $query = new WP_Query( array(
|
|
'post_type' => 'batefuel',
|
|
'posts_per_page' => 2,
|
|
'offset' => 2,
|
|
'tax_query' => array(
|
|
array(
|
|
'taxonomy' => 'batefuel_category',
|
|
'field' => 'term_id',
|
|
'terms' => 150,
|
|
)
|
|
|
|
)
|
|
) );
|
|
?>
|
|
|
|
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
|
|
<div class="col-xs-6 nopadding-left">
|
|
<figure class="col-lg-12 nopadding">
|
|
<a href="<?php the_permalink();?>"><img class="img img-responsive article-img" src="<?php the_post_thumbnail_url(); ?>"></a>
|
|
<figcaption class="article-caption"><h3 class="article-title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h3></figcaption>
|
|
</figure>
|
|
</div>
|
|
<?php endwhile; wp_reset_query();?>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
</div>
|
|
<!-- / -->
|
|
|
|
<!-- Item -->
|
|
<div class="item">
|
|
<div class="row-fluid">
|
|
<?php $query = new WP_Query( array(
|
|
'post_type' => 'batefuel',
|
|
'posts_per_page' => 2,
|
|
'offset' => 4,
|
|
'tax_query' => array(
|
|
array(
|
|
'taxonomy' => 'batefuel_category',
|
|
'field' => 'term_id',
|
|
'terms' => 150,
|
|
)
|
|
|
|
)
|
|
) );
|
|
?>
|
|
|
|
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
|
|
<div class="col-xs-6 nopadding-left">
|
|
<figure class="col-lg-12 nopadding">
|
|
<a href="<?php the_permalink();?>"><img class="img img-responsive article-img" src="<?php the_post_thumbnail_url(); ?>"></a>
|
|
<figcaption class="article-caption"><h3 class="article-title"><a href="<?php the_permalink();?>"><?php the_title();?></a></h3></figcaption>
|
|
</figure>
|
|
</div>
|
|
<?php endwhile; wp_reset_query();?>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
</div>
|
|
<!-- / -->
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="clearfix"></div>
|
|
<div class="text-right pad25bot"><a href="<?php bloginfo('url');?>/batefuel-category/live-cams/" class="viewall">Continue for more Live Cams →</a></div>
|
|
<!-- / -->
|
|
</div>
|
|
<!-- / -->
|
|
|
|
|
|
<!-- Sidebar -->
|
|
<div class="col-sm-3 mobile-pad-adjust">
|
|
<?php get_sidebar();?>
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
|
|
<div class="col-sm-12 pad25bot mobile-pad-adjust">
|
|
<?php the_field('footer_description',options);?>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<?php endwhile;?>
|
|
|
|
<?php get_footer(); ?>
|