<ul class="content">
    <?php if ($this->evaluationList->getCurrentItemCount() > 0) { ?>
        <?php foreach ($this->evaluationList as $evaluationValue) { ?>
            <li>
                <div class="article">
                    <h3 class="art_star clearfix">
                        <div class="leftPart">
                            <span class="icon-stat icon-stat-<?php echo $evaluationValue[0]->getEvaluationStar(); ?>"></span>
                        </div>
                        <div class="rightPart"> <?php echo date("Y-m-d H:i:s", $evaluationValue[0]->getEvaluationTime()); ?> </div>
                    </h3>
                    <div class="art_content">
                        <?php echo nl2br($this->escapeHtml($evaluationValue[0]->getEvaluationBody())); ?>
                    </div>
                    <div class="art_info clearfix">&nbsp;</div>
                </div>
                <div class="head_photo">
                    <img alt="<?php echo $this->shopHelper()->userNameHide($evaluationValue[0]->getUserName()); ?>" src="<?php echo $this->shopHelper()->userAvatarImagePath($evaluationValue['userAvatar']); ?>">
                    <h3 class="name"><?php echo $this->shopHelper()->userNameHide($evaluationValue[0]->getUserName()); ?></h3>
                </div>
                <?php if(!empty($evaluationValue[0]->getReplyBody())) { ?>
                    <div class="article">
                        <div style="text-align: right;font-size: 14px;"><?php echo $this->translate('店主回复'); ?> | <?php echo date("Y-m-d H:i:s", $evaluationValue[0]->getReplyTime()); ?> </div>
                        <div class="art_content">
                            <?php echo $this->escapeHtml($evaluationValue[0]->getReplyBody()); ?>
                        </div>
                    </div>
                <?php } ?>
            </li>
        <?php } ?>
        <li>
            <?php echo $this->paginationControl($this->evaluationList, 'Sliding', 'shop/ajaxPage', ['route' => 'shop-goods', 'params' => ['action' => 'goodsEvaluationList', 'id' => $this->goodsInfo->getGoodsId()], 'showDivId' => 'listGoodsComment']); ?>
        </li>
    <?php } else { ?>
        <li><strong><?php echo $this->translate('该商品暂无评价!'); ?></strong></li>
    <?php } ?>
</ul>