59 lines
2.2 KiB
PHP
59 lines
2.2 KiB
PHP
|
|
<?php
|
||
|
|
/**
|
||
|
|
* For the full copyright and license information, please view the
|
||
|
|
* docs/licenses/LICENSE.txt file that was distributed with this source code.
|
||
|
|
*/
|
||
|
|
|
||
|
|
use PrestaShop\PrestaShop\Core\Addon\Theme\Theme;
|
||
|
|
|
||
|
|
/* Theme URLs */
|
||
|
|
define('_PS_DEFAULT_THEME_NAME_', Theme::getDefaultTheme());
|
||
|
|
define('_PS_THEME_DIR_', _PS_ROOT_DIR_.'/themes/'._THEME_NAME_.'/');
|
||
|
|
define('_PS_THEME_URI_', __PS_BASE_URI__.'themes/'._THEME_NAME_.'/');
|
||
|
|
|
||
|
|
if (defined('_PARENT_THEME_NAME_') && _PARENT_THEME_NAME_ !== '') {
|
||
|
|
define('_PS_PARENT_THEME_DIR_', _PS_ROOT_DIR_.'/themes/'._PARENT_THEME_NAME_.'/');
|
||
|
|
define('_PS_PARENT_THEME_URI_', __PS_BASE_URI__.'themes/'._PARENT_THEME_NAME_.'/');
|
||
|
|
} else {
|
||
|
|
define('_PS_PARENT_THEME_DIR_', '');
|
||
|
|
define('_PS_PARENT_THEME_URI_', '');
|
||
|
|
}
|
||
|
|
define('_THEMES_DIR_', __PS_BASE_URI__.'themes/');
|
||
|
|
define('_THEME_DIR_', _THEMES_DIR_._THEME_NAME_.'/');
|
||
|
|
define('_THEME_IMG_DIR_', _THEME_DIR_.'assets/img/');
|
||
|
|
define('_THEME_CSS_DIR_', _THEME_DIR_.'assets/css/');
|
||
|
|
define('_THEME_JS_DIR_', _THEME_DIR_.'assets/js/');
|
||
|
|
|
||
|
|
/* Image URLs */
|
||
|
|
define('_PS_IMG_', __PS_BASE_URI__.'img/');
|
||
|
|
define('_PS_ADMIN_IMG_', _PS_IMG_.'admin/');
|
||
|
|
define('_PS_TMP_IMG_', _PS_IMG_.'tmp/');
|
||
|
|
define('_THEME_CAT_DIR_', _PS_IMG_.'c/');
|
||
|
|
define('_THEME_EMPLOYEE_DIR_', _PS_IMG_.'e/');
|
||
|
|
define('_THEME_PROD_DIR_', _PS_IMG_.'p/');
|
||
|
|
define('_THEME_PROFILE_DIR_', _PS_IMG_.'pr/');
|
||
|
|
define('_THEME_MANU_DIR_', _PS_IMG_.'m/');
|
||
|
|
define('_THEME_SUP_DIR_', _PS_IMG_.'su/');
|
||
|
|
define('_THEME_SHIP_DIR_', _PS_IMG_.'s/');
|
||
|
|
define('_THEME_STORE_DIR_', _PS_IMG_.'st/');
|
||
|
|
define('_THEME_LANG_DIR_', _PS_IMG_.'l/');
|
||
|
|
define('_THEME_COL_DIR_', _PS_IMG_.'co/');
|
||
|
|
define('_THEME_GENDERS_DIR_', _PS_IMG_.'genders/');
|
||
|
|
define('_PS_PROD_IMG_', _PS_IMG_.'p/');
|
||
|
|
|
||
|
|
/* Other URLs */
|
||
|
|
define('_PS_JS_DIR_', __PS_BASE_URI__.'js/');
|
||
|
|
define('_PS_CSS_DIR_', __PS_BASE_URI__.'css/');
|
||
|
|
define('_THEME_PROD_PIC_DIR_', __PS_BASE_URI__.'upload/');
|
||
|
|
define('_MAIL_DIR_', __PS_BASE_URI__.'mails/');
|
||
|
|
define('_MODULE_DIR_', __PS_BASE_URI__.'modules/');
|
||
|
|
|
||
|
|
/* Define API URLs if not defined before */
|
||
|
|
if (!defined('_PS_API_DOMAIN_')) {
|
||
|
|
define('_PS_API_DOMAIN_', 'api.prestashop.com');
|
||
|
|
}
|
||
|
|
if (!defined('_PS_API_URL_')) {
|
||
|
|
define('_PS_API_URL_', 'http://' . _PS_API_DOMAIN_);
|
||
|
|
}
|
||
|
|
Tools::safeDefine('_PS_CURRENCY_FEED_URL_', _PS_API_URL_.'/xml/currencies.xml');
|