eastside/application/third_party/master/config/master.php
Linus Miller cd141ef6fa Initial commit.
Former-commit-id: d2e17d67fe98124db4e87b10597af9d54d14d0de
2013-12-07 17:43:26 +01:00

81 lines
3.1 KiB
PHP

<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Active template
|--------------------------------------------------------------------------
|
| The $master['active_template'] setting lets you choose which template
| group to make active. By default there is only one group (the
| "default" group).
|
*/
$master['active_template'] = 'default';
/*
|--------------------------------------------------------------------------
| Explaination of template group variables
|--------------------------------------------------------------------------
|
| ['template'] The filename of your master template file in the Views folder.
| Typically this file will contain a full XHTML skeleton that outputs your
| full template or region per region. Include the file extension if other
| than ".php"
| ['regions'] Places within the template where your content may land.
| You may also include default markup, wrappers and attributes here
| (though not recommended). Region keys must be translatable into variables
| (no spaces or dashes, etc)
| ['parser'] The parser class/library to use for the parse_view() method
| NOTE: See http://codeigniter.com/forums/viewthread/60050/P0/ for a good
| Smarty Parser that works perfectly with Template
| ['parse_template'] FALSE (default) to treat master template as a View. TRUE
| to user parser (see above) on the master template
|
| Region information can be extended by setting the following variables:
| ['content'] Must be an array! Use to set default region content
| ['name'] A string to identify the region beyond what it is defined by its key.
| ['wrapper'] An HTML element to wrap the region contents in. (We
| recommend doing this in your template file.)
| ['attributes'] Multidimensional array defining HTML attributes of the
| wrapper. (We recommend doing this in your template file.)
|
| Example:
| $master['default']['regions'] = array(
| 'header' => array(
| 'content' => array('<h1>Welcome</h1>','<p>Hello World</p>'),
| 'name' => 'Page Header',
| 'wrapper' => '<div>',
| 'attributes' => array('id' => 'header', 'class' => 'clearfix')
| )
| );
|
*/
/*
|--------------------------------------------------------------------------
| Default Master Configuration (adjust this or create your own)
|--------------------------------------------------------------------------
*/
$master['default']['template'] = 'masters/default';
$master['default']['regions'] = array(
'title',
'content',
'current_page'
);
$master['default']['css'] = array('main');
$master['default']['js'] = array('modernizr', 'init');
$master['default']['parser'] = 'parser';
$master['default']['parser_method'] = 'parse';
$master['default']['parse_template'] = FALSE;
$master['admin']['template'] = 'templates/admin';
$master['admin']['regions'] = array(
'title',
'content'
);
$master['admin']['parser'] = 'parser';
$master['admin']['parse_method'] = 'parse';
$master['admin']['parse_template'] = FALSE;
/* End of file template.php */
/* Location: ./system/application/config/template.php */