28 lines
2.1 KiB
HTML
28 lines
2.1 KiB
HTML
<div id="header">
|
|
<div id="loginbar"><a href="<%config.db_cgi_url%>/user.cgi<%if user.Username%>?logout=1<%endif%>" class="<%if user.Username%>in<%else%>out<%endif%>"><%if user.Username%>Logout<%else%>Login/Register<%endif%></a></div>
|
|
<div id="logo"><h1><a href="<%config.build_root_url%>/<%home_index%>"><%site_title%></a></h1></div>
|
|
</div>
|
|
<div class="navbar clear">
|
|
<ul class="primarynav">
|
|
<li class="home"><a href="<%config.build_root_url%>/<%home_index%>">Home</a></li>
|
|
<li><a href="<%config.db_cgi_url%>/add.cgi<%if category_id%>?ID=<%category_id%><%endif%>">Add a Link</a></li>
|
|
<li><a href="<%config.db_cgi_url%>/modify.cgi<%if category_id%>?ID=<%category_id%><%endif%>">Modify a Link</a></li>
|
|
<li><a href="<%config.build_new_url%>/">New Links</a></li>
|
|
<li><a href="<%config.build_cool_url%>/">Cool Links</a></li>
|
|
<li><a href="<%config.build_ratings_url%>/">Top Rated</a></li>
|
|
<li><a href="<%config.db_cgi_url%>/jump.cgi?ID=random<%if config.build_detailed%>;Detailed=1<%endif%>">Random Link</a></li>
|
|
<%if config.newsletter_enabled%><li><a href="<%config.db_cgi_url%>/subscribe.cgi">Newsletter</a></li><%endif%>
|
|
<%if config.bookmark_enabled%><li><a href="<%config.db_cgi_url%>/bookmark.cgi">Bookmarks</a></li><%endif%>
|
|
<%if Links::Utils::is_editor%><li><a href="<%config.db_cgi_url%>/browser.cgi">Editors</a></li><%endif%>
|
|
</ul>
|
|
<%~if secondarynav%><%include $secondarynav%><%endif%>
|
|
</div>
|
|
<div class="searchbar">
|
|
<form action="<%config.db_cgi_url%>/search.cgi">
|
|
<label for="searchbox">Search</label>
|
|
<%if category_id%><input type="radio" id="searchentire" name="catid" value="" checked="checked" /><label for="searchentire">the entire directory</label> <input type="radio" id="searchcat" name="catid" value="<%escape_html category_id%>" /><label for="searchcat">only this category</label><%endif%>
|
|
<input type="text" id="searchbox" name="query" value="<%if query%><%escape_html query%><%endif%>" class="text" /><input type="submit" name="Go" value="Go" class="submit" /> <a href="<%config.db_cgi_url%>/search.cgi">Advanced Search</a>
|
|
</form>
|
|
</div>
|
|
<hr class="hide" />
|