/** * Gets the url of current "list region" * * @return string */ function osc_list_region_url() { if (osc_rewrite_enabled()) { $url = osc_base_url(); if (osc_get_preference('seo_url_search_prefix') != '') { $url .= osc_get_preference('seo_url_search_prefix') . '/'; } $url .= osc_sanitizeString(osc_list_region_name()) . '-r' . osc_list_region_id(); return $url; } else { return osc_search_url(array('sRegion' => osc_list_region_id())); } }
<div id="sidebar"> <div class="navigation"> <?php if (osc_count_list_regions() > 0) { ?> <div class="box location"> <h3><strong><?php _e("Location", 'modern'); ?> </strong></h3> <ul> <?php while (osc_has_list_regions()) { ?> <li><a href="<?php echo osc_search_url(array('sRegion' => osc_list_region_id())); ?> "><?php echo osc_list_region_name(); ?> </a> <em>(<?php echo osc_list_region_items(); ?> )</em></li> <?php } ?> </ul> </div> <?php }
/** * Gets the url of current "list region" * * @return string */ function osc_list_region_url() { return osc_search_url(array('sRegion' => osc_list_region_id())); }
</div> <?php if (osc_count_list_regions() > 0) { ?> <div class="title-section"><span><i class="ico-filter_region"></i><?php _e('Region', 'pop'); ?> </span></div> <div class="collections"> <?php $i = 0; while (osc_has_list_regions()) { $active = ''; if (osc_list_region_name() == Params::getParam('sRegion') || osc_list_region_id() == Params::getParam('sRegion')) { $filter_region_id = osc_list_region_id(); $active = 'active'; } ?> <div> <a class="<?php echo $active; ?> " href="<?php echo osc_update_search_url(array('sRegion' => osc_list_region_name())); ?> "><?php echo osc_list_region_name(); ?> </a> <?php