Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header();
- $slug = pods_v('last', 'url');
- $mypod = pods('car', $slug);
- $sliderPods = pods('slide');
- $sliderPods->find('name ASC');
- $vehiclepods = pods('car');
- $vehiclepods->find();
- $percentage = 0;
- $image = $images->field('gallery');
- $image = $image[0]['guid'];
- ?>
- <section class="cover height-80 imagebg text-center slider slider--ken-burns" data-arrows="true" data-paging="true" autoplay="true">
- <ul class="slides">
- <?php while ( $sliderPods->fetch() ) : ?>
- <li class="imagebg" data-overlay="4">
- <div class="background-image-holder">
- <img alt="background" src="<?php echo $sliderPods->field('image')['guid']?>" />
- </div>
- <div class="container pos-vertical-center">
- <div class="row">
- <div class="col-sm-12 typed-headline">
- <span class="h1 inline-block"><?php echo $sliderPods->field('header');?></span>
- <br>
- <?php if($sliderPods->field('text') != "") { ?>
- <span class="h3 inline-block typed-text typed-text--cursor color--secondary" data-typed-strings="<?php echo $sliderPods->field('text'); ?>"></span>
- <?php } ?>
- </div>
- </div>
- <!--end of row-->
- </div>
- <!--end of container-->
- </li>
- <?php endwhile;
- ?>
- </ul>
- </section>
- <section id="available" class="space--xxs">
- <div class="container">
- <div class="row">
- <div class="col-sm-12">
- <div>
- <div class="container" style="padding-left: 0px;">
- <div class="col-sm-24 col-md-12" style="padding-left: 0px;">
- <h3 class="wow fadeInDown" style="font-weight: bold; margin-bottom: 0px;" data-wow-delay="0.9s">FOR SALE</h3>
- </div>
- <!--end of row-->
- </div>
- <!--end of container-->
- </div>
- <div class="masonry masonry--tiles">
- <div class="masonry-filter-container center">
- <span>car Type:</span>
- <div class="masonry-filter-holder">
- <div class="masonry__filters" data-filter-all-text="All cars"><ul><li class="active" data-masonry-filter="*">All Categories</li></ul></div>
- </div>
- </div>
- <div class="row">
- <div class="masonry__container masonry--active" style="position: relative; height: 867px;">
- <!--end item-->
- <?php while ( $vehiclepods->fetch() ) :
- if(!$vehiclepods->field('sold')) {
- ?>
- <div class="masonry__item col-sm-6 col-md-3 filter-creative" data-masonry-filter="<?php echo $vehiclepods->field('car_type');?>">
- <div class="product">
- <a href="<?php echo $vehiclepods->display('permalink')?>">
- <?php
- foreach($vehiclepods->field('gallery', true) as $picture) { ?>
- <img src="<?php echo $picture['guid'];?>" alt="image" /></a>
- <?php } ?>
- </a>
- <a class="block" href="<?php echo $vehiclepods->display('permalink')?>">
- <div>
- <h5><?php echo $vehiclepods->field('year');?> <?php echo $vehiclepods->field('name')?></h5>
- </div>
- <div>
- <span class="h5 inline-block" style="font-weight: normal;">£<?php echo number_format( $vehiclepods->field('price'), 0); ?></span>
- </div>
- </a>
- </div>
- </div>
- <?php } endwhile; ?>
- </div>
- <!--end masonry container-->
- </div>
- <!--end of row-->
- </div>
- <!--end masonry-->
- </div>
- </div>
- <!--end of row-->
- </div>
- <!--end of container-->
- </section>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement