| 
									
										
										
										
											2010-08-05 17:50:16 +00:00
										 |  |  | <?php | 
					
						
							|  |  |  | /** | 
					
						
							|  |  |  |  * Smarty plugin | 
					
						
							| 
									
										
										
										
											2010-08-17 15:39:51 +00:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2010-08-05 17:50:16 +00:00
										 |  |  |  * @package Smarty | 
					
						
							|  |  |  |  * @subpackage PluginsModifierCompiler | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /** | 
					
						
							|  |  |  |  * Smarty cat modifier plugin | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Type:     modifier<br> | 
					
						
							|  |  |  |  * Name:     cat<br> | 
					
						
							|  |  |  |  * Date:     Feb 24, 2003 | 
					
						
							|  |  |  |  * Purpose:  catenate a value to a variable | 
					
						
							|  |  |  |  * Input:    string to catenate | 
					
						
							|  |  |  |  * Example:  {$var|cat:"foo"} | 
					
						
							|  |  |  |  * @link http://smarty.php.net/manual/en/language.modifier.cat.php cat | 
					
						
							|  |  |  |  *          (Smarty online manual) | 
					
						
							|  |  |  |  * @author   Uwe Tews | 
					
						
							|  |  |  |  * @param array $params parameters | 
					
						
							|  |  |  |  * @return string with compiled code | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | function smarty_modifiercompiler_cat($params, $compiler) | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2010-08-17 15:39:51 +00:00
										 |  |  |     return '('.implode(').(', $params).')'; | 
					
						
							| 
									
										
										
										
											2010-08-05 17:50:16 +00:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ?>
 |