<?php $footerPartial = $this->shopHelper()->helperPartial('footerHelper');?>
<div class="site-footer">
    <?php echo $this->partial($footerPartial[1]['partialFile'], $footerPartial[1]['partialArg']); ?>
    <div class="container">
        <div class="footer-links clearfix">
            <dl class="col-links col-links-first">
                <dt><?php echo $this->translate('帮助中心'); ?></dt>
                <?php echo $this->partial($footerPartial[2]['partialFile'], $footerPartial[2]['partialArg']); ?>
            </dl>
            <dl class="col-links">
                <dt><?php echo $this->translate('服务支持'); ?></dt>
                <?php echo $this->partial($footerPartial[3]['partialFile'], $footerPartial[3]['partialArg']); ?>
            </dl>
            <dl class="col-links">
                <dt><?php echo $this->translate('支付方式'); ?></dt>
                <?php echo $this->partial($footerPartial[4]['partialFile'], $footerPartial[4]['partialArg']); ?>
            </dl>
            <dl class="col-links">
                <dt><?php echo $this->translate('关于我们'); ?></dt>
                <?php echo $this->partial($footerPartial[5]['partialFile'], $footerPartial[5]['partialArg']); ?>
            </dl>
            <dl class="col-links">
                <dt><?php echo $this->translate('客服中心'); ?></dt>
                <?php echo $this->partial($footerPartial[6]['partialFile'], $footerPartial[6]['partialArg']); ?>
            </dl>
            <div class="col-contact">
                <?php echo $this->partial($footerPartial[7]['partialFile'], $footerPartial[7]['partialArg']); ?>
            </div>
        </div>
        <div class="footer-info clearfix">
            <div style="position:relative;" class="info-text">
                <?php
                $shopFooterMenu = $this->shopHelper()->shopNavigationMenu(3);
                if($shopFooterMenu) {
                    echo '<p>';
                    $footerCount = count($shopFooterMenu)-1;
                    foreach($shopFooterMenu as $footerKey => $footerValue) { ?>
                        <a href="<?php echo $footerValue->getNavigationUrl(); ?>" <?php if($footerValue->getNewWindow() == 1) echo 'target="_blank"'; ?>><?php echo $this->escapeHtml($footerValue->getNavigationTitle()); ?></a><?php if($footerCount != $footerKey) echo '<span class="sep">|</span>';
                    }
                    echo '</p>';
                } ?>
                <?php $dbshopArray = $this->shopHelper()->getDbshopArray(); ?>
                <p>Copyright &copy; <b><?php echo $dbshopArray['copyright']??'<a href="https://www.loongdom.cn/about.html" target="_blank">DBShop商城系统</a>'; ?></b> <?php echo $this->translate('版权所有'); ?>
                    <?php if (isset($dbshopArray['companyUrl'])) { ?>
                        <br><a href="<?php echo $dbshopArray['companyUrl']; ?>" target="_blank"><?php echo $dbshopArray['company']; ?></a>
                    <?php } ?>
                    <?php if ($this->shopHelper()->shop('website_icp')) echo '<br /><a href="https://beian.miit.gov.cn/" target="_blank" style="color: #fff;">'.$this->shopHelper()->shop('website_icp').'</a>';
                    echo '<br />'.$this->shopHelper()->shop('statistics_code', 'statistics');
                    ?>
                </p>
                <p align="center">
                    <?php $footerImages = $this->shopHelper()->shopFooterImage(); ?>
                    <?php if (isset($footerImages['shop_footer_image_1']) && !empty($footerImages['shop_footer_image_1'])) { ?>
                        <a href="<?php echo (empty($footerImages['shop_footer_image_1_url']) ? 'javascript:;' : $this->escapeHtml($footerImages['shop_footer_image_1_url'])); ?>" target="_blank"><img src="<?php echo $this->shopHelper()->baseImagePath($footerImages['shop_footer_image_1']); ?>?v=<?php echo time(); ?>"></a>
                    <?php } ?>
                    <?php if (isset($footerImages['shop_footer_image_2']) && !empty($footerImages['shop_footer_image_2'])) { ?>
                        <a href="<?php echo (empty($footerImages['shop_footer_image_2_url']) ? 'javascript:;' : $this->escapeHtml($footerImages['shop_footer_image_2_url'])); ?>" target="_blank"><img src="<?php echo $this->shopHelper()->baseImagePath($footerImages['shop_footer_image_2']); ?>?v=<?php echo time(); ?>"></a>
                    <?php } ?>
                    <?php if (isset($footerImages['shop_footer_image_3']) && !empty($footerImages['shop_footer_image_3'])) { ?>
                        <a href="<?php echo (empty($footerImages['shop_footer_image_3_url']) ? 'javascript:;' : $this->escapeHtml($footerImages['shop_footer_image_3_url'])); ?>" target="_blank"><img src="<?php echo $this->shopHelper()->baseImagePath($footerImages['shop_footer_image_3']); ?>?v=<?php echo time(); ?>"></a>
                    <?php } ?>
                    <?php if (isset($footerImages['shop_footer_image_4']) && !empty($footerImages['shop_footer_image_4'])) { ?>
                        <a href="<?php echo (empty($footerImages['shop_footer_image_4_url']) ? 'javascript:;' : $this->escapeHtml($footerImages['shop_footer_image_4_url'])); ?>" target="_blank"><img src="<?php echo $this->shopHelper()->baseImagePath($footerImages['shop_footer_image_4']); ?>?v=<?php echo time(); ?>"></a>
                    <?php } ?>
                    <?php if (isset($footerImages['shop_footer_image_5']) && !empty($footerImages['shop_footer_image_5'])) { ?>
                        <a href="<?php echo (empty($footerImages['shop_footer_image_5_url']) ? 'javascript:;' : $this->escapeHtml($footerImages['shop_footer_image_5_url'])); ?>" target="_blank"><img src="<?php echo $this->shopHelper()->baseImagePath($footerImages['shop_footer_image_5']); ?>?v=<?php echo time(); ?>"></a>
                    <?php } ?>
                </p>
            </div>
        </div>
    </div>
</div>
