<?php
/**
 * Template part for displaying individual search result items.
 * It's responsible for displaying each post that appears in search results and archive listings.
 *
 * Loaded by /template-parts/search-results.php.
 *
 * @package MarComm-AUX
 * @since 1.0.0
 */

use WP_AUX\Services\PostService;

/**
 * Use filters to customize post type result card
 * - aux/search_result_card/include_image: Include the post image (true/false)
 * - aux/search_result_card/include_categories: Include the post categories pills (true/false)
 * - aux/search_result_card: Modify the style or content of the card
 */
$card = PostService::searchResultCard(
  apply_filters('aux/search_result_card/include_image', true, get_post()),
  apply_filters('aux/search_result_card/include_categories', false, get_post()),
);

echo $card;
