浏览代码

Let template set tell us what the valid non-breaking space is for the target output format. This is somewhat inefficient (although so far only found one place to use it - commit coming later); faster design choice might be to create a <template_name>_functions.php file in the template set's directory, where a function called <template_name>_non_breaking_space() can be called, but then where do you draw the line? (Could also replace the hyperlink.tpl file, but then it starts to look like you are doing exactly what the template engine is supposed to be doing.)

pdontthink 18 年之前
父节点
当前提交
4624de988c
共有 1 个文件被更改,包括 19 次插入0 次删除
  1. 19 0
      templates/default/non_breaking_space.tpl

+ 19 - 0
templates/default/non_breaking_space.tpl

@@ -0,0 +1,19 @@
+<?php
+
+/**
+  * non_breaking_space.tpl
+  *
+  * Template for constructing a non-breaking space.
+  *
+  * The following variables are available in this template:
+  *      (none)
+  *
+  * @copyright &copy; 1999-2006 The SquirrelMail Project Team
+  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
+  * @version $Id$
+  * @package squirrelmail
+  * @subpackage templates
+  */
+
+
+?>&nbsp;