Esempio n. 1
0
function cs_name($handle)
{
    return strlen(cs_user_profile($handle, 'name')) ? cs_user_profile($handle, 'name') : $handle;
}
Esempio n. 2
0
 function profile_page()
 {
     $handle = $this->content['raw']['account']['handle'];
     $userid = $this->content['raw']['account']['userid'];
     $about = cs_user_profile($handle, 'about');
     $this->output('<div class="user-cols content-sidebar">');
     $this->cs_user_nav($handle);
     $this->output('<div class="user-cols-right">');
     if (isset($about) && strlen($about)) {
         $this->output('<div class="about-me widget">', '<h3 class="widget-title">' . qa_lang_html('cleanstrap/about_me') . '</h3>', $about, '</div>');
     }
     $this->cs_user_activity_count($handle);
     $this->output('<div class="about-me widget">', '<h3 class="widget-title">' . qa_lang_html('cleanstrap/user_profile') . '</h3>');
     qa_html_theme_base::form($this->content['form_profile']);
     $this->output('</div>');
     $this->cs_user_qa($handle);
     $this->output('</div>');
     $this->output('</div>');
 }