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
//табы js | |
$('ul.tabs_caption').each(function() { | |
$(this).find('li').each(function(i) { | |
$(this).click(function(){ | |
$(this).addClass('active').siblings().removeClass('active') | |
.closest('div.tabs').find('div.tabs_content').removeClass('active').eq(i).addClass('active'); | |
}); | |
}); | |
}); |
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
{ | |
//для русских букв в Windows | |
"fallback_encoding": "Cyrillic (Windows 1251)", | |
"font_face": "Consolas", | |
"show_definitions": false, | |
"auto_complete": true, | |
"bold_folder_labels": true, | |
//если установлена тема OneDark |
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
СРАЗУ ПОСЛЕ УСТАНОВКИ Sublime! Установить Package Control (для установки плагинов) | |
1) Ctrl + Shift + P | |
2) Install Package Control | |
Установка плагина с помощью Package Control: | |
1) Ctrl + Shift + P | |
2) ввести (выбрать) install package | |
3) ввести (выбрать) название плагина | |
Удаление плагина с помощью Package Control: |
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
(лучше качать с гитхаба минифицированные animate.min.css к примеру) | |
bootstrap-grid-3.3.2.min.css - полезный фреймворк и для фотошопа и для верстки | |
960 grid system | |
jquery - фреймворк для удобства работы с js | |
owl.carousel.min.js и папку assets - для слайдеров | |
html5shiv.min.js, html5shiv-printshiv.min.js, es5-shim.min.js | |
- для поддержки браузерами html5 (особенно для IE) | |
respond.min.js медиазапросы для IE | |
font awesome - иконки |
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
anoriar.github.io репозиторий | |
resp_mob_dev_temp папка с сайтом | |
index.html открывающийся сайт | |
https://anoriar.github.io/resp_mob_dev_temp/index.html |
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
//количество всех элементов | |
$res = \Bitrix\Iblock\ElementTable::getList([ | |
'runtime' => [ | |
new Entity\ExpressionField('CNT', 'COUNT(*)') | |
], | |
'select' => ['CNT'], | |
'filter' => ["IBLOCK_ID" => 1, "ACTIVE" => "Y"], | |
'limit' => 10 | |
]); | |
while ($row = $res->fetch()) |
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
$stoneTranslateInst = \Aero\Tools\Hlblock\StonesTranslate::getInstance(); | |
$arResult["STONES_TRANSLATE"] = $stoneTranslateInst->getElements([ | |
"select" => ["UF_XML_ID", "UF_CODE", "UF_NAME"], | |
"filter" => ["UF_CODE" => $arStoneAttachNames], | |
'indexArray' => "UF_CODE" | |
]); |
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
$productsInst = \Aero\Tools\Iblock\Catalog\Products::getInstanceByCode(); | |
$products = $productsInst->getElementsES([ | |
"select" => ["ID", "IBLOCK_ID", "PROPERTIES.STORES", "PROPERTIES.MIN_MIN_PRICE"], | |
"filter" => ["PROPERTIES.STORES" => $storeIds, "ACTIVE" => "Y"], | |
] | |
); |
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
$productsInst = \Aero\Tools\Iblock\Catalog\Products::getInstanceByCode(); | |
$products = $productsInst->getElements([ | |
"select" => ["ID", "IBLOCK_ID", "CODE"], | |
"filter" => ["ACTIVE" => "Y"], | |
"nav" => ["nTopCount" => 200] | |
] | |
); | |
$salesInst = \Aero\Tools\Hlblock\Prototype::getInstance("FilterSale"); | |
$filterSalesKeys = array_keys($salesInst->getElements([ |
OlderNewer