<%QUERY NewsfeedNewsitem(item_id=$item_id,ordernbr=1) DO DISPLAY $nfo_commentssystem=$nfo_commentssystem $nfo_commentssystem_login=$nfo_commentssystem_login $nfo_comment_act=$nfo_comment_act NEXTROW ENDQUERY%> <%IF $Shop.opt_newsfeed_comment AND $nfo_commentssystem=='standard' THEN%> <%IF $NI_allow_comments AND $Shop.allow_comments AND ($Customer.login OR NOT $comments_require_login) THEN%>

[%WRITE_A_COMMENT Skriv en kommentar%]

$ERR_body
<%IF $Data.signature THEN $s = $Data.signature ELSIF $Customer.login THEN $s = $Customer.surname+" "+$Customer.lastname ENDIF%> $ERR_signature

<%IF NOT $Customer.login THEN%> <%INCLUDE 'captcha-load.htm'%> <%IF $Data.captchaUsed == "recaptcha_v3" THEN%> <%ELSIF $Data.captchaUsed == "recaptcha" THEN%> <%ELSIF $Data.captchaUsed == "imagecaptcha" THEN%> <%ELSIF $Data.captchaUsed == "standard" THEN%> <%ELSIF $Data.captchaUsed == 'altcha' THEN%> <%ENDIF%> <%ELSE%> <%ENDIF%>
<%IF $ERROR_CAPTCHA THEN%>
$ERROR_CAPTCHA
<%ENDIF%> <%ENDIF%> <%FETCH Newscomment IF $Numrows THEN%> <%ENDIF%>
<%DISPLAY%>
<%PRINT FORMAT("P", FORMAT("nohtml", $body))%>
$time $[nohtml]signature
<%NEXTROW%>
<%ENDFETCH%> <%ENDIF IF $Shop.opt_newsfeed_comment AND $nfo_commentssystem=='facebook' AND $nfo_commentssystem_login AND $nfo_comment_act AND $NI_allow_comments AND $Shop.allow_comments THEN%>
<%ENDIF IF $Shop.opt_newsfeed_comment AND $nfo_commentssystem=='disqus' AND $nfo_commentssystem_login AND $nfo_comment_act AND $NI_allow_comments AND $Shop.allow_comments AND $Data.item_id THEN%>
<%IF $Request.SSL THEN%> blog comments powered by Disqus <%ELSE%> blog comments powered by Disqus <%ENDIF ENDIF%>