Exemplo n.º 1
0
        echo gwfProfileRow($tLang->lang('th_skype'), $v);
    }
    if ('' !== ($v = $p->display('prof_yahoo'))) {
        echo gwfProfileRow($tLang->lang('th_yahoo'), $v);
    }
    if ('' !== ($v = $p->display('prof_aim'))) {
        echo gwfProfileRow($tLang->lang('th_aim'), $v);
    }
    if ('' !== ($v = $p->display('prof_irc'))) {
        echo gwfProfileRow($tLang->lang('th_irc'), $v);
    }
    $buttons = '';
    if ('' !== ($email = $u->getValidMail())) {
        $txt = $tLang->lang('at_mailto', array($u->displayUsername()));
        if ($u->isOptionEnabled(GWF_User::ALLOW_EMAIL)) {
            $buttons .= GWF_Button::mail(GWF_WEB_ROOT . 'send/email/to/' . $u->urlencode('user_name'), $txt);
        }
    }
    if (GWF_Session::isLoggedIn()) {
        $buttons .= GWF_Button::generic($tLang->lang('btn_pm'), $u->getPMHref());
    }
    if ($buttons !== '') {
        echo GWF_Table::rowStart();
        echo "<td colspan=\"2\" class=\"ce\">{$buttons}</td>" . PHP_EOL;
        echo GWF_Table::rowEnd();
    }
}
# Fav Sites
echo wcProfileFavSites($u->getID());
echo wcProfileFavCats($u->getID());
echo '</table>' . PHP_EOL;