This repository has been archived by the owner on Nov 10, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsidebar.asp
72 lines (65 loc) · 1.93 KB
/
sidebar.asp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<div id="sidebar">
<h2>Pages</h2>
<ul id="navigation">
<%
objPost.NavigationTemplate = "<li><a href=""[url]"">[title]</a></li>"
Call objPost.Navigation(1) 'CategoryID
%>
</ul>
<h2>Links</h2>
<ul>
<%
'links - adapt for header/footer navigation and sidebar links
Set objLink = New Link
objLink.Template = "<li><a href=""[url]"" title=""[description]"">[name]</a></li>"
objLink.CategoryID = 22
objLink.GetLinks()
Set objLink = Nothing
%>
</ul>
<h2>Recent comments</h2>
<ul>
<%
objComment.CommentsTemplate = "<li><a href=""[url]"" title=""[posttitle], [date]""><strong>[name]</strong>: [content]</a></li>"
Call objComment.RecentComments()
%>
</ul>
<%
objPost.ArchivesTemplate = "<li><a href=""[url]"" title=""[archive] Archive"">[archive] ([postcount])</a></li>"
%>
<h2>Yearly Archives</h2>
<ul>
<%
Call objPost.Archives("yearly")
%>
</ul>
<h2>Monthly Archives</h2>
<ul>
<%
Call objPost.Archives("monthly")
%>
</ul>
<h2>Daily Archives</h2>
<ul>
<%
Call objPost.Archives("daily")
%>
</ul>
<h2>Categories</h2>
<ul>
<%
objCategory.Template = "<li><a href=""[url]"" title=""[description]"">[name] ([postcount])</a></li>"
Call objCategory.Categories()
%>
</ul>
<h2>Tag Cloud</h2>
<p id="tagcloud">
<%
objTag.Template = "<a href=""[url]"" title=""[postcount] posts"" class=""tag_[postcount]"">[name]</a> "
Call objTag.Cloud()
%>
</p>
<h2>Blog Stats</h2>
<%=objStatistic.BlogStats("<p>There are currently [posts] posts, [comments] comments and [links] links contained within [categories] categories and [tags] tags.</p>")%>
<br />
</div>