Changeset 485 for trunk/modules/user_guide
- Timestamp:
- 09/03/2007 07:12:20 PM (15 months ago)
- Location:
- trunk/modules/user_guide
- Files:
-
- 1 added
- 3 modified
-
controllers/user_guide.php (modified) (3 diffs)
-
views/user_guide/en/content/general/configuration.php (modified) (1 diff)
-
views/user_guide/js/effects.js (modified) (1 diff)
-
views/user_guide/media (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/user_guide/controllers/user_guide.php
r484 r485 34 34 } 35 35 36 // For Kohana's custom tags to be handled properly37 Event::add('system.pre_output', array($this, '_tags'));38 39 36 // For i18n 40 37 $locale = Config::item('core.locale', TRUE); … … 44 41 $content = rtrim('user_guide/'.$locale.'content/'.$category.'/'.$section, '/'); 45 42 46 // Load markdown47 require Kohana::find_file('vendor', 'Markdown');48 49 43 $template = $this->load->view('user_guide/'.$locale.'template'); 50 44 $template->menu = $this->load->view('user_guide/'.$locale.'menu', array('active_category' => $category, 'active_section' => $section)); 51 $template->content = $this->load->view($content)->render(FALSE, 'Markdown');45 $template->content = $this->load->view($content)->render(FALSE, array($this, '_tags')); 52 46 53 47 // Display output … … 55 49 } 56 50 57 public function _tags( )51 public function _tags($output) 58 52 { 59 Kohana::$output = preg_replace_callback('!<(benchmark|config|definition|event|file)>.+?</[^>]+>!', array($this, '_tag_update'), Kohana::$output); 53 // Load markdown 54 require Kohana::find_file('vendor', 'Markdown'); 55 56 $output = Markdown($output); 57 58 $output = str_replace(array 59 ( 60 '<pre><code>', '</code></pre>', 61 '<code>', '</code>' 62 ), array 63 ( 64 '<pre class="prettyprint">', '</pre>', 65 '<code class="prettyprint">', '</code>' 66 ), 67 $output); 68 69 $output = preg_replace_callback('!<(benchmark|config|definition|event|file)>.+?</[^>]+>!', array($this, '_tag_update'), $output); 70 71 return $output; 60 72 } 61 73 -
trunk/modules/user_guide/views/user_guide/en/content/general/configuration.php
r483 r485 19 19 20 20 permitted_uri_chars 21 : List of characters that are allowed in URI strings. The default settings should work for almost every application. **If you c anthis option, the security of Kohana may diminish.**21 : List of characters that are allowed in URI strings. The default settings should work for almost every application. **If you change this option, the security of Kohana may diminish.** 22 22 23 23 locale -
trunk/modules/user_guide/views/user_guide/js/effects.js
r484 r485 1 1 // $Id$ 2 // Behavior attachment3 2 $(document).ready(function(){ 4 3 // Menu opacity hover effect, much fancy pants!
