<?php

use ThemeAtelier\EventfulForElementor\Frontend\Helpers\EventfulForElementorFunctions;

if (! defined('ABSPATH')) exit; // Exit if accessed directly

/**
 * Thumb taxonomy
 *
 * This template can be overridden by copying it to yourtheme/eventful-por-elementor/templates/item/over-thumb-taxonomy.php
 *
 * @package    eventful-for-elementor
 * @subpackage eventful-for-elementor/src/Frontend/templates
 */

?>
<div class="eventful__item--archive <?php echo esc_attr($post_thumb_meta_position); ?>">
    <?php
    $term = EventfulForElementorFunctions::efpe_post_thumb_taxonomy($taxonomy_name, $post->ID);
    $start_tag      = $is_table ? '<td class="efpe-post-meta">' : '<li>';
    $end_tag        = $is_table ? '</td>' : '</li>';
    $meta_tag_start = apply_filters('efpe_post_meta_html_tag_start', $start_tag);
    $meta_tag_end   = apply_filters('efpe_post_meta_html_tag_end', $end_tag);

    if (!empty($term)) {
        echo wp_kses_post($meta_tag_start);
        echo wp_kses_post($term);
        echo wp_kses_post($meta_tag_end);
    }
    ?>
</div>