summaryrefslogtreecommitdiff
path: root/libs/plugins
diff options
context:
space:
mode:
authormonte.ohrt <monte.ohrt@localhost>2010-08-17 15:39:51 +0000
committermonte.ohrt <monte.ohrt@localhost>2010-08-17 15:39:51 +0000
commit21d507a5cbd165abbdac2ca138f7344bba3e0aab (patch)
tree0a13e8be855e7bc92a66249270dce8bd656b352f /libs/plugins
parentad921936b0e840c82eec99ed188dcada02a6891e (diff)
downloadsmarty-21d507a5cbd165abbdac2ca138f7344bba3e0aab.tar.gz
smarty-21d507a5cbd165abbdac2ca138f7344bba3e0aab.tar.bz2
smarty-21d507a5cbd165abbdac2ca138f7344bba3e0aab.zip
fix formatting
Diffstat (limited to 'libs/plugins')
-rw-r--r--libs/plugins/block.php.php29
-rw-r--r--libs/plugins/block.textformat.php62
-rw-r--r--libs/plugins/function.counter.php2
-rw-r--r--libs/plugins/function.cycle.php3
-rw-r--r--libs/plugins/function.fetch.php4
-rw-r--r--libs/plugins/function.html_checkboxes.php4
-rw-r--r--libs/plugins/function.html_image.php64
-rw-r--r--libs/plugins/function.html_options.php57
-rw-r--r--libs/plugins/function.html_radios.php78
-rw-r--r--libs/plugins/function.html_select_date.php77
-rw-r--r--libs/plugins/function.html_select_time.php44
-rw-r--r--libs/plugins/function.html_table.php97
-rw-r--r--libs/plugins/function.mailto.php96
-rw-r--r--libs/plugins/function.math.php2
-rw-r--r--libs/plugins/function.popup.php5
-rw-r--r--libs/plugins/function.popup_init.php38
-rw-r--r--libs/plugins/modifier.date_format.php48
-rw-r--r--libs/plugins/modifier.debug_print_var.php38
-rw-r--r--libs/plugins/modifier.escape.php3
-rw-r--r--libs/plugins/modifier.regex_replace.php5
-rw-r--r--libs/plugins/modifier.replace.php1
-rw-r--r--libs/plugins/modifier.spacify.php1
-rw-r--r--libs/plugins/modifier.truncate.php4
-rw-r--r--libs/plugins/modifiercompiler.cat.php4
-rw-r--r--libs/plugins/modifiercompiler.count_characters.php5
-rw-r--r--libs/plugins/modifiercompiler.count_paragraphs.php3
-rw-r--r--libs/plugins/modifiercompiler.count_sentences.php2
-rw-r--r--libs/plugins/modifiercompiler.count_words.php2
-rw-r--r--libs/plugins/modifiercompiler.default.php2
-rw-r--r--libs/plugins/modifiercompiler.indent.php2
-rw-r--r--libs/plugins/modifiercompiler.lower.php28
-rw-r--r--libs/plugins/modifiercompiler.noprint.php2
-rw-r--r--libs/plugins/modifiercompiler.string_format.php34
-rw-r--r--libs/plugins/modifiercompiler.strip.php3
-rw-r--r--libs/plugins/modifiercompiler.strip_tags.php3
-rw-r--r--libs/plugins/modifiercompiler.upper.php2
-rw-r--r--libs/plugins/modifiercompiler.wordwrap.php2
-rw-r--r--libs/plugins/outputfilter.trimwhitespace.php3
-rw-r--r--libs/plugins/shared.escape_special_chars.php3
-rw-r--r--libs/plugins/shared.make_timestamp.php4
-rw-r--r--libs/plugins/variablefilter.htmlspecialchars.php23
41 files changed, 452 insertions, 437 deletions
diff --git a/libs/plugins/block.php.php b/libs/plugins/block.php.php
index 7e907bfe..84a0275e 100644
--- a/libs/plugins/block.php.php
+++ b/libs/plugins/block.php.php
@@ -1,21 +1,21 @@
<?php
/**
-* Smarty plugin to execute PHP code
-*
-* @package Smarty
-* @subpackage PluginsBlock
-* @author Uwe Tews
-*/
+ * Smarty plugin to execute PHP code
+ *
+ * @package Smarty
+ * @subpackage PluginsBlock
+ * @author Uwe Tews
+ */
/**
-* Smarty {php}{/php} block plugin
-*
-* @param string $content contents of the block
-* @param object $smarty Smarty object
-* @param boolean $ &$repeat repeat flag
-* @param object $template template object
-* @return string content re-formatted
-*/
+ * Smarty {php}{/php} block plugin
+ *
+ * @param string $content contents of the block
+ * @param object $smarty Smarty object
+ * @param boolean $ &$repeat repeat flag
+ * @param object $template template object
+ * @return string content re-formatted
+ */
function smarty_block_php($params, $content, $smarty, &$repeat, $template)
{
if (!$smarty->allow_php_tag) {
@@ -24,4 +24,5 @@ function smarty_block_php($params, $content, $smarty, &$repeat, $template)
eval($content);
return '';
}
+
?> \ No newline at end of file
diff --git a/libs/plugins/block.textformat.php b/libs/plugins/block.textformat.php
index f578bfb9..733f6e23 100644
--- a/libs/plugins/block.textformat.php
+++ b/libs/plugins/block.textformat.php
@@ -1,37 +1,37 @@
<?php
/**
-* Smarty plugin to format text blocks
-*
-* @package Smarty
-* @subpackage PluginsBlock
-*/
+ * Smarty plugin to format text blocks
+ *
+ * @package Smarty
+ * @subpackage PluginsBlock
+ */
/**
-* Smarty {textformat}{/textformat} block plugin
-*
-* Type: block function<br>
-* Name: textformat<br>
-* Purpose: format text a certain way with preset styles
-* or custom wrap/indent settings<br>
-*
-* @link http://smarty.php.net/manual/en/language.function.textformat.php {textformat}
- (Smarty online manual)
-* @param array $params parameters
-* <pre>
-* Params: style: string (email)
-* indent: integer (0)
-* wrap: integer (80)
-* wrap_char string ("\n")
-* indent_char: string (" ")
-* wrap_boundary: boolean (true)
-* </pre>
-* @author Monte Ohrt <monte at ohrt dot com>
-* @param string $content contents of the block
-* @param object $smarty Smarty object
-* @param boolean &$repeat repeat flag
-* @param object $template template object
-* @return string content re-formatted
-*/
+ * Smarty {textformat}{/textformat} block plugin
+ *
+ * Type: block function<br>
+ * Name: textformat<br>
+ * Purpose: format text a certain way with preset styles
+ * or custom wrap/indent settings<br>
+ *
+ * @link http://smarty.php.net/manual/en/language.function.textformat.php {textformat}
+ * (Smarty online manual)
+ * @param array $params parameters
+ * <pre>
+ * Params: style: string (email)
+ * indent: integer (0)
+ * wrap: integer (80)
+ * wrap_char string ("\n")
+ * indent_char: string (" ")
+ * wrap_boundary: boolean (true)
+ * </pre>
+ * @author Monte Ohrt <monte at ohrt dot com>
+ * @param string $content contents of the block
+ * @param object $smarty Smarty object
+ * @param boolean &$repeat repeat flag
+ * @param object $template template object
+ * @return string content re-formatted
+ */
function smarty_block_textformat($params, $content, $smarty, &$repeat, $template)
{
if (is_null($content)) {
@@ -100,4 +100,4 @@ function smarty_block_textformat($params, $content, $smarty, &$repeat, $template
return $assign ? $template->assign($assign, $_output) : $_output;
}
-?>
+?> \ No newline at end of file
diff --git a/libs/plugins/function.counter.php b/libs/plugins/function.counter.php
index 7ad64807..e2ce8059 100644
--- a/libs/plugins/function.counter.php
+++ b/libs/plugins/function.counter.php
@@ -5,7 +5,6 @@
* @subpackage PluginsFunction
*/
-
/**
* Smarty {counter} function plugin
*
@@ -74,4 +73,5 @@ function smarty_function_counter($params, $smarty)
return $retval;
}
+
?> \ No newline at end of file
diff --git a/libs/plugins/function.cycle.php b/libs/plugins/function.cycle.php
index 2b616d11..5d976456 100644
--- a/libs/plugins/function.cycle.php
+++ b/libs/plugins/function.cycle.php
@@ -1,6 +1,7 @@
<?php
/**
* Smarty plugin
+ *
* @package Smarty
* @subpackage PluginsFunction
*/
@@ -41,6 +42,7 @@
* @param Smarty
* @return string|null
*/
+
function smarty_function_cycle($params, $smarty)
{
static $cycle_vars;
@@ -100,4 +102,5 @@ function smarty_function_cycle($params, $smarty)
return $retval;
}
+
?> \ No newline at end of file
diff --git a/libs/plugins/function.fetch.php b/libs/plugins/function.fetch.php
index 391ff1bb..0a511830 100644
--- a/libs/plugins/function.fetch.php
+++ b/libs/plugins/function.fetch.php
@@ -1,11 +1,11 @@
<?php
/**
* Smarty plugin
+ *
* @package Smarty
* @subpackage PluginsFunction
*/
-
/**
* Smarty {fetch} plugin
*
@@ -214,4 +214,4 @@ function smarty_function_fetch($params, $smarty, $template)
}
}
-?>
+?> \ No newline at end of file
diff --git a/libs/plugins/function.html_checkboxes.php b/libs/plugins/function.html_checkboxes.php
index ac72f3fd..328faf44 100644
--- a/libs/plugins/function.html_checkboxes.php
+++ b/libs/plugins/function.html_checkboxes.php
@@ -1,11 +1,11 @@
<?php
/**
* Smarty plugin
+ *
* @package Smarty
* @subpackage PluginsFunction
*/
-
/**
* Smarty {html_checkboxes} function plugin
*
@@ -142,4 +142,4 @@ function smarty_function_html_checkboxes_output($name, $value, $output, $selecte
return $_output;
}
-?>
+?> \ No newline at end of file
diff --git a/libs/plugins/function.html_image.php b/libs/plugins/function.html_image.php
index be31b18e..e2714a67 100644
--- a/libs/plugins/function.html_image.php
+++ b/libs/plugins/function.html_image.php
@@ -1,39 +1,39 @@
<?php
/**
-* Smarty plugin
-*
-* @package Smarty
-* @subpackage PluginsFunction
-*/
+ * Smarty plugin
+ *
+ * @package Smarty
+ * @subpackage PluginsFunction
+ */
/**
-* Smarty {html_image} function plugin
-*
-* Type: function<br>
-* Name: html_image<br>
-* Date: Feb 24, 2003<br>
-* Purpose: format HTML tags for the image<br>
-* Examples: {html_image file="/images/masthead.gif"}
-* Output: <img src="/images/masthead.gif" width=400 height=23>
-*
-* @link http://smarty.php.net/manual/en/language.function.html.image.php {html_image}
- (Smarty online manual)
-* @author Monte Ohrt <monte at ohrt dot com>
-* @author credits to Duda <duda@big.hu>
-* @version 1.0
-* @param array $params parameters
-* Input:<br>
-* - file = file (and path) of image (required)
-* - height = image height (optional, default actual height)
-* - width = image width (optional, default actual width)
-* - basedir = base directory for absolute paths, default
-* is environment variable DOCUMENT_ROOT
-* - path_prefix = prefix for path output (optional, default empty)
-* @param object $smarty Smarty object
-* @param object $template template object
-* @return string
-* @uses smarty_function_escape_special_chars()
-*/
+ * Smarty {html_image} function plugin
+ *
+ * Type: function<br>
+ * Name: html_image<br>
+ * Date: Feb 24, 2003<br>
+ * Purpose: format HTML tags for the image<br>
+ * Examples: {html_image file="/images/masthead.gif"}
+ * Output: <img src="/images/masthead.gif" width=400 height=23>
+ *
+ * @link http://smarty.php.net/manual/en/language.function.html.image.php {html_image}
+ * (Smarty online manual)
+ * @author Monte Ohrt <monte at ohrt dot com>
+ * @author credits to Duda <duda@big.hu>
+ * @version 1.0
+ * @param array $params parameters
+ * Input:<br>
+ * - file = file (and path) of image (required)
+ * - height = image height (optional, default actual height)
+ * - width = image width (optional, default actual width)
+ * - basedir = base directory for absolute paths, default
+ * is environment variable DOCUMENT_ROOT
+ * - path_prefix = prefix for path output (optional, default empty)
+ * @param object $smarty Smarty object
+ * @param object $template template object
+ * @return string
+ * @uses smarty_function_escape_special_chars()
+ */
function smarty_function_html_image($params, $smarty, $template)
{
require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
diff --git a/libs/plugins/function.html_options.php b/libs/plugins/function.html_options.php
index 85b05f7d..a4725809 100644
--- a/libs/plugins/function.html_options.php
+++ b/libs/plugins/function.html_options.php
@@ -1,35 +1,34 @@
<?php
/**
-* Smarty plugin
-*
-* @package Smarty
-* @subpackage PluginsFunction
-*/
+ * Smarty plugin
+ *
+ * @package Smarty
+ * @subpackage PluginsFunction
+ */
/**
-* Smarty {html_options} function plugin
-*
-* Type: function<br>
-* Name: html_options<br>
-* Purpose: Prints the list of <option> tags generated from
-* the passed parameters
-*
-* @link http://smarty.php.net/manual/en/language.function.html.options.php {html_image}
- (Smarty online manual)
-* @author Monte Ohrt <monte at ohrt dot com>
-* @param array $params parameters
-* Input:<br>
-* - name (optional) - string default "select"
-* - values (required if no options supplied) - array
-* - options (required if no values supplied) - associative array
-* - selected (optional) - string default not set
-* - output (required if not options supplied) - array
-* @param object $smarty Smarty object
-* @param object $template template object
-* @return string
-* @uses smarty_function_escape_special_chars()
-*/
-
+ * Smarty {html_options} function plugin
+ *
+ * Type: function<br>
+ * Name: html_options<br>
+ * Purpose: Prints the list of <option> tags generated from
+ * the passed parameters
+ *
+ * @link http://smarty.php.net/manual/en/language.function.html.options.php {html_image}
+ * (Smarty online manual)
+ * @author Monte Ohrt <monte at ohrt dot com>
+ * @param array $params parameters
+ * Input:<br>
+ * - name (optional) - string default "select"
+ * - values (required if no options supplied) - array
+ * - options (required if no values supplied) - associative array
+ * - selected (optional) - string default not set
+ * - output (required if not options supplied) - array
+ * @param object $smarty Smarty object
+ * @param object $template template object
+ * @return string
+ * @uses smarty_function_escape_special_chars()
+ */
function smarty_function_html_options($params, $smarty, $template)
{
require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
@@ -119,4 +118,4 @@ function smarty_function_html_options_optgroup($key, $values, $selected)
return $optgroup_html;
}
-?>
+?> \ No newline at end of file
diff --git a/libs/plugins/function.html_radios.php b/libs/plugins/function.html_radios.php
index c7f72bf6..39c02330 100644
--- a/libs/plugins/function.html_radios.php
+++ b/libs/plugins/function.html_radios.php
@@ -1,45 +1,45 @@
<?php
/**
-* Smarty plugin
-*
-* @package Smarty
-* @subpackage PluginsFunction
-*/
+ * Smarty plugin
+ *
+ * @package Smarty
+ * @subpackage PluginsFunction
+ */
/**
-* Smarty {html_radios} function plugin
-*
-* File: function.html_radios.php<br>
-* Type: function<br>
-* Name: html_radios<br>
-* Date: 24.Feb.2003<br>
-* Purpose: Prints out a list of radio input types<br>
-* Examples:
-* <pre>
-* {html_radios values=$ids output=$names}
-* {html_radios values=$ids name='box' separator='<br>' output=$names}
-* {html_radios values=$ids checked=$checked separator='<br>' output=$names}
-* </pre>
-*
-* @link http://smarty.php.net/manual/en/language.function.html.radios.php {html_radios}
- (Smarty online manual)
-* @author Christopher Kvarme <christopher.kvarme@flashjab.com>
-* @author credits to Monte Ohrt <monte at ohrt dot com>
-* @version 1.0
-* @param array $params parameters
-* Input:<br>
-* - name (optional) - string default "radio"
-* - values (required) - array
-* - options (optional) - associative array
-* - checked (optional) - array default not set
-* - separator (optional) - ie <br> or &nbsp;
-* - output (optional) - the output next to each radio button
-* - assign (optional) - assign the output as an array to this variable
-* @param object $smarty Smarty object
-* @param object $template template object
-* @return string
-* @uses smarty_function_escape_special_chars()
-*/
+ * Smarty {html_radios} function plugin
+ *
+ * File: function.html_radios.php<br>
+ * Type: function<br>
+ * Name: html_radios<br>
+ * Date: 24.Feb.2003<br>
+ * Purpose: Prints out a list of radio input types<br>
+ * Examples:
+ * <pre>
+ * {html_radios values=$ids output=$names}
+ * {html_radios values=$ids name='box' separator='<br>' output=$names}
+ * {html_radios values=$ids checked=$checked separator='<br>' output=$names}
+ * </pre>
+ *
+ * @link http://smarty.php.net/manual/en/language.function.html.radios.php {html_radios}
+ * (Smarty online manual)
+ * @author Christopher Kvarme <christopher.kvarme@flashjab.com>
+ * @author credits to Monte Ohrt <monte at ohrt dot com>
+ * @version 1.0
+ * @param array $params parameters
+ * Input:<br>
+ * - name (optional) - string default "radio"
+ * - values (required) - array
+ * - options (optional) - associative array
+ * - checked (optional) - array default not set
+ * - separator (optional) - ie <br> or &nbsp;
+ * - output (optional) - the output next to each radio button
+ * - assign (optional) - assign the output as an array to this variable
+ * @param object $smarty Smarty object
+ * @param object $template template object
+ * @return string
+ * @uses smarty_function_escape_special_chars()
+ */
function smarty_function_html_radios($params, $smarty, $template)
{
require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
@@ -153,4 +153,4 @@ function smarty_function_html_radios_output($name, $value, $output, $selected, $
return $_output;
}
-?>
+?> \ No newline at end of file
diff --git a/libs/plugins/function.html_select_date.php b/libs/plugins/function.html_select_date.php
index 7001f887..cd20d689 100644
--- a/libs/plugins/function.html_select_date.php
+++ b/libs/plugins/function.html_select_date.php
@@ -1,43 +1,43 @@
<?php
/**
-* Smarty plugin
-*
-* @package Smarty
-* @subpackage PluginsFunction
-*/
+ * Smarty plugin
+ *
+ * @package Smarty
+ * @subpackage PluginsFunction
+ */
/**
-* Smarty {html_select_date} plugin
-*
-* Type: function<br>
-* Name: html_select_date<br>
-* Purpose: Prints the dropdowns for date selection.
-*
-* ChangeLog:<br>
-* - 1.0 initial release
-* - 1.1 added support for +/- N syntax for begin
-* and end year values. (Monte)
-* - 1.2 added support for yyyy-mm-dd syntax for
-* time value. (Jan Rosier)
-* - 1.3 added support for choosing format for
-* month values (Gary Loescher)
-* - 1.3.1 added support for choosing format for
-* day values (Marcus Bointon)
-* - 1.3.2 support negative timestamps, force year
-* dropdown to include given date unless explicitly set (Monte)
-* - 1.3.4 fix behaviour of 0000-00-00 00:00:00 dates to match that
-* of 0000-00-00 dates (cybot, boots)
-*
-* @link http://smarty.php.net/manual/en/language.function.html.select.date.php {html_select_date}
- (Smarty online manual)
-* @version 1.3.4
-* @author Andrei Zmievski
-* @author Monte Ohrt <monte at ohrt dot com>
-* @param array $params parameters
-* @param object $smarty Smarty object
-* @param object $template template object
-* @return string
-*/
+ * Smarty {html_select_date} plugin
+ *
+ * Type: function<br>
+ * Name: html_select_date<br>
+ * Purpose: Prints the dropdowns for date selection.
+ *
+ * ChangeLog:<br>
+ * - 1.0 initial release
+ * - 1.1 added support for +/- N syntax for begin
+ * and end year values. (Monte)
+ * - 1.2 added support for yyyy-mm-dd syntax for
+ * time value. (Jan Rosier)
+ * - 1.3 added support for choosing format for
+ * month values (Gary Loescher)
+ * - 1.3.1 added support for choosing format for
+ * day values (Marcus Bointon)
+ * - 1.3.2 support negative timestamps, force year
+ * dropdown to include given date unless explicitly set (Monte)
+ * - 1.3.4 fix behaviour of 0000-00-00 00:00:00 dates to match that
+ * of 0000-00-00 dates (cybot, boots)
+ *
+ * @link http://smarty.php.net/manual/en/language.function.html.select.date.php {html_select_date}
+ * (Smarty online manual)
+ * @version 1.3.4
+ * @author Andrei Zmievski
+ * @author Monte Ohrt <monte at ohrt dot com>
+ * @param array $params parameters
+ * @param object $smarty Smarty object
+ * @param object $template template object
+ * @return string
+ */
function smarty_function_html_select_date($params, $smarty, $template)
{
require_once(SMARTY_PLUGINS_DIR . 'shared.escape_special_chars.php');
@@ -329,5 +329,6 @@ function smarty_function_html_select_date($params, $smarty, $template)
}
return $html_result;
-}
-?>
+}
+
+?> \ No newline at end of file
diff --git a/libs/plugins/function.html_select_time.php b/libs/plugins/function.html_select_time.php
index 51d307ae..e9d95c2f 100644
--- a/libs/plugins/function.html_select_time.php
+++ b/libs/plugins/function.html_select_time.php
@@ -1,28 +1,28 @@
<?php
/**
-* Smarty plugin
-*
-* @package Smarty
-* @subpackage PluginsFunction
-*/
+ * Smarty plugin
+ *
+ * @package Smarty
+ * @subpackage PluginsFunction
+ */
/**
-* Smarty {html_select_time} function plugin
-*
-* Type: function<br>
-* Name: html_select_time<br>
-* Purpose: Prints the dropdowns for time selection
-*
-* @link http://smarty.php.net/manual/en/language.function.html.select.time.php {html_select_time}
- (Smarty online manual)
-* @author Roberto Berto <roberto@berto.net>
-* @credits Monte Ohrt <monte AT ohrt DOT com>
-* @param array $params parameters
-* @param object $smarty Smarty object
-* @param object $template template object
-* @return string
-* @uses smarty_make_timestamp()
-*/
+ * Smarty {html_select_time} function plugin
+ *
+ * Type: function<br>
+ * Name: html_select_time<br>
+ * Purpose: Prints the dropdowns for time selection
+ *
+ * @link http://smarty.php.net/manual/en/language.function.html.select.time.php {html_select_time}
+ * (Smarty online manual)
+ * @author Roberto Berto <roberto@berto.net>
+ * @credits Monte Ohrt <monte AT ohrt DOT com>
+ * @param array $params parameters
+ * @param object $smarty Smarty object
+ * @param object $template template object
+ * @return string
+ * @uses smarty_make_timestamp()
+ */
function smarty_function_html_select_time($params, $smarty, $template)
{
require_once(SMARTY_PLUGINS_DIR . 'shared.make_timestamp.php');
@@ -194,4 +194,4 @@ function smarty_function_html_select_time($params, $smarty, $template)
return $html_result;
}
-?>
+?> \ No newline at end of file
diff --git a/libs/plugins/function.html_table.php b/libs/plugins/function.html_table.php
index 198b03ca..83e80300 100644
--- a/libs/plugins/function.html_table.php
+++ b/libs/plugins/function.html_table.php
@@ -1,53 +1,53 @@
<?php
/**
-* Smarty plugin
-*
-* @package Smarty
-* @subpackage PluginsFunction
-*/
+ * Smarty plugin
+ *
+ * @package Smarty
+ * @subpackage PluginsFunction
+ */
/**
-* Smarty {html_table} function plugin
-*
-* Type: function<br>
-* Name: html_table<br>
-* Date: Feb 17, 2003<br>
-* Purpose: make an html table from an array of data<br>
-*
-*
-* Examples:
-* <pre>
-* {table loop=$data}
-* {table loop=$data cols=4 tr_attr='"bgcolor=red"'}
-* {table loop=$data cols="first,second,third" tr_attr=$colors}
-* </pre>
-*
-* @author Monte Ohrt <monte at ohrt dot com>
-* @author credit to Messju Mohr <messju at lammfellpuschen dot de>
-* @author credit to boots <boots dot smarty at yahoo dot com>
-* @version 1.1
-* @link http://smarty.php.net/manual/en/language.function.html.table.php {html_table}
- (Smarty online manual)
-* @param array $params parameters
-* Input:<br>
-* - loop = array to loop through
-* - cols = number of columns, comma separated list of column names
-* or array of column names
-* - rows = number of rows
-* - table_attr = table attributes
-* - th_attr = table heading attributes (arrays are cycled)
-* - tr_attr = table row attributes (arrays are cycled)
-* - td_attr = table cell attributes (arrays are cycled)
-* - trailpad = value to pad trailing cells with
-* - caption = text for caption element
-* - vdir = vertical direction (default: "down", means top-to-bottom)
-* - hdir = horizontal direction (default: "right", means left-to-right)
-* - inner = inner loop (default "cols": print $loop line by line,
-* $loop will be printed column by column otherwise)
-* @param object $smarty Smarty object
-* @param object $template template object
-* @return string
-*/
+ * Smarty {html_table} function plugin
+ *
+ * Type: function<br>
+ * Name: html_table<br>
+ * Date: Feb 17, 2003<br>
+ * Purpose: make an html table from an array of data<br>
+ *
+ *
+ * Examples:
+ * <pre>
+ * {table loop=$data}
+ * {table loop=$data cols=4 tr_attr='"bgcolor=red"'}
+ * {table loop=$data cols="first,second,third" tr_attr=$colors}
+ * </pre>
+ *
+ * @author Monte Ohrt <monte at ohrt dot com>
+ * @author credit to Messju Mohr <messju at lammfellpuschen dot de>
+ * @author credit to boots <boots dot smarty at yahoo dot com>
+ * @version 1.1
+ * @link http://smarty.php.net/manual/en/language.function.html.table.php {html_table}
+ * (Smarty online manual)
+ * @param array $params parameters
+ * Input:<br>
+ * - loop = array to loop through
+ * - cols = number of columns, comma separated list of column names
+ * or array of column names
+ * - rows = number of rows
+ * - table_attr = table attributes
+ * - th_attr = table heading attributes (arrays are cycled)
+ * - tr_attr = table row attributes (arrays are cycled)
+ * - td_attr = table cell attributes (arrays are cycled)
+ * - trailpad = value to pad trailing cells with
+ * - caption = text for caption element
+ * - vdir = vertical direction (default: "down", means top-to-bottom)
+ * - hdir = horizontal direction (default: "right", means left-to-right)
+ * - inner = inner loop (default "cols": print $loop line by line,
+ * $loop will be printed column by column otherwise)
+ * @param object $smarty Smarty object
+ * @param object $template template object
+ * @return string
+ */
function smarty_function_html_table($params, $smarty, $template)
{
$table_attr = 'border="1"';
@@ -172,5 +172,6 @@ function smarty_function_html_table_cycle($name, $var, $no)
}
return ($ret) ? ' ' . $ret : '';
-}
-?>
+}
+
+?> \ No newline at end of file
diff --git a/libs/plugins/function.mailto.php b/libs/plugins/function.mailto.php
index 29a87c69..f75dc71b 100644
--- a/libs/plugins/function.mailto.php
+++ b/libs/plugins/function.mailto.php
@@ -1,54 +1,54 @@
<?php
/**
-* Smarty plugin
-*
-* @package Smarty
-* @subpackage PluginsFunction
-*/
+ * Smarty plugin
+ *
+ * @package Smarty
+ * @subpackage PluginsFunction
+ */
/**
-* Smarty {mailto} function plugin
-*
-* Type: function<br>
-* Name: mailto<br>
-* Date: May 21, 2002
-* Purpose: automate mailto address link creation, and optionally
-* encode them.<br>
-*
-* Examples:
-* <pre>
-* {mailto address="me@domain.com"}
-* {mailto address="me@domain.com" encode="javascript"}
-* {mailto address="me@domain.com" encode="hex"}
-* {mailto address="me@domain.com" subject="Hello to you!"}
-* {mailto address="me@domain.com" cc="you@domain.com,they@domain.com"}
-* {mailto address="me@domain.com" extra='class="mailto"'}
-* </pre>
-*
-* @link http://smarty.php.net/manual/en/language.function.mailto.php {mailto}
- (Smarty online manual)
-* @version 1.2
-* @author Monte Ohrt <monte at ohrt dot com>
-* @author credits to Jason Sweat (added cc, bcc and subject functionality)
-* @param array $params parameters
-* Input:<br>
-* - address = e-mail address
-* - text = (optional) text to display, default is address
-* - encode = (optional) can be one of:
-* * none : no encoding (default)
-* * javascript : encode with javascript
-* * javascript_charcode : encode with javascript charcode
-* * hex : encode with hexidecimal (no javascript)
-* - cc = (optional) address(es) to carbon copy
-* - bcc = (optional) address(es) to blind carbon copy
-* - subject = (optional) e-mail subject
-* - newsgroups = (optional) newsgroup(s) to post to
-* - followupto = (optional) address(es) to follow up to
-* - extra = (optional) extra tags for the href link
-* @param object $smarty Smarty object
-* @param object $template template object
-* @return string
-*/
+ * Smarty {mailto} function plugin
+ *
+ * Type: function<br>
+ * Name: mailto<br>
+ * Date: May 21, 2002
+ * Purpose: automate mailto address link creation, and optionally
+ * encode them.<br>
+ *
+ * Examples:
+ * <pre>
+ * {mailto address="me@domain.com"}
+ * {mailto address="me@domain.com" encode="javascript"}
+ * {mailto address="me@domain.com" encode="hex"}
+ * {mailto address="me@domain.com" subject="Hello to you!"}
+ * {mailto address="me@domain.com" cc="you@domain.com,they@domain.com"}
+ * {mailto address="me@domain.com" extra='class="mailto"'}
+ * </pre>
+ *
+ * @link http://smarty.php.net/manual/en/language.function.mailto.php {mailto}
+ * (Smarty online manual)
+ * @version 1.2
+ * @author Monte Ohrt <monte at ohrt dot com>
+ * @author credits to Jason Sweat (added cc, bcc and subject functionality)
+ * @param array $params parameters
+ * Input:<br>
+ * - address = e-mail address
+ * - text = (optional) text to display, default is address
+ * - encode = (optional) can be one of:
+ * * none : no encoding (default)
+ * * javascript : encode with javascript
+ * * javascript_charcode : encode with javascript charcode
+ * * hex : encode with hexidecimal (no javascript)
+ * - cc = (optional) address(es) to carbon copy
+ * - bcc = (optional) address(es) to blind carbon copy
+ * - subject = (optional) e-mail subject
+ * - newsgroups = (optional) newsgroup(s) to post to
+ * - followupto = (optional) address(es) to follow up to
+ * - extra = (optional) extra tags for the href link
+ * @param object $smarty Smarty object
+ * @param object $template template object
+ * @return string
+ */
function smarty_function_mailto($params, $smarty, $template)
{
$extra = '';
@@ -154,4 +154,4 @@ function smarty_function_mailto($params, $smarty, $template)
}
}
-?>
+?> \ No newline at end of file
diff --git a/libs/plugins/function.math.php b/libs/plugins/function.math.php
index 257d2fee..edeef5af 100644
--- a/libs/plugins/function.math.php
+++ b/libs/plugins/function.math.php
@@ -7,7 +7,6 @@
* @subpackage PluginsFunction
*/
-
/**
* Smarty {math} function plugin
*
@@ -81,4 +80,5 @@ function smarty_function_math($params, $smarty, $template)
}
}
}
+
?> \ No newline at end of file
diff --git a/libs/plugins/function.popup.php b/libs/plugins/function.popup.php
index e683556a..c646181a 100644
--- a/libs/plugins/function.popup.php
+++ b/libs/plugins/function.popup.php
@@ -1,11 +1,11 @@
<?php
/**
* Smarty plugin
+ *
* @package Smarty
* @subpackage PluginsFunction
*/
-
/**
* Smarty {popup} function plugin
*
@@ -115,4 +115,5 @@ function smarty_function_popup($params, $smarty, $template)
return $retval;
}
-?>
+
+?> \ No newline at end of file
diff --git a/libs/plugins/function.popup_init.php b/libs/plugins/function.popup_init.php
index dc5bbd7a..ba1f9a65 100644
--- a/libs/plugins/function.popup_init.php
+++ b/libs/plugins/function.popup_init.php
@@ -1,25 +1,26 @@
<?php
/**
- * Smarty plugin
- * @package Smarty
- * @subpackage PluginsFunction
- */
-
+ * Smarty plugin
+ *
+ * @package Smarty
+ * @subpackage PluginsFunction
+ */
/**
- * Smarty {popup_init} function plugin
- *
- * Type: function<br>
- * Name: popup_init<br>
- * Purpose: initialize overlib
- * @link http://smarty.php.net/manual/en/language.function.popup.init.php {popup_init}
- * (Smarty online manual)
- * @author Monte Ohrt <monte at ohrt dot com>
- * @param array $params parameters
- * @param object $smarty Smarty object
- * @param object $template template object
- * @return string
- */
+ * Smarty {popup_init} function plugin
+ *
+ * Type: function<br>
+ * Name: popup_init<br>
+ * Purpose: initialize overlib
+ * @link http://smarty.php.net/manual/en/language.function.popup.init.php {popup_init}
+ * (Smarty online manual)
+ * @author Monte Ohrt <monte at ohrt dot com>
+ * @param array $params parameters
+ * @param object $smarty Smarty object
+ * @param object $template template object
+ * @return string
+ */
+
function smarty_function_popup_init($params, $smarty, $template)
{
$zindex = 1000;
@@ -35,4 +36,5 @@ function smarty_function_popup_init($params, $smarty, $template)
trigger_error("popup_init: missing src parameter",E_USER_WARNING);
}
}
+
?> \ No newline at end of file
diff --git a/libs/plugins/modifier.date_format.php b/libs/plugins/modifier.date_format.php
index 950a1958..3656c1c8 100644
--- a/libs/plugins/modifier.date_format.php
+++ b/libs/plugins/modifier.date_format.php
@@ -1,30 +1,30 @@
<?php
/**
-* Smarty plugin
-*
-* @package Smarty
-* @subpackage PluginsModifier
-*/
+ * Smarty plugin
+ *
+ * @package Smarty
+ * @subpackage PluginsModifier
+ */
/**
-* Smarty date_format modifier plugin
-*
-* Type: modifier<br>
-* Name: date_format<br>
-* Purpose: format datestamps via strftime<br>
-* Input:<br>
-* - string: input date string
-* - format: strftime format for output
-* - default_date: default date if $string is empty
-*
-* @link http://smarty.php.net/manual/en/language.modifier.date.format.php date_format (Smarty online manual)
-* @author Monte Ohrt <monte at ohrt dot com>
-* @param string $
-* @param string $
-* @param string $
-* @return string |void
-* @uses smarty_make_timestamp()
-*/
+ * Smarty date_format modifier plugin
+ *
+ * Type: modifier<br>
+ * Name: date_format<br>
+ * Purpose: format datestamps via strftime<br>
+ * Input:<br>
+ * - string: input date string
+ * - format: strftime format for output
+ * - default_date: default date if $string is empty
+ *
+ * @link http://smarty.php.net/manual/en/language.modifier.date.format.php date_format (Smarty online manual)
+ * @author Monte Ohrt <monte at ohrt dot com>
+ * @param string $
+ * @param string $
+ * @param string $
+ * @return string |void
+ * @uses smarty_make_timestamp()
+ */
function smarty_modifier_date_format($string, $format = SMARTY_RESOURCE_DATE_FORMAT, $default_date = '',$formatter='auto')
{
/**
@@ -58,4 +58,4 @@ function smarty_modifier_date_format($string, $format = SMARTY_RESOURCE_DATE_FOR
}
}
-?>
+?> \ No newline at end of file
diff --git a/libs/plugins/modifier.debug_print_var.php b/libs/plugins/modifier.debug_print_var.php
index f0f83d27..013337ae 100644
--- a/libs/plugins/modifier.debug_print_var.php
+++ b/libs/plugins/modifier.debug_print_var.php
@@ -1,25 +1,25 @@
<?php
/**
-* Smarty plugin
-*
-* @package Smarty
-* @subpackage Debug
-*/
+ * Smarty plugin
+ *
+ * @package Smarty
+ * @subpackage Debug
+ */
/**
-* Smarty debug_print_var modifier plugin
-*
-* Type: modifier<br>
-* Name: debug_print_var<br>
-* Purpose: formats variable contents for display in the console
-*
-* @link http://smarty.php.net/manual/en/language.modifier.debug.print.var.php debug_print_var (Smarty online manual)
-* @author Monte Ohrt <monte at ohrt dot com>
-* @param array $ |object
-* @param integer $
-* @param integer $
-* @return string
-*/
+ * Smarty debug_print_var modifier plugin
+ *
+ * Type: modifier<br>
+ * Name: debug_print_var<br>
+ * Purpose: formats variable contents for display in the console
+ *
+ * @link http://smarty.php.net/manual/en/language.modifier.debug.print.var.php debug_print_var (Smarty online manual)
+ * @author Monte Ohrt <monte at ohrt dot com>
+ * @param array $ |object
+ * @param integer $
+ * @param integer $
+ * @return string
+ */
function smarty_modifier_debug_print_var ($var, $depth = 0, $length = 40)
{
$_replace = array("\n" => '<i>\n</i>',
@@ -84,4 +84,4 @@ function smarty_modifier_debug_print_var ($var, $depth = 0, $length = 40)
return $results;
}
-?>
+?> \ No newline at end of file
diff --git a/libs/plugins/modifier.escape.php b/libs/plugins/modifier.escape.php
index 46368867..dae59268 100644
--- a/libs/plugins/modifier.escape.php
+++ b/libs/plugins/modifier.escape.php
@@ -1,12 +1,11 @@
<?php
-
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsModifier
*/
-
+
/**
* Smarty escape modifier plugin
*
diff --git a/libs/plugins/modifier.regex_replace.php b/libs/plugins/modifier.regex_replace.php
index 16f4c48e..9f148800 100644
--- a/libs/plugins/modifier.regex_replace.php
+++ b/libs/plugins/modifier.regex_replace.php
@@ -1,10 +1,10 @@
<?php
/**
* Smarty plugin
+ *
* @package Smarty
* @subpackage PluginsModifier
-*/
-
+ */
/**
* Smarty regex_replace modifier plugin
@@ -42,4 +42,5 @@ function _smarty_regex_replace_check($search)
}
return $search;
}
+
?> \ No newline at end of file
diff --git a/libs/plugins/modifier.replace.php b/libs/plugins/modifier.replace.php
index 80f67e29..98195ffb 100644
--- a/libs/plugins/modifier.replace.php
+++ b/libs/plugins/modifier.replace.php
@@ -1,7 +1,6 @@
<?php
/**
* Smarty plugin
- *
* @package Smarty
* @subpackage PluginsModifier
*/
diff --git a/libs/plugins/modifier.spacify.php b/libs/plugins/modifier.spacify.php
index 790e373b..f14e026b 100644
--- a/libs/plugins/modifier.spacify.php
+++ b/libs/plugins/modifier.spacify.php
@@ -1,7 +1,6 @@
<?php
/**
* Smarty plugin
- *
* @package Smarty
* @subpackage PluginsModifier
*/
diff --git a/libs/plugins/modifier.truncate.php b/libs/plugins/modifier.truncate.php
index 308fd48c..0e9d4b9f 100644
--- a/libs/plugins/modifier.truncate.php
+++ b/libs/plugins/modifier.truncate.php
@@ -1,11 +1,11 @@
<?php
/**
* Smarty plugin
- *
+ *
* @package Smarty
* @subpackage PluginsModifier
*/
-
+
/**
* Smarty truncate modifier plugin
*
diff --git a/libs/plugins/modifiercompiler.cat.php b/libs/plugins/modifiercompiler.cat.php
index a388c6f8..37019d72 100644
--- a/libs/plugins/modifiercompiler.cat.php
+++ b/libs/plugins/modifiercompiler.cat.php
@@ -1,11 +1,11 @@
<?php
/**
* Smarty plugin
+ *
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
-
/**
* Smarty cat modifier plugin
*
@@ -23,7 +23,7 @@
*/
function smarty_modifiercompiler_cat($params, $compiler)
{
- return '('.implode(').(', $params).')';
+ return '('.implode(').(', $params).')';
}
?> \ No newline at end of file
diff --git a/libs/plugins/modifiercompiler.count_characters.php b/libs/plugins/modifiercompiler.count_characters.php
index 9a620c49..6f00e6aa 100644
--- a/libs/plugins/modifiercompiler.count_characters.php
+++ b/libs/plugins/modifiercompiler.count_characters.php
@@ -1,7 +1,7 @@
<?php
/**
* Smarty plugin
- *
+ *
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
@@ -34,5 +34,6 @@ function smarty_modifiercompiler_count_characters($params, $compiler)
}
return 'preg_match_all(\'/[^\s]/\',' . $params[0] . ', $tmp)';
}
-}
+}
+
?> \ No newline at end of file
diff --git a/libs/plugins/modifiercompiler.count_paragraphs.php b/libs/plugins/modifiercompiler.count_paragraphs.php
index 412bbd7d..09973ef3 100644
--- a/libs/plugins/modifiercompiler.count_paragraphs.php
+++ b/libs/plugins/modifiercompiler.count_paragraphs.php
@@ -1,11 +1,11 @@
<?php
/**
* Smarty plugin
+ *
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
-
/**
* Smarty count_paragraphs modifier plugin
*
@@ -23,4 +23,5 @@ function smarty_modifiercompiler_count_paragraphs($params, $compiler)
// count \r or \n characters
return '(preg_match_all(\'#[\r\n]+#\', ' . $params[0] . ', $tmp)+1)';
}
+
?> \ No newline at end of file
diff --git a/libs/plugins/modifiercompiler.count_sentences.php b/libs/plugins/modifiercompiler.count_sentences.php
index c410868d..cde5c467 100644
--- a/libs/plugins/modifiercompiler.count_sentences.php
+++ b/libs/plugins/modifiercompiler.count_sentences.php
@@ -1,11 +1,11 @@
<?php
/**
* Smarty plugin
+ *
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
-
/**
* Smarty count_sentences modifier plugin
*
diff --git a/libs/plugins/modifiercompiler.count_words.php b/libs/plugins/modifiercompiler.count_words.php
index cf40e9d3..7eaaf749 100644
--- a/libs/plugins/modifiercompiler.count_words.php
+++ b/libs/plugins/modifiercompiler.count_words.php
@@ -17,7 +17,7 @@
* @author Uwe Tews
* @param array $params parameters
* @return string with compiled code
- */
+*/
function smarty_modifiercompiler_count_words($params, $compiler)
{
// mb_ functions available?
diff --git a/libs/plugins/modifiercompiler.default.php b/libs/plugins/modifiercompiler.default.php
index 444b285b..addd4aa0 100644
--- a/libs/plugins/modifiercompiler.default.php
+++ b/libs/plugins/modifiercompiler.default.php
@@ -1,7 +1,7 @@
<?php
/**
* Smarty plugin
- *
+ *
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
diff --git a/libs/plugins/modifiercompiler.indent.php b/libs/plugins/modifiercompiler.indent.php
index cc690725..e62d56ca 100644
--- a/libs/plugins/modifiercompiler.indent.php
+++ b/libs/plugins/modifiercompiler.indent.php
@@ -5,7 +5,6 @@
* @subpackage PluginsModifierCompiler
*/
-
/**
* Smarty indent modifier plugin
*
@@ -18,6 +17,7 @@
* @param array $params parameters
* @return string with compiled code
*/
+
function smarty_modifiercompiler_indent($params, $compiler)
{
if (!isset($params[1])) {
diff --git a/libs/plugins/modifiercompiler.lower.php b/libs/plugins/modifiercompiler.lower.php
index 835c8a40..2018bbf4 100644
--- a/libs/plugins/modifiercompiler.lower.php
+++ b/libs/plugins/modifiercompiler.lower.php
@@ -1,24 +1,24 @@
<?php
/**
-* Smarty plugin
-*
-* @package Smarty
-* @subpackage PluginsModifierCompiler
-*/
+ * Smarty plugin
+ * @package Smarty
+ * @subpackage PluginsModifierCompiler
+ */
/**
-* Smarty lower modifier plugin
-*
-* Type: modifier<br>
-* Name: lower<br>
-* Purpose: convert string to lowercase
-*
-* @link http://smarty.php.net/manual/en/language.modifier.lower.php lower (Smarty online manual)
-* @author Monte Ohrt <monte at ohrt dot com>
+ * Smarty lower modifier plugin
+ *
+ * Type: modifier<br>
+ * Name: lower<br>
+ * Purpose: convert string to lowercase
+ *
+ * @link http://smarty.php.net/manual/en/language.modifier.lower.php lower (Smarty online manual)
+ * @author Monte Ohrt <monte at ohrt dot com>
* @author Uwe Tews
* @param array $params parameters
* @return string with compiled code
-*/
+ */
+
function smarty_modifiercompiler_lower($params, $compiler)
{
if (function_exists('mb_strtolower')) {
diff --git a/libs/plugins/modifiercompiler.noprint.php b/libs/plugins/modifiercompiler.noprint.php
index 15c9999f..cd2a663e 100644
--- a/libs/plugins/modifiercompiler.noprint.php
+++ b/libs/plugins/modifiercompiler.noprint.php
@@ -1,11 +1,11 @@
<?php
/**
* Smarty plugin
+ *
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
-
/**
* Smarty noprint modifier plugin
*
diff --git a/libs/plugins/modifiercompiler.string_format.php b/libs/plugins/modifiercompiler.string_format.php
index dd414ba1..fd9fd876 100644
--- a/libs/plugins/modifiercompiler.string_format.php
+++ b/libs/plugins/modifiercompiler.string_format.php
@@ -1,26 +1,26 @@
<?php
/**
-* Smarty plugin
-*
-* @package Smarty
-* @subpackage PluginsModifierCompiler
-*/
+ * Smarty plugin
+ *
+ * @package Smarty
+ * @subpackage PluginsModifierCompiler
+ */
/**
-* Smarty string_format modifier plugin
-*
-* Type: modifier<br>
-* Name: string_format<br>
-* Purpose: format strings via sprintf
-*
-* @link http://smarty.php.net/manual/en/language.modifier.string.format.php string_format (Smarty online manual)
+ * Smarty string_format modifier plugin
+ *
+ * Type: modifier<br>
+ * Name: string_format<br>
+ * Purpose: format strings via sprintf
+ *
+ * @link http://smarty.php.net/manual/en/language.modifier.string.format.php string_format (Smarty online manual)
* @author Uwe Tews
* @param array $params parameters
* @return string with compiled code
-*/
- function smarty_modifiercompiler_string_format($params, $compiler)
- {
- return 'sprintf(' . $params[1] . ',' . $params[0] . ')';
- }
+ */
+function smarty_modifiercompiler_string_format($params, $compiler)
+{
+ return 'sprintf(' . $params[1] . ',' . $params[0] . ')';
+}
?> \ No newline at end of file
diff --git a/libs/plugins/modifiercompiler.strip.php b/libs/plugins/modifiercompiler.strip.php
index 25d66f01..ab5b7688 100644
--- a/libs/plugins/modifiercompiler.strip.php
+++ b/libs/plugins/modifiercompiler.strip.php
@@ -1,7 +1,7 @@
<?php
/**
* Smarty plugin
- *
+ *
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
@@ -21,6 +21,7 @@
* @param array $params parameters
* @return string with compiled code
*/
+
function smarty_modifiercompiler_strip($params, $compiler)
{
if (!isset($params[1])) {
diff --git a/libs/plugins/modifiercompiler.strip_tags.php b/libs/plugins/modifiercompiler.strip_tags.php
index 97be3b8e..5e479b28 100644
--- a/libs/plugins/modifiercompiler.strip_tags.php
+++ b/libs/plugins/modifiercompiler.strip_tags.php
@@ -1,7 +1,7 @@
<?php
/**
* Smarty plugin
- *
+ *
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
@@ -18,6 +18,7 @@
* @param array $params parameters
* @return string with compiled code
*/
+
function smarty_modifiercompiler_strip_tags($params, $compiler)
{
if (!isset($params[1])) {
diff --git a/libs/plugins/modifiercompiler.upper.php b/libs/plugins/modifiercompiler.upper.php
index 6e1f54ab..def73043 100644
--- a/libs/plugins/modifiercompiler.upper.php
+++ b/libs/plugins/modifiercompiler.upper.php
@@ -1,7 +1,7 @@
<?php
/**
* Smarty plugin
- *
+ *
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
diff --git a/libs/plugins/modifiercompiler.wordwrap.php b/libs/plugins/modifiercompiler.wordwrap.php
index 37ca2709..5b91f64c 100644
--- a/libs/plugins/modifiercompiler.wordwrap.php
+++ b/libs/plugins/modifiercompiler.wordwrap.php
@@ -1,7 +1,7 @@
<?php
/**
* Smarty plugin
- *
+ *
* @package Smarty
* @subpackage PluginsModifierCompiler
*/
diff --git a/libs/plugins/outputfilter.trimwhitespace.php b/libs/plugins/outputfilter.trimwhitespace.php
index ce5fde98..20e9bb60 100644
--- a/libs/plugins/outputfilter.trimwhitespace.php
+++ b/libs/plugins/outputfilter.trimwhitespace.php
@@ -1,6 +1,7 @@
<?php
/**
* Smarty plugin
+ *
* @package Smarty
* @subpackage PluginsFilter
*/
@@ -73,4 +74,4 @@ function smarty_outputfilter_trimwhitespace_replace($search_str, $replace, &$sub
}
-?>
+?> \ No newline at end of file
diff --git a/libs/plugins/shared.escape_special_chars.php b/libs/plugins/shared.escape_special_chars.php
index 5bd21ef8..e36b2c89 100644
--- a/libs/plugins/shared.escape_special_chars.php
+++ b/libs/plugins/shared.escape_special_chars.php
@@ -1,11 +1,11 @@
<?php
/**
* Smarty shared plugin
+ *
* @package Smarty
* @subpackage PluginsShared
*/
-
/**
* escape_special_chars common function
*
@@ -25,4 +25,5 @@ function smarty_function_escape_special_chars($string)
}
return $string;
}
+
?> \ No newline at end of file
diff --git a/libs/plugins/shared.make_timestamp.php b/libs/plugins/shared.make_timestamp.php
index dc2514b1..832488ba 100644
--- a/libs/plugins/shared.make_timestamp.php
+++ b/libs/plugins/shared.make_timestamp.php
@@ -1,11 +1,11 @@
<?php
/**
* Smarty shared plugin
+ *
* @package Smarty
* @subpackage PluginsShared
*/
-
/**
* Function: smarty_make_timestamp<br>
* Purpose: used by other smarty functions to make a timestamp
@@ -14,6 +14,7 @@
* @param string $string
* @return string
*/
+
function smarty_make_timestamp($string)
{
if(empty($string)) {
@@ -38,4 +39,5 @@ function smarty_make_timestamp($string)
return $time;
}
}
+
?> \ No newline at end of file
diff --git a/libs/plugins/variablefilter.htmlspecialchars.php b/libs/plugins/variablefilter.htmlspecialchars.php
index 5f11b734..4d3550c0 100644
--- a/libs/plugins/variablefilter.htmlspecialchars.php
+++ b/libs/plugins/variablefilter.htmlspecialchars.php
@@ -1,18 +1,19 @@
<?php
/**
-* Smarty plugin
-*
-* @package Smarty
-* @subpackage PluginsFilter
-*/
+ * Smarty plugin
+ *
+ * @package Smarty
+ * @subpackage PluginsFilter
+ */
/**
-* Smarty htmlspecialchars variablefilter plugin
-*
-* @param string $source input string
-* @param object $ &$smarty Smarty object
-* @return string filtered output
-*/
+ * Smarty htmlspecialchars variablefilter plugin
+ *
+ * @param string $source input string
+ * @param object $ &$smarty Smarty object
+ * @return string filtered output
+ */
+
function smarty_variablefilter_htmlspecialchars($source, $smarty)
{
return htmlspecialchars($source, ENT_QUOTES);