Automatically exported from code.google.com/p/planningalerts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
623 B

  1. <?php
  2. /**
  3. * Smarty plugin
  4. * @package Smarty
  5. * @subpackage plugins
  6. */
  7. /**
  8. * Smarty cat modifier plugin
  9. *
  10. * Type: modifier<br>
  11. * Name: cat<br>
  12. * Date: Feb 24, 2003
  13. * Purpose: catenate a value to a variable
  14. * Input: string to catenate
  15. * Example: {$var|cat:"foo"}
  16. * @link http://smarty.php.net/manual/en/language.modifier.cat.php cat
  17. * (Smarty online manual)
  18. * @author Monte Ohrt <monte at ohrt dot com>
  19. * @version 1.0
  20. * @param string
  21. * @param string
  22. * @return string
  23. */
  24. function smarty_modifier_cat($string, $cat)
  25. {
  26. return $string . $cat;
  27. }
  28. /* vim: set expandtab: */
  29. ?>