当前位置: 首页>>代码示例>>PHP>>正文


PHP Card::display_card_simple方法代码示例

本文整理汇总了PHP中Card::display_card_simple方法的典型用法代码示例。如果您正苦于以下问题:PHP Card::display_card_simple方法的具体用法?PHP Card::display_card_simple怎么用?PHP Card::display_card_simple使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Card的用法示例。


在下文中一共展示了Card::display_card_simple方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: get_component

 public static function get_component($component, $data)
 {
     $display = "";
     switch ($component) {
         case 'carousel':
             $display .= Carousel::display_carousel($data, true);
             break;
         case 'grid':
             $display .= Grid::display_grid($data, true);
             break;
         case 'card':
             $display .= Card::display_card_simple($data, true);
             break;
         case 'button':
             $display .= Button::display_buttons($data, true);
             break;
         case 'masonry':
             $display .= Masonry::display_masonry($data, true);
             break;
         case 'flex-layout':
             $display .= Freewall::display_flex_layout($data, true);
             break;
         case 'windows':
             $display .= Freewall::display_win8_layout($data, true);
             break;
         case 'img-layout':
             $display .= Freewall::display_image_layout($data, true);
             break;
         case 'pinterest':
             $display .= Freewall::display_pinterest_layout($data, true);
             break;
         default:
             $display .= Grid::display_grid($data, true);
             break;
     }
     return $display;
 }
开发者ID:gabzon,项目名称:experiensa,代码行数:37,代码来源:showcase.php

示例2: get_the_title

            $title = get_the_title($id);
            $post_link = get_permalink($id);
            $images = Voyage::get_voyage_images($id);
            /*echo "Encontrado:".$title;
              echo"<pre>";
              print_r($images);
              echo"</pre>";*/
            $info['post_link'] = $post_link;
            $info['image_url'] = $images['image_url'];
            $info['title'] = $title;
            $data[] = $info;
        }
        /*echo"<pre>";
          print_r($data);
          echo"</pre>";*/
        Card::display_card_simple($data);
        //Showcase::get_component('card',$data);
        ?>

        <?php 
    } else {
        ?>
                <h3> <?php 
        echo __('Sorry! Currently there are no voyages', 'sage');
        ?>
</h3>
        </div>
    </div>
</section>
<?php 
    }
开发者ID:gabzon,项目名称:experiensa,代码行数:31,代码来源:postlist-result.php

示例3: print_r

         
                                 }*/
         /*echo "<pre>";
           print_r($location);
           echo "</pre>";*/
     }
 }
 switch ($component) {
     case 'carousel':
         Carousel::display_carousel($locations);
         break;
     case 'grid':
         Grid::display_grid($locations);
         break;
     case 'card':
         Card::display_card_simple($locations);
         break;
     case 'button':
         Button::display_buttons($locations);
         break;
     case 'masonry':
         Masonry::display_masonry($locations);
         break;
     case 'flex-layout':
         Freewall::display_flex_layout($locations);
         break;
     case 'windows':
         Freewall::display_win8_layout($locations);
         break;
     case 'img-layout':
         Freewall::display_image_layout($locations);
开发者ID:gabzon,项目名称:experiensa,代码行数:30,代码来源:destinations.php

示例4: wp_get_attachment_image

     $theme['thumbnail_image'] = wp_get_attachment_image($post->ID, 'thumbnail');
     $theme['thumbnail_url'] = wp_get_attachment_thumb_url($post->ID);
     $themes[] = $theme;
 }
 /*echo "<pre>";
   print_r($themes);
   echo "</pre>";*/
 switch ($component) {
     case 'carousel':
         Carousel::display_carousel($themes);
         break;
     case 'grid':
         Grid::display_grid($themes);
         break;
     case 'card':
         Card::display_card_simple($themes);
         break;
     case 'button':
         Button::display_buttons($themes);
         break;
     case 'masonry':
         Masonry::display_masonry($themes);
         break;
     case 'flex-layout':
         Freewall::display_flex_layout($themes);
         break;
     case 'windows':
         Freewall::display_win8_layout($themes);
         break;
     case 'img-layout':
         Freewall::display_image_layout($themes);
开发者ID:gabzon,项目名称:experiensa,代码行数:31,代码来源:themes.php


注:本文中的Card::display_card_simple方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。