本文整理匯總了PHP中qa_html_theme_base::view_count方法的典型用法代碼示例。如果您正苦於以下問題:PHP qa_html_theme_base::view_count方法的具體用法?PHP qa_html_theme_base::view_count怎麽用?PHP qa_html_theme_base::view_count使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類qa_html_theme_base
的用法示例。
在下文中一共展示了qa_html_theme_base::view_count方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: q_view_stats
/**
* Add view counter to question view
*
* @since Snow 1.4
* @param type $q_view
*/
public function q_view_stats($q_view)
{
$this->output('<div class="qa-q-view-stats">');
$this->voting($q_view);
$this->a_count($q_view);
parent::view_count($q_view);
$this->output('</div>');
}
示例2: view_count
function view_count($q_item)
{
if ($this->template == 'question') {
qa_html_theme_base::view_count($q_item);
}
}
示例3: q_view_stats
/**
* To add view counter
*
* @since Snow 1.4
* @param type $q_view
*/
public function q_view_stats($q_view)
{
$this->output('<div class="qa-q-view-stats">');
$this->voting($q_view);
$this->a_count($q_view);
qa_html_theme_base::view_count($q_view);
$this->output('</div>');
}
示例4: q_item_main
function q_item_main($q_item)
{
$avatar_arg = array('flags' => $q_item['raw']['flags'], 'email' => $q_item['raw']['email'], 'handle' => $q_item['raw']['handle'], 'avatarblobid' => $q_item['raw']['avatarblobid'], 'avatarwidth' => $q_item['raw']['avatarwidth'], 'avatarheight' => $q_item['raw']['avatarheight']);
$enable_avatar = (int) qa_opt('avatar_q_page_q_size') > 0;
$avatar_size = (bool) qa_opt('cs_enable_clean_qlist') ? 20 : 30;
$timeCode = $q_item['when'];
$when = @$timeCode['prefix'] . @$timeCode['data'] . @$timeCode['suffix'];
if ($enable_avatar && isset($q_item['avatar']) && !(bool) qa_opt('cs_enable_clean_qlist')) {
$this->output('<div class="asker-avatar">');
$this->output(cs_get_post_avatar($avatar_arg, $q_item['raw']['userid'], $avatar_size, true));
$this->output('</div>');
}
$this->output('<div class="qa-q-item-main">');
if (!(bool) qa_opt('cs_enable_clean_qlist')) {
$this->output('<div class="ans-count total-' . $q_item['raw']['acount'] . '">' . $q_item['raw']['acount'] . '<span>' . qa_lang('cleanstrap/ans') . '</span></div>');
}
$this->output('<div class="q-item-head">');
if ($enable_avatar && (bool) qa_opt('cs_enable_clean_qlist')) {
$this->output('<div class="count-time"><span class="time">' . $when . '</span>');
$this->output('<span class="ans-count total-' . $q_item['raw']['acount'] . '">' . $q_item['raw']['acount'] . '</span></div>');
$this->output(cs_get_post_avatar($avatar_arg, $q_item['raw']['userid'], $avatar_size, true));
$this->output('<span class="status-c">' . cs_post_status($q_item) . '</span>');
}
$this->q_item_title($q_item);
if (!(bool) qa_opt('cs_enable_clean_qlist')) {
$this->output('<div class="list-meta">');
$this->output(cs_post_status($q_item));
$this->post_meta($q_item, 'qa-q-item');
qa_html_theme_base::view_count($q_item);
if (qa_opt('cs_show_tags_list')) {
$this->output('<span>' . qa_lang('cleanstrap/tagged') . ': </span>');
$this->post_tag_list($q_item, 'list-tag');
}
$this->output('</div>');
}
$this->output('</div>');
$this->q_item_content($q_item);
$this->q_item_buttons($q_item);
$this->output('</div>');
}
示例5:
function view_count($q_item)
{
if (isset($q_item['content'])) {
parent::view_count($q_item);
}
}
示例6: q_item_stats
function q_item_stats($q_item)
{
$this->output('<DIV CLASS="qa-q-item-stats">');
$this->voting($q_item);
$this->a_count($q_item);
qa_html_theme_base::view_count($q_item);
$this->output('</DIV>');
}
示例7:
function view_count($q_item)
{
if ($this->template == 'question') {
parent::view_count($q_item);
}
}
示例8: theme_view_count
function theme_view_count($post)
{
qa_html_theme_base::view_count($post);
}