/index_bk.php
/index_bk_right.php
/index_bk_top.php
/index_bk_kino.php
/local/templates/bk/*
this is the currency module which parses xml link CBR.RU
$APPLICATION->IncludeComponent("acs:acs.currency", ".default",
[
"CURR" => [
0 => "USD",
1 => "EUR",
2 => "PLN",
],
"CACHE_TYPE" => "A",
"CACHE_TIME" => "3600",
],
false
);
this is the api.openweathermap.org
$APPLICATION->IncludeComponent("acs:acs.weather", ".default",
array(
"KEY" => "", // key from is openweathermap.org
"CITY_ID" => "536203",
"CACHE_TYPE" => "A",
"CACHE_TIME" => "3600"
),
false
);
this is the Yandex Map include component region
$APPLICATION->IncludeComponent("acs:acs.map", ".default",
[
"ITEMS" => [
[ 'COORDINATES'=>'55.762996,37.432978',
'title'=>'КОНТАКТЫ В МОСКВЕ',
'description'=>'г. Москва, Крылатская, 10. <br> По будням: с 07:30 до 21:00 <br> По выходным и праздникам: с 09:00 до 18:00'
],
[ 'COORDINATES'=>'54.724271,20.467754',
'title'=>'КОНТАКТЫ В КАЛИНИНГРАДЕ',
'description'=>'г. Калининград, ул. Каменная 17-2<br> По будням: с 07:30 до 21:00 <br> По выходным и праздникам: с 09:00 до 18:00']
],
"CACHE_TYPE"=>"A",
"CACHE_TIME"=>3600,
"DIV"=>"mapCamp",
"PRESET"=>"islands#dotIcon", // style for icon in maps
"ICON_COLOR"=>"#64be23", // color icon
"HEIGHT"=>350, //px
"CLUSTERER"=>'islands#invertedDarkGreenClusterIcons', //
],
false
);
this is the acs.kino parsing kinopoisk.ru/afisha/city/490/ the /index_bk_kino.php
$APPLICATION->IncludeComponent("acs:acs.kino", ".default",
array(
"CACHE_TYPE" => "A",
"CACHE_TIME" => 3600*3, // three hour
"URL_CITY_PAGE" => "https://www.kinopoisk.ru/afisha/city/490/",
"OLL_PAGE" => "/kino/",
"COMPONENT_TEMPLATE" => ".default"
),
false
);
this is small module for message in user
\Bitrix\Main\Config\Option::get("local.utility", "SITE_COOKIE", '');
\Bitrix\Main\Config\Option::get("local.utility", "OPENWEATHERMAP_KEY", ''), // key from is openweathermap.org
/* include class in module "local.utility" */
if (\Bitrix\Main\Loader::includeModule('local.utility')) :
\Local\Utility\Api::p('Hi!?', 'p');
endif;