Discuz.Web/templates/default3.1/space/spaceindex.htm

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%inherits "Discuz.Space.Pages.spaceindex"%>
<%template _spaceheader%>
<div id="nav">
	<div class="wrap s_clear">
        <a href="{config.forumurl}" class="title">{config.forumtitle}</a> &raquo; <strong>个人空间</strong>
	</div>
</div>
<%if {page_err}==0%>
<div class="wrap">
<div class="left space_main s_clear">
	<div class="modulebox hot_blog">
		<h2>推荐日志</h2>
		<ul class="space_list s_clear">
		<%loop (SpaceShortPostInfo) __spacepostrecommend spacepostlist%>
		<%if {__spacepostrecommend.author}!="" %>
		<li>
			<cite><a href="{spaceurl}space/?uid={__spacepostrecommend.uid}">{__spacepostrecommend.author}</a></cite>
			<cite><%datetostr({__spacepostrecommend.postdatetime},"yyyy-MM-dd")%></cite>
			<a href="{spaceurl}space/viewspacepost.aspx?postid={__spacepostrecommend.postid}"><%getsubstring(Discuz.Common.Utils.HtmlEncode({__spacepostrecommend.title}),70,"...")%></a>
		</li>
		<%/if%> 
		<%/loop%>
		</ul>
	</div>
	<div class="f_clear"></div>
	<div class="modulebox browser_blog">
		<h2>最多浏览文章</h2>
		<ul class="space_list s_clear">
			<%loop __spacepostbyviews topspacepostviews%>
			<%if {__spacepostbyviews[commentcount]}!=""%>
			<li>
			<cite>( {__spacepostbyviews[views]} )</cite>
			· <a href="{spaceurl}space/viewspacepost.aspx?postid={__spacepostbyviews[postid]}"><%getsubstring(Discuz.Common.Utils.HtmlEncode({__spacepostbyviews[title]}),40,"...")%></a>
			</li>
			<%/if%>
			<%/loop%>
		</ul>
	</div>
	<div class="modulebox comment_blog">
		<h2>最多评论文章</h2>
		<ul class="space_list s_clear">
			<%loop __spacepostbycomment topspacepostcommentcount%>
			<%if {__spacepostbycomment[commentcount]}!=""%>
			<li>
			<cite>( {__spacepostbycomment[commentcount]} )</cite>
			· <a href="{spaceurl}space/viewspacepost.aspx?postid={__spacepostbycomment[postid]}"><%getsubstring(Discuz.Common.Utils.HtmlEncode({__spacepostbycomment[title]}),40,"...")%></a>
			</li>
			<%/if%>
			<%/loop%>
		</ul>
	</div>
	<div class="f_clear"></div>
	<div class="modulebox hot_space">
		<h2>推荐空间</h2>
		<ul>
		<%loop (SpaceConfigInfoExt) __spaceconfig spaceconfigs%>
			<li>
				<a href="{spaceurl}space/?uid={__spaceconfig.userid}" target="_blank">
				<%set (string){avatarurl}=Avatars.GetAvatarUrl(__spaceconfig.Userid,AvatarSize.Small) %>
			    <img src="{avatarurl}" onerror="this.onerror=null;this.src='{forumpath}templates/{templatepath}/images/noavatar_small.gif';"/>
后面还有 113 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。