<div id="pm_<?php echo $row->id; ?>" class="js-tpm-holder pm-list-holder<?php echo $read_class . $custom_offer_class . $active_class . ' js-' . $row->other; ?>">

	<a class="link-to-pm cf" data-user-id="<?php echo $row->other; ?>" href="<?php echo wpj_get_pm_link( $user1_id ) . $url_query_args; ?>">

		<div class="pm-avatar message-user-avatar">

			<?php wpj_display_user_photo( array( 'uid' => $user1_id, 'width' => 50, 'height' => 50, 'with_level_image' => false, 'with_link' => false ) );

			if ( is_object( $user1_data ) && isset( $user1_data->ID ) ) { wpj_display_user_status_icon( $user1_data->ID, 'yes_with_icon' ); } ?>

		</div>

		<div class="pm-content">

			<h4 class="pm-user overflow-ellipsis"><?php echo $user1_name; ?></h4>

			<div class="pm-date"><?php echo wpj_date( wpj_time_or_date_format( $row->datemade ), $row->datemade ); ?></div>

			<div class="pm-excerpt">

				<div class="overflow-ellipsis">

				<?php if ( $custom_offer_class ) { ?>

					<i class="tags icon"></i>

				<?php } ?>

				<span class="js-tpm-text message-excerpt"><?php echo wpj_stripslashes( $pm_content ); ?></span>

				</div>

			</div>

		</div>

		<div class="pm-settings" <?php if ( $row->id === 0 ) echo 'style="display: none;"'; ?>>

			<div class="ui floating right pointing dropdown ">

				<i class="cog icon"></i>

				<div class="menu">

					<!-- Unarchive -->
					<div class="item js-pm-action-unarchive <?php if ( ! wpj_is_conversation_archived( $user1_id ) ) echo 'disabled'; ?>" data-uid="<?php echo $user1_id; ?>">
						<i class="mail icon"></i>
						<?php _e( 'Unarchive', 'wpjobster' ); ?>
					</div>

					<!-- Archive -->
					<div class="item js-pm-action-archive <?php if ( wpj_is_conversation_archived( $user1_id ) ) echo 'disabled'; ?>" data-uid="<?php echo $user1_id; ?>">
						<i class="archive icon"></i>
						<?php _e( 'Archive', 'wpjobster' ); ?>
					</div>

					<!-- Delete -->
					<div class="item js-pm-action-delete" data-uid="<?php echo $user1_id; ?>">
						<i class="trash icon"></i>
						<?php _e( 'Delete', 'wpjobster' ); ?>
					</div>

				</div>

			</div>

		</div>

	</a>

</div>