%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/bitrix/www/bitrix/templates/UB/components/bitrix/menu/profile.header/
Upload File :
Create Path :
Current File : /home/bitrix/www/bitrix/templates/UB/components/bitrix/menu/profile.header/template.php

<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
if (!empty($arResult)) {
	
$isProfilePresent = $arResult['PROFILE_PRESENT']=='Y';
$section = $arResult['SECTION'];

unset($arResult['PROFILE_PRESENT']);
unset($arResult['SECTION']);

?>
		<ul class="dropdown-menu">
<?

	foreach($arResult as $key => $arItem):

		if ($arParams["MAX_LEVEL"] == 1 && $arItem["DEPTH_LEVEL"] > 1) continue;

		if ($arItem['PARAMS']['ONLY_PROFILE']=='Y' && !$isProfilePresent)
			continue;
		
		$title = (isset($arItem['PARAMS']['ALIASES'])&&isset($arItem['PARAMS']['ALIASES'][$section]))?
			$arItem['PARAMS']['ALIASES'][$section]:$arItem["TEXT"];
	
		?><li><a href="<?=$arItem["LINK"]?>" rel="nofollow"><i class="fa <?=$arItem['PARAMS']['ICON']?> fa-fw"></i> <?=$title?></a></li><?		
		
		if ($arItem['PARAMS']['LINE']=='Y'):?>
			<li class="divider"></li>
		<?endif;
	
	endforeach?>

	</ul>
<?}?>

Zerion Mini Shell 1.0