AnonSec Shell
Server IP : 85.193.89.191  /  Your IP : 3.15.144.105
Web Server : Apache
System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : bitrix ( 600)
PHP Version : 8.1.27
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/bitrix/www/include/footer/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/bitrix/www/include/footer/comp_viewed.php
<?if(!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) die();?>
<?
global $arTheme, $arRegion;
$IsViewedTypeLocal = $arTheme['VIEWED_TYPE']['VALUE'] === 'LOCAL';
if($arRegion)
{
	if($arRegion['LIST_PRICES'])
	{
		if(reset($arRegion['LIST_PRICES']) != 'component')
			$arParams['PRICE_CODE'] = array_keys($arRegion['LIST_PRICES']);
	}
	if($arRegion['LIST_STORES'])
	{
		if(reset($arRegion['LIST_STORES']) != 'component')
			$arParams['STORES'] = $arRegion['LIST_STORES'];
	}
}

$arViewedIDs=CMax::getViewedProducts((int)CSaleBasket::GetBasketUserID(false), SITE_ID);?>


<div class="viewed_product_block no_fill">
<div class="wrapper_inner">
<?$APPLICATION->ShowViewContent("catalog_similar")?>




</div>
</div>


<?Bitrix\Main\Page\Frame::getInstance()->startDynamicWithID("viewed-block");?>
	<?if($arViewedIDs){?>
		<div class="viewed_product_block <?=($arTheme["SHOW_BG_BLOCK"]["VALUE"] == "Y" ? "fill" : "no_fill");?>">
			<div class="wrapper_inner">
				<?$APPLICATION->IncludeComponent(
					"aspro:catalog.viewed.max",
					"main_horizontal",
					array(
						"TITLE_BLOCK" => GetMessage('VIEWED_BEFORE'),
						"SHOW_MEASURE" => "N",
						"CACHE_TYPE" => "N",
					),
					false
				);?>
			</div>
		</div>
	<?}else{?>
		<div class="viewed_product_block no_fill"><br><br><br><br></div>
	<?}?>
<?Bitrix\Main\Page\Frame::getInstance()->finishDynamicWithID("viewed-block", "");?>

Anon7 - 2022
AnonSec Team