2020-05-24 04:17:41 -04:00
|
|
|
<?php
|
|
|
|
if (!defined('ABSPATH')) {
|
|
|
|
die;
|
|
|
|
} // Cannot access pages directly.
|
|
|
|
|
|
|
|
add_action('mep_event_thumbnail', 'mep_thumbnail');
|
|
|
|
if (!function_exists('mep_thumbnail')) {
|
|
|
|
function mep_thumbnail()
|
|
|
|
{
|
2023-07-24 22:16:45 -04:00
|
|
|
global $post, $event_id;
|
2020-05-24 04:17:41 -04:00
|
|
|
ob_start();
|
2020-07-12 06:42:13 -04:00
|
|
|
require(mep_template_file_path('single/thumbnail.php'));
|
2020-05-24 04:17:41 -04:00
|
|
|
$content = ob_get_clean();
|
|
|
|
echo apply_filters('mage_event_single_thumbnail', $content, $post->ID);
|
|
|
|
}
|
2020-07-12 06:42:13 -04:00
|
|
|
}
|