rakshi (on_reflecting) wrote in s2bloggish, |
function Entry::print_linkbar() { # Makes the entry linkbar contents and order modifiable. var Link link; var string url = ""; var string text = ""; print """\n"""; print """\n"; }\n"""; $.comments->print(); # Here is where you would change the order of or remove linkbar links. var string[] link_keyseq = [ "edit_entry", "mem_add", ]; var string{} link_caption = { "edit_entry" => $*text_edit_entry, "mem_add" => $*text_mem_add, }; 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 """
\n- $text
"""; } } print """- $*text_permalink
"""; println "\n