function q_view($q_view) { // position before question [replaced by `title-after`] // $this->_output_widget('q-item-before'); parent::q_view($q_view); // position after question $this->_output_widget('q-item-after'); }
function q_view($q_view) { if (qa_opt('voting_on_cs')) { $this->comment_votes = $this->logged_in_userid ? qa_db_read_all_assoc(qa_db_query_sub('SELECT ^uservotes.vote AS vote, ^uservotes.postid AS postid FROM ^posts,^uservotes WHERE ^uservotes.vote<>0 AND ^uservotes.userid=# AND ^uservotes.postid=^posts.postid AND ^posts.type=$', $this->logged_in_userid, 'C')) : null; } qa_html_theme_base::q_view($q_view); }
function q_view($post) { if (qa_opt('buddypress_integration_enable') && qa_opt('buddypress_integration_avatars_qv')) { $post['avatar'] = $this->get_bp_avatar($post['raw']['userid'], qa_opt('buddypress_integration_avatars_qv_size')); } qa_html_theme_base::q_view($post); }