<?php
/**
 * DBShop 电子商务系统
 *
 * ==========================================================================
 * @link      https://www.dbshop.net/
 * @copyright 北京珑大钜商科技有限公司，并保留所有权利。
 * @license   https://www.dbshop.net/license.html License
 * ==========================================================================
 *
 * @author    静静的风 <baron@loongdom.cn>
 *
 */

use Admin\Data\Common;

$defaultTemplate = Common::getShopDefaultTemplate();

return [
    'translator' => [
        'translation_file_patterns' => [
            [
                'type' => 'gettext',
                'base_dir' => __DIR__ . '/../data/'.$defaultTemplate.'/language',
                'pattern' => '%s.mo'
            ]
        ]
    ],

    'view_manager' => [
        'template_map' => [
            'shop/layout'         => __DIR__ . '/../view/' .$defaultTemplate. '/shop/layout/layout.phtml',
            'shop/header'         => __DIR__ . '/../view/' .$defaultTemplate. '/shop/layout/header.phtml',
            'shop/footer'         => __DIR__ . '/../view/' .$defaultTemplate. '/shop/layout/footer.phtml',
            'shop/ajaxPage'       => __DIR__ . '/../view/' .$defaultTemplate. '/shop/partial/ajaxPaginator.phtml',
            'shop/page'           => __DIR__ . '/../view/' .$defaultTemplate. '/shop/partial/paginator.phtml',
            'shop/message'        => __DIR__ . '/../view/' .$defaultTemplate. '/shop/layout/message.phtml',
            'shop/close'          => __DIR__ . '/../view/' .$defaultTemplate. '/shop/layout/close.phtml',
        ],
        'template_path_stack' => [
            __DIR__ . '/../view/'.$defaultTemplate,
        ],
        'strategies' => [
            'ViewJsonStrategy',
        ]
    ]
];