By syquest on
How do I add taxonomy arguments to the image-gallery.tpl.php file?
I use arguments to theme by user and taxonomy, and this isn’t a problem in other tpl files. However, image_gallery.tpl.php is written differently from other templates and the following , for example, doesn’t work:
<?php if ($comment->uid == 1): ?><div class="comment_submitted1"><?php endif; ?>
<?php if ($comment->uid != 1): ?><div class="comment_submitted2"><?php endif; ?>How would I add taxonomy or user arguments to work with the following code for the gallery template.
<?php $content.= '<div class="div1thumbs">'.l(image_display($gallery->latest, 'thumbnail'), 'image/tid/'.$gallery->tid, array(), NULL, NULL, FALSE, TRUE)."</div>\n"; ?>
More specifically, I want to add a div to image thumbnails which match a certain term.
Thanks for your help.
Comments
I figured it out...
By inserting the following code in the image_gallery.tpl.php file, I can style thumbs by their category.