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
| $specialtyToSchema = [ | |
| 'стоматолог' => 'https://schema.org/Dentistry', | |
| 'имплантолог' => 'https://schema.org/Dentistry', | |
| 'ортодонт' => 'https://schema.org/Dentistry', | |
| 'гигиенист' => 'https://schema.org/Dentistry', | |
| 'пародонтолог' => 'https://schema.org/Dentistry', | |
| 'эндодонт' => 'https://schema.org/Dentistry', | |
| 'травматолог' => 'https://schema.org/Musculoskeletal', | |
| 'ортопед' => 'https://schema.org/Musculoskeletal', | |
| 'хирург' => 'https://schema.org/Surgical', |
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
| .git/hooks/post-merge | |
| #!/bin/bash | |
| TARGET_DIR="XXXXXXXXXXXXXX" | |
| echo "[post-merge] Updating permissions and ownership in $TARGET_DIR" | |
| echo "[post-merge] Excluding some directories" |
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
| <? | |
| $PERM["personal"]["8"]="W"; | |
| $PERM["catalog"]["8"]="W"; | |
| $PERM["news"]["8"]="W"; | |
| $PERM["about"]["8"]="W"; | |
| $PERM["index.php"]["8"]="W"; | |
| $PERM["/"]["*"]="R"; | |
| ?> |
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("iblock", "OnStartIBlockElementUpdate", "generateUniqueCode",10); | |
| AddEventHandler("iblock", "OnStartIBlockElementAdd", "generateUniqueCode",10); | |
| function generateUniqueCode(&$arFields){ | |
| $IBLOCK_ID = $arFields['IBLOCK_ID']; | |
| if($IBLOCK_ID == 17){ | |
| if(array_key_exists('CODE',$arFields)) { |
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
| /* | |
| https://gist.github.com/lekomtsev/d7fe3bfad8f42307fa2149e0816f3740 | |
| */ | |
| var winWidth = function() { | |
| var w = 0; | |
| // IE | |
| if (typeof( window.innerWidth ) != 'number') { |
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
| <? | |
| if(!function_exists('BXIBlockAfterSave')){ | |
| function BXIBlockAfterSave($arFields){ | |
| foreach (GetModuleEvents("iblock", "OnBXIBlockAfterSave", true) as $arEvent){ | |
| ExecuteModuleEventEx($arEvent, array($arFields)); | |
| } | |
| } | |
| } |
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", "AddMicrodataBreadCrumbs",99999); | |
| function AddMicrodataBreadCrumbs(&$content){ | |
| global $APPLICATION; | |
| if(defined('ADMIN_SECTION')){ | |
| return true; | |
| } |
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
| \Bitrix\Main\Loader::IncludeModule("form"); | |
| CForm::GetResultAnswerArray($WEB_FORM_ID, | |
| $arrColumns, | |
| $arrAnswers, | |
| $arrAnswersVarname, | |
| array()); | |
| $arFormResult = array(); | |
| $is_filtered = null; |
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
| https://web.archive.org/web/20221130164938/https://fancyapps.com/docs/ui/fancybox/events |
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
| <? | |
| if(!function_exists('getElementInComplexComponent')){ | |
| function getElementInComplexComponent($arResult, $arParams, $arSelect = array()){ | |
| $arFilter = array( | |
| "IBLOCK_ID" => $arParams["IBLOCK_ID"], | |
| "ACTIVE" => "Y", | |
| "GLOBAL_ACTIVE" => "Y", | |
| ); | |
| if (0 < intval($arResult["VARIABLES"]["SECTION_ID"])) |
NewerOlder