#LOCAL("VisibilityPrefix", "Visible")#IF(#INPUT.IsEditorMode)#SET("VisibilityPrefix", "")#ENDIF
#IF(#ISACTIONALLOWED("RSS", #Object, #System.Child.Groups.Child.Everyone.Object))
#ENDIF
#BLOCK("Pager", #GET(#VisibilityPrefix . "Threads"), 10, "LastPost.CreationDate", 1)
#LOCAL("TotalReplies", 0)
#LOOP(#GET(#VisibilityPrefix . "Threads"))#SET("TotalReplies", #TotalReplies + #COUNT(#GET(#VisibilityPrefix . "Posts")))#ENDLOOP
#BLOCK("InlineEditor", "text", #Object, "Name", "Tag=h1")
#NameOrAlias
#ENDBLOCK
#BLOCK("InlineEditor", "html", #Object, "Text", "Tag=div")#Text[0]
#ENDBLOCK
#IF(NOT #FUNCTION("ISACTIONALLOWED", "ViewAddThread"))
#IF(NOT #DEFINED(#Session.User) OR #Session.User.IsAnonymous)
{LoginAndCreatNewThread}
{RegisterNow}
#ELSE
{CreateThreadsNotAllowedForGroup}
#ENDIF
#ELSIF(NOT #INPUT.IsEditorMode)
{CreatNewThread}
#ENDIF
#IF(#INPUT.IsEditorMode)
#ENDIF
{Thread}
{Created}
{Posts}
{LastPostShort}
#IF(#COUNT(#Pager.Items))
#LOOP(#Pager.Items)
#IF(#INPUT.IsEditorMode)
#ELSE
#ENDIF
#IF(#Thread.IsClosed)
#ELSE
#ENDIF
#BLOCK("InlineEditor", "text", #Object, "Subject", "Tag=span")#IF(#Subject)#Subject#ELSE({NoSubject})#ENDIF#ENDBLOCK
#Message[nohtml,decodehtml,slice:100,preline]
#CreationDate[datetime]
#IF(#User)
#IF(#DEFINED(#User.BillingAddress))#WITH(#User.BillingAddress)
#IF(#DisplayName)#DisplayName#ELSE#FirstName #LastName#ENDIF
#ENDWITH#ELSE
#User.NameOrAlias
#ENDIF
#ELSE#SPACE[0]{Guest}#ENDIF
#CALCULATE(#COUNT(#GET(#VisibilityPrefix . "Posts")) - 1)
#IF(#LastReply)
#LastReply.CreationDate[datetime]
#IF(#LastReply.User)#IF(#DEFINED(#LastReply.User.BillingAddress))#LastReply.User.BillingAddress.DisplayName#ELSE#LastReply.User.Alias#ENDIF#ELSE {Guest} #ENDIF
#ELSE
-
#ENDIF
#IF(#INPUT.IsEditorMode)
#ELSE
#ENDIF
#IF(#COUNT(#GET(#VisibilityPrefix . "Posts"))>1)
#LOOP(#GET(#VisibilityPrefix . "Posts"))
#IF(#ItemNo)
#IF(#User)
#IF(#DEFINED(#User.BillingAddress))#WITH(#User.BillingAddress)
#IF(#DisplayName)#DisplayName#ELSE#FirstName #LastName#ENDIF
#ENDWITH#ELSE
#User.NameOrAlias
#ENDIF
#ELSE#SPACE[0]{Guest}#ENDIF
:#Message[nohtml,decodehtml,slice:200,preline]
#ENDIF
#ENDLOOP
#ENDIF
#ENDLOOP
#ELSE
{NoEntries}
#ENDIF
#ENDLOCAL
#ENDBLOCK
#ENDLOCAL