Smarty
[ class tree: Smarty ] [ index: Smarty ] [ all elements ]

Source for file modifier.avatarize.php

Documentation is available at modifier.avatarize.php

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

Documentation generated on Wed, 29 Jul 2015 13:57:09 +0000 by phpDocumentor 1.5.0-lsces