<div class="iump-view-user-wrapp-temp2 iump-color-scheme-<?php echo $data['color_scheme_class'];?>">

<?php $custom_css = ''; ?>
	<?php if ($data['color_scheme_class'] !=''){
		$custom_css .= "
		.iump-view-user-wrapp-temp2 .ihc-levels-wrapper .ihc-top-level-box{
			background-color:#".$data['color_scheme_class'].";
			border-color:#".$data['color_scheme_class'].";
			color:#fff;
		}
		.iump-view-user-wrapp-temp2 .ihc-middle-side .iump-username{
			color:#".$data['color_scheme_class'].";
		}
		.iump-view-user-wrapp-temp2 .ihc-left-side .ihc-user-page-avatar img{
			border-color:#".$data['color_scheme_class'].";
		}
		.iump-view-user-wrapp-temp2 .ihc-levels-wrapper{
			background-color: transparent;
		}";
	 } ?>
	<?php if (empty($data['banner'])){
		$custom_css .= "
		.iump-view-user-wrapp-temp2 .ihc-user-page-top-ap-wrapper{
			padding-top:10px;
		}
		.iump-view-user-wrapp-temp2 .ihc-left-side{
			margin-bottom:0px;
		}
		.iump-view-user-wrapp-temp2 .ihc-left-side .ihc-user-page-details{
			top:0px;
		}";
	} ?>
	<?php if (!empty($data['banner'])){
					if($data['banner'] !='default'){
						$custom_css .= "
						.iump-view-user-wrapp-temp2 .ihc-user-page-top-ap-background{
							background-image:url('".$data['banner']."') !important;
						}";
					}
				} ?>
	<?php if ( !empty( $data['ihc_badges_on'] ) && !empty( $data['ihc_badge_custom_css'] ) ):?>
			<?php $custom_css .= stripslashes( $data['ihc_badge_custom_css'] );?>
	<?php endif;?>
	<?php

	wp_register_style( 'dummy-handle', false );
	wp_enqueue_style( 'dummy-handle' );
	wp_add_inline_style( 'dummy-handle', $custom_css );

	 ?>
	<div class="ihc-user-page-top-ap-wrapper">
	<?php if (!empty($data['avatar'])):?>
		<div class="ihc-left-side">
			<div class="ihc-user-page-details">
				<div class="ihc-user-page-avatar"><img src="<?php echo $data['avatar'];?>" class="ihc-member-photo"></div>
			</div>
		</div>
	<?php endif;?>

	<div class="ihc-middle-side">
		<?php if (!empty($data['flag'])):?>
			<div class="iump-flag"><?php echo $data['flag'];?></div>
		<?php endif;?>
		<?php if (!empty($data['name'])):?>
			<div class="iump-name"><?php echo $data['name'];?></div>
		<?php endif;?>
		<?php if (!empty($data['username'])):?>
			<div class="iump-username">- <?php echo $data['username'];?> -</div>
		<?php endif;?>

		<div class="iump-addiional-elements">

		<?php if (!empty($data['email'])):?>
			<span class="iump-element iump-email"><?php echo $data['email'];?></span>
		<?php endif;?>

		<?php if (!empty($data['website'])):?>
			<span class="iump-element iump-website"><a href="<?php echo $data['website'];?>" target="_blank"><?php echo $data['website'];?></a></span>
		<?php endif;?>

		<?php if (!empty($data['since'])):?>
			<span class="iump-element iump-since"><?php echo esc_html__('Joined ', 'ihc');?><?php echo $data['since'];?></span>
		<?php endif;?>
		</div>

	</div>
	<div class="ihc-clear"></div>
	<?php if (!empty($data['banner'])): ?>
	<div class="ihc-user-page-top-ap-background"></div>
	<?php endif;?>

	</div>
	<?php if (!empty($data['levels'])):?>
		<div class="ihc-levels-wrapper">
			<?php foreach ($data['levels'] as $lid => $level):?>
				<?php
					$is_expired_class = '';
					if (isset($level['expire_time']) && indeed_get_unixtimestamp_with_timezone()>strtotime( $level['expire_time'] ) ){
						$is_expired_class = 'ihc-expired-level';
					}
				?>
				<?php if (!empty($data['ihc_badges_on']) && !empty($level['badge_image_url'])):?>
					<div class="iump-badge-wrapper <?php echo $is_expired_class;?>"><img src="<?php echo $level['badge_image_url'];?>" class="iump-badge" title="<?php echo $level['label'];?>" /></div>
				<?php elseif (!empty($level['label'])):?>
					<div class="ihc-top-level-box <?php echo $is_expired_class;?>"><?php echo $level['label'];?></div>
				<?php endif;?>
			<?php endforeach;?>
		</div>
	<?php endif;?>



	<?php if (!empty($data['custom_fields'])):?>
		<div class="iump-user-fields-list">
			<?php foreach ($data['custom_fields'] as $label => $value):?>
				<?php if ($value!=''):?>
					<div class="iump-user-field"><div class="iump-label"><?php echo $label; ?></div> <div class="iump-value"> <?php echo $value;?> </div><div class="ihc-clear"></div></div>

				<?php endif;?>
			<?php endforeach;?>
		</div>
	<?php endif;?>

	<?php if (!empty($data['content'])):?>
		<div class="iump-additional-content">
			<?php echo $data['content'];?>
		</div>
	<?php endif;?>

</div>
