File: //home/bk/100/ajax/include_options.php
<?
/**
* @var string $moduleId
* @var string $moduleCode
* @var string $settingsClass
*/
include_once 'include_module.php';
use Bitronic2\Mobile;
mobile::Init();
global $rz_b2_options;
//fill rz_b2_options
$APPLICATION->IncludeComponent("yenisite:settings.panel", "empty", array(
"SOLUTION" => $moduleId,
"SETTINGS_CLASS" => $settingsClass,
"GLOBAL_VAR" => "rz_b2_options",
"EDIT_SETTINGS" => array(),
"SET_MOBILE" => (mobile::isMobile() ? 'Y' : 'N')
),
false,
array('HIDE_ICONS' => 'Y')
);
if (Bitrix\Main\Loader::includeModule('catalog') && CRZBitronic2Settings::isPro($bGeoipStore = true)) {
$rz_b2_options['GEOIP'] = $APPLICATION->IncludeComponent(
"yenisite:geoip.store",
"empty",
array(
"CACHE_TYPE" => "A",
"CACHE_TIME" => "360000",
"INCLUDE_JQUERY" => "N",
"ONLY_GEOIP" => $rz_b2_options["geoip_unite"],
"DETERMINE_CURRENCY" => $rz_b2_options["geoip_currency"],
),
false,
array('HIDE_ICONS' => 'Y')
);
}
ob_start();
//fill rz_b2_options['active-currency']
include $_SERVER['DOCUMENT_ROOT'] . SITE_DIR . 'include_areas/header/switch_currency.php';
ob_end_clean();
$fileSwitch = $_SERVER['DOCUMENT_ROOT'] . SITE_DIR . 'include_areas/demoswitch.php';
if (file_exists($fileSwitch)) {
include($fileSwitch);
}
?>