Esempio n. 1
0
    );
    $arItemsBySectionID = CCache::GroupArrayBy(
        $arItems,
        [
            "MULTI" => "Y",
            "GROUP" => ["IBLOCK_SECTION_ID"]
        ]
    );

    if ($arSections)
    {
        $aMenuLinksExt = [];
        aspro::getSectionChilds(
            false,
            $arSections,
            $arSectionsByParentSectionID,
            $arItemsBySectionID,
            $aMenuLinksExt
        );
    } else
    {
        foreach ($arItems as $arItem)
        {
            $aMenuLinksExt[] = [
                $arItem["NAME"],
                $arItem["DETAIL_PAGE_URL"],
                [],
                [
                    "FROM_IBLOCK" => 1,
                    "DEPTH_LEVEL" => 1
                ]