show if in its own loop
Hey Ray
in the below code (which is an image slideshow) I am trying to get an icon to show based on the following
<?php if ("".($SponsorsCore->getColumnVal("SponsorPlus")) ."" != "1") { ?><span class="glyph plus"><i class="coffeecup-icons-plus2"></i></span><?php } ?>
however I am not able to include this within the existing loop (it breaks the slideshow) so need it to be separate but still linked to the image that is showing at any given moment in the slideshow
Cheers
Jamie
<a href="sponsors.php" class="link-container sponsorContainer">
<div class="container sponsorWrapper">
<span class="glyph plus"><i class="coffeecup-icons-plus2"></i></span>
<div class="responsive-picture sponsorImage core">
<?php
while(!$SponsorsCore->atEnd()) {
?>
<?php
if(TRUE){ // Begin Cached Resized Image: ImageCacheInstance_1509263731297
ob_start();
?>
<img alt="<?php echo($SponsorsCore->getColumnVal("SponsorName")); ?>" src="images/<?php if ("".($SponsorsCore->getColumnVal("SponsorLogo")) ."" != "noimage") { ?>sponsors/<?php echo($SponsorsCore->getColumnVal("SponsorLogo")); ?><?php } else { ?>cms_icons/no-image.jpg<?php } ?>" width="200" height="75">
<?php
echo(getCachedResizedImageHTML(ob_get_clean(), "../../images/image_cache", "fit", "#FFFFFF", true));
} // End Cached Resized Image: ImageCacheInstance_1509263731297
?>
<?php
$SponsorsCore->moveNext();
}
$SponsorsCore->moveFirst(); //return RS to first record
?>
</div>
</div>
<span class="text-element sponsorType bronze">core Sponsor</span></a>