<?php /* @var $controller_name string */ /* @var $current_action string */ ?> <div class="path-line"> <a href="#" class="path-element">Админ Панель</a> <a href="#" class="path-element"><?php echo AdminFunctions::GetControllerNameById($controller_name); ?> </a> <?php $name_part = AdminFunctions::GetMenuItemNameByActionName($current_action); ?> <?php if (!is_array($name_part)) { ?> <a href="#" class="path-element-last"><?php echo AdminFunctions::GetMenuItemNameByActionName($current_action); ?> </a> <?php } else { ?> <?php foreach ($name_part as $index => $value) { ?> <?php $class = "path-element"; if ($index == count($name_part) - 1) {