1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-19 05:28:10 +01:00
php-e107/e107_files/shortcode/extended_icon.sc
2006-12-02 04:36:16 +00:00

6 lines
273 B
Scala

//USAGE: {EXTENDED_ICON=<field_name>.<user_id>}
//EXAMPLE: {EXTENDED_ICON=user_gender.5} will show the icon of the extended field user_gender for user #5
$parms = explode(".", $parm);
global $tp;
return $tp->parseTemplate("{USER_EXTENDED={$parms[0]}.icon.{$parms[1]}}");