Exemplo n.º 1
0
       <div class="sidebar col-md-3">
          <?php 
get_template_part('template-parts/left-sidebar-listing');
?>
       </div>

       <div class="listing-content col-md-9">
         <div class="listing-pagination">
           <h5 class="title pull-left"><?php 
_e('Available Rooms', 'bookingwp');
?>
</h5>
         </div>
         <?php 
wp_reset_query();
get_accommodations();
if (have_posts()) {
    while (have_posts()) {
        the_post();
        $price = get_post_meta($post->ID, 'min_price', true);
        ?>
         <!-- room list -->
         <div class="listing-room-list">
           <?php 
        $attachments = OneGallery($post->ID);
        if (count($attachments > 1)) {
            ?>
           <div class="thumbnail">
             <div class="thumbnail-slider">
               <?php 
            foreach ($attachments as $attachment) {
Exemplo n.º 2
0
  <div class="container">
    <div class="row">
      <div class="preamble col-md-12">
        <h3><?php 
_e('Our rooms', 'bookingwp');
?>
</h3>
      </div>
    </div>

    <div class="row">
    <?php 
wp_reset_query();
get_accommodations();
$col = count(get_accommodations()) % 3 == 0 ? '4' : '3';
if (have_posts()) {
    while (have_posts()) {
        the_post();
        $price = get_post_meta($post->ID, 'min_price', true);
        ?>
    <div class="col-md-<?php 
        echo $col;
        ?>
">
      <div class="listing-room-grid">
        <div class="overlay">
          <?php 
        the_post_thumbnail('homepage-thumb', array('class' => 'img-responsive'));
        ?>