Проблема была решена следующим способом:
| Код |
|---|
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<? $hasEls = 0 ?>
<?foreach($arResult["SECTIONS"] as $arSection):?>
<? if (count($arSection["ITEMS"]) > 0) { ?>
<? $hasEls = 1 ?>
<? } ?>
<?endforeach?>
<? if ($hasEls > 0) { ?>
<div class="other-profiles">
<div class="title">Другие размеры</div>
<?foreach($arResult["SECTIONS"] as $arSection):?>
<?foreach($arSection["ITEMS"] as $arElement):?>
<?
$this->AddEditAction($arElement['ID'], $arElement['EDIT_LINK'], CIBlock::GetArrayByID($arParams["IBLOCK_ID"], "ELEMENT_EDIT"));
$this->AddDeleteAction($arElement['ID'], $arElement['DELETE_LINK'], CIBlock::GetArrayByID($arParams["IBLOCK_ID"], "ELEMENT_DELETE"), array("CONFIRM" => GetMessage('CT_BCST_ELEMENT_DELETE_CONFIRM')));
?>
<div class="items" id="<?=$this->GetEditAreaId($arElement['ID']);?>">
<div class="image" st yle="background-image:url(<?=$arElement["DETAIL_PICTURE"]["SRC"]?>);"></div>
<a href="<?=$arElement["DETAIL_PAGE_URL"]?>"><?=$arSection["NAME"]?> /<br><?=$arElement["NAME"]?><br><?=$arElement["PROPERTIES"]["width"]["VALUE"]?>х<?=$arElement["PROPERTIES"]["height"]["VALUE"]?></a>
<div class="price"><?=$arElement["PROPERTIES"]["price"]["VALUE"]?> руб</div>
</div>
<?endforeach; // foreach($arResult["ITEMS"] as $arElement):?>
<?endforeach?>
<div class="clear"></div>
</div>
</div>
<? } ?> |
beverly hills, that's where i want to be, livin' in beverly hills, beverly hills, rolling like a celebrity, livin' in beverly hills