<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<div class="CatalogMenuHolder">
<div class="CatalogMenu">
<div class="Col">
<?
$i = 0;
$CURRENT_DEPTH=$arResult["SECTION"]["DEPTH_LEVEL"]+1;
$arrTemp = array();
foreach($arResult["SECTIONS"] as $arrDEPTH_LEVEL):
$arrTemp[] = $arrDEPTH_LEVEL["DEPTH_LEVEL"];
endforeach;
$divend = 0;
foreach($arResult["SECTIONS"] as $arSection):
if($arSection["DEPTH_LEVEL"] == 1)
{
$divend = 1;
echo "<div class=\"GroupItem\">";
}
$this->AddEditAction($arSection['ID'], $arSection['EDIT_LINK'], CIBlock::GetArrayByID($arSection["IBLOCK_ID"], "SECTION_EDIT"));
$this->AddDeleteAction($arSection['ID'], $arSection['DELETE_LINK'], CIBlock::GetArrayByID($arSection["IBLOCK_ID"], "SECTION_DELETE"), array("CONFIRM" => GetMessage('CT_BCSL_ELEMENT_DELETE_CONFIRM')));
$CURRENT_DEPTH = $arSection["DEPTH_LEVEL"];
if(($CURRENT_DEPTH == 2)){
echo "<ul class=\"ItemList\">";
}
?>
<?if(is_array($arSection["PICTURE"])):?>
<?if($arSection["PICTURE"]["SRC"] != ""):?>
<div class="ImageHolder">
<img border="0" src="<?=$arSection["PICTURE"]["SRC"]?>" width="185px" height="58px" alt="<?=$arSection["NAME"]?>" title="<?=$arSection["NAME"]?>" />
</div>
<?endif;?>
<?endif;?>
<li><a href="<?=$arSection["SECTION_PAGE_URL"]?>"><?=$arSection["NAME"]?></a>
<?if($arParams["COUNT_ELEMENTS"]):?><?endif;?></li>
<?
if(($CURRENT_DEPTH == 2)){
echo "</ul>";
}
if($arrTemp[$i+1] == 1){
$divend=0;
echo "</div>";
}
$i++;
?>
<?endforeach;?>
</div></div> |