<div class="header_menu">
    <div class="container">
        <div class="header-nav clearfix">
            <?php echo $this->partial('shop/layout/headerMenu'); ?>
        </div>
    </div>
</div>
</div>

<div class="container breadcrumbs">
    <?php
    $classMenu = $this->shopHelper()->helperPartial('cmsHelper', 1, $this->cmsClassInfo->getCmsClassId());
    echo $this->partial($classMenu['partialFile'], $classMenu['partialArg']);
    ?>
    <span><?php echo $this->escapeHtml($this->cmsClassInfo->getCmsClassName()); ?></span>
</div>

<div class="container clearfix">
    <div class="row">

        <div class="row exchange">
            <div class="col col-4 exchange-side">
                <div class="uc-nav-box ">
                    <div class="box-hd">
                        <h3 class="title"><?php echo $this->translate('同级分类'); ?></h3>
                    </div>
                    <div class="box-bd">
                        <ul class="uc-nav-list saled">
                            <?php if($this->cmsClass) foreach ($this->cmsClass as $tClassVal) { ?>
                                <li <?php if($tClassVal->getCmsClassId() == $this->cmsClassInfo->getCmsClassId()) echo 'class="current"'; ?>><a href="<?php echo $this->url('shop-cms', ['id' => $tClassVal->getCmsClassId()]); ?>"><?php echo $this->escapeHtml($tClassVal->getCmsClassName()); ?></a></li>
                            <?php } ?>
                        </ul>
                    </div>
                </div>
                <?php  if ($this->cmsSubClass) { ?>
                    <div class="uc-nav-box">
                        <div class="box-hd">
                            <h3 class="title"><?php echo $this->translate('下级分类'); ?></h3>
                        </div>
                        <div class="box-bd">
                            <ul class="uc-nav-list feature">
                                <?php foreach($this->cmsSubClass as $cClassVal) { ?>
                                    <li <?php if($cClassVal->getCmsClassId() == $this->cmsClassInfo->getCmsClassId()) echo 'class="current"'; ?>><a href="<?php echo $this->url('shop-cms', ['id' => $cClassVal->getCmsClassId()]); ?>"><?php echo $this->escapeHtml($cClassVal->getCmsClassName()); ?></a></li>
                                <?php } ?>
                            </ul>
                        </div>
                    </div>
                <?php } ?>
            </div>
            <!-- .span4 END -->
            <div class="col col-16 exchange-right">

                <div class="xm-box exchange service-right marginLeft20 phone" style="display: block;">
                    <div class="box-hd">
                        <h2 class="title"><?php echo $this->escapeHtml($this->cmsClassInfo->getCmsClassName()); ?></h2>
                    </div>
                    <div>
                        <table class="table">
                            <tbody>
                            <?php if ($this->cmsList->getCurrentItemCount() > 0) {
                                foreach($this->cmsList as $cmsValue) {
                                    ?>
                                    <tr>
                                        <td style="width: 80%;">
                                            <a href="<?php echo $this->url('shop-cms',['action' => 'content','id' => $cmsValue[0]->getCmsId()]); ?>"><?php echo $this->escapeHtml($cmsValue[0]->getCmsTitle()); ?></a>
                                        </td>
                                        <td>
                                            <?php echo $this->shopDateFormat()->shopCmsAddTime($cmsValue[0]->getCmsAddTime()); ?>
                                        </td>
                                    </tr>
                                <?php } ?>
                                <tr>
                                    <td colspan="2">
                                        <?php echo $this->paginationControl($this->cmsList, 'Sliding', 'shop/page', ['route' => 'shop-cms', 'params' => ['id' => $this->cmsClassInfo->getCmsClassId()]]); ?>
                                    </td>
                                </tr>
                            <?php } else { ?>
                                <tr>
                                    <td colspan="2">
                                        <?php echo $this->translate('暂无文章!'); ?>
                                    </td>
                                </tr>
                            <?php } ?>
                            </tbody>
                        </table>
                    </div>
                </div>

            </div>

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