Make Image links themable
Likeless - May 4, 2009 - 08:05
| Project: | Taxonomy Image |
| Version: | 6.x-1.6 |
| Component: | Contrib Link Alter |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I would request making the actual output of the image links and taxonomy terms themable. It is one possible solution to my problem. Let me describe my problem:
My taxonomy images are very small, just icons. I want them to display inline with the taxonomy term itself. However, I can't do that because of line 53 of taxonomy_image_link_alter.module:
<?php
$tname = $show_name ? ('<br />'. taxonomy_image_tt("taxonomy:term:$term->tid:name", $term->name)) : NULL;
?>Because of the hardcoded HTML line break, my images display above their terms, which looks bad in my design.
Right now, I have to hack this file each time I update the module:
<?php
$tname = $show_name ? (' '. taxonomy_image_tt("taxonomy:term:$term->tid:name", $term->name)) : NULL;
?>If adding a whole theme seems a bit heavy handed (I do see that there are 2 themes already being used for the image links), then perhaps a simple admin option to turn the line break off could be added?

#1
Marked #458848: add a theme function for altered term links as duplicate.