Пример #1
0
<?php

// Don't load directly
if (!defined('ABSPATH')) {
    die('-1');
}
$header_id = get_post_meta(get_the_ID(), $this->image_header_field, true);
$header_id = !empty($header_id) ? $header_id : '';
$header_img = '';
if (!empty($header_id)) {
    $header_img = wp_get_attachment_image($header_id, 'full');
}
$modules = Tribe__Events__Tickets__Tickets::modules();
?>

<table id="event_tickets" class="eventtable">
	<?php 
if (get_post_meta(get_the_ID(), '_EventOrigin', true) === 'community-events') {
    ?>
		<tr>
			<td colspan="2" class="tribe_sectionheader updated">
				<p class="error-message"><?php 
    _e('This event was created using Community Events. Are you sure you want to sell tickets for it?', 'tribe-events-calendar');
    ?>
</p>
			</td>
		</tr>
	<?php 
}
?>
	<tr>