This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <? | |
| class YoutubeVideo | |
| { | |
| function __construct($video) | |
| { | |
| $this->video = $video; | |
| } | |
| private function Prefix() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AddEventHandler("main", "OnEndBufferContent", "deleteKernel"); | |
| function deleteKernel(&$content) { | |
| global $APPLICATION; | |
| if (strpos($APPLICATION->GetCurDir(), "/bitrix/") !== false) { | |
| return; | |
| } | |
| $arPatternsToRemove = Array( | |
| //Убираем лишние скрипты битрикса*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <? | |
| $context = Bitrix\Main\Application::getInstance()->getContext(); | |
| $request = $context->getCurrent()->getRequest(); | |
| /* | |
| Отслеживаем 3 GET-параметра: title, subtitle и text (заголовок, подзаголовок и текст) | |
| Соответствие между GET-параметром и значением хранится в инфоблоке с ID = SUBSTUTUTION_IBLOCK | |
| в свойствах с символьными кодами TITLE, SUBTITLE и TEXT соответственно | |
| А сами значения в TITLE_VAL, SUBTITLE_VAL и TEXT_VAL | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // ключ для соединения | |
| $key = '6f4cb12fa15962e18c31942a3e4a73f6'; | |
| // код товара | |
| $code = '110086'; | |
| // запрос | |
| $curl = curl_init('https://api.samsonopt.ru/v1/sku/' . $code . '/stock/?api_key=' . $key); |
OlderNewer