You are here

rooms_booking_results.tpl.php in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7

File

modules/rooms_booking_manager/rooms_booking_results.tpl.php
View source
<?php

if (isset($change_search)) {
  ?>
  <?php

  print render($change_search);
}
?>

<?php

if (!$booking_results) {
  ?>
  <?php

  print render($no_results);
  ?>
  <?php

  print render($booking_search_form);
}
?>

<?php

if (isset($style) && $style == ROOMS_INDIVIDUAL) {
  ?>
  <?php

  if ($booking_results) {
    ?>
    <?php

    print render($legend);
    ?>
    <?php

    print render($change_search);
    ?>

    <?php

    foreach ($units_per_type as $type_name => $units_per_price_level) {
      ?>
      <div class="rooms-search-result__unit-type">

        <?php

      print render(${$type_name});
      ?>

        <?php

      foreach ($units_per_price_level as $price => $units) {
        ?>
          <?php

        foreach ($units as $unit_id => $unit) {
          ?>
            <div class="rooms-search-result__unit-embedded" id="unit_<?php

          print $unit_id;
          ?>">
            <?php

          print render($unit['unit']);
          print render($unit['price']);
          print render($unit['book_unit_form']);
          ?>
            </div>
          <?php

        }
        ?>
        <?php

      }
      ?>
      </div>
    <?php

    }
    ?>
  <?php

  }
}
?>

<?php

if (isset($style) && $style == ROOMS_PER_TYPE) {
  ?>
  <?php

  if ($booking_results) {
    ?>
        <?php

    print render($units_per_type_form);
    ?>
  <?php

  }
}