{T "content","head",TPLID}
<nav class="navbar1 navbar-default">
    <!-- Note that the .navbar-collapse and .collapse classes have been removed from the #navbar -->
    <div id="navbar1" class="container">
        <ul class="nav navbar-nav" style="padding-left: 86px">
            <li class="active"><a href="{$category['url']}">{$category['name']}首页</a></li>
            {loop $sub_categorys $cats}
            <li><a href="{$cats['url']}">{$cats['name']}</a></li>
            {/loop}
        </ul>

    </div><!--/.nav-collapse -->
</nav>
<div class="photo-one-screen">
    <div class="container">
        <div class="row">
            <div class="col-xs-12">
                <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
                    <!-- Indicators -->
                    <ol class="carousel-indicators">
                        <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
                        <li data-target="#carousel-example-generic" data-slide-to="1"></li>
                        <li data-target="#carousel-example-generic" data-slide-to="2"></li>
                    </ol>

                    <!-- Wrapper for slides -->
                    <div class="carousel-inner" role="listbox">
                        {block=34}
                    </div>

                    <!-- Controls -->
                    <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
                        <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
                        <span class="sr-only">Previous</span>
                    </a>
                    <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
                        <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
                        <span class="sr-only">Next</span>
                    </a>
                </div>
            </div>


        </div>
    </div>
</div>
{php $photo_num=17;}
<!-- 图片 -->
{loop $sub_categorys $photocid $cats}
<div class="container">
    <div class="index-pic-box ">
        <div class="center-lanmu-title changlangbg">
            <h2 class="text-center "><a href="{$cats['URL']}" >{$cats['name']}</a></h2>
        </div>

        <div class="row" id="cat_{$photocid}">
            {wz:content action="listing" pagesize="7" order="sort DESC,id DESC" cid="$photocid" urlrule="$urlrule"}
            {loop $rs $r}
            {if $n==1}
            <div class="col-xs-3">
                <div class="narrowArt">
                    <a href="{$r['url']}" title="222">
                        <img  src="{imagecut($r['thumb'],273,380,4)}" alt="{$r['title']}" height="380">
                        <h2>{$r['title']}</h2>
                    </a>
                </div>
            </div>
            {else}
            <div class="col-xs-3">
                <div class="narrowArt pic_height">
                    <a href="{$r['url']}" alt="{$r['title']}">
                        <img  src="{imagecut($r['thumb'],273,182,4)}" alt="{$r['title']}" width="275">
                        <h2>{$r['title']}</h2>
                    </a>
                </div>
            </div>
            {/if}
            {/loop}
            <!-----------长型灰框------------------------>
            <div class="ad-box">
                <div class="container">
                    <div class="row">
                        <div class="col-xs-12">
                            <div style="height: 120px; background: #ddd"><script  src="{WEBURL}promote/{$photo_num}.js"></script></div>
                        </div>
                    </div>
                </div>
            </div>

            {/wz}
        </div>
    </div>
</div>
{if $photo_num<19}
{$photo_num++}
{/if}
{/loop}

{T "content","foot",TPLID}