修正CategoryList.cs日历正常显示“一二三四五六日”
private
System.Threading.Thread t;
private
System.Globalization.CultureInfo oldCulture;
在OnPreRender中添加如下代码
t
=
System.Threading.Thread.CurrentThread;
oldCulture
=
t.CurrentCulture;
System.Globalization.CultureInfo newci
=
(System.Globalization.CultureInfo)oldCulture.Clone();
newci.DateTimeFormat.DayNames
=
new
string
[] {
"
日
"
,
"
一
"
,
"
二
"
,
"
三
"
,
"
四
"
,
"
五
"
,
"
六
"
};
newci.DateTimeFormat.FirstDayOfWeek
=
DayOfWeek.Sunday;
t.CurrentCulture
=
newci;
在RaiseCallbackEvent中添加如下代码
t
=
System.Threading.Thread.CurrentThread;
oldCulture
=
t.CurrentCulture;
System.Globalization.CultureInfo newci
=
(System.Globalization.CultureInfo)oldCulture.Clone();
newci.DateTimeFormat.DayNames
=
new
string
[] {
"
一
"
,
"
二
"
,
"
三
"
,
"
四
"
,
"
五
"
,
"
六
"
,
"
日
"
};
newci.DateTimeFormat.FirstDayOfWeek
=
DayOfWeek.Sunday;
t.CurrentCulture
=
newci;
修正User controls/ConmmentView.ascx.cs网站文本框初始显示文本
txtWebsite.Text
=
Request.Url.Host;
↓
Request.Url.Host
+
"
/author/
"
+
user.UserName
+
BlogSettings.Instance.FileExtension;
修正User controls/ConmmentView.ascx URL验证
(http
://|
https
://|
)([
\
w
-
]
+\.
)
+
[
\
w
-
]
+
(
/
[
\
w
-
./?%&=
;
~
]
*
)
?
↓
(http
://|
https
://|
)[
\
w
-
]
+
(
/
[
\
w
-
./?%&=
;
~
]
*
)
?
汉化LoginStatus为『登陆』『注销』,将LoginStatus添加到主菜单
<
asp:LoginStatus
ID
="LoginStatus1"
runat
="Server"
LoginText
="Sign in"
LogoutText
="Sign out"
EnableViewState
="false"
/>
↓
<
asp:LoginStatus
ID
="LoginStatus1"
runat
="Server"
LoginText
="登录"
LogoutText
="注销"
EnableViewState
="false"
/>
汉化菜单项『Extensions』 『Change password』为『常用链接』『修改密码』
修正labels.zh-CN.resx中Changepassword,添加Extensions
去掉About the author
site.master
<
a
href
="<%=Utils.FeedUrl %>"
class
="feed"
><
img
src
="~/pics/rssButton.gif"
alt
="Feed"
runat
="server"
/>
<%
=
Resources.labels.subscribe
%>
</
a
>
去掉SidePanel『最新文章』
<
div
class
="box recent"
>
<
h1
>
<%
=
Resources.labels.recentPosts
%>
</
h1
>
<
blog:RecentPosts
runat
="Server"
/>
</
div
>
二级菜单
CSS+JavaScript
<script type="text/javascript">
window.onload= function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("menu");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
}
node.onmouseout=function() {
this.className=this.className.replace(" over", "");
}
}
}
}
}
</script>
<style type="text/css" media="all">
ul#menu,ul#menu ul{
margin: 0 auto;
text-align:left;
padding: 0;
list-style: none;
background:#fff;
z-index:99;
}
ul#menu {
width:100%;
display:block;
height:24px;
clear:both;
border: 1px solid silver;
margin-bottom: 20px;
}
ul#menu li {
position: relative;
z-index:999;
float:left;
}
ul#menu ul li{
display:block;
}
ul#menu ul {
width:170px;
height:auto;
position: absolute;
text-align:left;
left: 0px;
display: none;
border:solid 1px #ccc;
}
/* Styles for Menu's hover */
ul#menu li.over a,ul#menu li:hover a{
color:#069;
font-weight:bold;
text-decoration:none;
}
/* Clear Submenu's Styles */
ul#menu li.over ul a,ul#menu li:hover ul a{
background:#fff;
font-weight:normal;
color:#777;
}
/* Styles for Submenu's Hover */
ul#menu li.over ul a:hover,ul#menu li:hover ul a:hover{
background:white;
font-weight:normal;
color: #069;
}
/* Styles for Menu Items */
ul#menu a {
font-size:12px;
line-height:17px;
display: block;
padding:0 0 0 10px;
width:58px;
color: #5c80b1;
height:17px;
background: #fff;
border-left:solid 1px #fff;
border-top:solid 1px #fff;
border-right:solid 1px #fff;
border-bottom:solid 1px #fff;
text-decoration:none;
}
ul#menu ul li{
width:100px;
border:0;
}
/* Fix IE. Hide from IE Mac \*/
* html ul#menu li { float: left; height: 17px; }
* html ul#menu li a { height: 17px; }
/* End */
ul#menu ul a { padding: 2px 0px 2px 10px; border:0; width:160px; } /* Sub Menu Styles */
ul#menu li:hover ul,ul#menu li.over ul { display: block; } /* The magic */
</style>
未来计划
- 有回复时,发送邮件至作者
- 发布随笔时,发送邮件至所有注册用户
- 阅读计数
- Tag页面
- 显示登录用户名