content['navigation']['user']['login']) && !QA_FINAL_EXTERNAL_USERS) { $login = $this->content['navigation']['user']['login']; $this->output( '
', '', '', '
', '
', '', '', '
' ); // remove regular navigation link to log in page unset($this->content['navigation']['user']['login']); } } qa_html_theme_base::nav_user_search(); } public function logged_in() { require_once QA_INCLUDE_DIR . 'app/format.php'; if (qa_is_logged_in()) // output user avatar to login bar $this->output( '
', QA_FINAL_EXTERNAL_USERS ? qa_get_external_avatar_html(qa_get_logged_in_userid(), 24, true) : qa_get_user_avatar_html(qa_get_logged_in_flags(), qa_get_logged_in_email(), qa_get_logged_in_handle(), qa_get_logged_in_user_field('avatarblobid'), qa_get_logged_in_user_field('avatarwidth'), qa_get_logged_in_user_field('avatarheight'), 24, true), '
' ); qa_html_theme_base::logged_in(); if (qa_is_logged_in()) { // adds points count after logged in username $userpoints=qa_get_logged_in_points(); $pointshtml=($userpoints==1) ? qa_lang_html_sub('main/1_point', '1', '1') : qa_lang_html_sub('main/x_points', qa_html(qa_format_number($userpoints))); $this->output( '', '('.$pointshtml.')', '' ); } } // adds login bar, user navigation and search at top of page in place of custom header content public function body_header() { $this->output('
'); $this->nav_user_search(); $this->output('
'); } // allows modification of custom element shown inside header after logo public function header_custom() { if (isset($this->content['body_header'])) { $this->output('
'); $this->output_raw($this->content['body_header']); $this->output('
'); } } // removes user navigation and search from header and replaces with custom header content. Also opens new
s public function header() { $this->output('
'); $this->logo(); $this->header_clear(); $this->header_custom(); $this->output('
', ''); $this->output('
', ''); $this->output('
', ''); $this->nav_main_sub(); } // removes sidebar for user profile pages public function sidepanel() { if ($this->template!='user') qa_html_theme_base::sidepanel(); } // prevent display of regular footer content (see body_suffix()) and replace with closing new
s public function footer() { $this->output('
'); $this->output('
'); } // add RSS feed icon after the page title public function favorite() { parent::favorite(); $feed = @$this->content['feed']; if (!empty($feed)) { $this->output(''); } } // add view count to question list public function q_item_stats($q_item) { $this->output('
'); $this->voting($q_item); $this->a_count($q_item); qa_html_theme_base::view_count($q_item); $this->output('
'); } // prevent display of view count in the usual place public function view_count($q_item) { if ($this->template=='question') qa_html_theme_base::view_count($q_item); } // to replace standard Q2A footer public function body_suffix() { $this->output(' ', ''); } public function attribution() { $this->output( '
', ' | Snow Theme by Q2A Market', '
' ); qa_html_theme_base::attribution(); } }