<?php
/**
 * @var $uid
 * @var $is_offer
 * @var $response
 */
?>

<div class="ui basic notpadded segment cf review-item feedback-answer">

	<!-- Review User Avatar -->
	<div class="picture">

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

	</div>

	<div class="text-content">

		<!-- Review Username and Rating -->
		<div class="cf mb10 mt10">

			<!-- Review Username -->
			<a class="left mr10" href="<?php echo wpj_get_user_profile_link( $uid ); ?>" title="">

				<strong>

					<?php echo wpj_get_user_display_type( $uid );

					if ( $is_offer ) { ?>

						<span class="fw400 color-686e77"><?php _e( '(custom job)', 'wpjobster' ); ?></span>

					<?php } ?>

				</strong>

				<div class="grey-time"><?php echo wpj_date( get_option( 'date_format' ), $response->datemade ); ?></div>

			</a>

			<!-- Review Rating -->
			<span class="right user-profile-rating">

				<?php wpj_display_rating_stars( $response->grade ); ?>

			</span>

		</div>

		<!-- Review content -->
		<p class="review-content">

			<?php echo wpj_apply_filter_to_string( wpj_stripslashes( str_replace( '\n', '<br>', $response->reason ) ), false, 'userprofiles' ); ?>

		</p>

	</div>

</div>