%PDF- %PDF-
Mini Shell

Mini Shell

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

<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>								
										<!--<a href="">Профиль</a>
										<a href="">Сообщения</a>
										<a href="">Статистика</a>
										<a href="account.html">Настройки</a>
										<a href="">Выйти</a>-->							
	<?
	global $USER;
	
	$usrid = $USER->GetID();
	 	if (CModule::IncludeModule("iblock")) $mod=true;
	$res = CIBlockElement::GetList(Array(),array("ACTIVE"=>"Y", "PROPERTY_ACCOUNT"=>intval($usrid), "IBLOCK_ID"=>2, ">DETAIL_PICTURE"=>0, ">PROPERTY_REGION"=>0, ">PROPERTY_BDATE"=>0, ">PROPERTY_SEX"=>0, "PROPERTY_TYPE_P4"=>ProfileTypeHelper::getTypesP4(), 'SHOW_NEW'=>'Y'),
			false, false, array("ID", "IBLOCK_ID", "CODE", "DETAIL_PICTURE", "PROPERTY_ACCOUNT"));
		if ($ar_res = $res->GetNext()){
			$disable = false;
		} else {
			$disable = true;
		};
	?>
<?if (!empty($arResult)):?>
	<div class="tab-content">
		<div id="accountmenu" class="left tab-pane">
			<?
			foreach($arResult as $arItem):
				if($arParams["MAX_LEVEL"] == 1 && $arItem["DEPTH_LEVEL"] > 1) 
					continue;
			?>
				<?if($arItem["SELECTED"]):?>
					<a href="<?=$arItem["LINK"]?>" class="selected" style="<?=(strpos($arItem["LINK"], 'profile.php') > 0 || strpos($arItem["LINK"], 'astings') > 0) ? ($disable ? 'display: none;' : '') : '';?>"><?=$arItem["TEXT"]?></a>
				<?else:?>
					<a href="<?=$arItem["LINK"]?>" style="<?=(strpos($arItem["LINK"], 'profile.php') > 0 || strpos($arItem["LINK"], 'astings') > 0) ? ($disable ? 'display: none;' : '') : '';?>"><?=$arItem["TEXT"]?></a>
				<?endif?>			
			<?endforeach?>
		</div>
	</div>
<?endif?>

Zerion Mini Shell 1.0