forked from ventrian/News-Articles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Archives.ascx
executable file
·66 lines (61 loc) · 4.32 KB
/
Archives.ascx
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
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="Archives.ascx.vb" Inherits="Ventrian.NewsArticles.Archives" %>
<%@ Register TagPrefix="article" TagName="Header" Src="ucHeader.ascx" %>
<article:header id="Header1" SelectedMenu="Categories" runat="server" MenuPosition="Top" />
<div align="left">
<asp:PlaceHolder ID="phCurrentArticles" runat="server">
<h2><asp:Label ID="lblCurrentArticles" runat="server" EnableViewState="false" ResourceKey="CurrentArticles" /></h2>
<div class="Normal" style="margin-left: 25px;">
<asp:PlaceHolder ID="phArchives" runat="server"><a href="<%= Me.GetCurrentLinkRss() %>" rel="nofollow"><img src="<%= GetRssPath() %>" alt="Latest RSS Link" border="0" /></a> </asp:PlaceHolder>
<a href="<%= GetCurrentLink() %>"><asp:Label ID="lblLatest" runat="server" resourcekey="Latest25" /></a>
</div>
</asp:PlaceHolder>
<asp:PlaceHolder ID="phCategory" runat="server">
<h2><asp:Label ID="lblByCategory" runat="server" EnableViewState="false" ResourceKey="ByCategory" /></h2>
<asp:Repeater ID="rptCategories" Runat="server" EnableViewState="False">
<HeaderTemplate>
<div class="Normal" style="margin-left: 25px;">
</HeaderTemplate>
<ItemTemplate>
<asp:PlaceHolder ID="phArchives" runat="server" Visible="<%# IsSyndicationEnabled() %>"><a href="<%# GetCategoryLinkRss(DataBinder.Eval(Container.DataItem, "CategoryID")) %>" rel="nofollow"><img src="<%# GetRssPath() %>" alt="Category RSS Link" border="0" /></a> </asp:PlaceHolder>
<a href="<%# GetCategoryLink(DataBinder.Eval(Container.DataItem, "CategoryID"), DataBinder.Eval(Container.DataItem, "Name")) %>"><%#DataBinder.Eval(Container.DataItem, "NameIndented")%> (<%# DataBinder.Eval(Container.DataItem, "NumberOfArticles") %>)</a>
<br />
</ItemTemplate>
<FooterTemplate>
</div>
</FooterTemplate>
</asp:Repeater>
</asp:PlaceHolder>
<asp:PlaceHolder ID="phAuthor" runat="server">
<h2><asp:Label ID="lblByAuthor" runat="server" EnableViewState="false" ResourceKey="ByAuthor" /></h2>
<asp:Repeater ID="rptAuthors" Runat="server" EnableViewState="False">
<HeaderTemplate>
<div class="Normal" style="margin-left: 25px;">
</HeaderTemplate>
<ItemTemplate>
<asp:PlaceHolder ID="phArchives" runat="server" Visible="<%# IsSyndicationEnabled() %>"><a href="<%# GetAuthorLinkRss(DataBinder.Eval(Container.DataItem, "UserID")) %>" rel="nofollow"><img src="<%# GetRssPath() %>" alt="Author RSS Link" border="0" /></a> </asp:PlaceHolder>
<a href="<%# GetAuthorLink(DataBinder.Eval(Container.DataItem, "UserID"), DataBinder.Eval(Container.DataItem, "Username")) %>"><%#DataBinder.Eval(Container.DataItem, "DisplayName")%> (<%#DataBinder.Eval(Container.DataItem, "ArticleCount")%>)</a>
<br />
</ItemTemplate>
<FooterTemplate>
</div>
</FooterTemplate>
</asp:Repeater>
</asp:PlaceHolder>
<asp:PlaceHolder ID="phMonth" runat="server">
<h2><asp:Label ID="lblByMonth" runat="server" EnableViewState="false" ResourceKey="ByMonth" /></h2>
<asp:Repeater ID="rptMonth" Runat="server" EnableViewState="False">
<HeaderTemplate>
<div class="Normal" style="margin-left: 25px;">
</HeaderTemplate>
<ItemTemplate>
<asp:PlaceHolder ID="phArchives" runat="server" Visible="<%# IsSyndicationEnabled() %>"><a href="<%# GetMonthLinkRss(DataBinder.Eval(Container.DataItem, "Month"), DataBinder.Eval(Container.DataItem, "Year")) %>" rel="nofollow"><img src="<%# GetRssPath() %>" alt="Month RSS Link" border="0" /></a> </asp:PlaceHolder>
<a href="<%# GetMonthLink(DataBinder.Eval(Container.DataItem, "Month"), DataBinder.Eval(Container.DataItem, "Year")) %>"><%#GetMonthName(DataBinder.Eval(Container.DataItem, "Month"))%> <%#DataBinder.Eval(Container.DataItem, "Year")%> (<%#DataBinder.Eval(Container.DataItem, "Count")%>)</a>
<br />
</ItemTemplate>
<FooterTemplate>
</div>
</FooterTemplate>
</asp:Repeater>
</asp:PlaceHolder>
</div>
<article:header id="Header2" SelectedMenu="Categories" runat="server" MenuPosition="Bottom" />