{extends 'layout_view.tpl'} {block name="title"} {title}{$title|escape}{/title} {/block} {block name="content"} {if $threadId}
{if $prefs.feature_comments_moderation eq 'y'}

{tr}Your message has been queued for approval and will be posted after a moderator approves it.{/tr}

{else}

{tr}Your comment was posted.{/tr}

{/if}

{tr}Go back to:{/tr} {object_link type=$type objectId=$objectId}

{else}
{if ! $user or $prefs.feature_comments_post_as_anonymous eq 'y'}
{if $user} {remarksbox type=warning title="Anonymous posting"} {tr}You are currently registered on this site. This section is optional. By filling it, you will not link this post to your account and preserve your anonymity.{/tr} {/remarksbox} {/if}
{/if}
{if $prefs.comments_notitle neq 'y'}
{/if} {capture name=rows}{if $type eq 'forum'}{$prefs.default_rows_textarea_forum}{else}{$prefs.default_rows_textarea_comment}{/if}{/capture} {textarea codemirror='true' syntax='tiki' name="data" comments="y" _wysiwyg="n" rows=$smarty.capture.rows class="form-control wikiedit" placeholder="{tr}Post new comment{/tr}..." _preview=$prefs.ajax_edit_previews}{$data|escape}{/textarea} {if $user and $prefs.feature_user_watches eq 'y'}
{/if}
{/if} {if $prefs.feature_syntax_highlighter eq 'y'} {jq} //Synchronize textarea and codemirror before comment is posted $(".comment-form>form, .add-comment-zone>form").submit(function(event){ var $textarea = $(event.target).find("textarea.wikiedit"); //retrieve the text area from the form that is submitted if (typeof syntaxHighlighter.sync === 'function') { syntaxHighlighter.sync($textarea); } }); {/jq} {/if} {/block}