added popular by day/month/year to sublinks

This commit is contained in:
Daku 2012-01-24 20:40:20 +00:00
parent 12f70776d5
commit 77ac43e261
2 changed files with 4 additions and 2 deletions

View file

@ -140,9 +140,10 @@ class Layout {
# be nice to be correct
case "post":
case "upload":
$custom_sublinks .= "<li><b>Popular by </b><a href='".make_link('popular_by_day')."'>Day</a>/<a href='".make_link('popular_by_month')."'>Month</a>/<a href='".make_link('popular_by_year')."'>Year</a></li>";
$custom_sublinks .= "<li><a href='".make_link('post/list')."'>All</a></li>";
$custom_sublinks .= "<li><a href='".make_link("post/list/favorited_by=$username/1")."'>My Favorites</a></li>";
if(file_exists("ext/random_image")) $custom_sublinks .= "<li><a href='".make_link("random_image/view")."'>Random Image</a></li>";
if(class_exists("random_image")) $custom_sublinks .= "<li><a href='".make_link("random_image/view")."'>Random Image</a></li>";
if($hw){ $custom_sublinks .= "<li><a href='".make_link("wiki/posts")."'>Help</a></li>";
}else{ $custom_sublinks .= "<li><a href='".make_link("ext_doc/index")."'>Help</a></li>";}
break;

View file

@ -94,10 +94,11 @@ class Layout {
# the subnav links aren't shown, but it would
# be nice to be correct
case "post":
$cs .= "<b>Popular by </b><a href='".make_link('popular_by_day')."'>Day</a><b>/</b><a href='".make_link('popular_by_month')."'>Month</a><b>/</b><a href='".make_link('popular_by_year')."'>Year</a> ";
$cs .= "<a class='tab' href='".make_link('post/list')."'>All</a>";
$cs .= "<a class='tab' href='".make_link("post/list/favorited_by=$username/1")."'>My Favorites</a>";
$cs .= "<a class='tab' href='".make_link('rss/images')."'>Feed</a>";
if(file_exists("ext/random_image")) $cs .= "<a class='tab' href='".make_link("random_image/view")."'>Random Image</a>";
if(class_exists("random_image")) $cs .= "<a class='tab' href='".make_link("random_image/view")."'>Random Image</a>";
if($hw){ $cs .= "<a class='tab' href='".make_link("wiki/posts")."'>Help</a>";
}else{ $cs .= "<a class='tab' href='".make_link("ext_doc/index")."'>Help</a>";}
break;