mirror of
https://github.com/e107inc/e107.git
synced 2025-08-13 01:54:12 +02:00
new module creation
This commit is contained in:
5
e107_files/shortcode/extended_icon.sc
Normal file
5
e107_files/shortcode/extended_icon.sc
Normal file
@@ -0,0 +1,5 @@
|
||||
//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]}}");
|
Reference in New Issue
Block a user