示例#1
0
<?php

echo theme_view('general/header');
echo theme_view('general/nav');
?>


<div id="page-wrapper">
	<div class="container-fluid">
		<?php 
echo Template::content();
?>
	</div><!-- /.container-fluid -->
</div><!-- /#page-wrapper -->
<?php 
echo theme_view('general/footer');
?>
 
示例#2
0
<?php

Assets::add_js(array('bootstrap.min.js', 'jwerty.js'), 'external', true);
echo theme_view('partials/_header');
?>

<div class="body">
	<div class="container-fluid">
	        <?php 
echo Template::message();
?>
	
	        <?php 
echo isset($content) ? $content : Template::content();
?>
	</div>
</div>

<?php 
echo theme_view('partials/_footer');
示例#3
0
<?php

echo theme_view('header');
?>
<div class="container"><!-- Start of Main Container -->
    <?php 
echo theme_view('_sitenav');
echo Template::message();
echo isset($content) ? $content : Template::content();
echo theme_view('footer');
示例#4
0
<?php

echo theme_view('_header');
?>
<style>body { background: #f5f5f5; }</style>

<div class="container"> <!-- Start of Main Container -->

    <?php 
echo isset($content) ? $content : Template::content();
?>

<?php 
echo theme_view('_footer', array('show' => false));
<?php

/*
|--------------------------------------------------------------------------
| Custom Theme Routes
|--------------------------------------------------------------------------
|
| In this file you can over ride any [routes](src/Wardrobe/routes.php) and
| add new ones based on your needs. For information on routing please see
| the following documentation:
| http://laravel.com/docs/routing
| http://laravel.com/docs/controllers
|
*/
$wardrobeControllers = 'Wardrobe\\Core\\Controllers\\';
Route::get('/tags', function () {
    return View::make(theme_view('tags'));
});
// Example of over riding a default route:
// Route::get('enviar/{slug}', array('uses' => $wardrobeControllers.'PostController@show', 'as' => 'wardrobe.posts.show'));
// Route::get('post/{slug}', function()
// {
//     return App::abort(404, 'Page not found');
// });
<?php

/*
|--------------------------------------------------------------------------
| Custom Theme Routes
|--------------------------------------------------------------------------
|
| In this file you can over ride any routes and add new ones based on your
| needs. For information on routing please see the following documentation:
| http://laravel.com/docs/routing
| http://laravel.com/docs/controllers
|
*/
Route::get('/about', function () {
    return View::make(theme_view('about'));
});
示例#7
0
 /**
  * Generate a link to a CSS file.
  *
  * @param  string  $url
  * @param  array   $attributes
  * @param  bool    $secure
  * @return string
  */
 function theme_style($url, $attributes = array(), $secure = null)
 {
     $url = theme_view() . $url;
     $defaults = array('media' => 'all', 'type' => 'text/css', 'rel' => 'stylesheet');
     $attributes = $attributes + $defaults;
     $attributes['href'] = $this->url->asset($url, $secure);
     return '<link' . $this->attributes($attributes) . '>' . PHP_EOL;
 }
示例#8
0
<html lang="en">
<?php 
echo theme_view('header');
?>
<body id="home">
<div class="splash">
<div class="container">
<?php 
echo theme_view('navbar');
?>
	<section class="content">
		<?php 
if (isset($enable_breadcrumb) && !empty($enable_breadcrumb)) {
    ?>
			<?php 
    echo theme_view('breadcrumb');
    ?>
		<?php 
}
?>
		<?php 
echo Template::message();
echo isset($content) ? $content : Template::content();
?>
	</section>
</div>
<div class="footer">
	<div class="container">
		<?php 
if (ENVIRONMENT == 'development') {
    ?>
示例#9
0
if (ENVIRONMENT == 'development') {
    ?>
				<p style="float: right; margin-right: 80px;">Page rendered in {elapsed_time} seconds, using {memory_usage}.</p>
			<?php 
}
?>
	
			<p>Powered Proudly by <a href="http://cibonfire.com" target="_blank">Bonfire <?php 
echo BONFIRE_VERSION;
?>
</a></p>
		</div>
	</footer>
	
	<?php 
echo theme_view('parts/modal_login');
?>

	<div id="debug"></div>
  <!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
  <script>window.jQuery || document.write('<script src="<?php 
echo js_path();
?>
jquery-1.7.2.min.js"><\/script>')</script>

  <!-- This would be a good place to use a CDN version of jQueryUI if needed -->
	<?php 
echo Assets::js();
?>
示例#10
0
      <!-- Main Header -->
  <header class="main-header">

    <!-- Logo -->
    <a href="/admin/dashboard/index" class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini"><strong>IGO</strong></span>
      <!-- logo for regular state and mobile devices -->
      <span class="logo-lg"><strong><?php 
echo isset($site_title) ? $site_title : 'Ignition Go';
?>
</strong></span>
    </a>
<?php 
echo theme_view('navbar');
echo theme_view('sidebar');
?>
  
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
     <section class="content-header">
      <h1>
        <strong><?php 
echo isset($page_title) ? $page_title : 'Admin Dashboard';
?>
        <small><strong><?php 
echo isset($page_subtitle) ? $page_subtitle : '';
?>
</small>
      </h1>
示例#11
0
文件: routes.php 项目: sekouzed/core
            return Redirect::to('wardrobe');
        });
    });
});
Route::group(Config::get('core::routes.admin_group_rules'), function () use($wardrobeControllers) {
    Route::get('/', array('uses' => $wardrobeControllers . 'AdminController@index', 'as' => 'wardrobe.admin.index'));
    Route::get('logout', array('uses' => $wardrobeControllers . 'LoginController@destroy', 'as' => 'wardrobe.admin.logout'));
    Route::get('login', array('uses' => $wardrobeControllers . 'LoginController@create', 'as' => 'wardrobe.admin.login'));
    Route::post('login', array('uses' => $wardrobeControllers . 'LoginController@store'));
    Route::get('login/remind', array('uses' => $wardrobeControllers . 'LoginController@remindForm', 'as' => 'wardrobe.admin.remindForm'));
    Route::post('login/remind', array('uses' => $wardrobeControllers . 'LoginController@remindSend'));
});
Route::group(Config::get('core::routes.api_group_rules'), function () use($wardrobeControllers) {
    Route::get('/', array('as' => 'wardrobe.api.index'));
    Route::resource('post', $wardrobeControllers . 'Api\\PostController');
    Route::resource('tag', $wardrobeControllers . 'Api\\TagController');
    Route::resource('user', $wardrobeControllers . 'Api\\UserController');
    Route::controller('dropzone', $wardrobeControllers . 'Api\\DropzoneController');
});
if (Config::get('core::wardrobe.handles_404')) {
    App::missing(function ($exception) {
        View::addLocation(public_path() . '/' . Config::get('core::wardrobe.theme_dir'));
        return Response::view(theme_view('404'), array(), 404);
    });
}
/**
 * Allows themes complete control to over ride routes or add new ones.
 */
if (file_exists($theme_routes = public_path() . '/' . Config::get('core::wardrobe.theme_dir') . '/' . Config::get('core::wardrobe.theme') . '/routes.php')) {
    include $theme_routes;
}
示例#12
0
 function view($view = null, $data = [], $mergeData = [])
 {
     $factory = app('Illuminate\\Contracts\\View\\Factory');
     if (func_num_args() === 0) {
         return $factory;
     }
     return $factory->make(theme_view() . '.' . $view, $data, $mergeData);
 }
示例#13
0
<?php

/*
|--------------------------------------------------------------------------
| Custom Theme Routes
|--------------------------------------------------------------------------
|
| In this file you can override any routes and add new ones based on your
| needs. For information on routing please see the following documentation:
| http://laravel.com/docs/routing
| http://laravel.com/docs/controllers
|
*/
Route::get('/about', function () {
    return View::make(theme_view('about'));
});
Route::get('/work', function () {
    return View::make(theme_view('work'));
});
示例#14
0
<?php

/*
|--------------------------------------------------------------------------
| Custom Theme Routes
|--------------------------------------------------------------------------
|
| In this file you can over ride any [routes](src/Wardrobe/routes.php) and
| add new ones based on your needs. For information on routing please see
| the following documentation:
| http://laravel.com/docs/routing
| http://laravel.com/docs/controllers
|
*/
$wardrobeControllers = 'Wardrobe\\Core\\Controllers\\';
Route::get('/blog/tags', function () {
    return View::make(theme_view('tags'));
});
Route::get('/blog/about', function () {
    return View::make(theme_view('pages.about'));
});
// Example of over riding a default route:
// Route::get('enviar/{slug}', array('uses' => $wardrobeControllers.'PostController@show', 'as' => 'wardrobe.posts.show'));
// Route::get('post/{slug}', function()
// {
//     return App::abort(404, 'Page not found');
// });
示例#15
0
|               | skin-red                                |
|               | skin-green                              |
|---------------------------------------------------------|
|LAYOUT OPTIONS | fixed                                   |
|               | layout-boxed                            |
|               | layout-top-nav                          |
|               | sidebar-collapse                        |
|               | sidebar-mini                            |
|---------------------------------------------------------|
-->
*/
?>
<!DOCTYPE html>
<html lang="en">
<?php 
echo theme_view('header', array('adm_url' => $adm_url, 'adm_skincolor' => $adm_skincolor));
?>
<body class="hold-transition skin-<?php 
echo $adm_skincolor;
?>
 <?php 
echo $adm_layout;
?>
">
<div class="wrapper">
 <?php 
echo Template::message();
echo isset($content) ? $content : Template::content();
?>
   
</div>
示例#16
0
        <p>Javascript is required to use Bonfire's admin.</p>
    </noscript>

    <!-- Navigation -->

    <nav class="navbar-static-top navbar-inverse navbar navbar-default navbar-custom">
        <div class="container">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header page-scroll">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false" aria-controls="navbar">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>                
                <?php 
echo anchor('/', html_escape($this->settings_lib->item('site.title')), 'class="navbar-brand"');
if (isset($shortcut_data) && is_array($shortcut_data['shortcuts']) && is_array($shortcut_data['shortcut_keys']) && count($shortcut_data['shortcut_keys'])) {
    ?>
                <?php 
}
?>
            </div>
            <?php 
echo theme_view('_sitenav');
?>
        </div>
        <!-- /.container -->        
    </nav>