Пример #1
0
	<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 -->
Пример #2
0
<? 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 
Пример #3
0
 /**
  * Index Page for this controller.
  * Run from CLI to create necessary tables etc.
  */
 public function create_tables()
 {
     Menu::build();
 }
Пример #4
0
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>
Пример #5
0
<?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'];
Пример #6
0
 public function __construct()
 {
     parent::__construct();
     $this->_regions['nav_sub'] = Menu::build('sub', 'main');
 }
Пример #7
0
/*
|
| 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);
});