GithubHelp home page GithubHelp logo

bitrix_local's Introduction

I ❤ Bootstrap 4.6

Theme Template ❤ Bootstrap for Bitrix

/index_bk.php
/index_bk_right.php
/index_bk_top.php
/index_bk_kino.php
/local/templates/bk/*

index_bk

/local/components/acs/

1. acs.currency

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
); 

acs.currency

2. acs.weather

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
);

acs.weather

3. acs.map

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
);

acs.map

4. acs.kino

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
);

acs.kino

5. /local/modules/local.utility/

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;

message in user

bitrix_local's People

Contributors

glasscat82 avatar otolaa avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

asdaff

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.