Guest User

Untitled

a guest
Nov 25th, 2019
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.03 KB | None | 0 0
  1. ?> <section id="container" class="row table-price-items">
  2.         <?php while (have_rows('price_table')) : the_row(); ?>
  3.             <div class="pricing-table">
  4.                 <div class="pricing-table-box">
  5.  
  6.                     <div class="header bg-grey aligncenter text-white">
  7.                         <div class="title">
  8.                             <h3 class="text-white"><?php the_sub_field('tableprice_title'); ?></h3>
  9.                         </div>
  10.                         <div class="sub-title text-white"><h4><?php the_sub_field( 'tableprice_sous_titre' ); ?></h4></div>
  11.                     </div>
  12.  
  13.                     <div class="price">
  14.                         <div class="price-value">
  15.                             <span class="value"><?php the_sub_field( 'tableprice_tarif' ); ?></span>
  16.                             <span class="devise">€</span>
  17.                         </div>
  18.                         <div class="price-duration">
  19.                             <span class="duration-value"><?php the_sub_field( 'tableprice_durée' ); ?></span>
  20.                         </div>
  21.                     </div>
  22.  
  23.                     <div class="features">
  24.                         <ul>
  25.  
  26.                         <?php
  27.  
  28.                             $test = get_sub_field('liste_des_services');
  29.                             for($i = 0; $i < count($test); ++$i) { ?>
  30.  
  31.                                 <li <?php if($i + 1 < count($test)) {echo 'class="spacer"';} ?> >
  32.                                     <i class="fa fa-check"></i><span><?= $test[$i]['tableprice_items'] ?></span>
  33.                                 </li>
  34.  
  35.                         <?php } ?>
  36.  
  37.                         </ul>
  38.  
  39.                     </div>
  40.                 </div>
  41.                 <div class="contact-button">
  42.                     <a href="#elementor-action%3Aaction%3Dpopup%3Aopen%20settings%3DeyJpZCI6IjYzMyIsInRvZ2dsZSI6ZmFsc2V9"
  43.                        class="button">Contacter</a>
  44.                 </div>
  45.             </div>
  46.         <?php endwhile; ?>
  47.     </section>
Advertisement
Add Comment
Please, Sign In to add comment