Advertisement
jimchristian

pods image

Jun 1st, 2018
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.80 KB | None | 0 0
  1. <?php get_header();
  2. $slug = pods_v('last', 'url');
  3. $mypod = pods('car', $slug);
  4. $sliderPods = pods('slide');
  5. $sliderPods->find('name ASC');
  6. $vehiclepods = pods('car');
  7. $vehiclepods->find();
  8. $percentage = 0;
  9. $image   = $images->field('gallery');
  10. $image   = $image[0]['guid'];
  11.  
  12. ?>
  13. <section class="cover height-80 imagebg text-center slider slider--ken-burns" data-arrows="true" data-paging="true" autoplay="true">
  14.     <ul class="slides">
  15.         <?php while ( $sliderPods->fetch() ) : ?>
  16.  
  17.             <li class="imagebg" data-overlay="4">
  18.                 <div class="background-image-holder">
  19.                     <img alt="background" src="<?php echo $sliderPods->field('image')['guid']?>" />
  20.                 </div>
  21.                 <div class="container pos-vertical-center">
  22.                     <div class="row">
  23.                         <div class="col-sm-12 typed-headline">
  24.                             <span class="h1 inline-block"><?php echo $sliderPods->field('header');?></span>
  25.                             <br>
  26.                             <?php if($sliderPods->field('text') != "") { ?>
  27.                             <span class="h3 inline-block typed-text typed-text--cursor color--secondary" data-typed-strings="<?php echo $sliderPods->field('text'); ?>"></span>
  28.                             <?php } ?>
  29.                         </div>
  30.                     </div>
  31.                     <!--end of row-->
  32.                 </div>
  33.                 <!--end of container-->
  34.             </li>
  35.         <?php endwhile;
  36.         ?>
  37.     </ul>
  38. </section>
  39. <section id="available" class="space--xxs">
  40.     <div class="container">
  41.         <div class="row">
  42.             <div class="col-sm-12">
  43.  
  44.                 <div>
  45.                     <div class="container" style="padding-left: 0px;">
  46.                             <div class="col-sm-24 col-md-12" style="padding-left: 0px;">
  47.                                 <h3 class="wow fadeInDown" style="font-weight: bold; margin-bottom: 0px;" data-wow-delay="0.9s">FOR SALE</h3>
  48.                             </div>
  49.                         <!--end of row-->
  50.                     </div>
  51.                     <!--end of container-->
  52.                 </div>
  53.                 <div class="masonry masonry--tiles">
  54.                     <div class="masonry-filter-container center">
  55.                         <span>car Type:</span>
  56.                         <div class="masonry-filter-holder">
  57.                             <div class="masonry__filters" data-filter-all-text="All cars"><ul><li class="active" data-masonry-filter="*">All Categories</li></ul></div>
  58.                         </div>
  59.                     </div>
  60.                     <div class="row">
  61.                         <div class="masonry__container masonry--active" style="position: relative; height: 867px;">
  62.                             <!--end item-->
  63.                             <?php while ( $vehiclepods->fetch() ) :
  64.                                 if(!$vehiclepods->field('sold')) {
  65.                                 ?>
  66.  
  67.                             <div class="masonry__item col-sm-6 col-md-3 filter-creative" data-masonry-filter="<?php echo $vehiclepods->field('car_type');?>">
  68.                                         <div class="product">
  69.                                             <a href="<?php echo $vehiclepods->display('permalink')?>">
  70.                                         <?php
  71.                                     foreach($vehiclepods->field('gallery', true) as $picture) { ?>
  72.                                         <img src="<?php echo $picture['guid'];?>" alt="image" /></a>
  73.                                     <?php } ?>
  74.  
  75.                                             </a>
  76.                                             <a class="block" href="<?php echo $vehiclepods->display('permalink')?>">
  77.                                                 <div>
  78.                                                     <h5><?php echo $vehiclepods->field('year');?> <?php echo $vehiclepods->field('name')?></h5>
  79.                                                 </div>
  80.                                                 <div>
  81.                                                     <span class="h5 inline-block" style="font-weight: normal;">£<?php echo number_format( $vehiclepods->field('price'), 0); ?></span>
  82.                                                 </div>
  83.                                             </a>
  84.                                         </div>
  85.                                     </div>
  86.                             <?php } endwhile; ?>
  87.                         </div>
  88.                         <!--end masonry container-->
  89.                     </div>
  90.                     <!--end of row-->
  91.                 </div>
  92.                 <!--end masonry-->
  93.             </div>
  94.         </div>
  95.         <!--end of row-->
  96.     </div>
  97.     <!--end of container-->
  98. </section>
  99. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement