mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-28 19:01:37 +01:00
added cat modifier to distribution
This commit is contained in:
23
libs/plugins/modifier.cat.php
Normal file
23
libs/plugins/modifier.cat.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* Smarty plugin
|
||||
* -------------------------------------------------------------
|
||||
* Type: modifier
|
||||
* Name: cat
|
||||
* Version: 1.0
|
||||
* Date: Feb 24, 2003
|
||||
* Author: Monte Ohrt <monte@ispi.net>
|
||||
* Purpose: catentate a value to a variable
|
||||
* Input: string to catenate
|
||||
* Example: {$var|cat:"foo"}
|
||||
* -------------------------------------------------------------
|
||||
*/
|
||||
function smarty_modifier_cat($string, $cat)
|
||||
{
|
||||
return $string . $cat;
|
||||
}
|
||||
|
||||
/* vim: set expandtab: */
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user