*

jcarrolo01

  • *****
  • 256 posts
Add url to the partners logos in footer
« on: January 04, 2018, 04:19:27 PM »
Dear all...

I have a simble question....

In footer i had a partners block, with the link from our partners

Code: [Select]
        <div class="lead"><?php _e('Our partners''zara'); ?></div>

        <?php 
          $sponsor_path 
osc_base_path() . 'oc-content/themes/' osc_current_web_theme() . '/images/sponsor-logos'
          
$sponsor_url osc_base_url() . 'oc-content/themes/' osc_current_web_theme() . '/images/sponsor-logos'
          
$sponsor_images scandir($sponsor_path);

          if(isset(
$sponsor_images) && !empty($sponsor_images) && $sponsor_images <> '') {
            foreach(
$sponsor_images as $img) {
              
$ext strtolower(pathinfo($sponsor_path '/' $imgPATHINFO_EXTENSION));
              
$allowed_ext = array('png''jpg''jpeg''gif');

              if(
in_array($ext$allowed_ext)) {
                echo 
'<img class="sponsor-image" src="' $sponsor_url '/' $img '" alt="' __('Our sponsor logo''zara') . '" />';
              }
            }
          }
        
?>

      </div>


I have $sponsor_url, i supose is used to add the url from our partners..... So my question is, if i had 4 partners, how can i add the URLs for each one of my partners????????



Best Regards

*

MB Themes

Re: Add url to the partners logos in footer
« Reply #1 on: January 04, 2018, 04:31:29 PM »
@jcarrolo01
Remove loop and manually define each logo and url:
Code: [Select]
<a href="#"><img src=""/></a>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots