<?php if($performer->is_online && $performer->is_online_type == 'free'):?>
	<div class="girl_box preview p_<?php echo $performer->id.'_'.mt_rand(1000,9999)?>">
		<input type="hidden" value="rtmp=<?php echo $this->fms_list[$performer->fms_id]->fms?>&amp;performerId=<?php echo $performer->id?>&amp;redirectLink=<?php echo site_url($performer->nickname)?>" class="get_value">
<?php else:?>
	<div class="girl_box">
<?php endif?>
	<!-- NICKNAME -->
	<div class="nick">
		<a href="<?php echo site_url($performer->nickname)?>">
			<span class="bold red"><?php echo $performer->nickname?></span>
		</a>
	</div>
	<div class="photo">
		<a href="<?php echo site_url($performer->nickname)?>">
			<img src="<?php echo  ( ! (file_exists('uploads/performers/' . $performer->id . '/medium/' . $performer->avatar) && $performer->avatar))? assets_url().'images/poza_tarfa.png':site_url('uploads/performers/' . $performer->id . '/medium/' . $performer->avatar)?>"/>
		</a>
		<span class="icon <?php echo ($performer->is_online)? 'on' : 'off' ?>"></span>
		<?php if($performer->is_online_hd && $performer->is_online):?>
			<span class="icon hd"></span>
		<?php endif?>
			
		<?php $languages = explode(',',$performer->language_code)?>
		<div class="langs">
			<ul>
				<?php foreach($languages as $language):?>
					<li><img src="<?php echo assets_url()?>images/flags/<?php echo strtoupper($language)?>.png" class="lang_icon" alt="<?php echo $language?>" /></li>
				<?php endforeach?>
			</ul>
		</div>
	</div>	
	
	
		
	<div class="buttons">
		<?php $buttons = $this->performers->display_buttons($performer)?>
		<?php foreach($buttons as $key => $button):?>
		<button style="width: 102px;" class="red <?php echo (in_array($key,array('nude_chat','peek_chat','private_chat'))?(($this->user->id > 0)? '" onclick="document.location.href=\''. $button['link'].'\'"':'signup"'): '" onclick="document.location.href=\''. $button['link'].'\'"')?> type="button"><?php echo strtolower($button['name'])?></button>
		<?php endforeach?>				
	</div>
		
</div>