<?php 
global $DIRECTORYPRESS_ADIMN_SETTINGS;
if (has_excerpt() || ($DIRECTORYPRESS_ADIMN_SETTINGS['directorypress_cropped_content_as_excerpt'] && get_post()->post_content !== '')): ?>

<div class="directorypress-field-item directorypress-field-type-<?php echo esc_attr($field->type); ?>">
	<?php if ($field->icon_image || !$field->is_hide_name): ?>
	<span class="field-label">
		<?php if ($field->icon_image): ?>
		<span class="directorypress-field-icon fa fa-lg <?php echo esc_attr($field->icon_image); ?>"></span>
		<?php endif; ?>
		<?php if (directorypress_is_listing_page() && !$listing->is_widget &&!$field->is_hide_name): ?>
		<span class="directorypress-field-title"><?php echo esc_html($field->name); ?>:</span>
		<?php endif; ?>
	</span>
	<?php endif; ?>
	<?php  
		
	?>
	<span class="field-content">
		<?php
			ob_start();
			//the_excerpt_max_charlength($DIRECTORYPRESS_ADIMN_SETTINGS['directorypress_excerpt_length']);
			the_excerpt();
			echo wp_kses_post(ob_get_clean());
		?>
	</span>
</div>
<?php endif; ?>