I have a page where I want to display either a featured image or an image gallery in the left corner of a text block, which wraps around the image. Pretty basic.
If I use just a single image for the story, I have a class that shows a border around the image. If I decide to use a gallery (via a grid field), the images rotate, and the user can click on them to view larger versions. Also pretty simple.
The complication is evaluating whether either of the two is empty, and if so, show the one that has content. Further, if neither the gallery or single image have any content, show nothing.
I attached my code in Image1 You can also view an example here of the gallery, and HERE of what a single image is supposed to look like (second link is not coded, only "About" template is). The main "About" link is where I have a single image uploaded, but does not show.
Thank you all for any help you can give!!