本文整理汇总了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
?>