📄 sitemenupanel.ascx
字号:
<%@ Import namespace="Interspire.ArticleLive.Web" %>
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="SiteMenuPanel.ascx.cs" Inherits="Interspire.ArticleLive.Web.Templates.BrightLightFixed.Panels.SiteMenuPanel" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<%@ Import namespace="Interspire.ArticleLive" %>
<%@ Import namespace="Interspire.ArticleLive.Web.Security" %>
<TABLE class="Panel SiteMenuPanel" id="Table2">
<TBODY>
<TR>
<TD class="Heading"><%= ResourceHelper.GetString("SiteMenu") %></TD>
</TR>
<TR>
<TD class="Content">
<div>
<img src="<%= Config.Current.CurrentTemplatePath %>/Images/icon_Blogs.gif" align=absmiddle> <A href="<%= Config.Current.BlogsPagePath %>"><%= ResourceHelper.GetString("ViewBlogs") %></A>
</div>
<div><img src="<%= Config.Current.CurrentTemplatePath %>/Images/icon_Authors.gif" align=absMiddle> <A href='<%= Config.Current.AuthorsPagePath %>?a=ViewAuthors'><%= ResourceHelper.GetString("ViewAuthors") %></A></div>
<% if (Config.Current.EnableAuthorRegistration && !Request.IsAuthenticated){ %>
<div><img src="<%= Config.Current.CurrentTemplatePath %>/Images/icon_Author.gif" align=absMiddle> <A href='<%= Config.Current.AuthorsPagePath %>?a=Register'><%= ResourceHelper.GetString("BecomeAnAuthor") %></A></div><% } %>
<% if (Config.Current.EnableAuthorLogin){ %>
<% if (!Request.IsAuthenticated) { %>
<div><img src="<%= Config.Current.CurrentTemplatePath %>/Images/icon_Login.gif" align=absMiddle> <A href='<%= Config.Current.AuthorsPagePath %>?a=LogIn'><%= ResourceHelper.GetString("AuthorLogin") %></A></div><% } else { %>
<div>
<img src="<%= Config.Current.CurrentTemplatePath %>/Images/icon_Login.gif" align=absMiddle> <A href="<%= Config.Current.AuthorsPagePath %>?a=LogOut"><%= ResourceHelper.GetString("Logout") %></A> (<%= ((Identity)Page.User.Identity).Username %>)
</div>
<% } %><% } %>
<% if (Request.IsAuthenticated && Authorisation.UserHasPermission(UserPermissionsEnum.SubmitArticle | UserPermissionsEnum.CreateContent)) { %>
<div>
<img src="<%= Config.Current.CurrentTemplatePath %>/Images/icon_Article.gif" align=absMiddle> <A href="<%= Config.Current.ArticlesPagePath %>?a=SubmitArticle"><%= ResourceHelper.GetString("SubmitArticle") %></A>
</div>
<div>
<img src="<%= Config.Current.CurrentTemplatePath %>/Images/icon_MyArticles.gif" align=absMiddle> <A href="<%= Config.Current.AuthorsPagePath %>?a=ViewAccount"><%= ResourceHelper.GetString("MyArticles") %></A>
</div>
<% } %>
</TD>
</TR>
</TBODY>
</TABLE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -