#IF(#ISACTIONALLOWED("RSS", #Object, #System.Child.Groups.Child.Everyone.Object))

#ENDIF
#INCLUDE("INC-BlogPostPublishInfo")
#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 AND NOT #TooManyReplies)
{WriteComment}
#ELSE
{Comments}: #NumReplies
#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(#NumReplies > 0)
#LOOP(#FUNCTION("SORT", #GET(#VisibilityPrefix . "Replies"), "CreationDate", 0))
#IF(#TooManyReplies)
{TooManyReplies}
#ELSIF(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))
#ENDIF
#IF(NOT #IsClosed AND #IsReplyAllowed AND NOT #TooManyReplies)
#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