Ejemplo n.º 1
0
 public static function display_accommodations($accommodations)
 {
     $display = '';
     if (!empty($accommodations)) {
         foreach ($accommodations as $accommodation) {
             if (isset($accommodation['establishment_name']) && !empty($accommodation['establishment_name'])) {
                 $display .= "<div class=\"content\"><br>";
                 $display .= "<strong>" . __('Accommodation', 'sage') . "</strong><br><br>";
                 $display .= "<div class=\"meta right floated\">";
                 $display .= $accommodation['establishment_rating'] . ' ' . __('Stars', 'sage') . '<br>';
                 $display .= "</div>";
                 $display .= $accommodation['establishment_name'] . '<br>';
                 $display .= "<strong>" . __('Type', 'sage') . ": </strong>" . $accommodation['establishment_type'] . '<br>';
                 if ($accommodation['establishment_checkout_date']) {
                     $display .= "<div class=\"meta right floated\">";
                     $display .= "<strong>" . __('Check-out', 'sage') . "</strong><br>";
                     $display .= $accommodation['establishment_checkout_date'] . '<br>';
                     $display .= $accommodation['establishment_checkout_time'];
                     $display .= "</div>";
                 }
                 if ($accommodation['establishment_checkin_date']) {
                     $display .= "<div class=\"meta\">";
                     $display .= "<strong>" . __('Check-in', 'sage') . "</strong><br>";
                     $display .= $accommodation['establishment_checkin_date'] . '<br>';
                     $display .= $accommodation['establishment_checkin_time'];
                     $display .= "</div>";
                 }
                 if (!empty($accommodation['establishment_gallery']) && !empty($accommodation['establishment_gallery'][0])) {
                     $display .= "<div class=\"image\">";
                     $display .= Gallery::show_gallery($accommodation['establishment_gallery'], true);
                     $display .= "</div>";
                 }
                 $display .= "<div class=\"content\">";
                 $display .= "<a class=\"header\"></a>";
                 $display .= "<div class=\"meta\">";
                 $display .= "<span class=\"date\">" . $accommodation['establishment_comments'] . "</span>";
                 $display .= "</div>";
                 $display .= "</div>";
                 $display .= "</div>";
             }
         }
     }
     echo $display;
 }
Ejemplo n.º 2
0
      <strong><?php 
    _e('Check-in', 'sage');
    ?>
</strong><br>
      <?php 
    echo $accommodation['estimate_establishment_checkin_date'][$i] . '<br>';
    echo $accommodation['estimate_establishment_checkin_time'][$i];
    ?>
  </div>
  <?php 
    if (!empty($accommodation['estimate_establishment_gallery'][$i]) && $accommodation['estimate_establishment_gallery'][$i][0] != 'undefined') {
        ?>
  <br>
  <div class="image">
    <?php 
        Gallery::show_gallery($accommodation['estimate_establishment_gallery'][$i]);
        ?>
  </div>
  <?php 
    }
    ?>
  <div class="content">
    <a class="header"></a>
    <div class="meta">
      <span class="date"><?php 
    echo $accommodation['estimate_establishment_comments'][$i];
    ?>
</span>
    </div>
  </div>
<?php 
Ejemplo n.º 3
0
                                    <span class="date">
                                        <i class="calendar icon"></i> <?php 
            echo __('Expiry date') . ': ' . $voyage->getExpiryDate($i);
            ?>
                                    </span>
                                <br>
                            </div>
                        </div>
                        <!-- Estimate Voyage Images -->
                        <?php 
            if ($voyage->checkEmptyImages($i)) {
                $images = $voyage->getImages($i);
                ?>
                            <div class="image">
                                <?php 
                Gallery::show_gallery($images);
                ?>
                            </div>
                            <?php 
            }
            ?>
                        <div class="content">
                            <!-- Estimate Slogan -->
                            <div class="meta">
                                <span class="date"><?php 
            echo $voyage->getSlogan($i);
            ?>
</span>
                            </div>
                            <!-- Estimate Information & Conditions -->
                            <div class="description">