blob: 794190516167732a9205f3d7cf325e558c739c9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<?php
namespace Bitweaver\Plugins;
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty plugin
* -------------------------------------------------------------
* Type: modifier
* Name: capitalize
* Purpose: capitalize words in the string
* -------------------------------------------------------------
*/
function smarty_modifier_avatarize($user)
{
global $gBitSystem, $gBitUser;
$avatar = $gBitSystem->get_user_avatar($user);
if( $gBitUser->userNameExists($user) && $gBitSystem->getConfig('users_information','public',$user)=='public') {
$avatar = '<a title="'.$user.'" href="'.USERS_PKG_URL.'index.php?home='.$user.'">'.$avatar.'</a>';
}
return $avatar;
}
|