29 lines
824 B
PHP
Raw Permalink Normal View History

2020-07-12 10:42:13 +00:00
<?php
2020-05-24 08:17:41 +00:00
if (!defined('ABSPATH')) {
die;
} // Cannot access pages directly.
2020-07-12 10:42:13 +00:00
add_action('mep_event_title', 'mep_ev_title');
2020-05-24 08:17:41 +00:00
if (!function_exists('mep_ev_title')) {
2023-07-25 02:16:45 +00:00
function mep_ev_title($event_id)
2020-07-12 10:42:13 +00:00
{
2023-07-25 02:16:45 +00:00
global $post;
2020-07-12 10:42:13 +00:00
ob_start();
require(mep_template_file_path('single/title.php'));
$content = ob_get_clean();
2023-07-25 02:16:45 +00:00
echo apply_filters('mage_event_single_title', $content, $event_id);
}
}
add_action('mep_event_only_title', 'mep_ev_only_title');
if (!function_exists('mep_ev_only_title')) {
function mep_ev_only_title()
{
global $post, $event_id;
ob_start();
require(mep_template_file_path('single/title_only.php'));
$content = ob_get_clean();
echo apply_filters('mage_event_single_title', $content, $event_id);
2020-07-12 10:42:13 +00:00
}
2020-05-24 08:17:41 +00:00
}