<?php
/**
 * @var $read_more_enabled
 * @var $desc_excerpt
 * @var $desc_content
 * @var $pid
 * @var $title
 */
?>

<div class="post-job-description">

	<?php if ( $read_more_enabled == 'yes' ) { ?>

		<div class="job-excerpt"><?php echo $desc_excerpt; ?></div>

		<div class="job-post" style="display: none;"><?php echo $desc_content; ?></div>

		<?php if ( trim( strip_tags( $desc_excerpt ) ) != trim( strip_tags( $desc_content ) ) ) { ?>

			<a class="ui horizontal label read-more-desc"><?php _e( 'Read More', 'wpjobster' ); ?></a>

		<?php }

	} else {
		echo $desc_content;

	} ?>

</div>

<?php do_action( 'wpj_after_single_job_description_content', $pid, $title );