%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 18.224.58.33 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/imag/24/bitrix/templates/artlot24/components/arturgolubev/search.title/artlot24/ |
Upload File : |
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); if (empty($arResult["CATEGORIES"]) && $arResult["DEBUG"]["SHOW"] != 'Y') return; IncludeTemplateLangFile(__FILE__); $arParams["SHOW_PREVIEW_TEXT"] = ($arParams["SHOW_PREVIEW_TEXT"]) ? $arParams["SHOW_PREVIEW_TEXT"] : 'Y'; $preview = ($arParams["SHOW_PREVIEW"] != 'N'); $image_style = ''; $info_style = ''; if($preview){ if($arParams["PREVIEW_WIDTH_NEW"]){ $image_style .= 'width: '.$arParams["PREVIEW_WIDTH_NEW"].'px;'; $info_style .= 'padding-left: '.($arParams["PREVIEW_WIDTH_NEW"]+5).'px;'; } if($arParams["PREVIEW_HEIGHT_NEW"]){ $image_style .= 'height: '.$arParams["PREVIEW_HEIGHT_NEW"].'px;'; } if($info_style) $info_style = 'style="'.$info_style.'"'; } ?> <div class="bx_smart_searche bx_searche <?=$arResult["VISUAL_PARAMS"]["THEME_CLASS"]?>"> <? if($arResult["DEBUG"]["SHOW"] == 'Y') { echo '<pre>'; echo 'Query: '; print_r($arResult["DEBUG"]["QUERY"]); echo "\r\n"; echo 'Type: '; print_r($arResult["DEBUG"]["TYPE"]); echo "\r\n"; echo 'Mode: '; print_r($arResult["DEBUG"]["SMARTMODE"]); echo "\r\n"; echo 'Max count: '; print_r($arResult["DEBUG"]["TOP_COUNT"] . ' / ' . $arParams["NUM_CATEGORIES"]); echo "\r\n"; echo 'Q List: '; print_r($arResult["DEBUG"]["Q"]); echo "\r\n"; echo 'Times: '; print_r($arResult["DEBUG"]["TIMES"]); echo "\r\n"; echo '</pre>'; if($arResult["DEBUG"]["OTHER"]) { echo '<pre>'; print_r($arResult["DEBUG"]["OTHER"]); echo '</pre>'; } // echo '<pre>'; print_r($arResult["CATEGORIES"]); echo '</pre>'; } ?> <?if(!empty($arResult["CATEGORIES"])):?> <?foreach($arResult["CATEGORIES"] as $category_id => $arCategory):?> <?foreach($arCategory["ITEMS"] as $i => $arItem):?> <?if(isset($arResult["SECTIONS"][$arItem["ITEM_ID"]])): $arElement = $arResult["SECTIONS"][$arItem["ITEM_ID"]]; if(is_array($arElement["PICTURE"])) $image_url = $arElement["PICTURE"]["src"]; else $image_url = '/bitrix/components/arturgolubev/search.title/templates/.default/images/noimg.png'; ?> <a class="js_search_href bx_item_block_href" href="<?echo $arItem["URL"]?>"> <?if($preview):?> <span class="bx_item_block_item_image" style="background-image: url(<?=$image_url?>); <?=$image_style?>"></span> <?endif;?> <?/* <span class="bx_item_block_href_category_title"><?=GetMessage("AG_SMARTIK_SECTION_TITLE");?></span><br> */?> <span class="bx_item_block_href_category_title"><?=($arElement["PATH"]) ? $arElement["PATH"] : GetMessage("AG_SMARTIK_SECTION_TITLE");?></span><br> <span class="bx_item_block_href_category_name"><?echo strip_tags($arItem["NAME"])?></span> <span class="bx_item_block_item_clear"></span> </a> <div class="bx_item_block_hrline"></div> <?endif;?> <?endforeach;?> <?endforeach;?> <?foreach($arResult["CATEGORIES"] as $category_id => $arCategory):?> <?foreach($arCategory["ITEMS"] as $i => $arItem):?> <?if(isset($arResult["ELEMENTS"][$arItem["ITEM_ID"]])): $arElement = $arResult["ELEMENTS"][$arItem["ITEM_ID"]]; $arElement["PREVIEW_TEXT"] = strip_tags($arElement["PREVIEW_TEXT"]); if(is_array($arElement["PICTURE"])) $image_url = $arElement["PICTURE"]["src"]; else $image_url = '/bitrix/components/arturgolubev/search.title/templates/.default/images/noimg.png'; ?> <a class="js_search_href bx_item_block_href" href="<?echo $arItem["URL"]?>"> <span class="bx_item_block_item_info"> <?if($preview):?> <span class="bx_item_block_item_image" style="background-image: url(<?=$image_url?>); <?=$image_style?>"></span> <?endif;?> <span class="bx_item_block_item_info_wrap <?if($preview) echo 'wpic';?>"<?=$info_style?>> <? foreach($arElement["PRICES"] as $code=>$arPrice) { if ($arPrice["MIN_PRICE"] != "Y") continue; if($arPrice["CAN_ACCESS"]) { if($arPrice["DISCOUNT_VALUE"] < $arPrice["VALUE"]):?> <span class="bx_item_block_item_price"> <span class="bx_price_new"> <?=$arPrice["PRINT_DISCOUNT_VALUE"]?> </span> <span class="bx_price_old"><?=$arPrice["PRINT_VALUE"]?></span> </span> <?else:?> <span class="bx_item_block_item_price bx_item_block_item_price_only_one"> <span class="bx_price_new"><?=$arPrice["PRINT_VALUE"]?></span> </span> <?endif; } if ($arPrice["MIN_PRICE"] == "Y") break; } ?> <span class="bx_item_block_item_name"> <span class="bx_item_block_item_name_flex_align"> <?echo $arItem["NAME"]?> </span> <?/* if($arResult["DEBUG"]["SHOW_DEBUG"] == 'Y'):?> <span class="bx_item_block_item_name_flex_align"> (<?echo $arItem["NAME_S"]?>) </span> <?endif; */?> </span> <?if(!empty($arElement["PROPS"])):?> <span class="bx_item_block_item_props"> <?foreach($arElement["PROPS"] as $prop): if(empty($prop["VALUE"])) continue; ?> <span class="bx_item_block_item_prop_item"><span class="bx_item_block_item_prop_item_name"><?=$prop["NAME"]?>:</span> <span class="bx_item_block_item_prop_item_value"><?=implode(', ', $prop["VALUE"])?></span></span> <?endforeach;?> </span> <?endif;?> <?if($arParams["SHOW_PREVIEW_TEXT"] == 'Y' && $arElement["PREVIEW_TEXT"]):?> <span class="bx_item_block_item_text"><?=$arElement["PREVIEW_TEXT"]?></span> <?endif;?> </span> <span class="bx_item_block_item_clear"></span> </span> </a> <?endif;?> <?endforeach;?> <?endforeach;?> <?foreach($arResult["CATEGORIES"] as $category_id => $arCategory):?> <?foreach($arCategory["ITEMS"] as $i => $arItem):?> <?if($category_id === "all"):?> <div class="bx_item_block all_result js_search_href mb-3"> <div class="bx_item_element bx_item_element_all_result js_search_href"> <a class="btn btn-primary btn-sm" href="<?echo $arItem["URL"]?>"><?echo $arItem["NAME"]?></a> </div> <div style="clear:both;"></div> </div> <? elseif(isset($arResult["ELEMENTS"][$arItem["ITEM_ID"]]) || isset($arResult["SECTIONS"][$arItem["ITEM_ID"]])): continue; else:?> <a class="js_search_href bx_item_block_href" href="<?echo $arItem["URL"]?>"> <span class="bx_item_block_item_simple_name"><?echo $arItem["NAME"]?></span> </a> <?endif;?> <?endforeach;?> <?endforeach;?> <?else:?> <div class="bx_smart_no_result_find"> <?=GetMessage("AG_SMARTIK_NO_RESULT");?> </div> <?endif;?> </div>