#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))

#ENDIF
{BlogPostPublished}
#BLOCK("InlineEditor", "text", #Object, "Subject", "Tag=h1")
#IF(#Subject)#Subject#ELSE({NoSubject})#ENDIF
#ENDBLOCK
#IF(#DEFINED(#ImageMedium))
#BLOCK("InlineEditor", "image", #Object, "ImageMedium")

#ENDBLOCK
#ELSIF(#INPUT.IsEditorMode)
#BLOCK("InlineEditor", "image", #Object, "ImageMedium")

#ENDBLOCK
#ENDIF
#IF(#INPUT.IsEditorMode)
#BLOCK("InlineEditor", "html", #Object, "Text", "Tag=div;ShowPageBreak=true")
#Text[0]
#ENDBLOCK
#ELSE
#IF(#DEFINED(#BlogPostExcerpt))
#BlogPostExcerpt[0]
#ENDIF
#ENDIF
#IF(#Parent.WritePermissionFor NE #Shop.Child.Groups.Child.Merchants.ID)
#IF(NOT #IsClosed AND #IsReplyAllowed)
{WriteComment}
#ELSE
{Comments}: #COUNT(#GET(#VisibilityPrefix . "Replies"))
#ENDIF
#ENDIF
#IF(#COUNT(#Tags) OR #INPUT.IsEditorMode)
{MoreAbout}:
#BLOCK("InlineEditor", "tags", #Object, "TagNamesString", "Tag=span")
#JOIN(", ", #Tags)#Tag#ENDJOIN
#ENDBLOCK
#ENDIF
#MENU("Content-AdditionalButtons")#INCLUDE(#Template)#ENDMENU
#IF(#COUNT(#GET(#VisibilityPrefix . "Replies")) > 0)
#IF(#Spam == 0 AND #FUNCTION("ISACTIONALLOWED", "ReportSpam") AND #IsReplyAllowed)
#ELSIF (#Spam == 1 AND #DEFINED(#Session.User) AND #Session.User.IsMerchant)
{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]
#ENDLOOP
#ENDLOCAL
#ENDIF
#IF(NOT #IsClosed)
#IF(NOT #DEFINED(#Session.User) OR #Session.User.IsAnonymous)
#IF(NOT(#Parent.WritePermissionFor EQ #Shop.Child.Groups.Child.Merchants.ID))
{LoginRequiredNote}
#ENDIF
#ELSE
{CommentsNotAllowedForGroup}
#ENDIF
#ENDIF
#IF(NOT #IsReplyAllowed AND (NOT #DEFINED(#Session.User) OR #Session.User.IsAnonymous) AND (#Parent.WritePermissionFor NE #Shop.Child.Groups.Child.Merchants.ID))
#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
#ENDIF