PageRenderTime 26ms CodeModel.GetById 30ms RepoModel.GetById 0ms app.codeStats 0ms

/application/config/template.php

https://bitbucket.org/matyhaty/senses-thwaites
PHP | 216 lines | 128 code | 27 blank | 61 comment | 1 complexity | 9901357a5c0ff1b415663acfa96fcee9 MD5 | raw file
  1. <?php
  2. if (!defined('BASEPATH'))
  3. exit('No direct script access allowed');
  4. /*
  5. |--------------------------------------------------------------------------
  6. | Active template
  7. |--------------------------------------------------------------------------
  8. |
  9. | The $template['active_template'] setting lets you choose which template
  10. | group to make active. By default there is only one group (the
  11. | "default" group).
  12. |
  13. */
  14. $template['active_template'] = 'default';
  15. /*
  16. |--------------------------------------------------------------------------
  17. | Explaination of template group variables
  18. |--------------------------------------------------------------------------
  19. |
  20. | ['template'] The filename of your master template file in the Views folder.
  21. | Typically this file will contain a full XHTML skeleton that outputs your
  22. | full template or region per region. Include the file extension if other
  23. | than ".php"
  24. | ['regions'] Places within the template where your content may land.
  25. | You may also include default markup, wrappers and attributes here
  26. | (though not recommended). Region keys must be translatable into variables
  27. | (no spaces or dashes, etc)
  28. | ['parser'] The parser class/library to use for the parse_view() method
  29. | NOTE: See http://codeigniter.com/forums/viewthread/60050/P0/ for a good
  30. | Smarty Parser that works perfectly with Template
  31. | ['parse_template'] FALSE (default) to treat master template as a View. TRUE
  32. | to user parser (see above) on the master template
  33. |
  34. | Region information can be extended by setting the following variables:
  35. | ['content'] Must be an array! Use to set default region content
  36. | ['name'] A string to identify the region beyond what it is defined by its key.
  37. | ['wrapper'] An HTML element to wrap the region contents in. (We
  38. | recommend doing this in your template file.)
  39. | ['attributes'] Multidimensional array defining HTML attributes of the
  40. | wrapper. (We recommend doing this in your template file.)
  41. |
  42. | Example:
  43. | $template['default']['regions'] = array(
  44. | 'header' => array(
  45. | 'content' => array('<h1>Welcome</h1>','<p>Hello World</p>'),
  46. | 'name' => 'Page Header',
  47. | 'wrapper' => '<div>',
  48. | 'attributes' => array('id' => 'header', 'class' => 'clearfix')
  49. | )
  50. | );
  51. |
  52. */
  53. /*
  54. |--------------------------------------------------------------------------
  55. | Default Template Configuration (adjust this or create your own)
  56. |--------------------------------------------------------------------------
  57. */
  58. $template['default']['folder'] = 'thwaites_admin';
  59. $template['default']['template'] = 'template';
  60. $template['default']['regions'] = array(
  61. 'header',
  62. 'title',
  63. 'page_header',
  64. 'meta',
  65. 'flash_message',
  66. 'banner',
  67. 'navigation',
  68. 'content',
  69. 'left',
  70. 'right',
  71. 'footer',
  72. 'validation_errors',
  73. 'search_object',
  74. 'filter',
  75. 'dom_ready',
  76. 'profile_head',
  77. 'sheet'
  78. );
  79. $template['default']['parser'] = 'parser';
  80. $template['default']['parser_method'] = 'parse';
  81. $template['default']['parse_template'] = FALSE;
  82. //---------//---------//---------//---------//---------//---------//---------
  83. $template['admin']['folder'] = 'thwaites_admin';
  84. $template['admin']['template'] = 'template';
  85. $template['admin']['regions'] = array(
  86. 'header',
  87. 'title',
  88. 'page_header',
  89. 'meta',
  90. 'flash_message',
  91. 'banner',
  92. 'navigation',
  93. 'content',
  94. 'left',
  95. 'right',
  96. 'footer',
  97. 'validation_errors',
  98. 'search_object',
  99. 'filter',
  100. 'dom_ready',
  101. 'profile_head',
  102. 'sheet'
  103. );
  104. $template['admin']['parser'] = 'parser';
  105. $template['admin']['parser_method'] = 'parse';
  106. $template['admin']['parse_template'] = FALSE;
  107. //---------//---------//---------//---------//---------//---------//---------
  108. $template['cart']['folder'] = 'thwaites';
  109. $template['cart']['template'] = 'builder';
  110. $template['cart']['regions'] = array(
  111. 'header',
  112. 'title',
  113. 'navigation',
  114. 'page_header',
  115. 'page_meta',
  116. 'meta',
  117. 'carousel',
  118. 'content',
  119. 'footer',
  120. 'dom_ready',
  121. 'sheet',
  122. 'slider'
  123. );
  124. $template['cart']['parser'] = 'parser';
  125. $template['cart']['parser_method'] = 'parse';
  126. $template['cart']['parse_template'] = FALSE;
  127. //---------//---------//---------//---------//---------//---------//---------
  128. $template['homepage']['folder'] = 'thwaites';
  129. $template['homepage']['template'] = 'homepage';
  130. $template['homepage']['regions'] = array(
  131. 'header',
  132. 'title',
  133. 'navigation',
  134. 'page_header',
  135. 'page_meta',
  136. 'meta',
  137. 'carousel',
  138. 'content',
  139. 'footer',
  140. 'dom_ready',
  141. 'sheet',
  142. 'slider'
  143. );
  144. $template['homepage']['parser'] = 'parser';
  145. $template['homepage']['parser_method'] = 'parse';
  146. $template['homepage']['parse_template'] = FALSE;
  147. //---------//---------//---------//---------//---------//---------//---------
  148. $template['builder']['folder'] = 'thwaites';
  149. $template['builder']['template'] = 'builder';
  150. $template['builder']['regions'] = array(
  151. 'header',
  152. 'title',
  153. 'navigation',
  154. 'page_header',
  155. 'page_meta',
  156. 'meta',
  157. 'carousel',
  158. 'content',
  159. 'footer',
  160. 'dom_ready',
  161. 'sheet',
  162. 'slider'
  163. );
  164. $template['builder']['parser'] = 'parser';
  165. $template['builder']['parser_method'] = 'parse';
  166. $template['builder']['parse_template'] = FALSE;
  167. //---------//---------//---------//---------//---------//---------//---------
  168. $template['cms']['folder'] = 'thwaites';
  169. $template['cms']['template'] = 'builder';
  170. $template['cms']['regions'] = array(
  171. 'header',
  172. 'title',
  173. 'navigation',
  174. 'page_header',
  175. 'page_meta',
  176. 'meta',
  177. 'carousel',
  178. 'content',
  179. 'footer',
  180. 'dom_ready',
  181. 'sheet',
  182. 'slider'
  183. );
  184. $template['cms']['parser'] = 'parser';
  185. $template['cms']['parser_method'] = 'parse';
  186. $template['cms']['parse_template'] = FALSE;
  187. //---------//---------//---------//---------//---------//---------//---------
  188. /* End of file template.php */
  189. /* Location: ./system/application/config/template.php */