The site in the footer has navigation links to the pages of the site.
I need to change some links, but I can not find where it is configured from the admin.
Here is the code of the block itself.

<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?> <? if (!empty($arResult)){ $menuLength = count($arResult); if (($menuLength % 2) == 0) { $menuMiddle = ($menuLength / 2); }else{ $menuMiddle = (($menuLength - 1) / 2)+1; } ?><div class="nav inline"> <ul><? for ($i = 0; $i < $menuMiddle ; $i++) { ?><li> <a href="<?=$arResult[$i]["LINK"]?>" title="<?=$arResult[$i]["TEXT"]?>"> <?=$arResult[$i]["TEXT"]?> </a> </li><? } ?> </ul> </div><? ?><nav class="inline"> <ul class="nav_foot inline"><? for ($i = $menuMiddle; $i < $menuLength ; $i++) { ?><li> <a href="<?=$arResult[$i]["LINK"]?>" title="<?=$arResult[$i]["TEXT"]?>"> <?=$arResult[$i]["TEXT"]?> </a> </li><? } ?> </ul> </nav><? } ?> 

those. You need to configure the block with the class nav_foot inline .
Here is the path of this file:

 /local/templates/main/components/bitrix/menu/bottom_menu/template.php 

Where can I find the setting of this unit in the admin panel?

Ps.
added another block that needs to be configured from admin

 <? if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die(); ?> <? if (!empty($arResult)){ ?> <nav class="inline"> <!--1 LEVEL--> <ul class="nav_head inline dropdown"> <?php $previousLevel = 0; foreach ($arResult as $arItem){ ?> <? if ($previousLevel && $arItem["DEPTH_LEVEL"] < $previousLevel){ echo str_repeat("</ul></li>", ($previousLevel - $arItem["DEPTH_LEVEL"])); } ?> <? if ($arItem["IS_PARENT"]){ ?> <? if ($arItem["DEPTH_LEVEL"] == 1){ ?> <li class='dropdown-top'> <a href="<?= $arItem["LINK"] ?>"class="dropdown-top <? if ($arItem["SELECTED"]): ?>dropdown-top<? else: ?>dropdown-top<? endif ?>"><?= $arItem["TEXT"] ?> </a> <!--<li><a href="#" title="О ΠΊΠΎΠΌΠΏΠ°Π½ΠΈΠΈ">О ΠΊΠΎΠΌΠΏΠ°Π½ΠΈΠΈ</a></li>--> <!--<li class="dropdown-top"><a class="dropdown-top" href="all-services.html">Услуги</a>--> <!-- 2 LEVEL--> <ul class="dropdown-inside"> <? }else{ ?> <li <? if ($arItem["SELECTED"]): ?> class="new"<? else:?>class="new"<? endif; ?>><a href="<?= $arItem["LINK"] ?>"><?= $arItem["TEXT"] ?></a> <!--3 LEVEL--> <ul class="two"> <? } ?> <? }else{ ?> <? if ($arItem["PERMISSION"] > "D"){ ?> <? if ($arItem["DEPTH_LEVEL"] == 1){ ?> <li class="level new"> <a href="<?= $arItem["LINK"] ?>"class="<? if ($arItem["SELECTED"]): ?>root-item-selected<? else: ?>root-item<? endif ?>"><?= $arItem["TEXT"] ?></a> </li> <? }else{ ?> <li class="level new" <? if ($arItem["SELECTED"]): ?> class="item-selected"<? endif ?>> <a href="<?= $arItem["LINK"] ?>"><?= $arItem["TEXT"] ?></a> </li> <? } ?> <? }else{ ?> <? if ($arItem["DEPTH_LEVEL"] == 1){ ?> <li> <a href="" class="<? if ($arItem["SELECTED"]): ?>root-item-selected<? else: ?>root-item<? endif ?>"title="<?= GetMessage("MENU_ITEM_ACCESS_DENIED") ?>"><?= $arItem["TEXT"] ?> </a> </li> <? }else{ ?> <li> <a href="" class="denied" title="<?= GetMessage("MENU_ITEM_ACCESS_DENIED") ?>"><?= $arItem["TEXT"] ?> </a> </li> <? } ?> <? } ?> <? $previousLevel = $arItem["DEPTH_LEVEL"]; ?> <!--</ul>--> <!-- END 3 LEVEL--> <!--</li>--> <!--</ul>--> <!-- END 2 LEVEL--> <!--</li>--> <? } ?> <? } ?> <? if ($previousLevel > 1){//close last item tags?> <?= str_repeat("</ul></li>", ($previousLevel - 1)); ?> <? } ?> <? if ($previousLevel > 1){//close last item tags?> <?= str_repeat("</ul></li>", ($previousLevel - 1)); ?> <? } ?> </ul> <!-- END 1 LEVEL--> </nav> <? } ?> 

those. dropdown-inside is nested menu items. Where can they be changed in the admin panel?

  • Turn on the Hermitage ( joxi.ru/823vgE4c655kMm ), then hover the mouse on the menu and voila joxi.ru/GrqGVxKIN66jB2 - Oleksandr
  • @Oleksandr, thank you, I configured one block. But there is a block with a dropdown menu. How to get to these nested menu items? By the method proposed by you, you can only configure top-level items - word
  • dev.1c-bitrix.ru/learning/course/ ... see here. The file must be in the folder that is responsible for the output section. In the admin of the file structure, look. - Oleksandr
  • @Oleksandr, the link you provided is only a description of the file structure. And I need to configure the nested menu items from the admin panel. Please tell me how else can you find these settings? Above I added the code of this block, please tell - word
  • c2n.me/3P1mMjV need to look here? - word

1 answer 1

The bitrix structure assumes that the menu will be in the file structure of the form .{названиС мСню}.menu.php . The menu is hierarchically inherited. Menu files are placed in folders of those sections of the site where you want to display the corresponding menu types. If the corresponding menu file has not been created for this section, the system searches for the file in a higher directory. That is, in your case, in order to edit the menu in the footer, you need to find the .bottom.menu.php file in the structure, and edit it, and to remove the "Site map" drop-down from the /services/ section, you need to edit the /services/.left.menu.php .