Hey! I wanted to let you know I haven't forgotten about you, it's just taken me a while to get back to you because of all the Styles problems going on right now. I've actually figured out how to add "alt" and "title" (you should have both, for accessibility reasons) text for everything but the Reply button. I can't cut and paste all the code because it's too long for a comment, but I can tell you which lines to change. In Entry::print_linkbar(), you have a section that looks like this: if ($.comments.count > 0 or $.comments.screened) { """
"""; }Change that to add the highlighted lines: if ($.comments.count > 0 or $.comments.screened) { var string alttext = get_plural_phrase($.comments.count, "text_read_comments"); """
""";Under "Print the other links" edit this line: $text = $link_img{$link_key} != "" ? " alt='$link.caption' title='$link.caption' border=0 />" : $link.caption; Did I miss anything?
In Entry::print_linkbar(), you have a section that looks like this:
if ($.comments.count > 0 or $.comments.screened) {
"""
}Change that to add the highlighted lines:
if ($.comments.count > 0 or $.comments.screened) {
var string alttext = get_plural_phrase($.comments.count, "text_read_comments");
"""
alt="$alttext" title="$alttext" border=0 />
}Under the "permalink" section, change this line accordingly:
"""
alt="$*text_permalink" title="$*text_permalink" border=0 />
$text = $link_img{$link_key} != "" ? "
alt='$link.caption' title='$link.caption' border=0 />" : $link.caption;
Did I miss anything?
Reply
I just haven't had much time to poke at my custom layer to do this yet, but I wanted you to know (finally) that I'm grateful for an answer!
Reply
Leave a comment