<?php
$ask = 0;
$owner = '';
if($boom['password'] != ''){
	$ask = 1;
}
if($boom['description'] == ''){
	$description = $lang['room_no_description'];
}
else {
	$description = $boom['description'];
}
if($data['user_id'] == $boom['room_creator']){
	$owner = 'owner ';
}
?>
<div class="room_element room_elem blisting" onclick="switchRoom(<?php echo $boom['room_id']; ?>, <?php echo $ask; ?>, <?php echo $boom['access']; ?>);">
	<div class="bcell_mid room_icon_wrap">
		<img class="room_icon lazy" data-src="<?php echo myRoomIcon($boom['room_icon']); ?>" src="<?php echo imgLoader(); ?>"/>
	</div>
	<div class="bcell_mid room_content">
		<div class="room_name roomtitle">
			<?php echo $boom['room_name']; ?>
		</div>
		<div class="room_description roomdesc sub_text">
			<?php echo $description; ?>
		</div>
		<div class="btable">
			<?php if(roomPass($boom['password'])){ ?>
			<div class="roomopt bcell_mid">
				<?php echo roomLock($boom['password'], 'room_tag'); ?>
			</div>
			<?php } ?>
			<div class="roomopt bcell_mid">
				<?php echo roomAccess($boom['access'], 'room_tag'); ?>
			</div>
			<?php if(pinnedRoom($boom)){ ?>
			<div class="roomopt bcell_mid">
				<?php echo roomPinned($boom, 'room_tag'); ?>
			</div>
			<?php } ?>
			<div class="bcell_mid room_count hpad3 rtl_aleft">
				<?php echo $boom['room_count']; ?>
			</div>
			<div class="roomopt bcell_mid">
				<img  class="room_tag" src="default_images/rooms/user_count.svg">
			</div>
		</div>
	</div>
</div>
