{* * $Revision: 15342 $ * If you want to customize this file, do not edit it directly since future upgrades * may overwrite it. Instead, copy it into a new directory called "local" and edit that * version. Gallery will look for that file first and use it if it exists. *}

{g->text text="Add Comment"}

{if isset($form.action.preview)}

{g->text text="Comment Preview"}

{$form.subject|markup}

{$form.comment|markup}

{/if}
{g->hiddenFormVars}
{if $user.isGuest}

{g->text text="Name"}

{else}

{g->text text="Posted by"}

{g->text text="%s (%s)" arg1=$user.fullName arg2=$AddComment.host} {/if}

{g->text text="Subject"}

{include file="gallery:modules/core/templates/MarkupBar.tpl" viewL10domain="modules_core" element="subject" firstMarkupBar=true} {if empty($inBlock)} {/if}

{g->text text="Comment"} {g->text text="(required)"}

{include file="gallery:modules/core/templates/MarkupBar.tpl" viewL10domain="modules_core" element="comment"} {if isset($form.error.comment.missing)}
{g->text text="You must enter a comment!"}
{/if}
{* Include validation plugins *} {foreach from=$AddComment.plugins item=plugin} {include file="gallery:`$plugin.file`" l10Domain=$plugin.l10Domain} {/foreach}
{if empty($inBlock)} {/if}