%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 3.144.224.32 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/artantiq/components/bitrix/catalog.element/catalog_element/ |
Upload File : |
<? if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED!==true) die(); if (!function_exists('getSliderForItem')) { function getSliderForItem(&$item, $propertyCode, $addDetailToSlider) { $result = array(); if (!empty($item) && is_array($item)) { if ( '' != $propertyCode && isset($item['PROPERTIES'][$propertyCode]) && 'F' == $item['PROPERTIES'][$propertyCode]['PROPERTY_TYPE'] ) { if ('MORE_PHOTO' == $propertyCode && isset($item['MORE_PHOTO']) && !empty($item['MORE_PHOTO'])) { foreach ($item['MORE_PHOTO'] as &$onePhoto) { $result[] = array( 'ID' => intval($onePhoto['ID']), 'SRC' => $onePhoto['SRC'], 'WIDTH' => intval($onePhoto['WIDTH']), 'HEIGHT' => intval($onePhoto['HEIGHT']) ); } unset($onePhoto); } else { if ( isset($item['DISPLAY_PROPERTIES'][$propertyCode]['FILE_VALUE']) && !empty($item['DISPLAY_PROPERTIES'][$propertyCode]['FILE_VALUE']) ) { $fileValues = ( isset($item['DISPLAY_PROPERTIES'][$propertyCode]['FILE_VALUE']['ID']) ? array(0 => $item['DISPLAY_PROPERTIES'][$propertyCode]['FILE_VALUE']) : $item['DISPLAY_PROPERTIES'][$propertyCode]['FILE_VALUE'] ); foreach ($fileValues as &$oneFileValue) { $result[] = array( 'ID' => intval($oneFileValue['ID']), 'SRC' => $oneFileValue['SRC'], 'WIDTH' => intval($oneFileValue['WIDTH']), 'HEIGHT' => intval($oneFileValue['HEIGHT']) ); } if (isset($oneFileValue)) unset($oneFileValue); } else { $propValues = $item['PROPERTIES'][$propertyCode]['VALUE']; if (!is_array($propValues)) $propValues = array($propValues); foreach ($propValues as &$oneValue) { $oneFileValue = CFile::GetFileArray($oneValue); if (isset($oneFileValue['ID'])) { $result[] = array( 'ID' => intval($oneFileValue['ID']), 'SRC' => $oneFileValue['SRC'], 'WIDTH' => intval($oneFileValue['WIDTH']), 'HEIGHT' => intval($oneFileValue['HEIGHT']) ); } } if (isset($oneValue)) unset($oneValue); } } } if ($addDetailToSlider || empty($result)) { if (!empty($item['DETAIL_PICTURE'])) { if (!is_array($item['DETAIL_PICTURE'])) $item['DETAIL_PICTURE'] = CFile::GetFileArray($item['DETAIL_PICTURE']); if (isset($item['DETAIL_PICTURE']['ID'])) { array_unshift( $result, array( 'ID' => intval($item['DETAIL_PICTURE']['ID']), 'SRC' => $item['DETAIL_PICTURE']['SRC'], 'WIDTH' => intval($item['DETAIL_PICTURE']['WIDTH']), 'HEIGHT' => intval($item['DETAIL_PICTURE']['HEIGHT']) ) ); } } } } return $result; } } ?>