2020-01-22 07:15:24 -05:00
|
|
|
<?php
|
2020-05-24 04:17:41 -04:00
|
|
|
if (!defined('ABSPATH')) {
|
|
|
|
die;
|
|
|
|
} // Cannot access pages directly.
|
|
|
|
|
2020-01-22 07:15:24 -05:00
|
|
|
add_action('mep_event_social_share', 'mep_ev_social_share');
|
2020-05-24 04:17:41 -04:00
|
|
|
if (!function_exists('mep_ev_social_share')) {
|
2023-07-24 22:16:45 -04:00
|
|
|
function mep_ev_social_share($event_id)
|
2020-05-24 04:17:41 -04:00
|
|
|
{
|
|
|
|
global $post;
|
|
|
|
ob_start();
|
2023-07-24 22:16:45 -04:00
|
|
|
$post_id = $event_id;
|
2020-10-26 07:41:46 -04:00
|
|
|
$event_label = mep_get_option('mep_event_label', 'general_setting_sec', 'Events');
|
2020-07-12 06:42:13 -04:00
|
|
|
require(mep_template_file_path('single/share_btn.php'));
|
2020-05-24 04:17:41 -04:00
|
|
|
$content = ob_get_clean();
|
2023-07-24 22:16:45 -04:00
|
|
|
echo apply_filters('mage_event_single_social_share', $content, $event_id);
|
2020-05-24 04:17:41 -04:00
|
|
|
}
|
2020-01-22 07:15:24 -05:00
|
|
|
}
|