當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Gallery::show_gallery方法代碼示例

本文整理匯總了PHP中Gallery::show_gallery方法的典型用法代碼示例。如果您正苦於以下問題:PHP Gallery::show_gallery方法的具體用法?PHP Gallery::show_gallery怎麽用?PHP Gallery::show_gallery使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Gallery的用法示例。


在下文中一共展示了Gallery::show_gallery方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: display_accommodations

 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;
 }
開發者ID:gabzon,項目名稱:experiensa,代碼行數:44,代碼來源:accommodation.php

示例2: _e

      <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 
開發者ID:gabzon,項目名稱:experiensa,代碼行數:31,代碼來源:accommodation.php

示例3: __

                                    <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">
開發者ID:gabzon,項目名稱:experiensa,代碼行數:31,代碼來源:content-single-estimate.php


注:本文中的Gallery::show_gallery方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。