#control-panel

(:if false:)[[#control-panel]](:if:)
(:blogid:blog1:)
* %apply=item class="blogit-unapproved-comment-count"%[[{$bi_Pages_ADMIN}?action=bi_admin&s=unapproved-comments&blogid={(bi_ifnull "{$$blogid}" {$:blogid})} | $[Unapproved Comments]]]
(:blogit-skin newentry pre_text='* ':)$[New Entry](:blogit-skinend:)
* [[{$bi_Pages_ADMIN}?action=bi_admin&s=blog-grid&blogid={(bi_ifnull "{$$blogid}" {$:blogid})}&status=draft | $[Drafts]]]
* [[{$bi_Pages_ADMIN}?action=bi_admin&s=blog-grid&blogid={(bi_ifnull "{$$blogid}" {$:blogid})}&status=publish | $[Published]]]
* [[{$bi_Pages_ADMIN}?action=bi_admin&s=blog-grid&blogid={(bi_ifnull "{$$blogid}" {$:blogid})}&status=sticky | $[Stickies]]]
(:if !bi_isnull {$bi_StatAction}:)* [[{*$FullName}?action={$bi_StatAction} | $[Statistics]]](:if:)
* [[{*$FullName}?action=logout | $[logout](:if !bi_isnull {$AuthId}:) [-''({$AuthId})''-](:if:)]]
[[#control-panelend]]

#multi-entry-view

(:if false:)[[#multi-entry-view]](:if:)
(:template each:)
(:div9990 class="post blogit-post-summary":)
(:div9991 class="date":)(:blogit-skin date fmt="short":){=$:entrydate}(:blogit-skinend:)
(:div9991end:)
(:div9991 class="post-inner":)
!! %block page-head%[[{=$FullName}|{=$Title}]]
(:div9992 class="entry":)
(:blogit-skin intro page={=$FullName}:)
{=$:entrybody}(:blogit-skinend:)
(:div9993 class='menu meta':)
(:blogit-skin author pre_text='* $[by] ':){=$:entryauthor}(:blogit-skinend:)
(:blogit-skin tags pre_text='* ':){=$:entrytags}(:blogit-skinend:)
* %apply=item class=blogit-comment-count%(:blogit-skin commentcount status='{=$:entrycomments}' group='{=$Group}' name='{=$Name}':) $[comment(s)](:blogit-skinend:)
(:blogit-skin edit pre_text='* %editlink accesskey="$[ak_edit]"%' page='{=$FullName}':)$[edit](:blogit-skinend:)
(:div9993end:)
(:div9992end:)
(:div9991end:)
(:div9990end:)

(:template last:)
(:includesection "#page-navigation itemsonpage={$$PageCount} pagenav={$$pagenav} perpage={$$perpage}":)
[[#multi-entry-viewend]]

#single-entry-view

(:if false:)[[#single-entry-view]](:if:)
(:div9990 class="post blogit-post":)
(:div9991 class="date":)(:blogit-skin date fmt="short":){*$:entrydate}(:blogit-skinend:)
(:div9991end:)
(:div9991 class="post-inner":)
! %block page-head%[[{*$FullName}|{*$Title}]]
(:div9992 class="entry":)
{*$:entrybody}
(:div9993 class='menu meta':)
(:blogit-skin author pre_text='* $[by] ':){*$:entryauthor}(:blogit-skinend:)
(:blogit-skin tags pre_text='* ':){*$:entrytags}(:blogit-skinend:)
* %apply=item class=blogit-comment-count%(:blogit-skin commentcount status='{*$:entrycomments}' group='{*$Group}' name='{*$Name}':) $[comment(s)](:blogit-skinend:)
(:blogit-skin edit pre_text='* %editlink accesskey="$[ak_edit]"%' page='{*$FullName}':)$[edit](:blogit-skinend:)
(:div9993end:)
(:div9992end:)
(:div9991end:)
(:div9990end:)
(:includesection "#comments-pagelist pagename={*$Name} group={*$Group} entrycomments={*$:entrycomments} divid=commentblock":)
[[#single-entry-viewend]]

#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:)
!!! %block ssc-comments-heading% Comments from SlateStarCodex:

(: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]]

#comment-form

(:if false:)[[#comment-form]](:if:)
!! $[Leave a comment]
$[All comments are reviewed before being displayed.]
(:messages:)\\
'''$[Name]''' $[(required):]\\
(:if [ authid and ! equal "" "{Profiles/Profiles$:{$AuthId}}" ] :)
(:input text $:commentauthor id="comment-author" value="{Profiles/Profiles$:{$AuthId}}" tabindex=1 class="blogit-required":)\\
(:else:)
(:input text $:commentauthor id="comment-author" tabindex=1 class="blogit-required":)\\
(:ifend:)
'''$[E-mail]''' $[(required, will not be published):]\\
(:input text $:email id="comment-email" tabindex=1 class="blogit-required":)\\
$[Website:]\\
(:input text $:website id="comment-website" tabindex=1:)\\
(:input textarea $:commenttext rows=10 cols=50 id="comment-text" tabindex=1:)
(:if {$bi_MarkdownInComments}:)You can use [[https://daringfireball.net/projects/markdown/syntax | Markdown]] in comments!(:ifend:)
(:includesection "#comment-form-buttons":)
[[#comment-formend]]

#tag-list-pagelist

Parameters: count

Used to generate the list of categories usually seen in the sidebar.

(:if false:)[[#tag-list-pagelist]](:if:)
(:pagelist wrap=none list=normal fmt=#titlespaced group={$CategoryGroup} {(bi_param count "{$$count}")} :) 
[[#tag-list-pagelistend]]