Snakeling’s Recs (snakelings_recs) wrote in s2expressive,
Snakeling’s Recs
snakelings_recs
s2expressive

Change the pipe separator to a middle dot in the entry link bar

I'm trying to change the separator between the links in the entry link bar to a middle dot (·), the way it is on my main journal, snakeling (which is in Flexible Squares, not Expressive). So far I'm failing, but I don't understand why.

Here's the code I'm using, with the part I changed in green:

function Comment::print_linkbar() {
    var Link link;
    var string sep  = """<span class="separator">&middot;</span>""";
    var string url  = "";
    var string text = "";

    var string{} link_caption = {
        # TODO: These should really be separate properties
        "delete_comment"   => $*text_multiform_opt_delete,
        "freeze_thread"    => $*text_multiform_opt_freeze,
        "unfreeze_thread"  => $*text_multiform_opt_unfreeze,
        "screen_comment"   => $*text_multiform_opt_screen,
        "unscreen_comment" => $*text_multiform_opt_unscreen,
        "watch_comments"   => $*text_multiform_opt_track,
        "unwatch_comments" => $*text_multiform_opt_untrack,
    };

    foreach var string link_key ($.link_keyseq) {
        $link = $this->get_link($link_key);
        if (defined $link) {
            $url  = $link.url;
            $text = $link_caption{$link_key} != "" ? $link_caption{$link_key} : $link.caption;
            print safe """ $sep <a href="$url">$text</a>""";
        }
    }
}

It compiles okay, but I'm not seeing any changes. Help?

The full layer can be found under #8792113.

Tags: entries:linkbar, s2:theme layer
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 3 comments