예제 #1
0
파일: show_post.php 프로젝트: sinfocol/gwf3
/* do not htmlspecialchar */
?>
		<?php 
echo GWF_HTML::div($tLang->lang('th_postcount') . ':&nbsp;' . $opts->getPostcount());
?>
		<?php 
#echo GWF_HTML::div($tLang->lang('th_user_regdate').':&nbsp;'. $user->displayRegdate());
?>
		<?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 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'));
    }
}
if (GWF_Session::isLoggedIn()) {
    $buttons .= GWF_Button::generic($tLang->lang('btn_pm'), $user->getPMHref());
}