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]); |
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
function executeFunction(string, context /*, args*/){ | |
/* | |
* https://stackoverflow.com/questions/7650071/is-there-a-way-to-create-a-function-from-a-string-with-javascript | |
* https://stackoverflow.com/questions/359788/how-to-execute-a-javascript-function-when-i-have-its-name-as-a-string | |
* */ | |
var args = Array.prototype.slice.call(arguments, 2); | |
if(!context){ | |
context = window; | |
} | |
if(typeof string == "string"){ |
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 | |
/** | |
* Используйте эти классы, если не умеете или не хотите работать с `composer` | |
* и использовать библиотеку [dadata-php](https://github.com/hflabs/dadata-php/). | |
* | |
* Классы не имеют внешних зависимостей, кроме `curl`. Примеры вызова внизу файла. | |
*/ | |
class TooManyRequests extends Exception |
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
<? | |
/* | |
* task- Нужно очищать все корзины - поставить агента 28800 | |
* */ | |
function clearAllBasketsAgent(){ | |
$day = 7; | |
\Bitrix\Main\Loader::includeModule('sale'); | |
$date = date('d.m.Y', time() - 86400 * $day); |
NewerOlder