本文整理匯總了PHP中qa_html_theme_base::q_view方法的典型用法代碼示例。如果您正苦於以下問題:PHP qa_html_theme_base::q_view方法的具體用法?PHP qa_html_theme_base::q_view怎麽用?PHP qa_html_theme_base::q_view使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類qa_html_theme_base
的用法示例。
在下文中一共展示了qa_html_theme_base::q_view方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
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');
}
示例2: q_view
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);
}
示例3: 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);
}