本文整理匯總了PHP中gpOutput::GetComponents方法的典型用法代碼示例。如果您正苦於以下問題:PHP gpOutput::GetComponents方法的具體用法?PHP gpOutput::GetComponents怎麽用?PHP gpOutput::GetComponents使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類gpOutput
的用法示例。
在下文中一共展示了gpOutput::GetComponents方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?php
common::LoadComponents('bootstrap3-js');
gpOutput::GetHead();
?>
<!--[if lt IE 9]><?php
// HTML5 shim, for IE6-8 support of HTML5 elements
gpOutput::GetComponents('html5shiv');
gpOutput::GetComponents('respondjs');
?>
<![endif]-->
</head>
<body>
<div class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<?php
示例2: array
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?php
common::LoadComponents('bootstrap-all');
gpOutput::GetHead();
?>
<!--[if lt IE 9]><?php
// HTML5 shim, for IE6-8 support of HTML5 elements
gpOutput::GetComponents('html5shiv');
?>
<![endif]-->
</head>
<body>
<div class="container-narrow">
<div class="masthead">
<?php
$GP_ARRANGE = false;
$GP_MENU_CLASSES = array('menu_top' => 'nav nav-pills pull-right', 'selected' => '', 'selected_li' => 'active', 'childselected' => '', 'childselected_li' => '', 'li_' => '', 'li_title' => '');
gpOutput::Get('Menu');
//top level links
?>