mage-eventpress/inc/template-prts/social_share.php

19 lines
597 B
PHP
Raw Normal View History

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