Код |
---|
<? $db_props = CIBlockElement::GetProperty($arResult["IBLOCK_ID"], $arResult["ID"], Array(), Array("CODE"=>"PHOTO_GALLERY_ID")); if($ar_props = $db_props->Fetch()){ $GLOBALS["PHOTO_GALLERY_ID"] = IntVal($ar_props["VALUE"]); } ?> |
Код |
---|
$APPLICATION->IncludeComponent( "bitrix:photogallery.detail.list", "photoGallary", Array( "IBLOCK_TYPE" => "photo", "IBLOCK_ID" => "4", "BEHAVIOUR" => "SIMPLE", "SECTION_ID" => $GLOBALS["PHOTO_GALLERY_ID"], ... |
Код |
---|
$PHOTO_GALLERY_ID=0; $res=CIBlockElement::GetByID($_REQUEST["ID"]); if($arResult = $res->GetNext()) { $db_props=CIBlockElement::GetProperty($arResult["IBLOCK_ID"], $arResult["ID"], Array(), Array("CODE"=>"PHOTO_GALLERY_ID")); if($ar_props=$db_props->Fetch()){ $PHOTO_GALLERY_ID=IntVal($ar_props["VALUE"]); } } ... $APPLICATION->IncludeComponent("bitrix:photogallery.detail.list", "photoGallary", array( "IBLOCK_TYPE" => "photo", "IBLOCK_ID" => "4", "BEHAVIOUR" => "SIMPLE", "SECTION_ID" => $PHOTO_GALLERY_ID, ... |
Код |
---|
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); ?> <? if (!empty($arResult) && $arResult["SECTION"] && $arResult["SECTION"]["ID"]): ?> <? $i=0; ?> ... |