當前位置: 首頁>>代碼示例>>PHP>>正文


PHP qa_html_theme_base::q_list_items方法代碼示例

本文整理匯總了PHP中qa_html_theme_base::q_list_items方法的典型用法代碼示例。如果您正苦於以下問題:PHP qa_html_theme_base::q_list_items方法的具體用法?PHP qa_html_theme_base::q_list_items怎麽用?PHP qa_html_theme_base::q_list_items使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在qa_html_theme_base的用法示例。


在下文中一共展示了qa_html_theme_base::q_list_items方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: q_list_items

 function q_list_items($q_items)
 {
     $this->queue_raw_posts_voters_flaggers($q_items);
     qa_html_theme_base::q_list_items($q_items);
 }
開發者ID:mostafiz93,項目名稱:PrintfScanf,代碼行數:5,代碼來源:qa-layer-voters-flaggers.php

示例2: q_list_items

 function q_list_items($q_items)
 {
     if (qa_opt('it_layout_lists') == 'qlist') {
         qa_html_theme_base::q_list_items($q_items);
         return;
     }
     foreach ($q_items as $key => $q_item) {
         $q_items[$key]['classes'] .= ' col col-md-4';
     }
     qa_html_theme_base::q_list_items($q_items);
 }
開發者ID:swuit,項目名稱:swuit-q2a,代碼行數:11,代碼來源:qa-layer-base.php

示例3: q_list_items

 public function q_list_items($q_items)
 {
     $this->queue_raw_posts_voters_flaggers($q_items);
     parent::q_list_items($q_items);
 }
開發者ID:kosmoluna,項目名稱:question2answer,代碼行數:5,代碼來源:qa-layer-voters-flaggers.php

示例4: q_list_items

 function q_list_items($q_items)
 {
     if (qa_opt('cs_enable_adv_list')) {
         $advs = json_decode(qa_opt('cs_advs'), true);
         foreach ($advs as $k => $adv) {
             $advertisments[@$adv['adv_location']][] = $adv;
         }
         $i = 0;
         foreach ($q_items as $q_item) {
             $this->q_list_item($q_item);
             if (isset($advertisments[$i])) {
                 foreach ($advertisments[$i] as $k => $adv) {
                     $this->output('<div class="cs-advertisement">');
                     if (isset($adv['adv_adsense'])) {
                         $this->output($adv['adv_adsense']);
                     } else {
                         if (isset($adv['adv_image'])) {
                             $this->output('<a href="' . $adv['adv_image_link'] . '"><img src="' . $adv['adv_image'] . '" title="' . $adv['adv_image_title'] . '" alt="advert" /></a>');
                         } else {
                             $this->output('<a href="' . $adv['adv_image_link'] . '">' . $adv['adv_image_title'] . '</a>');
                         }
                     }
                     $this->output('</div>');
                 }
             }
             $i++;
         }
     } else {
         qa_html_theme_base::q_list_items($q_items);
     }
 }
開發者ID:microbye,項目名稱:CleanStrap,代碼行數:31,代碼來源:options.php


注:本文中的qa_html_theme_base::q_list_items方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。