{template "header.html", "/"}

<div class="page-container">
    <div class="page-content-wrapper">
        {template "header.html"}
        <div class="page-content">
            <div class="container">
                <div class="page-content-inner">

                    <div class="row">
                        <div class="col-md-12">
                            <div class="portlet light" style="height:60px;color:red;text-align: center;">
                                <h5>这里是独立模块的首页</h5>
                            </div>
                        </div>
                    </div>

                    <!--循环输出顶级栏目下面的子栏目及其内容，运用到了双list循环标签因此需要定义返回值return=c（都懂得）-->
                    {list action=category pid=0  return=c}
                    <div class="row">
                        <div class="col-lg-12">
                            <div class="portlet light">
                                <div class="portlet-title">
                                    <div class="caption">
                                        <span class="caption-subject bold uppercase"><a class=" font-green" href="{$c.url}">{$c.name}</a></span>
                                    </div>
                                    <ul class="nav nav-tabs">
                                        <!-- 调用其子栏目 -->
                                        {list action=category pid=$c.id}
                                        <li><a href="{$t.url}">{$t.name}</a></li>
                                        {/list}
                                    </ul>
                                </div>
                                <div class="portlet-body">
                                    <div class="row">
                                        <!-- 最新数据 -->
                                        {list action=module catid=$c.id order=updatetime num=8}
                                        <div class="col-sm-3">
                                            <div class="tile-container">
                                                <div class="tile-thumbnail">
                                                    <a href="javascript:;">
                                                        <a href="{$t.url}" ><img src="{dr_thumb($t.thumb, 250, 200)}" width="250" height="200"></a>
                                                    </a>
                                                </div>
                                                <div class="tile-title">
                                                    <h5><a href="{$t.url}" class="title">{dr_strcut($t.title, 28)}</a></h5>
                                                </div>
                                            </div>
                                        </div>
                                        {/list}
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    {/list}{$error}


                </div>
            </div>
        </div>
    </div>
</div>



{template "footer.html", "/"}