CyberAlien wrote:naderman wrote:Are there any legitimate use cases for non-theme images in the template? Cases where one would use <img> and want to have an image in the template?
Currently <img> tags are used in code for last post and newest post icons, like this:
- Code: Select all
<!-- IF topicrow.S_UNREAD_TOPIC --><a href="{topicrow.U_NEWEST_POST}">{NEWEST_POST_IMG}</a> <!-- ENDIF -->
If imageset wouldn't exist anymore, that code could be changed to something like this:
- Code: Select all
<!-- IF topicrow.S_UNREAD_TOPIC --><a href="{topicrow.U_NEWEST_POST}" class="icon-newest">{L_NEWEST_POST}</a> <!-- ENDIF -->
and would require adding something like this to css:
- Code: Select all
.icon-newest {
display: inline-block;
background: url(newest.png) 0 50% no-repeat;
width: 0; /* padding is used for width */
height: 10px; /* image height */
padding-left: 11px; /* offset text to hide it, equal to image width */
overflow: hidden; /* hide text */
}
That would get rid of <img> tag and put meaningful text instead of it. After applying that css it would look the same as it used to.
I understand that. What I was asking is: Are there cases where <img> is used directly in the template and not coming out of a variable? And are there use cases where this CSS solution would not work? In particular in non-prosilver/subsilver2 styles, meaning do other styles make use of img tags in other ways?




