當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。