2020-03-19 08:34:31 -04:00
|
|
|
<?php
|
2020-05-24 04:17:41 -04:00
|
|
|
if (!defined('ABSPATH')) {
|
|
|
|
die;
|
|
|
|
} // Cannot access pages directly.
|
2020-03-19 08:34:31 -04:00
|
|
|
|
2020-05-24 04:17:41 -04:00
|
|
|
add_action('mep_event_expire_text', 'mep_event_display_expire_text');
|
|
|
|
if (!function_exists('mep_event_display_expire_text')) {
|
|
|
|
function mep_event_display_expire_text()
|
|
|
|
{
|
2020-03-19 08:34:31 -04:00
|
|
|
ob_start();
|
2020-05-24 04:17:41 -04:00
|
|
|
?>
|
2020-03-19 08:34:31 -04:00
|
|
|
<span class=event-expire-btn>
|
2023-08-29 02:17:31 -04:00
|
|
|
<?php echo mep_get_option('mep_event_expired_text', 'label_setting_sec', __('Sorry, this event is expired and no longer available.', 'mage-eventpress')); ?>
|
2020-03-19 08:34:31 -04:00
|
|
|
</span>
|
2020-05-24 04:17:41 -04:00
|
|
|
<?php
|
2020-03-19 08:34:31 -04:00
|
|
|
echo ob_get_clean();
|
2020-05-24 04:17:41 -04:00
|
|
|
}
|
2020-03-19 08:34:31 -04:00
|
|
|
}
|
|
|
|
|
2020-05-24 04:17:41 -04:00
|
|
|
add_action('mep_event_no_seat_text', 'mep_event_display_no_seat_text');
|
|
|
|
if (!function_exists('mep_event_display_no_seat_text')) {
|
|
|
|
function mep_event_display_no_seat_text()
|
|
|
|
{
|
2020-03-19 08:34:31 -04:00
|
|
|
ob_start();
|
2020-05-24 04:17:41 -04:00
|
|
|
?>
|
|
|
|
<span class=event-expire-btn>
|
2023-08-29 02:17:31 -04:00
|
|
|
<?php echo mep_get_option('mep_no_seat_available_text', 'label_setting_sec', __('Sorry, There Are No Seats Available', 'mage-eventpress')); ?>
|
2020-05-24 04:17:41 -04:00
|
|
|
</span>
|
|
|
|
<?php
|
2020-03-19 08:34:31 -04:00
|
|
|
echo ob_get_clean();
|
2020-05-24 04:17:41 -04:00
|
|
|
}
|
|
|
|
}
|