filtered_total_entries(); $is_filter_enabled = $this->is_filter_box_enabled(); $live_payment_count = $this->has_live_payments( $this->form_id ); if ( $this->has_payments() && $count <= 100 ) { $notice_args = array( 'submissions' => $live_payment_count, 'min_submissions' => 0, 'notice' => /* Translators: 1. Opening tag, 2. closing tag. */ sprintf( esc_html__( "%1\$sCongratulations!%2\$s You have started collecting live payments on this form - that's awesome. We have spent countless hours developing this free plugin for you, and we would really appreciate it if you could drop us a rating on wp.org to help us spread the word and boost our motivation.", 'forminator' ), '', '' ), 'type' => 'one_payment', ); } else { $notice_args = array( 'submissions' => $count, ); } if ( $this->error_message() ) { // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Output is already escaped. echo Forminator_Admin::get_red_notice( esc_html( $this->error_message() ) ); } if ( $this->total_entries() > 0 ) : $is_registration = ! empty( $this->model->settings['form-type'] ) && 'registration' === $this->model->settings['form-type']; ?>
paginate(); ?>
template( 'common/entries/prompt', $notice_args ); ?> template( 'common/entries/filter', array( 'fields' => $this->model->get_real_fields(), 'is_registration' => $is_registration, ) ); ?>
template( 'common/entries/active_filters_row' ); ?> entries_header(); ?> entries_iterator() as $entries ) { $entry_id = $entries['id']; $db_entry_id = isset( $entries['entry_id'] ) ? $entries['entry_id'] : ''; $draft_id = isset( $entries['draft_id'] ) ? $entries['draft_id'] : ''; $draft_link = isset( $entries['draft_link'] ) ? $entries['draft_link'] : ''; $summary = $entries['summary']; $summary_items = $summary['items']; $detail = $entries['detail']; $detail_items = $detail['items']; // Fix for Stripe OCS and Stripe old field to show only one. $detail_items_with_type = array_filter( $detail_items, function ( $item ) { return isset( $item['type'] ); } ); $item_types = wp_list_pluck( $detail_items_with_type, 'type' ); if ( in_array( 'stripe-ocs', $item_types, true ) && in_array( 'stripe', $item_types, true ) ) { $stripe_key = array_search( 'stripe', $item_types, true ); unset( $detail_items[ $stripe_key ] ); } $accordion_classes = ''; // Open entry tab by received submission link. if ( $url_entry_id === (int) $db_entry_id ) { $accordion_classes .= ' sui-accordion-item--open'; } if ( ! empty( $draft_id ) ) { $accordion_classes .= ' sui-default draft-entry'; } $pending_approval = ! empty( $entries['activation_key'] ); if ( $pending_approval ) { $accordion_classes .= ' sui-warning'; } ?> $summary_item ) { ?> '; echo '
'; echo '
' . esc_html( wp_strip_all_tags( $summary_item['value'] ) ) . '
'; echo ''; echo ''; echo ''; echo '
'; echo ''; elseif ( 1 === $summary_item['colspan'] ) : echo ''; else : echo ''; endif; ?> '; echo '' . sprintf( /* translators: %s: number of other field. */ esc_html__( '+ %s other fields', 'forminator' ), esc_html( $summary['num_fields_left'] ) ) . ''; echo ''; echo ''; echo ''; echo ''; } ?>
'; echo ''; echo esc_html( $db_entry_id ); if ( 'draft' === $entries['status'] ) { echo '' . esc_html__( 'Draft', 'forminator' ) . ''; } elseif ( 'abandoned' === $entries['status'] ) { echo '' . esc_html__( 'Abandoned', 'forminator' ) . ''; } if ( $pending_approval ) { echo '  ' . '' . '' . esc_html__( 'Pending Approval', 'forminator' ) . '' . ''; } echo ''; echo '
' . esc_html( wp_strip_all_tags( $summary_item['value'] ) ) . '
'; echo ''; echo '