added random image button to the sublinks bar + help link should now either use the wiki or ext_doc/index

This commit is contained in:
Daku 2012-01-24 15:22:32 +00:00
parent 2cab5ec247
commit 9f3da77ea9
2 changed files with 6 additions and 2 deletions

View file

@ -142,7 +142,9 @@ class Layout {
case "upload":
$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>";
$custom_sublinks .= "<li><a href='".make_link("ext_doc/index")."'>Help</a></li>";
if(file_exists("ext/random_image")) $custom_sublinks .= "<li><a class='tab' href='".make_link("random_image/view")."'>Random Image</a></li>";
if($hw){ $custom_sublinks .= "<li><a class='tab' href='".make_link("wiki/posts")."'>Help</a></li>";
}else{ $custom_sublinks .= "<li><a href='".make_link("ext_doc/index")."'>Help</a></li>";}
break;
case "comment":
$custom_sublinks .= "<li><a href='".make_link('comment/list')."'>All</a></li>";

View file

@ -94,7 +94,9 @@ class Layout {
$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($hw) $cs .= "<a class='tab' href='".make_link("wiki/posts")."'>Help</a>";
if(file_exists("ext/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;
case "comment":
$cs .= "<a class='tab' href='".make_link('comment/list')."'>All</a>";