This file contains 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
protected function normalizePhone($phone) | |
{ | |
// если несколько телефонов, разделенных ";" | |
$phones = []; | |
if (false !== strpos($phone, ';')) { | |
$phones = explode(';', $phone); | |
} | |
// если несколько телефонов, разделенных "," | |
if (false !== strpos($phone, ',')) { |
This file contains 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 (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die(); | |
/** @var array $arParams */ | |
/** @var array $arResult */ | |
/** @global CMain $APPLICATION */ | |
/** @global CUser $USER */ | |
/** @global CDatabase $DB */ | |
/** @var CBitrixComponentTemplate $this */ | |
/** @var string $templateName */ | |
/** @var string $templateFile */ | |
/** @var string $templateFolder */ |
This file contains 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
<? $APPLICATION->IncludeComponent("bitrix:menu", "menu-template", Array( | |
"ALLOW_MULTI_SELECT" => "N", // Разрешить несколько активных пунктов одновременно | |
"CHILD_MENU_TYPE" => "catalog", // Тип меню для остальных уровней | |
"DELAY" => "N", // Откладывать выполнение шаблона меню | |
"MAX_LEVEL" => "4", // Уровень вложенности меню | |
"MENU_CACHE_GET_VARS" => array( // Значимые переменные запроса | |
0 => "", | |
), | |
"MENU_CACHE_TIME" => "3600", // Время кеширования (сек.) | |
"MENU_CACHE_TYPE" => "N", // Тип кеширования |
This file contains 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
<? $APPLICATION->IncludeComponent( | |
"bitrix:menu", | |
"catalogmenu", | |
array( | |
"ALLOW_MULTI_SELECT" => "N", | |
"CHILD_MENU_TYPE" => "catalog", | |
"DELAY" => "N", | |
"MAX_LEVEL" => "3", | |
"MENU_CACHE_GET_VARS" => [], | |
"MENU_CACHE_TIME" => "3600", |
This file contains 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
<? $APPLICATION->IncludeComponent( | |
"bitrix:menu", | |
"catalogmenu", | |
array( | |
"ALLOW_MULTI_SELECT" => "N", | |
"CHILD_MENU_TYPE" => "catalog", | |
"DELAY" => "N", | |
"MAX_LEVEL" => "3", | |
"MENU_CACHE_GET_VARS" => [], | |
"MENU_CACHE_TIME" => "3600", |
This file contains 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(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); | |
//delayed function must return a string | |
if(empty($arResult)) | |
return ""; | |
$strReturn = '<div id="block-breadcrumbs"><ul>'; | |
$arResult[count($arResult)-1]['ISLAST'] = true; | |
foreach($arResult as $arItem) { |
This file contains 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
/** | |
* Получения минимальной цены товара в категории | |
* возможно совмещение с дополнительными параметрами фильтрации | |
* @param $iblockId | |
* @param $sectionId | |
* @param array $arFilter | |
* @return mixed | |
*/ | |
static public function getSectionMinPrice($iblockId, $sectionId, $arFilter = []) | |
{ |
This file contains 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 | |
return array ( | |
'utf_mode' => | |
array ( | |
'value' => true, | |
'readonly' => true, | |
), | |
'cache_flags' => | |
array ( | |
'value' => |
This file contains 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
### логи | |
/*.log | |
/modules/updater.log | |
/modules/updater_partner.log | |
### настройки | |
.settings.php | |
.settings_extra.php | |
/php_interface/dbconn.php |
This file contains 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
### общие исключения | |
# IDE | |
.idea/ | |
# dev backups | |
*bak20* | |
*bak-20* | |
# cache | |
.sass-cache/ |