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"])) |
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 | |
use \Bitrix\Main\Localization\Loc; | |
class CIBlockPropertyCustomVideoHostingProp | |
{ | |
private static $showedCss = false; | |
private static $showedJs = false; | |
static public function GetUserTypeDescription() |
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
1)Скопировать /catalog/ в /product/index.php | |
*)В /product/index.php добавить | |
Сверху | |
<? | |
// если нужно | |
$APPLICATION->AddChainItem("Каталог", "/catalog/"); | |
?> | |
<? | |
$dir = $APPLICATION->GetCurDir(false); |
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(!empty($arResult['JSON'])){ | |
$jsonld=str_replace("'", "\"", CUtil::PhpToJSObject($arResult['JSON'])); | |
\Bitrix\Main\Page\Asset::getInstance()->addString('<script class="section_microdata" type="application/ld+json">'.$jsonld.'</script>'); | |
} |
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
<? | |
//Для запуска необходимой карты укажите в адресе ее ID, пример: | |
//sitemap_run.php?action=sitemap_run&ID=2&lang=ru | |
$_SERVER['DOCUMENT_ROOT'] = realpath(dirname(__FILE__) . '/../../..'); | |
if($argv){ | |
unset($argv[0]); |
NewerOlder