function q_list_items($q_items)
 {
     $this->queue_raw_posts_voters_flaggers($q_items);
     qa_html_theme_base::q_list_items($q_items);
 }
Пример #2
0
 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);
 }
 public function q_list_items($q_items)
 {
     $this->queue_raw_posts_voters_flaggers($q_items);
     parent::q_list_items($q_items);
 }
Пример #4
0
 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);
     }
 }