本文整理汇总了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);
}
}