示例#1
0
           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);
         break;
     case 'pinterest':
         Freewall::display_pinterest_layout($locations);
示例#2
0
 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;
 }
示例#3
0
 }
 /*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);
         break;
     case 'pinterest':
         Freewall::display_pinterest_layout($themes);