How To Show images' alt Attribute?!
List posts in the topic
How To Show images' alt Attribute?!
msg# 1
- depth:
- 0
Previous post
-
Next post
|
Parent
-
No child
|
Posted on 2008/3/1 14:55 | Last modified
Here is some code for homepage blocktitles to show images instead of texts.But How To Show images' alt Attribute.
(statement for images or explanations for images)
Thank you Very Much!
Take "theme_blockleft.htm" for example:
find:
<div class="blockTitle"><{$block.title}></div>
<div class= "blockContent"><{$block.content}></div>
mend it:
<{if $block.title|regex_replace:"/.*\[\[.*/":"Picture True" eq "Picture True"}>
<div class="blockTitle">
<img src="<{$block.title|regex_replace:"/.*\[\[/":""}>" alt="<{$block.title|regex_replace:"/\[\[.*/":""}>">
</div>
<{else}>
<div class="blockTitle"><{$block.title}></div>
<{/if}>
<div class="blockContent"><{$block.content}></div>
Votes:9
Average:7.78
Posts tree