Skip to content

Instantly share code, notes, and snippets.

View dayAlone's full-sized avatar

Andrey Kolmakov dayAlone

View GitHub Profile
@dayAlone
dayAlone / my
Created October 16, 2015 00:08
/*
// Import categories
$.get('http://ru.russellhobbs.com/russell-hobbs-products/', (data) => {
$(data).find('#dsnestCat li').each((key, el)=> {
let $el = $(el);
let $img = $el.find('img');
if ($img) {
<?php
if (ini_get('short_open_tag') == 0)
die('Error: short_open_tag parameter must be turned on in php.ini');
?><?
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);
if (getenv('BITRIX_VA_VER'))
define('VMBITRIX', 'defined');
if (version_compare(phpversion(),'5.3.0','<'))
@dayAlone
dayAlone / plugins.json
Last active August 29, 2015 14:24
Build
{
"bem":{
"js":"/jquery.bem/jquery.bem.js"
},
"bgcheck":{
"js":"/bgcheck/background-check.js"
},
"blurjs":{
"js":"/blurjs/blur.js"
},

##Меню

<?php
	$APPLICATION->IncludeComponent("bitrix:menu", "", 
    array(
        "ALLOW_MULTI_SELECT" => "Y",
        "MENU_CACHE_TYPE"    => "A",
        "CHILD_MENU_TYPE"    => "left",
        "ROOT_MENU_TYPE"     => "top",
        "MAX_LEVEL"          => "2",

Часто используемые алгоритмы в 1С-Битрикс

Подключение модуля

<?
	CModule::IncludeModule("iblock");
?>

Сортировка по описанию