mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
added cat modifier to distribution
This commit is contained in:
1
NEWS
1
NEWS
@@ -1,3 +1,4 @@
|
||||
- added cat modifier (Monte)
|
||||
- added << >> <> support to if statments (SMK, Monte)
|
||||
- fix _assign_smarty_interface to not overwrite keys
|
||||
other than 'request' (Jerome Poudevigne, Monte)
|
||||
|
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