本文整理汇总了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);
}