I have the following code:
<h2>
<?php echo $this->item->title; ?>
</h2>
Dependent on the word being pulled in as the title, I need to place a different image to the left of the title text.
Images: uk.png, france.png, germany.png
So if the title text says France, I need to pull in the france.png image. So I need a list of images and titles that ‘could’ be used and if a title doesn’t match an image, no image is shown.
Hope this makes sense…
1 Answer