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

33 lines
1.0 KiB
PHP
Raw Normal View History

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>
2021-10-31 07:01:04 -04:00
<?php echo mep_get_option('mep_event_expired_text', 'label_setting_sec') ? mep_get_option('mep_event_expired_text', 'label_setting_sec') : esc_html__('Sorry, Event Expired', '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>
2022-08-04 00:45:25 -04:00
<?php echo mep_get_option('mep_no_seat_available_text', 'label_setting_sec') ? mep_get_option('mep_no_seat_available_text', 'label_setting_sec') : esc_html__('No Seat Availables', '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
}
}