1 2 3 4 5 6 7 8 9 10 11 12
<?php function smarty_modifier_contact_info($value) { if (preg_match('/^([^:]*): (.*@.*)$/', $value, $match)) { return '[[' . $match[2] . '|' . $match[1] . ']]'; } return '[[' . $value . '@spline.inf.fu-berlin.de' . '|' . $value . ']]'; } ?>