post_title; ?>
|
name ) ?>:
stock;
$sold = ! empty ( $ticket->qty_sold ) ? $ticket->qty_sold : 0;
$pending = '';
if ( $ticket->qty_pending > 0 ) {
$pending = sprintf( _n( '(%d awaiting review)', '(%d awaiting review)', 'tribe-events-calendar', $ticket->qty_pending ), (int) $ticket->qty_pending );
}
if ( empty( $stock ) && $stock !== 0 ) {
echo sprintf( __( "Sold %d %s", 'tribe-events-calendar' ), esc_html( $sold ), $pending );
}
else {
echo sprintf( __( "Sold %d of %d %s", 'tribe-events-calendar' ), esc_html( $sold ), esc_html( $sold + $stock ), $pending );
}
echo ' ';
$total_sold += $sold;
$total_pending += $ticket->qty_pending;
$total_completed = $total_sold - $total_pending;
endforeach; ?>
|
0 ) : ?>
|