function _pop_print_listing_card($aItems = null) { ob_end_flush(); ob_start(); if (Params::getParam('_page') == 'search' || Params::getParam('_page') == '') { // get premium ads $max = osc_get_preference('pop_max_premium', 'pop_theme'); osc_get_premiums($max); if (osc_count_premiums() > 0) { while (osc_has_premiums()) { pop_draw_item('', false, true); } } } if ($aItems !== null) { View::newInstance()->_exportVariableToView('items', $aItems); } while (osc_has_items()) { $admin = false; if (View::newInstance()->_exists("listAdmin")) { $admin = true; } pop_draw_item('', $admin); } $html = ob_get_contents(); ob_clean(); return $html; }
related_listings(); if (osc_count_items() > 0) { ?> <section class="gray"> <div class="similar listings container"> <h1 class="title"> <?php _e('Related items', 'pop'); ?> </h1> <div> <?php $i = 0; while (osc_has_items()) { pop_draw_item('', false); $i++; } ?> </div> </div> </section> <div class="ad"> <?php pop_draw_ad('search-results-300x250'); ?> </div> <?php } ?>
while (osc_has_premiums()) { pop_draw_item($class, false, true); $i++; if ($i == 3) { // preferencia cuantos listings destacados ? break; } } } else { while (osc_has_items()) { $i++; $admin = false; if (View::newInstance()->_exists("listAdmin")) { $admin = true; } pop_draw_item('', $admin); } } pop_draw_ad('search-results-300x250'); ?> </div> <?php if (osc_search_total_pages() > 1) { ?> <div class="wrapper wrapper-more-listings"> <div class="more-listings-section clear"> <a href=".dummy" id="js-load-more-listings" class="more-listings-block"> <i class="ico-plus_normal"></i> <br/> <span><?php