Conditional images
-
I have a custom rotator I’m creating and I need an arrow that overlays the current active image/caption/title. Is there some php foo that is basically like the following:
if is class “active” then show this image else show nothing.
An example (I know my php in the example is not correct):
<?php if <li class="active"> <a href="#">Something <img src="image.jpg" /></a> { else <a href="#">Something</a> </li> ?>
The class “active” is attached to the li by the jQuery plugin.
I’ve tried the following and it doesn’t work:
https://pastebin.com/ZWvv7iHYTIA!
- The topic ‘Conditional images’ is closed to new replies.