ID, '_lottery_winners'); $users_names = ''; $use_answers = wc_lottery_use_answers( $post->ID ); $use_ticket_numbers = get_post_meta( $post->ID , '_lottery_use_pick_numbers', true ); $answers = maybe_unserialize( get_post_meta( $post->ID, '_lottery_pn_answers', true ) ); $date_format = get_option( 'date_format' ); $time_format = get_option( 'time_format' ); ?>
is_closed() === TRUE ) and ($product->is_started() === TRUE )) : ?> get_lottery_fail_reason() == '1'){ _e('Lottery failed because there were no minimal number of participants', 'wc-lottery-pn'); } else{ if ( count($lottery_winers) > 1 ) { ?>: 0) { $users_names .= ""; $users_names .= get_userdata($winner_id)->display_name; $users_names .= ", "; } } ?>
display_name ?>
| is_closed() === TRUE ) ) :?> | |||
|---|---|---|---|
| ".date_i18n( $date_format, strtotime( $history_value->date )).' '.date_i18n( $time_format, strtotime( $history_value->date ))." | "; echo $history_value->userid ? "". ( get_userdata($history_value->userid) ? get_userdata($history_value->userid)->display_name : '' ) ." | " : ''; if ($use_ticket_numbers === 'yes' ) { echo "" . apply_filters( 'ticket_number_display_html' , $history_value->ticket_number, $product ) . " | "; } if ( $use_answers === true && 'yes' === get_option('lottery_answers_in_history', 'yes') && ( 'no' === get_option('lottery_answers_in_history_finished', 'no') || $product->is_closed() === TRUE ) ){ $answer = isset( $answers[$history_value->answer_id] ) ? $answers[$history_value->answer_id] : false; echo ""; echo $answer !== true ? $answer['text'] : "" ; echo " | "; } echo "
| '.date_i18n( $date_format, strtotime( $lottery_dates_to )).' '.date_i18n( $time_format, strtotime( $lottery_dates_to )).' | '; echo ''; echo apply_filters('auction_history_started_text', __( 'Lottery started', 'wc-lottery-pn' ), $product); echo ' | '; } else { echo ''.date_i18n( $date_format, strtotime( $lottery_dates_to )).' '.date_i18n( $time_format, strtotime( $lottery_dates_to )).' | '; echo ''; echo apply_filters('auction_history_starting_text', __( 'Lottery starting', 'wc-lottery-pn' ), $product); echo ' | ' ; }?>