Exemplo n.º 1
0
$u instanceof GWF_User;
$p = $tVars['profile'];
$p instanceof GWF_Profile;
$user = GWF_User::getStaticOrGuest();
$by = Common::getGet('by', 'regat_solved');
$dir = Common::getGet('dir', 'DESC');
$orderby = GDO::table('WC_Regat')->getMultiOrderby($by, $dir);
$is_admin = $user->isAdmin();
$data = $u->getUserData();
$priv = isset($data['WC_PRIV_HIST']) && !$is_admin;
# Head
$buttons = '';
if ($tVars['jquery']) {
    $onclick = "wcjsHideJQueryAll(); return false;";
    $buttons .= GWF_Button::delete('#', WC_HTML::lang('btn_close'), '', $onclick);
    $buttons .= GWF_Button::link($u->getProfileHREF(), WC_HTML::lang('btn_view_profile'));
}
echo '<h1>' . $buttons . $tLang->lang('pt_profile', array($u->displayUsername())) . '</h1>';
# Permission
if ($p->isHidden($user)) {
    echo '<h2>' . $tLang->lang('err_hidden') . '</h2>';
    return;
}
# About Me
if ('' !== ($v = $p->displayAboutMe())) {
    echo GWF_Box::box($v, $tLang->lang('title_about_me', array($u->displayUsername())));
}
# Default Profile
echo '<div class="fl">' . PHP_EOL;
echo '<table>' . PHP_EOL;
if ($u->hasAvatar()) {
Exemplo n.º 2
0
 private function displayMibbitURL($url)
 {
     $href = Module_Chat::getMibbitURL($url);
     //		$href = GWF_WEB_ROOT.'index.php?mo=Chat&me=MibbitCustom&url='.urlencode($url);
     return GWF_Button::link($href, 'foo');
 }