function osc_pagination_items($extraParams = array(), $field = false) { if (osc_is_public_profile()) { $url = osc_user_list_items_pub_profile_url('{PAGE}', $field); $first_url = osc_user_public_profile_url(); } elseif (osc_is_list_items()) { $url = osc_user_list_items_url('{PAGE}', $field); $first_url = osc_user_list_items_url(); } $params = array('total' => osc_search_total_pages(), 'selected' => osc_search_page(), 'url' => $url, 'first_url' => $first_url); if (is_array($extraParams) && !empty($extraParams)) { foreach ($extraParams as $key => $value) { $params[$key] = $value; } } $pagination = new Pagination($params); return $pagination->doPagination(); }
if (osc_is_search_page() && Params::getParam('hook') != 'load_more_listing') { ?> <div class="item stamp stamp-alert"> <?php require WebThemes::newInstance()->getCurrentThemePath() . 'inc.alert.form.php'; ?> </div> <?php } ?> <?php } ?> <?php // get premium ads if (!osc_is_list_items() && !osc_is_public_profile()) { $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($class, false, true); } } } $i = 0; if ($type == 'latestItems') { while (osc_has_latest_items()) { pop_draw_item($class); $i++; } } elseif ($type == 'premiums') {