| Current Path : /var/www/homesaver/www/bitrix/js/catalog/store-chart/ |
| Current File : /var/www/homesaver/www/bitrix/js/catalog/store-chart/config.php |
<?php
if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true)
{
die();
}
$currencyId = '';
$currencyFormat = '';
$currencySymbol = '';
if (\Bitrix\Main\Loader::includeModule('currency'))
{
$currencyId = \Bitrix\Currency\CurrencyManager::getBaseCurrency();
$currencyFormat = \CCurrencyLang::GetFormatDescription($currencyId);
$currencySymbol = isset($currencyFormat['FORMAT_STRING']) ? trim(\CCurrencyLang::applyTemplate('', $currencyFormat['FORMAT_STRING'])) : '';
}
return [
'js' => 'dist/store-chart.bundle.js',
'css' => 'dist/store-chart.bundle.css',
'rel' => [
'main.popup',
'currency.currency-core',
'main.core',
'ui.design-tokens',
'ui.fonts.opensans',
],
'skip_core' => false,
'settings' => [
'currency' => $currencyId,
'currencySymbol' => $currencySymbol,
'currencyFormat' => $currencyFormat,
]
];