| Server IP : 104.21.28.229 / Your IP : 216.73.216.142 Web Server : Apache/2 System : Linux hosting8537.lvs 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : mienphi ( 1014) PHP Version : 8.2.14 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/mienphi/public_html/wp-content/themes/eduma/wp-events-manager/shortcodes/ |
Upload File : |
<?php
/**
* @Author: ducnvtt
* @Date : 2016-02-19 09:11:59
* @Last Modified by: leehld
* @Last Modified time: 2017-03-02 17:22:53
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$query = new WP_Query( $args );
wpems_print_notices();
if ( ! is_user_logged_in() ) {
/* translators: 1: link to login page. */
printf( __( 'You are not <a href="%1$s">login</a>', 'eduma' ), thim_get_login_page_url() );
return;
}
if ( $query->have_posts() ) : ?>
<table class="list-book-event">
<thead>
<th class="id"><?php esc_html_e( 'ID', 'eduma' ); ?></th>
<th><?php esc_html_e( 'Events', 'eduma' ); ?></th>
<th class="type"><?php esc_html_e( 'Type', 'eduma' ); ?></th>
<th><?php esc_html_e( 'Cost', 'eduma' ); ?></th>
<th class="quantity"><?php esc_html_e( 'Quantity', 'eduma' ); ?></th>
<th class="method"><?php esc_html_e( 'Method', 'eduma' ); ?></th>
<th><?php esc_html_e( 'Status', 'eduma' ); ?></th>
</thead>
<tbody>
<?php foreach ( $query->posts as $post ) : ?>
<?php $booking = WPEMS_Booking::instance( $post->ID ); ?>
<tr>
<td class="id"><?php printf( '%s', wpems_format_ID( $post->ID ) ); ?></td>
<td><?php printf( '<a href="%s">%s</a>', get_the_permalink( $booking->event_id ), get_the_title( $booking->event_id ) ); ?></td>
<td class="type"><?php printf( '%s', floatval( $booking->cost ) == 0 ? __( 'Free', 'eduma' ) : __( 'Cost', 'eduma' ) ); ?></td>
<td><?php printf( '%s', wpems_format_price( floatval( $booking->price ), $booking->currency ) ); ?></td>
<td class="quantity"><?php printf( '%s', $booking->qty ); ?></td>
<td class="method"><?php printf( '%s', $booking->payment_id ? wpems_get_payment_title( $booking->payment_id ) : __( 'No payment.', 'eduma' ) ); ?></td>
<td><?php printf( '%s', wpems_booking_status( $booking->ID ) ); ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php else : ?>
<div class="message message-info"><?php esc_html_e( 'No records.', 'eduma' ); ?></div>
<?php
endif;