Blame www/smarty/plugins/modifier.cat.php
|
Chris PeBenito |
696b41 |
|
|
Chris PeBenito |
696b41 |
/**
|
|
Chris PeBenito |
696b41 |
* Smarty plugin
|
|
Chris PeBenito |
696b41 |
* @package Smarty
|
|
Chris PeBenito |
696b41 |
* @subpackage plugins
|
|
Chris PeBenito |
696b41 |
*/
|
|
Chris PeBenito |
696b41 |
|
|
Chris PeBenito |
696b41 |
|
|
Chris PeBenito |
696b41 |
/**
|
|
Chris PeBenito |
696b41 |
* Smarty cat modifier plugin
|
|
Chris PeBenito |
696b41 |
*
|
|
Chris PeBenito |
696b41 |
* Type: modifier
|
|
Chris PeBenito |
696b41 |
* Name: cat
|
|
Chris PeBenito |
696b41 |
* Date: Feb 24, 2003
|
|
Chris PeBenito |
696b41 |
* Purpose: catenate a value to a variable
|
|
Chris PeBenito |
696b41 |
* Input: string to catenate
|
|
Chris PeBenito |
696b41 |
* Example: {$var|cat:"foo"}
|
|
Chris PeBenito |
696b41 |
* @link http://smarty.php.net/manual/en/language.modifier.cat.php cat
|
|
Chris PeBenito |
696b41 |
* (Smarty online manual)
|
|
Chris PeBenito |
696b41 |
* @author Monte Ohrt <monte at ohrt dot com>
|
|
Chris PeBenito |
696b41 |
* @version 1.0
|
|
Chris PeBenito |
696b41 |
* @param string
|
|
Chris PeBenito |
696b41 |
* @param string
|
|
Chris PeBenito |
696b41 |
* @return string
|
|
Chris PeBenito |
696b41 |
*/
|
|
Chris PeBenito |
696b41 |
function smarty_modifier_cat($string, $cat)
|
|
Chris PeBenito |
696b41 |
{
|
|
Chris PeBenito |
696b41 |
return $string . $cat;
|
|
Chris PeBenito |
696b41 |
}
|
|
Chris PeBenito |
696b41 |
|
|
Chris PeBenito |
696b41 |
/* vim: set expandtab: */
|
|
Chris PeBenito |
696b41 |
|
|
Chris PeBenito |
696b41 |
?>
|