*

terry

  • ***
  • 39 posts
Footer Regions - Show Countries Instead
« on: April 14, 2017, 10:17:00 AM »
Hi there

How can I show certain countries in the footer location/region section instead of the current popular regions? Is there a code to do this or will I need to enter these links in manually in footer.php?

Thanks

*

MB Themes

Re: Footer Regions - Show Countries Instead
« Reply #1 on: April 15, 2017, 02:37:19 PM »
You can modify it in footer.php, i do not have code
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

MB Themes

Re: Footer Regions - Show Countries Instead
« Reply #2 on: April 16, 2017, 11:06:55 AM »
@terry
In footer, if you replace:
Code: [Select]
      <div class="location">
        <?php $regions RegionStats::newInstance()->listRegions('%%%%''>''i_num_items DESC'); ?>
        <?php $i 1?>
        <?php foreach($regions as $r) { ?>
          <?php if($i <= 12) { ?>
            <span class="region-span"><a href="<?php echo osc_search_url(array('page' => 'search''sRegion' => $r['pk_i_id']));?>"><?php echo $r['s_name']; ?></a></span>
            <?php $i++; ?>
          <?php ?>
        <?php ?>
      </div>


With:
Code: [Select]
      <div class="location">
        <?php $countries CountryStats::newInstance()->listCountries('%%%%''>''i_num_items DESC'); ?>
        <?php $i 1?>
        <?php foreach($countries as $r) { ?>
          <?php if($i <= 12) { ?>
            <span class="region-span"><a href="<?php echo osc_search_url(array('page' => 'search''sCountry' => $r['pk_i_id']));?>"><?php echo $r['s_name']; ?></a></span>
            <?php $i++; ?>
          <?php ?>
        <?php ?>
      </div>


Did not tested, but at least it is start  8)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots