示例#1
0
echo GWF_HTML::div($tLang->lang('th_postcount') . ': ' . $opts->getPostcount());
?>
		<?php 
echo GWF_HTML::div($tLang->lang('th_thread_thanks') . ':&nbsp;' . $opts->getVar('fopt_thanks'));
?>
		<?php 
echo GWF_HTML::div($tLang->lang('th_thread_votes_up') . ':&nbsp;' . $opts->getVar('fopt_upvotes'));
?>
		<?php 
echo GWF_HTML::div($tLang->lang('th_user_regdate') . ':&nbsp;' . GWF_Time::displayAge($user->getVar('user_regdate')));
?>
		<?php 
echo GWF_HTML::div($user->displayAvatar());
?>
		<?php 
echo Module_WeChall::displayIcons($user);
?>
		
		<?php 
echo GWF_HTML::div($user->isOptionEnabled(GWF_User::HIDE_ONLINE) ? '' : sprintf('<div>%s</div>', $tLang->lang('last_seen', array(GWF_Time::displayAgeTS($user->getVar('user_lastactivity'))))));
?>
		<?php 
echo GWF_HTML::div($user->isOnline() ? $tLang->lang('online') : $tLang->lang('offline'));
$buttons = '';
if ('' !== ($email = $user->getValidMail())) {
    $txt = $tLang->lang('at_mailto', array($user->displayUsername()));
    if ($user->isOptionEnabled(GWF_User::SHOW_EMAIL)) {
        $buttons .= GWF_Button::mail('mailto:' . $email, $txt);
    } elseif ($user->isOptionEnabled(GWF_User::ALLOW_EMAIL)) {
        $buttons .= GWF_Button::mail(GWF_WEB_ROOT . 'send/email/to/' . $user->urlencode('user_name'));
    }