<?php
// a:3:{s:5:"WIDTH";N;s:6:"HEIGHT";N;s:6:"LENGTH";N;}
$dimensions = $basketItem->getField('DIMENSIONS');
// @var array
$arDimensions = unserialize($dimensions);
print_r($arDimension);
else
{
$actualItem = $arResult;
$showSliderControls = $arResult['MORE_PHOTO_COUNT'] > 1;
}
if( $arResult['MORE_PHOTO_COUNT'] = sizeof( $arResult["PROPERTIES"]["MORE_PHOTO"]["VALUE"] ) ) {
$showSliderControls = true;
foreach($arResult["PROPERTIES"]["MORE_PHOTO"]["VALUE"] as $FILE_ID) {
if( is_array($FILE = CFile::GetFileArray($FILE_ID)) ) {
array_push($actualItem["MORE_PHOTO"], $FILE);
}
}
$arResult['MORE_PHOTO'] = $actualItem["MORE_PHOTO"];
$arResult['MORE_PHOTO_COUNT'] = sizeof( $arResult['MORE_PHOTO'] );
}
MORE_PHOTO ( $arResult["PROPERTIES"]["MORE_PHOTO"]["VALUE"] )
Код свойства с картинками. // rename via function
gulp.src("./src/**/hello.txt")
.pipe(rename(function (path) {
path.dirname += "/ciao";
path.basename += "-goodbye";
path.extname = ".md";
}))
.pipe(gulp.dest("./dist")); // ./dist/main/text/ciao/hello-goodbye.md
if( path.basename.math(/^styles/i) ) { path.dirname += "/ciao"; }
foreach( $categories as $category ) {
$category_nicename = $category->slug;
if ( $category->parent == $category->cat_ID ) {
$category->parent = 0;
} elseif ( $category->parent != 0 ) {
$category_nicename = get_category_parents( $category->parent, false, '/', true ) . $category_nicename;
}
$category_rewrite['('.$category_nicename.')/(?:feed/)?(feed|rdf|rss|rss2|atom)/?$'] = 'index.php?category_name=$matches[1]&feed=$matches[2]';
$category_rewrite["({$category_nicename})/{$wp_rewrite->pagination_base}/?([0-9]{1,})/?$"] = 'index.php?category_name=$matches[1]&paged=$matches[2]';
$category_rewrite['('.$category_nicename.')/?$'] = 'index.php?category_name=$matches[1]';
}
return src(srcPath, { allowEmpty: true })
// .pipe(plumber())
// .pipe(gulpif(needNewer, newer({dest: buildPath, ext: production ? '.min.css' : '.css'})))
// .pipe(gulpif(!production, sourcemaps.init()))
.pipe(sass())
// .pipe(groupmediaqueries())
// .pipe(gulpif(production, autoprefixer({ browsers: ["last 12 versions", "> 1%", "ie 8", "ie 7"] })))
.pipe(gulpif(!production, browsersync.stream()))
// .pipe(gulpif(production, mincss(...)))
// .pipe(gulpif(production, rename({ suffix: ".min" })))
// .pipe(plumber.stop())
// .pipe(gulpif(!production, sourcemaps.write("./assets/maps/")))
.pipe(dest(buildPath))
// .pipe(debug({ "title": "CSS files" }))
.on("end", () => production || '' == domain ? browsersync.reload : null);
(function() {
// Кол-во кликов
var clickCount = 0;
// Массив картинок
var obBackgrounds = {
0: 'images/heart_ml.png',
1: 'images/heart_2.png',
2: 'images/heart_3.png',
3: 'images/heart_2.png',
// ...
};
// элемент с которым происходит действие
var heart_m = document.getElementById('heart_m' + mom);
// событие нажатия
heart_m.onclick = function(e) {
this.style.backgroundImage = 'url(' + obBackgrounds[ clickCount ] + ')';
// Если дошли до последней картинки обнуляем счетчик
if( clickCount >= obBackgrounds.length - 1 ) {
clickCount = 0;
}
else {
// в след. раз брать следующую картинку
clickCount++;
}
}
})();
#bx-soa-region {
display: none !important;
}
#bx-soa-delivery .bx-soa-more-btn .pull-left {
display: none !important;
}
if( 'bx-soa-region' == section.next.getAttribute('id') ) {
this.show(section.next);
jQuery(event.target).remove();
var self = this;
var $nextBtn = jQuery('.bx-soa-more-btn .pull-right', jQuery(section.next));
$nextBtn.one('click', function(event) {
self.clickNextAction(event);
}).trigger('click');
return;
}
this.fade(actionSection, section.next);
this.show(section.next);
jQuery(document).ready(function($) {
var toc = document.querySelector( '.toc' );
var tocPath = document.querySelector( '.toc-marker path' );
var tocItems;
// Factor of screen size that the element must cross
// before it's considered visible
var TOP_MARGIN = 0.1,
BOTTOM_MARGIN = 0.2;
var pathLength;
function drawPath() {
...
}
function sync() {
...
};
$(window).on('scroll resize', function(e) {
if ($(window).width() >= 801) {
drawPath();
sync();
}
}).trigger('resize');
});
window.addEventListener( 'resize', drawPath, false );
window.addEventListener( 'scroll', sync, false );
$arSelect = Array("ID","PROPERTY_TIME");
$arFilter = Array("IBLOCK_ID"=>34);
$res = CIBlockElement::GetList(Array(), $arFilter, false, Array("nPageSize"=>550), $arSelect);
while($ob = $res->GetNextElement()){
$arFields = $ob->GetFields();
if( !empty($arFields["PROPERTY_TIME_VALUE"]) )
echo ($arFields["PROPERTY_TIME_VALUE"]).", ";
// или:
// if( empty($arFields["PROPERTY_TIME_VALUE"]) ) continue;
// echo ($arFields["PROPERTY_TIME_VALUE"]).", ";
}