1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

美化 Separate Sticky and Normal Threads 置顶主题分离

Discussion in 'XenForo中文版' started by admin, 2012-03-09.

  1. admin

    admin 管理员 Staff Member

    Joined:
    2011-11-01
    Messages:
    3,671
    Likes Received:
    2,425
    置顶主题与正常主题分离

    修改模板thread_list
    Find:
    PHP:
    <xen:foreach loop="$stickyThreadsvalue="$thread">
                <
    xen:include template="thread_list_item" />
            </
    xen:foreach>
    ADD before:
    PHP:
    <xen:if is="{$stickyThreads}">
                <
    li class="sectionHeaders">importants posts</li>
                    </
    xen:if>
    And find:
    PHP:
    <xen:foreach loop="$stickyThreadsvalue="$thread">
                <
    xen:include template="thread_list_item" />
            </
    xen:foreach>
    Add below:
    PHP:
    <xen:if is="{$stickyThreads}">
                <
    li class="sectionHeaders">&nbsp;Normal Posts</li>
                    </
    xen:if>


     
  2. admin

    admin 管理员 Staff Member

    Joined:
    2011-11-01
    Messages:
    3,671
    Likes Received:
    2,425
Loading...