<?php
// no direct access
defined('ABSPATH') || die();

/** @var int $post_id */

$terms = wp_get_post_terms($post_id, LSD_Base::TAX_FEATURE);
if (!count($terms)) return '';

$text = '';
foreach ($terms as $term)
{
    $itemprop = get_term_meta($term->term_id, 'lsd_itemprop', true);
    $text .= '<span class="lsd-single-term" ' . ($itemprop ? ' ' . lsd_schema()->prop($itemprop) : '') . '>' . esc_html($term->name) . '</span> ' . esc_html($this->separator) . ' ';
}
?>
<div><?php echo trim($text, ' ' . $this->separator); ?></div>
