#commentform
[[#commentform]]
----
>>comment<<
(:input form "{$PageUrl}#commentsend" :)
(:input hidden name="n" value="{$FullName}":)
(:input hidden name="action" value="pmform":)
(:input hidden name="target" value="comments":)
(:if2 equal {$:CommentCount} "":)
(:input hidden name="commentCount" value="1":)
(:else2:)
(:input hidden name="commentCount" value="{(inc "{$:CommentCount}")}":)
(:if2end:)
(:input default request=1:)
(:input default author "{$Author}" :)
>><<
(:messages:)
Ваше имя: (:input text author:) \\
Ваш комментарий: \\
(:input textarea text rows=10 cols=40:) \\
%comment% (:input text name=honeypot value='':) %% \\
(:input submit name=post value="Отправить" :)
(:input end:)
[[#commentformend]]
#talkpost
[[#talkpost]]
(:template defaults where=bottom:)
(:template require author errmsg="Представьтесь, пожалуйста.":)
(:template require text errmsg="Пожалуйста, напишите что-нибудь.":)
(:template requires honeypot match='' errmsg="Ошибка: батюшка, да вы робот!":)
(:if2 equal "{$$commentCount}" "1":)
!!Комментарии ({$:CommentCount})
(:if2end:)
(:div1 class="panel panel-default":)
(:div2 class="panel-heading":)
!!!''{$$author}'' %apply=block class="panel-title"% %small%([[#comment{(ftime fmt="%Y%m%d%H%M")}|{$$CurrentTime}]])%%
(:div2 class="panel-body":)
(:CommentCount:{$$commentCount}:)
{$$text}
(:div2end:)
(:div1end:)
[[#talkpostend]]