{require-css "post"} {require-js "posteditor"} {require-js "unicodetable"} {require-txt "posteditor"} {=beginjs} var ALTCHARS_NOTE = "{tr "pe.alt chars~"}"; {=endjs} {if eq $posteditorMode "editpost"} {set $posteditorSubmitTitle "pe.save post"} {set $posteditorSubmitKey "pe.save post.key"} {set $posteditorSubmitKeyName "pe.save post.tip"} {elseif eq $posteditorMode "editannounce"} {set $posteditorSubmitTitle "pe.save announce"} {set $posteditorSubmitKey "pe.save announce.key"} {set $posteditorSubmitKeyName "pe.save announce.tip"} {elseif $posteditorThreadId} {set $posteditorSubmitTitle "pe.reply"} {set $posteditorSubmitKey "pe.reply.key"} {set $posteditorSubmitKeyName "pe.reply.tip"} {elseif eq $posteditorMode "newannounce"} {set $posteditorSubmitTitle "pe.new announce"} {set $posteditorSubmitKey "pe.new announce.key"} {set $posteditorSubmitKeyName "pe.new announce.tip"} {else} {set $posteditorSubmitTitle "pe.new topic"} {set $posteditorSubmitKey "pe.new topic.key"} {set $posteditorSubmitKeyName "pe.new topic.tip"} {endif} {$path} {if $posteditorFormLink}
{---------- PREVIEW ----------} {if $posteditorPreviewPost}
{foreach $post in $posteditorPreviewPost}{-- should be only one, but this makes variable mapping easier} {include "post.html"} {endforeach}
{endif} {if $posteditorPreviewAnnounce} {foreach $announcement in $posteditorPreviewAnnounce}{-- same as above} {include "announcement.html"} {endforeach} {set $ShadowBottomOffset 4} {include "_shadow_bottom.html"} {endif} {if $posteditorPreviewSubmitButton}
{endif} {---------- EDITOR FORM ----------}
{if eq $posteditorMode "editpost"} {-- the 1st field will get lost on IE with unicode postings... TODO: test} {if $posteditorFirstPost} {endif} {endif} {if eq $posteditorMode "newpost"} {if $posteditorFirstPost} {endif} {endif} {if eq $posteditorMode "editannounce"} {endif} {if eq $posteditorMode "newannounce"} {endif} {if eq $posteditorMode "editpost"}

{tr "pe.edit post"}

{endif} {if eq $posteditorMode "newpost"}

{tr "pe.compose post"}

{endif} {if eq $posteditorMode "editannounce"}

{tr "pe.edit announce"}

{endif} {if eq $posteditorMode "newannounce"}

{tr "pe.compose announce"}

{endif}
{if $posteditorUsernameInput} {endif} {if and $posteditorHavePost $posteditorFirstPost} {endif} {if $posteditorVericodeLink} {endif}
{tr "username"}: {$posteditorUsernameInput}
{tr "subject"}{if $posteditorSubjectOptional} {tr "pe.optional"}{endif}:
{tr "description"} {tr "pe.optional"}:
{tr "vericode"}: VeriCode {tr "vericode~"}
{-- editor_head} {if $posteditorShortenQuoteNote}
{tr "pe.shorten quote"}
{endif} {if $posteditorGuestPostingNote}
{tr "pe.guest posting"}
{endif} {if $posteditorWarnEditOtherUsersPost}
{tr "pe.warn edit other users post"}
{endif}
{if $posteditorSmilies}{endif} {tr "pe.formatting help"}
{-- editor_formatting} {if $posteditorSmilies}
{tr "pe.button.smilies"}: {foreach $smilie in $posteditorSmilies} {$smilie.image} {endforeach}
{endif}
{tr "special chars"}:
{-- editor_message}
{tr "pe.smaller"} {tr "pe.larger"} {if rc "post_show_textlength"}
{tr "pe.text length"}: ? {tr "characters"} ({tr "maximum"}: {$posteditorMaxLengthFmt})
{endif} {if $posteditorAllowPoll} {if $posteditorHavePoll} {else} {endif} {endif}
{-- editor_controls}
{-- editor_content}
{-- editor_container} {set $ShadowBottomOffset 12} {include "_shadow_bottom.html"}
{tr "pe.post options"}
{$posteditorOptions}
{-- editor_options} {if $posteditorEditOptions}
{$posteditorEditOptions}
{-- editor_options} {endif} {if or $posteditorAttachedFiles $posteditorMaxAttachSize}
{if $posteditorAttachedFiles} Attached files:
{foreach $file in $posteditorAttachedFiles} {$file.name} ({$file.size} bytes, {$file.downloads} downloads)
{endforeach} {endif} {if $posteditorMaxAttachSize} {tr "pe.attach file"}:   ({tr "maximum"}: {$posteditorMaxAttachSizeFmt})
{endif}
{-- editor_attach} {endif}{-- AttachedFiles or MaxAttachSize} {if $posteditorHavePoll}
{tr "poll"}:
{tr "pe.poll.question"}:
{if $posteditorThreadId} {tr "pe.poll.replies+sort"}
{else} {tr "pe.poll.replies"}
{endif} {foreach $option in $posteditorPollOptions} {if $posteditorThreadId} {if $option.textInput} {trnum "poll.n votes" $option.voteCount "n" $option.voteCount} {endif} {endif}
{endforeach} {tr "pe.poll.timeout"} ({tr "pe.poll.timeout~"})
{-- editor_poll} {endif}{-- $posteditorHavePoll}
{-- editor_content}
{-- editor_container} {set $ShadowBottomOffset 12} {include "_shadow_bottom.html"}
{-- all_editor_container}
{endif}{-- $posteditorFormLink} {-- last posts} {if $postlist} {tr "pe.last posts in thread"}:
{include "postlist.html"} {endif}