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


PHP Menu::build方法代码示例

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


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

示例1: Logo

	<div id="sidebar-wrapper"> <!-- Sidebar with logo and menu -->
	
	<h1 id="sidebar-title"><a href="#">Ravel CMS</a></h1>
  
	<!-- Logo (221px wide) -->
	<a href="#"><img id="logo" src="<?php 
echo admin_asset('admin/images/ravelcmslogo.png');
?>
" alt="Ravel CMS" /></a>
  
	<!-- Sidebar Profile links -->
	<div id="profile-links">
		Hello, <a href="#" title="Edit your profile"><?php 
echo ucfirst(currentUserName());
?>
</a><br />
		<br />
		<a href="#" title="View the Site">View the Site</a> | <a href="<?php 
echo URL::route('ravellogout');
?>
" title="Sign Out">Sign Out</a>
	
		
	</div> 
	
	<?php 
echo Menu::build('admin.menu');
?>
	
	</div>
</div> <!-- End #sidebar -->
开发者ID:rodrane,项目名称:ravel,代码行数:31,代码来源:sidebar.blade.php

示例2: if

<? View::insert('includes/header'); ?>

<!-- start content -->
<div class="content container_12">

    <? if($subNav = Menu::build(-1, 'admin/%s', array('attributes' => array('class' => 'menu')))): ?>
        <div class="grid_3 spacer">
            <h2>Navigation</h2>
            <?php 
echo $subNav;
?>
        </div>
    <? endif; ?>

    <div class="grid_<?php 
echo $subNav ? '9' : '12';
?>
">
        <? if(is_array($adminContent) && $adminContent): ?>
            <? if(isset($adminContent[0])): ?>

                <? foreach($adminContent as $content): ?>
                    <div class="grid_12 spacer">
                        <h1><?php 
echo $content['title'];
?>
</h1>

                        <? if(isset($content['topright'])): ?>
                            <div class="topright">
                                <?php 
开发者ID:simudream,项目名称:caffeine,代码行数:31,代码来源:index.php

示例3: create_tables

 /**
  * Index Page for this controller.
  * Run from CLI to create necessary tables etc.
  */
 public function create_tables()
 {
     Menu::build();
 }
开发者ID:salmander,项目名称:ci-on-wings,代码行数:8,代码来源:Setup.php

示例4: array

echo Html::a(User::current()->email, 'admin/user/edit/' . User::current()->id);
?>
                &nbsp;&nbsp;|&nbsp;&nbsp;
                <?php 
echo Html::a('Logout', 'admin/logout');
?>
            </div>
        <? endif; ?>
    </div>
    <div class="clear">&nbsp;</div>

    <div class="tab_bar">
        <div class="container_12">
            <div class="grid_12">
                <?php 
echo Menu::build(0, 'admin', array('attributes' => array('class' => 'tabs')));
?>
            </div>
            <div class="clear">&nbsp;</div>
        </div>
    </div>

    <div class="crumbs">
        <div class="container_12">
            <div class="grid_12">
                <!--
                <a href="#">Cookie</a><span class="splitter">&rarr;</span>
                <a href="#">Crumb</a><span class="splitter">&rarr;</span>
                Trail
                -->
            </div>
开发者ID:simudream,项目名称:caffeine,代码行数:31,代码来源:header.php

示例5: Menu

<?php

# The view of the menu. It creates a new Menu-object and retrieves the array from the is build function.
# The array contains the categories that exist in the database and booleans that state whether the user is browsing a category or not.
# (the current browsing category is the $_GET['category'])
include 'model/menu_model.php';
$p = new Menu();
$data = $p->build();
?>
<html>
<head>
	<link rel="stylesheet" type="text/css" href="styles.css">
</head>

<body>
	<div class='menu_header'>
		<b class="font_green">Products:</b><br>
		<?php 
foreach ($data['rows'] as $row) {
    ?>
			<a 
				class="<?php 
    if ($row['selected']) {
        echo 'selected_menu_item';
    } else {
        echo 'menu_item';
    }
    ?>
"
				href="products.php?category=<?php 
    echo $row['category'];
开发者ID:anla9107,项目名称:E-butik-PHP,代码行数:31,代码来源:menu_view.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     $this->_regions['nav_sub'] = Menu::build('sub', 'main');
 }
开发者ID:rajeltomari,项目名称:Mibbit-Chat,代码行数:5,代码来源:chat.php

示例7: function

/*
|
| Header Menu
|
*/
View::composer('layouts.partials.header.dashboard', function ($view) {
    //Menu::build(identifier, URI, Group list, format);
    $menus = Menu::build('header');
    $user_menu = array();
    foreach ($menus as $menu) {
        if (strtolower($menu->title) == 'user' and Auth::check()) {
            $user_menu = $menu->items;
            break;
        }
        if (strtolower($menu->title) == 'guest' and !Auth::check()) {
            $user_menu = $menu->items;
            break;
        }
    }
    $view->with('header_menus', $user_menu);
});
/*
|
| Left Sidebar Menu
|
*/
View::composer(array('layouts.partials.sidebar.dashboard', 'layouts.partials.sidebar.admin'), function ($view) {
    //Menu::build(identifier, URI, Group list, format);
    $menu = Menu::build('left-sidebar');
    $view->with('left_sidebar_menus', $menu);
});
开发者ID:sgh1986915,项目名称:laravel-bizgym,代码行数:31,代码来源:composers.php


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