<%~if ie_version >= 5.5 or mozilla_version >= 1.4 or webkit_version >= 312.1%> <%~if advanced_editor%> <%~set ADVANCEDEDITOR = 1%> <%~elsif current.user_advanced_editor and not basic_editor%> <%~set ADVANCEDEDITOR = 1%> <%~else%> <%~set ADVANCEDEDITOR = 0%> <%~endif%> <%~else%> <%~set ADVANCEDEDITOR = 0%> <%~endif%> <%~if ADVANCEDEDITOR and not forum_style % 2%> <%~set ADVANCEDEDITOR = 0%> <%~endif%>
<%~if this_do eq post_edit%>
<%~endif%> <%~if current.user_id and config.post_user_custom_username and this_do ne post_edit%>
<%elsif not current.user_id%> <%~if anonymous.length > 1 or config.post_guest_custom_username%>
<%~if anonymous.length > 1%> <%~else%> <%~endif%> <%~if config.post_guest_custom_username%> <%~endif%>
<%~endif%><%-- endif anonymous.length > 1 ... --%>
<%endif%>
<%if ADVANCEDEDITOR%><%-- The advanced editor only works for markup posts --%>

<%GForum::language('FORUM_STYLE_MARKUP')%>

<%elsif forum_style%><%-- forum_style is set, which means the user gets a choice --%> <%~if forum_style % 2%> Get Markup Help <%~if not forum_style_selected % 2%> <%~endif%> <%~endif%> <%~else%><%-- plain text only --%> <%GForum::language('FORUM_STYLE_PLAIN')%> <%~endif%>
<%if ADVANCEDEDITOR%> <%else%> <%endif%>
<%if not ADVANCEDEDITOR%> <%include include_markup_tags.html%> <%endif%>
<%if ADVANCEDEDITOR%><%-- The advanced editor only works for markup posts --%> Switch to Basic Editor | <%~elsif forum_style % 2%> Switch to Advanced Editor | <%endif%> Check Spelling | Preview Post
<%~if current.user_status == 3%>
<%~loop orig.tags%>
<%tag_name%>
<%~endloop%>
<%~endif%> <%if can_attach or attachments.length%>
<%include include_attachments.html%>
<%endif%>
<%if current.user_id%>
checked="checked"<%endif%> class="checkbox" tabindex="8" />
checked="checked"<%endif%> class="checkbox" tabindex="8" />
<%~if current.user_forum_permission >= $FORUM_PERM_MODERATOR%> <%~if root.post_sticky%>
<%~else%>
checked="checked"<%endif%> class="checkbox" tabindex="8" />
<%~endif%> <%~if root.post_locked%>
<%~else%>
checked="checked"<%endif%> class="checkbox" tabindex="8" />
<%~endif%> <%~endif%>
<%endif%>
<%include markup_help.html%>