1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Template Slot's Consistency

Discussion in 'XenForo Suggestions' started by Gio~Logist, Sep 13, 2016.

  1. Gio~Logist

    Gio~Logist Member

    Some of the template slots aren't ideally consistent. Not a huge deal, just noticing. Example:

    thread_create
    HTML:
        <xen:if is="{$attachmentParams}">
            <dl class="ctrlUnit AttachedFilesUnit">
                <dt>{xen:phrase attached_files}:</dt>
                <dd><xen:include template="attachment_editor">
                    <xen:set var="$attachments" value="{$attachmentParams.attachments}" />
                </xen:include></dd>
            </dl>
          
            <!-- slot: after_attachment -->
        </xen:if>
    post_edit
    HTML:
        <xen:if is="{$attachmentParams}">
            <dl class="ctrlUnit AttachedFilesUnit">
                <dt>{xen:phrase attached_files}:</dt>
                <dd><xen:include template="attachment_editor" /></dd>
            </dl>
        </xen:if>
    Ideally, post_edit should be
    HTML:
        <xen:if is="{$attachmentParams}">
            <dl class="ctrlUnit AttachedFilesUnit">
                <dt>{xen:phrase attached_files}:</dt>
                <dd><xen:include template="attachment_editor" /></dd>
            </dl>
    
            <!-- slot: after_attachment -->
        </xen:if>
     

Share This Page