<commit_before><div class="product mdl-grid" itemscope itemtype="http://schema.org/Product">
	<?// Проверяем доступнось розницы
	$mopt_available = ($item['price_mopt'] > 0 && $item['min_mopt_qty'] > 0)?true:false;
	// Проверяем доступнось опта
	$opt_available = ($item['price_mopt'] > 0 && $item['min_mopt_qty'] > 0)?true:false;
	$product_mark = '';
	if(in_array($item['opt_correction_set'], $GLOBALS['CONFIG']['promo_correction_set']) || in_array($item['mopt_correction_set'], $GLOBALS['CONFIG']['promo_correction_set'])) {
		$product_mark = 'action';
	}elseif ($item['prod_status'] == 3){
		$product_mark = 'new';
	}?>
	<div id="caruselCont" class="mdl-cell mdl-cell--5-col mdl-cell--8-col-tablet mdl-cell--12-col-phone">
		<div class="product_main_img btn_js mdl-cell--hide-tablet mdl-cell--hide-phone" data-name="big_photos_carousel">
			<?if(!empty($item['images'])){?>
				<img class="main_img_js" itemprop="image" alt="<?=G::CropString($item['id_product'])?>" src="<?=G::GetImageUrl($item['images'][0]['src'])?>"/>
			<?}else if(!empty($item['img_1'])){?>
				<img class="main_img_js" itemprop="image" alt="<?=G::CropString($item['id_product'])?>" src="<?=G::GetImageUrl($item['img_1'])?>"/>
			<?}else{?>
				<img class="main_img_js" itemprop="image" alt="<?=G::CropString($item['id_product'])?>" src="<?=G::GetImageUrl('/images/nofoto.png')?>"/>
			<?}?>
			<div id="mainVideoBlock" class="hidden">
				<iframe width="100%" height="100%" src="" frameborder="0" allowfullscreen></iframe>
			</div>
			<?if(isset($product_mark) && $product_mark !== ''){?>
				<div class="market_action">
					<img src="<?=G::GetImageUrl('/images/'.$product_mark.'.png')?>" alt="<?=$product_mark === 'action'?'акционный товар':'новый товар'?>">
				</div>
			<?}?>
		</div>
		<?if(G::isMobile()){?>
			<div id="owl-product_mobile_img_js" class="mobile_carousel">
				<?if(!empty($item['images'])){
					foreach($item['images'] as $i => $image){?>
						<img src="<?=G::GetImageUrl($image['src'], 'medium')?>" alt="<?=htmlspecialchars($item['name'])?>">
					<?}
				}else{
					for($i=1; $i < 4; $i++){
						if(!empty($item['img_'.$i])){?>
							<img src="<?=G::GetImageUrl($item['img_'.$i], 'medium')?>" alt="<?=htmlspecialchars($item['name'])?>">
						<?}
					}
				}?>
				<?if(!empty($item['videos'])){
					foreach($item['videos'] as $i => $video){?>
						<div class="item-video"><a class="owl-video" href="<?=$video?>"></a></div>
					<?}
				}?>
			</div>
			<script>
				//Инициализация owl carousel
				$('#owl-product_mobile_img_js').owlCarousel({
					center:			true,
					dots:			true,
					items:			1,
					lazyLoad:		true,
					/*loop:			true,*/
					margin:			20,
					nav:			true,
					video:			true,
					videoHeight:	345,
					videoWidth:		345,
					navText: [
						'<svg class="arrow_left"><use xlink:href="images/slider_arrows.svg#arrow_left_tidy"></use></svg>',
						'<svg class="arrow_right"><use xlink:href="images/slider_arrows.svg#arrow_right_tidy"></use></svg>'
					]
				});
			</script>
		<?}else{?>
			<div id="owl-product_mini_img_js">
				<?if(!empty($item['images'])){
					foreach($item['images'] as $i => $image){?>
						<img src="<?=G::GetImageUrl($image['src'], 'thumb')?>" alt="<?=htmlspecialchars($item['name'])?>"<?=$i==0?'class="act_img"':'class=""';?>>
					<?}
				}else{
					for($i=1; $i < 4; $i++){
						if(!empty($item['img_'.$i])){?>
							<img src="<?=G::GetImageUrl($item['img_'.$i], 'thumb')?>" alt="<?=htmlspecialchars($item['name'])?>"<?=$i==1?' class="act_img"':'class=""';?>>
						<?}
					}
				}?>
				<!-- Код добавления видео начало-->
				<?if(!empty($item['videos'])){
					foreach($item['videos'] as $i => $video){?>
						<div class="videoBlock">
							<div class="videoBlockShield"></div>
							<iframe width="120" height="90" src="<?=str_replace('watch?v=', 'embed/', $video)?>" frameborder="0" allowfullscreen alt="<?=htmlspecialchars($item['name'])?>">
							</iframe>
						</div>
					<?}
				}?>
				<!-- Код добавления видео конец-->
			</div>
			<div id="big_photos_carousel" data-type="modal">
				<div class="modal_container">
					<div id="big_photos_carousel_js" class="carousel big_photos_carousel">
						<?if(!empty($item['images'])){
							foreach($item['images'] as $i => $image){?>
								<img src="<?=G::GetImageUrl($image['src'])?>" alt="<?=htmlspecialchars($item['name'])?>">
							<?}
						}else{
							for($i=1; $i < 4; $i++){
								if(!empty($item['img_'.$i])){?>
									<img src="<?=G::GetImageUrl($item['img_'.$i])?>" alt="<?=htmlspecialchars($item['name'])?>">
								<?}
							}
						}?>
						<?if(!empty($item['videos'])){
							foreach($item['videos'] as $i => $video){?>
								<div class="item-video"><a class="owl-video" href="<?=$video?>"></a></div>
							<?}
						}?>
					</div>
				</div>
			</div>
			<script>
				//Инициализация owl carousel
				$('#owl-product_mobile_img_js, #big_photos_carousel_js').owlCarousel({
					center:			true,
					dots:			true,
					items:			1,
					lazyLoad:		true,
					/*loop:			true,*/
					margin:			20,
					nav:			true,
					video:			true,
					videoHeight:	500,
					videoWidth:		$(document).outerWidth() > 1300?700:500,
					navText: [
						'<svg class="arrow_left"><use xlink:href="images/slider_arrows.svg#arrow_left_tidy"></use></svg>',
						'<svg class="arrow_right"><use xlink:href="images/slider_arrows.svg#arrow_right_tidy"></use></svg>'
					]
				});
			</script>
			<script>
				//Инициализация owl carousel
				$("#owl-product_mini_img_js").owlCarousel({
					dots:	false,
					items:	4,
					margin:	10,
					nav:	true,
					responsive: {
						320:	{items: 1},
						727:	{items: 2},
						950:	{items: 3},
						1250:	{items: 3},
						1600:	{items: 4}
					},
					navText: [
						'<svg class="arrow_left"><use xlink:href="images/slider_arrows.svg#arrow_left_tidy"></use></svg>',
						'<svg class="arrow_right"><use xlink:href="images/slider_arrows.svg#arrow_right_tidy"></use></svg>'
					]
				});
				$(function(){
					//Слайдер миниатюр картинок.
					$('#owl-product_mini_img_js .owl-item').on('click', function(event){
						var src = $(this).find('img').attr('src');
						var viewport_width = $(window).width();
						if(viewport_width > 711){
							$('#owl-product_slide_js').find('img').removeClass('act_img');
							$(this).find('img').addClass('act_img');
							// if(!(src.indexOf('nofoto') + 1)){
							//  src = src.replace('thumb', 'original');
							// }
							if(src.indexOf("<?=str_replace(DIRSEP, '/', str_replace($GLOBALS['PATH_root'], '', $GLOBALS['PATH_product_img']));?>") > -1){
								src = src.replace('/thumb/', '/original/');
							}else{
								src = src.replace('_thumb/', '');
							}
							$('.product_main_img').find('img').attr('src', src).hide().fadeIn('100');
						}else{
							event.preventDefault();
						}
					});
				});
			</script>
		<?}?>
	</div>
	<div id="specCont" class="specCont_js mdl-cell mdl-cell--7-col mdl-cell--8-col-tablet mdl-cell--12-col-phone">
		<div class="product_name">
			<h1 itemprop="name"><?=$item['name']?></h1>
			<p class="product_article">арт: <?=$item['art']?></p>
			<?if(isset($_SESSION['member']) && in_array($_SESSION['member']['gid'], array(1, 2, 9, 14))){?><commit_msg>Страница продукта. Отметка об акции.<commit_after><div class="product mdl-grid" itemscope itemtype="http://schema.org/Product">
	<?// Проверяем доступнось розницы
	$mopt_available = ($item['price_mopt'] > 0 && $item['min_mopt_qty'] > 0)?true:false;
	// Проверяем доступнось опта
	$opt_available = ($item['price_mopt'] > 0 && $item['min_mopt_qty'] > 0)?true:false;
	$product_mark = '';
	if(in_array($item['opt_correction_set'], $GLOBALS['CONFIG']['promo_correction_set']) || in_array($item['mopt_correction_set'], $GLOBALS['CONFIG']['promo_correction_set'])) {
		$product_mark = 'action';
	}elseif ($item['prod_status'] == 3){
		$product_mark = 'new';
	}?>
	<div id="caruselCont" class="mdl-cell mdl-cell--5-col mdl-cell--8-col-tablet mdl-cell--12-col-phone">
		<div class="product_main_img btn_js mdl-cell--hide-tablet mdl-cell--hide-phone" data-name="big_photos_carousel">
			<?if(!empty($item['images'])){?>
				<img class="main_img_js" itemprop="image" alt="<?=G::CropString($item['id_product'])?>" src="<?=G::GetImageUrl($item['images'][0]['src'])?>"/>
			<?}else if(!empty($item['img_1'])){?>
				<img class="main_img_js" itemprop="image" alt="<?=G::CropString($item['id_product'])?>" src="<?=G::GetImageUrl($item['img_1'])?>"/>
			<?}else{?>
				<img class="main_img_js" itemprop="image" alt="<?=G::CropString($item['id_product'])?>" src="<?=G::GetImageUrl('/images/nofoto.png')?>"/>
			<?}?>
			<div id="mainVideoBlock" class="hidden">
				<iframe width="100%" height="100%" src="" frameborder="0" allowfullscreen></iframe>
			</div>
			<?if(isset($product_mark) && $product_mark !== ''){?>
				<div class="market_action">
					<img src="<?=G::GetImageUrl('/images/'.$product_mark.'.png')?>" alt="<?=$product_mark === 'action'?'акционный товар':'новый товар'?>">
				</div>
			<?}?>
		</div>
		<?if(G::isMobile()){?>
			<div id="owl-product_mobile_img_js" class="mobile_carousel">
				<?if(!empty($item['images'])){
					foreach($item['images'] as $i => $image){?>
						<img src="<?=G::GetImageUrl($image['src'], 'medium')?>" alt="<?=htmlspecialchars($item['name'])?>">
					<?}
				}else{
					for($i=1; $i < 4; $i++){
						if(!empty($item['img_'.$i])){?>
							<img src="<?=G::GetImageUrl($item['img_'.$i], 'medium')?>" alt="<?=htmlspecialchars($item['name'])?>">
						<?}
					}
				}?>
				<?if(!empty($item['videos'])){
					foreach($item['videos'] as $i => $video){?>
						<div class="item-video"><a class="owl-video" href="<?=$video?>"></a></div>
					<?}
				}?>
			</div>
			<script>
				//Инициализация owl carousel
				$('#owl-product_mobile_img_js').owlCarousel({
					center:			true,
					dots:			true,
					items:			1,
					lazyLoad:		true,
					/*loop:			true,*/
					margin:			20,
					nav:			true,
					video:			true,
					videoHeight:	345,
					videoWidth:		345,
					navText: [
						'<svg class="arrow_left"><use xlink:href="images/slider_arrows.svg#arrow_left_tidy"></use></svg>',
						'<svg class="arrow_right"><use xlink:href="images/slider_arrows.svg#arrow_right_tidy"></use></svg>'
					]
				});
			</script>
		<?}else{?>
			<div id="owl-product_mini_img_js">
				<?if(!empty($item['images'])){
					foreach($item['images'] as $i => $image){?>
						<img src="<?=G::GetImageUrl($image['src'], 'thumb')?>" alt="<?=htmlspecialchars($item['name'])?>"<?=$i==0?'class="act_img"':'class=""';?>>
					<?}
				}else{
					for($i=1; $i < 4; $i++){
						if(!empty($item['img_'.$i])){?>
							<img src="<?=G::GetImageUrl($item['img_'.$i], 'thumb')?>" alt="<?=htmlspecialchars($item['name'])?>"<?=$i==1?' class="act_img"':'class=""';?>>
						<?}
					}
				}?>
				<!-- Код добавления видео начало-->
				<?if(!empty($item['videos'])){
					foreach($item['videos'] as $i => $video){?>
						<div class="videoBlock">
							<div class="videoBlockShield"></div>
							<iframe width="120" height="90" src="<?=str_replace('watch?v=', 'embed/', $video)?>" frameborder="0" allowfullscreen alt="<?=htmlspecialchars($item['name'])?>">
							</iframe>
						</div>
					<?}
				}?>
				<!-- Код добавления видео конец-->
			</div>
			<div id="big_photos_carousel" data-type="modal">
				<div class="modal_container">
					<div id="big_photos_carousel_js" class="carousel big_photos_carousel">
						<?if(!empty($item['images'])){
							foreach($item['images'] as $i => $image){?>
								<img src="<?=G::GetImageUrl($image['src'])?>" alt="<?=htmlspecialchars($item['name'])?>">
							<?}
						}else{
							for($i=1; $i < 4; $i++){
								if(!empty($item['img_'.$i])){?>
									<img src="<?=G::GetImageUrl($item['img_'.$i])?>" alt="<?=htmlspecialchars($item['name'])?>">
								<?}
							}
						}?>
						<?if(!empty($item['videos'])){
							foreach($item['videos'] as $i => $video){?>
								<div class="item-video"><a class="owl-video" href="<?=$video?>"></a></div>
							<?}
						}?>
					</div>
				</div>
			</div>
			<script>
				//Инициализация owl carousel
				$('#owl-product_mobile_img_js, #big_photos_carousel_js').owlCarousel({
					center:			true,
					dots:			true,
					items:			1,
					lazyLoad:		true,
					/*loop:			true,*/
					margin:			20,
					nav:			true,
					video:			true,
					videoHeight:	500,
					videoWidth:		$(document).outerWidth() > 1300?700:500,
					navText: [
						'<svg class="arrow_left"><use xlink:href="images/slider_arrows.svg#arrow_left_tidy"></use></svg>',
						'<svg class="arrow_right"><use xlink:href="images/slider_arrows.svg#arrow_right_tidy"></use></svg>'
					]
				});
			</script>
			<script>
				//Инициализация owl carousel
				$("#owl-product_mini_img_js").owlCarousel({
					dots:	false,
					items:	4,
					margin:	10,
					nav:	true,
					responsive: {
						320:	{items: 1},
						727:	{items: 2},
						950:	{items: 3},
						1250:	{items: 3},
						1600:	{items: 4}
					},
					navText: [
						'<svg class="arrow_left"><use xlink:href="images/slider_arrows.svg#arrow_left_tidy"></use></svg>',
						'<svg class="arrow_right"><use xlink:href="images/slider_arrows.svg#arrow_right_tidy"></use></svg>'
					]
				});
				// $(function(){
				// 	//Слайдер миниатюр картинок.
				// 	$('#owl-product_mini_img_js .owl-item').on('click', function(event){
				// 		var src = $(this).find('img').attr('src');
				// 		var viewport_width = $(window).width();
				// 		if(viewport_width > 711){
				// 			$('#owl-product_slide_js').find('img').removeClass('act_img');
				// 			$(this).find('img').addClass('act_img');
				// 			// if(!(src.indexOf('nofoto') + 1)){
				// 			//  src = src.replace('thumb', 'original');
				// 			// }
				// 			if(src.indexOf("<?=str_replace(DIRSEP, '/', str_replace($GLOBALS['PATH_root'], '', $GLOBALS['PATH_product_img']));?>") > -1){
				// 				src = src.replace('/thumb/', '/original/');
				// 			}else{
				// 				src = src.replace('_thumb/', '');
				// 			}
				// 			// $('.product_main_img').find('img').attr('src', src).hide().fadeIn('100');
				// 		}else{
				// 			event.preventDefault();
				// 		}
				// 	});
				// });
			</script>
		<?}?>
	</div>
	<div id="specCont" class="specCont_js mdl-cell mdl-cell--7-col mdl-cell--8-col-tablet mdl-cell--12-col-phone">
		<div class="product_name">
			<h1 itemprop="name"><?=$item['name']?></h1>
			<p class="product_article">арт: <?=$item['art']?></p>
			<?if(isset($_SESSION['member']) && in_array($_SESSION['member']['gid'], array(1, 2, 9, 14))){?>
{'fraction_non_alphanumeric': 0.25641377418027167, 'fraction_numerical': 0.013993689120592673, 'mean_word_length': 3.6608056265984654, 'pattern_counts': {'":': 0, '<': 285, '<?xml version=': 0, '>': 305, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2471185', 'n_tokens_mistral': 6959, 'n_tokens_neox': 5550, 'n_words': 745}