#comment-view-all

Displays a list of comments as part of the single entry view. Approved comments are visible to all. Unapproved comments are only shown to admins, and include an 'approve' link. {=$FullName} refers to the comment page.

Parameters: commentid
(:if false:)[[#comment-view-all]](:if:)
(:template first:)
(:div9990 class="blogit-commentblock":)
!! (:if [ bi_auth comment-edit,comment-approve && !equal '{$Action}' 'print' ] :)%apply=block class=blogit-admin%(:if:)$[Comments]
(:template each:)
(:if [ bi_isnull {$$commentid} || [ !bi_isnull {$$commentid} && equal '{=$Name}' '{$$commentid}' ] ] :)\
# %apply=list class="blogit-comment-list"% %apply=item id="(:blogit-skin commentid:){=$FullName}(:blogit-skinend:)" class="comment (:if9991 bi_auth comment-edit,comment-approve:)blogit-admin(:if9991end:)"% %date%(:blogit-skin date fmt='short':){=$:commentdate}(:blogit-skinend:)%%\
%comment-author%(:blogit-skin commentauthor website='{=$:website}' author='{=$:commentauthor}':)(:blogit-skinend:) $[said...]%%\
(:includesection "#admin-links commentstatus='{=$:commentapproved}' commentpage='{=$FullName}'  base='{(bi_ifnull "{$$base}" "{*$FullName}")}'":)\
  %commenttext%(:blogit-skin commenttext page='{=$FullName}':){=$:commenttext}(:blogit-skinend:)%%
(:if:)
(:template last:)
(:div9990end:)
[[#comment-view-allend]]

#comments-pagelist

Displays comments on the blog entry single-page view.

Parameters: pagename, group, entrycomments, divid, commentid (to display a single comment, on ajax edit), base if displaying a single comment

If providing a commentid (the $Name of the comment page, excluding the $Group), then pagename and group parameters are not needed.

(:if false:)[[#comments-pagelist]](:if:)\
(:if9990 [ !bi_isnull {$$commentid} || ( !equal "{$$entrycomments}" "none" && !equal "{$bi_CommentsEnabled}" "none" ) ] :)
(:if9991 bi_isnull {$$commentid}:)
(:if9992 !bi_isnull {$$divid}:)(:div9970 id="{$$divid}":)(:if9992:)
(:div9971 id="blogit-comment-list":)\
(:if9991:)
(:pagelist list="blogit-comments" wrap=none fmt=#comment-view-all\
  order=ctime\
  name=(:if9981 bi_isnull {$$commentid}:){$$group}-{$$pagename}-* (:else9981:){$$commentid}(:if9981:) \
  $:entrytype=comment\
  {(bi_param base "{$$base}")}\
  if="[ equal '{=$:commentapproved}' 'true' || !bi_isnull {$$commentid} || bi_auth comment-edit,comment-approve {$bi_Pages_AUTH} ]" \
:)
(:if9991 bi_isnull {$$commentid}:)
(:div9971end:)
(:include-ssc-comment "{*$:ssc-post}" "{*$:ssc-comment}" :)
(:if [ equal "{$$entrycomments}" "open" && equal "{$bi_CommentsEnabled}" "open" ] :)\
(:pmform blogit-comments:)(:if:)
(:if9992 !bi_isnull {$$divid}:)(:div9970end:)(:if9992:)\
(:if9991:)
(:if9990:)
[[#comments-pagelistend]]