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

24 lines
528 B
PHP
Raw Permalink Normal View History

2020-05-24 04:17:41 -04:00
<?php
if (!defined('ABSPATH')) {
die;
} // Cannot access pages directly.
2020-01-22 07:15:24 -05:00
2020-05-24 04:17:41 -04:00
add_action('mep_event_add_calender', 'mep_ev_calender');
if (!function_exists('mep_ev_calender')) {
function mep_ev_calender($event_id)
{
2020-01-22 07:15:24 -05:00
?>
2020-05-24 04:17:41 -04:00
<div class="calender-url">
<?php
/**
* Action Hook mep_before_add_calendar_button & mep_after_add_calendar_button
*/
do_action('mep_before_add_calendar_button');
2021-11-01 03:26:30 -04:00
echo mep_add_to_google_calender_link($event_id);
2020-05-24 04:17:41 -04:00
do_action('mep_after_add_calendar_button');
?>
</div>
2020-01-22 07:15:24 -05:00
<?php
2020-05-24 04:17:41 -04:00
}
2020-01-22 07:15:24 -05:00
}