Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <? if (!empty($arResult["COURSE"])): ?>
- <div class="forms__block">
- <span class="forms__head"><?= $arResult['PROGRAM_NAME'] ?: $arResult["COURSE"]['NAME'] ?></span>
- <div class="forms__block_area">
- <? if ($arResult['SHOW_TEST_LINK']): ?>
- <? if ($arResult['SHOW_TEST_SELF']): ?>
- <a class="forms__block_link" href="/simulator/" title="">Тесты для самопроверки</a>
- <? endif; ?>
- <? if (!$arResult['SHOW_TEST']): ?>
- <a class="forms__block_link" href="/education/test/" title="">Сдать экзамен</a>
- <? endif; ?>
- <? endif ?>
- <? if (!empty($arItem['CONTENTS'])): ?><span class="form__head">Материалы для лекций</span><? endif; ?>
- </div>
- <? foreach ($arResult['CONTENTS'] as $arItem): ?>
- <? if ($arItem['DEPTH_LEVEL'] == 1 && !empty($arItem['SUB_ITEMS'])): ?>
- <div class="forms__block_area">
- <h2 class="forms__block_title"><strong><?= $arItem['NAME'] ?></strong></h2>
- <? foreach ($arItem['SUB_ITEMS'] as $arSubItem): ?>
- <? if (!$arSubItem['PROPS']['UF_FILE_UNPACKED']
- && !$arSubItem['PROPS']['UF_FILE_SRC']
- && !$arSubItem['PROPS']['UF_LINK']): ?>
- <h3><strong><?= $arSubItem['NAME'] ?></strong></h3>
- <? else: ?>
- <? showLessonItem($arSubItem) ?>
- <? endif ?>
- <? if ($arSubItem['IS_CHILDS']): ?>
- <? foreach ($arSubItem['SUB_ITEMS'] as $arSubSubItem): ?>
- <? if (!$arSubSubItem['PROPS']['UF_FILE_UNPACKED']
- && !$arSubSubItem['PROPS']['UF_FILE_SRC']
- && !$arSubSubItem['PROPS']['UF_LINK']): ?>
- <p><strong><?= $arSubSubItem['NAME'] ?></strong></p>
- <? else: ?>
- <? showLessonItem($arSubSubItem) ?>
- <? endif ?>
- <? if ($arSubItem['IS_CHILDS']): ?>
- <? foreach ($arSubSubItem['SUB_ITEMS'] as $arSubSubSubItem): ?>
- <? if (!$arSubSubSubItem['PROPS']['UF_FILE_UNPACKED']
- && !$arSubSubSubItem['PROPS']['UF_FILE_SRC']
- && !$arSubSubSubItem['PROPS']['UF_LINK']): ?>
- <p><strong><?= $arSubSubSubItem['NAME'] ?></strong></p>
- <? else: ?>
- <? showLessonItem($arSubSubSubItem) ?>
- <? endif ?>
- <? endforeach; ?>
- <? endif; ?>
- <? endforeach; ?>
- <? endif; ?>
- <? endforeach; ?>
- </div>
- <? endif; ?>
- <? endforeach; ?>
- </div>
- <? endif ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement