Osclass forums
Support forums => Themes => Topic started by: dantech on February 14, 2019, 02:48:06 am
-
If it has more than 4 regions go to new line (or display block):
<div class="navigation">
<?php if(osc_count_list_regions() > 0 ) { ?>
<div class="box location">
<h3><strong><?php _e("Location", 'usa'); ?></strong></h3>
<ul style="display: flex;">
<?php while(osc_has_list_regions() ) { ?>
<li><a href="<?php echo osc_list_region_url(); ?>"><?php echo osc_list_region_name(); ?></a> <em>(<?php echo osc_list_region_items(); ?>)</em></li>
<?php } ?>
</ul>
</div>
<?php } ?>
</div>