Leave a comment

av8rmike April 4 2010, 15:21:02 UTC
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) {
"""
  • $.comments.count
  • """;
    }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");
    """
  • $.comments.count
    alt="$alttext" title="$alttext" border=0 />
  • """;
    }Under the "permalink" section, change this line accordingly:
    """

  • alt="$*text_permalink" title="$*text_permalink" border=0 />
  • """;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?

    Reply

    elf_fu April 6 2010, 00:29:34 UTC
    Thanks so much!

    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

    Up