本文整理匯總了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);
}
示例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);
}
示例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);
}
示例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);
}
}