- Posts: 1
- Thank you received: 0
How to add "alt" to rotator pictures?
14 years 5 months ago #9095
by koliss
How to add "alt" to rotator pictures? was created by koliss
How to add "alt" to rotator pictures?
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Offline
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
14 years 5 months ago #9107
by ivan.milic
Replied by ivan.milic on topic Re: How to add "alt" to rotator pictures?
Hi,
open modules\mod_hot_effects_rotator\tmpl\default.php
you will find this code:
you see alt="" , you can write either alt="some text" , or use existing variable alt="<?php echo $imageDescArray[$loop]; ?>"
open modules\mod_hot_effects_rotator\tmpl\default.php
you will find this code:
Code:
for ($loop = 1; $loop <= 9; $loop += 1) {
if ($imageArray[$loop]) {
?>
<?php if($imageLinkArray[$loop]) { ?><a href="<?php echo $imageLinkArray[$loop]; ?>" <?php if ($linkNewWindow) { ?>target="_blank"<?php } ?>><?php } ?><img src="<?php echo $imageFolder; ?>/<?php echo $imageArray[$loop]; ?>" alt="" <?php if ($imageDescArray[$loop]) { ?>title="<?php echo $imageDescArray[$loop]; ?>" <?php } ?> /><?php if($imageLinkArray[$loop]) { ?></a><?php } echo "\n" ?>
<?php
}
}
you see alt="" , you can write either alt="some text" , or use existing variable alt="<?php echo $imageDescArray[$loop]; ?>"
Please Log in to join the conversation.
Time to create page: 0.179 seconds