当前位置: 首页>>代码示例>>PHP>>正文


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怎么用?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>');
 }
开发者ID:ronkeizer,项目名称:question2answer,代码行数:14,代码来源:qa-theme.php

示例2: view_count

 function view_count($q_item)
 {
     if ($this->template == 'question') {
         qa_html_theme_base::view_count($q_item);
     }
 }
开发者ID:gogupe,项目名称:question2answer-releases,代码行数:6,代码来源:qa-theme.php

示例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>');
 }
开发者ID:ateszki,项目名称:mdediago,代码行数:14,代码来源:qa-theme.php

示例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>');
 }
开发者ID:microbye,项目名称:CleanStrap,代码行数:40,代码来源:blocks.php

示例5:

 function view_count($q_item)
 {
     if (isset($q_item['content'])) {
         parent::view_count($q_item);
     }
 }
开发者ID:microbye,项目名称:Donut,代码行数:6,代码来源:qa-donut-layer.php

示例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>');
 }
开发者ID:ruuttt,项目名称:question2answer_sandbox,代码行数:8,代码来源:qa-theme.php

示例7:

 function view_count($q_item)
 {
     if ($this->template == 'question') {
         parent::view_count($q_item);
     }
 }
开发者ID:hckrtech,项目名称:Donut,代码行数:6,代码来源:qa-donut-layer.php

示例8: theme_view_count

 function theme_view_count($post)
 {
     qa_html_theme_base::view_count($post);
 }
开发者ID:swuit,项目名称:swuit-q2a,代码行数:4,代码来源:qa-theme.php


注:本文中的qa_html_theme_base::view_count方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。