#LOCAL("VisibilityPrefix", "Visible")#IF(#INPUT.IsEditorMode)#SET("VisibilityPrefix", "")#ENDIF #LOCAL("IsReplyAllowed", #FUNCTION("ISACTIONALLOWED", "ViewAddReply")) #IF(#DEFINED(#Session.User) AND #Session.User.IsMerchant)#SET("IsReplyAllowed", 1)#ENDIF #INCLUDE("Content-BreadCrumb")
#IF(#ISACTIONALLOWED("RSS", #Object, #System.Child.Groups.Child.Everyone.Object)) {RSSFeed} #ENDIF {BlogPostPublished} #BLOCK("InlineEditor", "text", #Object, "Subject", "Tag=h1")

#IF(#Subject)#Subject#ELSE({NoSubject})#ENDIF

#ENDBLOCK
#BLOCK("InlineEditor", "html", #Object, "Message", "Tag=div")
#Message[0]
#ENDBLOCK
#IF(NOT #Thread.IsClosed AND #IsReplyAllowed) {WriteComment} #ELSE {Comments}: #COUNT(#GET(#VisibilityPrefix . "Replies")) #ENDIF
#IF(#COUNT(#Tags) OR #INPUT.IsEditorMode) {MoreAbout}: #BLOCK("InlineEditor", "tags", #Object, "TagNamesString", "Tag=span") #JOIN(", ", #Tags)#Tag#ENDJOIN #ENDBLOCK #ENDIF
#IF(#COUNT(#GET(#VisibilityPrefix . "Replies")) > 0)

{Comments}: #COUNT(#GET(#VisibilityPrefix . "Replies"))

#LOCAL("RepliesCount", #COUNT(#GET(#VisibilityPrefix . "Replies"))) #LOOP(#FUNCTION("SORT", #GET(#VisibilityPrefix . "Replies"), "CreationDate", 0))
#IF(#Spam == 0 AND #FUNCTION("ISACTIONALLOWED", "ReportSpam") AND #IsReplyAllowed)
#ELSIF (#Spam == 1) {MarkedAsSpam} #ENDIF #IF(#User) #IF(#DEFINED(#User.BillingAddress))#WITH(#User.BillingAddress) #IF(#DisplayName)#DisplayName #ELSE#FullName#ENDIF #ENDWITH#ELSE #IF(#User.Name)#User.Name #ELSE#User.Alias#ENDIF #ENDIF #ELSE#SPACE[0]{Guest}#ENDIF | #CreationDate[datetime]
#IF(#Subject)#Subject#ELSE({NoSubject})#ENDIF
#Message[preline]
#ENDLOOP #ENDLOCAL #ENDIF #IF(NOT #Thread.IsClosed) #IF(NOT #IsReplyAllowed)
#IF(NOT #DEFINED(#Session.User) OR #Session.User.IsAnonymous) #IF(#Thread.Forum.WritePermissionFor EQ #Shop.Child.Groups.Child.Merchants.ID) {LoginRequiredNoteAdmin} #ELSE {LoginRequiredNote} #ENDIF #ELSE {CommentsNotAllowedForGroup} #ENDIF
#ENDIF #IF(NOT #IsReplyAllowed AND (NOT #DEFINED(#Session.User) OR #Session.User.IsAnonymous)) {LoginToWriteComment} {RegisterNow}
#ENDIF #ELSE
{NoFurtherCommentsAllowed}
#ENDIF #IF(NOT #Thread.IsClosed AND #IsReplyAllowed) #IF(#FormError AND NOT #FormErrors.Form.Login.ErrorCount)
#LOOP(#FormErrors.Errors) #IF(#Reason EQ "UNDERRUN_POST_DELAY")

{UnderrunPostDelay}
{ShowComment}

#ELSIF(#Reason EQ "STRING_EMPTY")

{Notification}

{FillInAComment}

#ELSE {UnknownError} ({Error}: #Reason) #ENDIF #ENDLOOP
#ENDIF
{WriteComment}
{Headline}
{Comment}
#ENDIF
#ENDLOCAL #ENDLOCAL