本文整理匯總了PHP中Button::display_buttons方法的典型用法代碼示例。如果您正苦於以下問題:PHP Button::display_buttons方法的具體用法?PHP Button::display_buttons怎麽用?PHP Button::display_buttons使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Button
的用法示例。
在下文中一共展示了Button::display_buttons方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: print_r
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: 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;
}
示例3: print_r
}
/*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);