*

rejja

  • ***
  • 26 posts
Partners Logo
« on: March 10, 2016, 01:38:42 PM »
Hello, please help me with partner's logo. How can i attach a link to logo to be clickable?
Thanks

*

MB Themes

Re: Partners Logo
« Reply #1 on: March 10, 2016, 01:42:51 PM »
@rejja
You need to modify footer.php and defind every image and link separately.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

rejja

  • ***
  • 26 posts
Re: Partners Logo
« Reply #2 on: March 10, 2016, 01:46:38 PM »
Can you help me please with the code?

*

MB Themes

Re: Partners Logo
« Reply #3 on: March 10, 2016, 02:00:59 PM »
@rejja
Code: [Select]
<a href="your_link"> <img src="img_src" /> </a>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Yuri

  • ****
  • 106 posts
  • Yriu
Re: Partners Logo
« Reply #4 on: March 15, 2016, 12:12:25 AM »
You can explain exactly where it is, this link should be inserted? (<a href="your_link"> <IMG SRC = "img_src" /> </a>)
The world is not without good people.

*

MB Themes

Re: Partners Logo
« Reply #5 on: March 15, 2016, 09:28:23 AM »
@emma233
In footer.php

You will replace original code that only get images from folder and show them:
Code: [Select]
        <?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') . '" />';
              }
            }
          }
        
?>

with links.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots