root/trunk/includes/smarty.inc.php
| Revision 18, 2.2 KB (checked in by mat, 7 years ago) |
|---|
| Line | |
|---|---|
| 1 | <?php |
| 2 | /****************************************************** Open .node *** |
| 3 | * Description: |
| 4 | * Status: Stable. |
| 5 | * Author: Mathieu Pillard <mat@apinc.org> |
| 6 | * $Id$ |
| 7 | * |
| 8 | * Copyright (C) 2005 Alexandre Dath <alexandre@dotnode.com> |
| 9 | * |
| 10 | * This program is free software; you can redistribute it and/or modify |
| 11 | * it under the terms of the GNU General Public License as published by |
| 12 | * the Free Software Foundation; either version 2 of the License, or |
| 13 | * (at your option) any later version. |
| 14 | * |
| 15 | * This program is distributed in the hope that it will be useful, |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | * GNU General Public License for more details. |
| 19 | * |
| 20 | * You should have received a copy of the GNU General Public License |
| 21 | * along with this program; if not, write to the Free Software Foundation, |
| 22 | * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 23 | ******************** http://opensource.ikse.net/projects/dotnode ***/ |
| 24 | |
| 25 | include('Smarty/Smarty.class.php'); |
| 26 | include_once('wiki.inc.php'); |
| 27 | include('smarty_plugins/block.gettext.php'); |
| 28 | include('smarty_plugins/modifier.linkalize.php'); |
| 29 | include('smarty_plugins/modifier.linkurl.php'); |
| 30 | include('smarty_plugins/function.html_access_options.php'); |
| 31 | include('smarty_plugins/modifier.utf8.php'); |
| 32 | |
| 33 | class Smarty_dotnode extends Smarty |
| 34 | { |
| 35 | function Smarty_dotnode() |
| 36 | { |
| 37 | $this->Smarty(); |
| 38 | |
| 39 | $this->use_sub_dirs = true; |
| 40 | $this->debugging_ctrl = false; |
| 41 | # $smarty->force_compile = true; |
| 42 | # $smarty->cache_modified_check = true; |
| 43 | |
| 44 | $this->template_dir = SMARTYPATH . '/templates/'; |
| 45 | $this->compile_dir = SMARTYPATH . '/templates_c/'; |
| 46 | $this->config_dir = SMARTYPATH . '/configs/'; |
| 47 | $this->cache_dir = SMARTYPATH . '/cache/'; |
| 48 | $this->compile_id = 'general'; |
| 49 | $this->cache_lifetime = 3600; |
| 50 | $this->cache = false; |
| 51 | |
| 52 | $this->register_block('t', 'smarty_translate'); |
| 53 | |
| 54 | $this->register_modifier('wikise', 'Wikise'); |
| 55 | $this->register_modifier('linkurl', 'smarty_modifier_linkurl'); |
| 56 | $this->register_modifier('utf8', 'smarty_modifier_utf8'); |
| 57 | $this->register_function('html_access_options', 'smarty_function_html_access_options'); |
| 58 | |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | ?> |
Note: See TracBrowser
for help on using the browser.
