Dear all...
I have a simble question....
In footer i had a partners block, with the link from our partners
<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 . '/' . $img, PATHINFO_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