What is wrong with this template snippet?

tyteen4a03

Well-known member
EDIT: Silly me.. I was not closing the tag properly.

Stay tuned for more late-night goofness. :D

=======

Diving back into XF addons now, but template system keeps saying Template Syntax Error on line 25.. not sure why.

Code:
<xen:title>{xen:phrase 3ps_cmfu_list_presets}</xen:title>

<xen:topctrl>
    <a href="{xen:adminlink '3ps-cmfu/presets/add'}" class="button">+ {xen:phrase 3ps_cmfu_add_new_preset}</a>
</xen:topctrl>

<xen:require css="filter_list.css" />
<xen:require js="js/xenforo/filter_list.js" />

<xen:form action="{xen:adminlink '3ps-cmfu/presets'}" class="section">
    <xen:if is="{$presets}">
        <h2 class="subHeading">
            <xen:include template="filter_list_controls" />
            {xen:phrase 3ps_cmfu_presets}
        </h2>

        <ol class="FilterList">
            <xen:foreach loop="$presets" key="$presetID" value="$preset">
                <xen:listitem id="{$preset.preset_id}"
                    label="{$preset.title}"
                    snippet=""
                    href="{xen:adminlink '3ps-cmfu/presets', $preset}"
                    delete="{xen:adminlink '3ps-cmfu/presets/delete', $preset}"
                    deletehint="{xen:phrase 3ps_cmfu_delete_preset}"
                </xen:listitem><!-- L25 -->
            </xen:foreach>
        </ol>

        <p class="sectionFooter">{xen:phrase showing_x_of_y_items, 'count=<span class="FilterListCount">{xen:count $presets}</span>', 'total={xen:count $presets}'}</p>

    <xen:else />
        <div class="noResults">{xen:phrase 3ps_cmfu_no_presets_defined}</div>
    </xen:if>
</xen:form>
 
Back
Top Bottom