Here you go! After seeing the comments, I took the liberty of making it "PC" instead of just personal journals.
If you want to filter on the fly, and you have the navstrip enabled, you can also use the filter dropdown to do so!
function print_module_navlinks() {
var Page p = get_page();
open_module("navlinks", "", "");
var string[] links = [];
foreach var string k ($p.views_order) {
var string url = $p.view_url{$k};
if ( $k == "network" ) {
var string sep = $url->contains("?") ? "&" : "?";
# show = P : personal
# show = C : community
# show = F : feeds
# show = PC : personal and community (any other combinations also possible)
$url = $url + $sep + "show=PC";
}
var string css = """ class="$k" """;
if ($p.view == $k) { $css = """ class="current $k" """; }
$links[size $links] = """<a href="$url"$css>"""+lang_viewname($k)+"""</a>""";
}
print_module_list($links);
close_module();
}
no subject
Date: 2010-01-10 01:34 pm (UTC)If you want to filter on the fly, and you have the navstrip enabled, you can also use the filter dropdown to do so!