openrat-cms

# OpenRat Content Management System
git clone http://git.code.weiherhei.de/openrat-cms.git
Log | Files | Refs

component-user.php (386B)


      1 <?php
      2 function component_user( $user )
      3 {
      4 	extract( $user );
      5 	
      6 	if	( empty($name) )
      7 		$name = lang('GLOBAL_UNKNOWN');
      8 	if	( empty($fullname) )
      9 		$fullname = lang('GLOBAL_NO_DESCRIPTION_AVAILABLE');
     10 
     11 	if	( !empty($mail) && config('security','user','show_mail' ) )
     12 		echo "<a href=\"mailto:$mail\" title=\"$fullname\">$name</a>";
     13 	else
     14 		echo "<span title=\"$fullname\">$name</span>";
     15 }
     16 ?>