Hi friends I am new on this forum and also new in osclass CMS, I am trying to developed theme and I want to create location like drop down and want to show all country, regions and cities but my theme showing only ads place locations. kindly tell the solution. I am using this code kindly.
<div id="sidebar">
<?php if(osc_count_list_countries() > 0 ) { ?>
<div class="box location">
<h3><?php _e("Country", 'modern') ; ?></h3>
<ul>
<?php while( osc_has_list_countries() ) { ?>
<li><a href="<?php echo osc_search_url( array( 'sCountry' => osc_list_country_name() ) ) ; ?>"><?php echo osc_list_country_name() ; ?></a> <em>(<?php echo osc_list_country_items() ; ?>)</em></li>
<?php } ?>
</ul>
</div>
<?php } ?>
<?php View::newInstance()->_exportVariableToView('list_regions', Search::newInstance()->listRegions('%%%%', '>=') ) ; ?>
<?php if(osc_count_list_regions() > 0) {?>
<div class="box location">
<h3><strong><?php _e("Regions", 'modern'); ?></strong></h3>
<ul>
<?php while(osc_has_list_regions()) { ?>
<li><a href="<?php echo osc_search_url(array('sRegion' => osc_list_region_name()));?>"><?php echo osc_list_region_name();?></a> <em>(<?php echo osc_list_region_items();?>)</em></li>
<?php } ?>
</ul>
</div>
<?php } ?>
<?php View::newInstance()->_exportVariableToView('list_cities', Search::newInstance()->listCities('%%%%', '>=') ) ; ?>
<?php if(osc_count_list_cities() > 0) {?>
<div class="box location">
<h3><strong><?php _e("Cities", 'modern'); ?></strong></h3>
<ul>
<?php while(osc_has_list_cities()) { ?>
<li><a href="<?php echo osc_search_url(array('sCity' => osc_list_city_name()));?>"><?php echo osc_list_city_name();?></a> <em>(<?php echo osc_list_city_items();?>)</em></li>
<?php } ?>
</ul>
</div>
<?php } ?>
</div>