<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetTitle("Поликлиники Колпинского района");
?><?$APPLICATION->IncludeComponent(
"bitrix:news",
"template1",
array(
"ADD_ELEMENT_CHAIN" => "N",
"ADD_SECTIONS_CHAIN" => "N",
"AJAX_MODE" => "N",
"AJAX_OPTION_ADDITIONAL" => "",
"AJAX_OPTION_HISTORY" => "N",
"AJAX_OPTION_JUMP" => "N",
"AJAX_OPTION_STYLE" => "Y",
"BROWSER_TITLE" => "NAME",
"CACHE_FILTER" => "N",
"CACHE_GROUPS" => "Y",
"CACHE_TIME" => "36000000",
"CACHE_TYPE" => "A",
"CHECK_DATES" => "Y",
"COLOR_NEW" => "3E74E6",
"COLOR_OLD" => "C0C0C0",
"COMPONENT_TEMPLATE" => "template1",
"DETAIL_ACTIVE_DATE_FORMAT" => "d.m.Y",
"DETAIL_DISPLAY_BOTTOM_PAGER" => "Y",
"DETAIL_DISPLAY_TOP_PAGER" => "N",
"DETAIL_FIELD_CODE" => array(
0 => "",
1 => "",
),
"DETAIL_PAGER_SHOW_ALL" => "Y",
"DETAIL_PAGER_TEMPLATE" => "",
"DETAIL_PAGER_TITLE" => "Страница",
"DETAIL_PROPERTY_CODE" => array(
0 => "ADRES",
1 => "VRACHI",
2 => "TELEPHONE",
3 => "",
),
"DETAIL_SET_CANONICAL_URL" => "N",
"DISPLAY_AS_RATING" => "rating",
"DISPLAY_BOTTOM_PAGER" => "Y",
"DISPLAY_DATE" => "N",
"DISPLAY_NAME" => "Y",
"DISPLAY_PICTURE" => "Y",
"DISPLAY_PREVIEW_TEXT" => "Y",
"DISPLAY_TOP_PAGER" => "N",
"FONT_MAX" => "50",
"FONT_MIN" => "10",
"HIDE_LINK_WHEN_NO_DETAIL" => "N",
"IBLOCK_ID" => "29",
"IBLOCK_TYPE" => "catalog",
"INCLUDE_IBLOCK_INTO_CHAIN" => "N",
"LIST_ACTIVE_DATE_FORMAT" => "d.m.Y",
"LIST_FIELD_CODE" => array(
0 => "",
1 => "",
),
"LIST_PROPERTY_CODE" => array(
0 => "ADRES",
1 => "TELEPHONE",
2 => "",
),
"MESSAGE_404" => "",
"META_DESCRIPTION" => "-",
"META_KEYWORDS" => "-",
"NEWS_COUNT" => "20",
"PAGER_BASE_LINK_ENABLE" => "N",
"PAGER_DESC_NUMBERING" => "N",
"PAGER_DESC_NUMBERING_CACHE_TIME" => "36000",
"PAGER_SHOW_ALL" => "N",
"PAGER_SHOW_ALWAYS" => "N",
"PAGER_TEMPLATE" => ".default",
"PAGER_TITLE" => "Новости",
"PERIOD_NEW_TAGS" => "",
"PREVIEW_TRUNCATE_LEN" => "",
"SEF_FOLDER" => "/polikliniki/",
"SEF_MODE" => "Y",
"SET_LAST_MODIFIED" => "N",
"SET_STATUS_404" => "N",
"SET_TITLE" => "Y",
"SHOW_404" => "N",
"SORT_BY1" => "ACTIVE_FROM",
"SORT_BY2" => "SORT",
"SORT_ORDER1" => "DESC",
"SORT_ORDER2" => "ASC",
"STRICT_SECTION_CHECK" => "N",
"TAGS_CLOUD_ELEMENTS" => "150",
"TAGS_CLOUD_WIDTH" => "100%",
"USE_CATEGORIES" => "N",
"USE_FILTER" => "N",
"USE_PERMISSIONS" => "N",
"USE_RATING" => "N",
"USE_REVIEW" => "N",
"USE_RSS" => "N",
"USE_SEARCH" => "N",
"USE_SHARE" => "N",
"TEMPLATE_THEME" => "blue",
"MEDIA_PROPERTY" => "",
"SLIDER_PROPERTY" => "",
"SEF_URL_TEMPLATES" => array(
"news" => "",
"section" => "",
"detail" => "#ELEMENT_CODE#/",
)
),
false
);?><br><?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>
<?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(true);
?>
<div class="news-detail">
<?if($arParams["DISPLAY_PICTURE"]!="N" && is_array($arResult["DETAIL_PICTURE"])):?>
<img
class="detail_picture"
border="0"
src="<?=$arResult["DETAIL_PICTURE"]["SRC"]?>"
width="<?=$arResult["DETAIL_PICTURE"]["WIDTH"]?>"
height="<?=$arResult["DETAIL_PICTURE"]["HEIGHT"]?>"
alt="<?=$arResult["DETAIL_PICTURE"]["ALT"]?>"
title="<?=$arResult["DETAIL_PICTURE"]["TITLE"]?>"
/>
<?endif?>
<?if($arParams["DISPLAY_DATE"]!="N" && $arResult["DISPLAY_ACTIVE_FROM"]):?>
<span class="news-date-time"><?=$arResult["DISPLAY_ACTIVE_FROM"]?></span>
<?endif;?>
<?if($arParams["DISPLAY_NAME"]!="N" && $arResult["NAME"]):?>
<h3><?=$arResult["NAME"]?></h3>
<?endif;?>
<?if($arParams["DISPLAY_PREVIEW_TEXT"]!="N" && $arResult["FIELDS"]["PREVIEW_TEXT"]):?>
<p><?=$arResult["FIELDS"]["PREVIEW_TEXT"];unset($arResult["FIELDS"]["PREVIEW_TEXT"]);?></p>
<?endif;?>
<?if($arResult["NAV_RESULT"]):?>
<?if($arParams["DISPLAY_TOP_PAGER"]):?><?=$arResult["NAV_STRING"]?><br /><?endif;?>
<?echo $arResult["NAV_TEXT"];?>
<?if($arParams["DISPLAY_BOTTOM_PAGER"]):?><br /><?=$arResult["NAV_STRING"]?><?endif;?>
<?elseif($arResult["DETAIL_TEXT"] <> ''):?>
<?echo $arResult["DETAIL_TEXT"];?>
<?else:?>
<?echo $arResult["PREVIEW_TEXT"];?>
<?endif?>
<div style="clear:both"></div>
<br />
<?foreach($arResult["FIELDS"] as $code=>$value):
if ('PREVIEW_PICTURE' == $code || 'DETAIL_PICTURE' == $code)
{
?><?=GetMessage("IBLOCK_FIELD_".$code)?>: <?
if (!empty($value) && is_array($value))
{
?><img border="0" src="<?=$value["SRC"]?>" width="<?=$value["WIDTH"]?>" height="<?=$value["HEIGHT"]?>"><?
}
}
else
{
?><?=GetMessage("IBLOCK_FIELD_".$code)?>: <?=$value;?><?
}
?><br />
<?endforeach;
foreach($arResult["DISPLAY_PROPERTIES"] as $pid=>$arProperty):?>
<?=$arProperty["NAME"]?>:
<?if(is_array($arProperty["DISPLAY_VALUE"])):?>
<?=implode(" / ", $arProperty["DISPLAY_VALUE"]);?>
<?else:?>
<?=$arProperty["DISPLAY_VALUE"];?>
<?endif?>
<br />
<?endforeach;
if(array_key_exists("USE_SHARE", $arParams) && $arParams["USE_SHARE"] == "Y")
{
?>
<div class="news-detail-share">
<noindex>
<?
$APPLICATION->IncludeComponent("bitrix:main.share", "", array(
"HANDLERS" => $arParams["SHARE_HANDLERS"],
"PAGE_URL" => $arResult["~DETAIL_PAGE_URL"],
"PAGE_TITLE" => $arResult["~NAME"],
"SHORTEN_URL_LOGIN" => $arParams["SHARE_SHORTEN_URL_LOGIN"],
"SHORTEN_URL_KEY" => $arParams["SHARE_SHORTEN_URL_KEY"],
"HIDE" => $arParams["SHARE_HIDE"],
),
$component,
array("HIDE_ICONS" => "Y")
);
?>
</noindex>
</div>
<?
}
?>
</div>