Forum Moderators: coopster
<?php
$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$actual_link = strtolower($actual_link);
$UseDefault = "1";
if (strpos($actual_link, 'country1') > 0)
$UseDefault = "0";
{ ?>
<img src="Image URL" alt="Image Alt" />
<img src="Image URL" alt="Image Alt" />
<img src="Image URL" alt="Image Alt" />
<?php
}
if (strpos($actual_link, 'country2') > 0)
$UseDefault = "0";
{ ?>
<img src="Image URL" alt="Image Alt" />
<img src="Image URL" alt="Image Alt" />
<img src="Image URL" alt="Image Alt" />
<?php
}
if ($UseDefault = "1")
{
if(get_cf_matrix('banner-image','45'))
{
foreach(get_cf_matrix('banner-image','45') as $image)
{ ?>
<img src="<?php echo $image->url; ?>" alt="<?php echo $image->alt; ?>" />
<?php
}
}
} ?> The if statement should have == not =