%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%]
<%IF $ERROR_CAPTCHA THEN%>
$ERROR_CAPTCHA
<%ENDIF%>
<%ENDIF%>
<%FETCH Newscomment
IF $Numrows THEN%>
<%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%>
[%WRITE_A_COMMENT Skriv en kommentar%]