| @@ -108,9 +108,9 @@ | ||
| 108 | 108 | /** |
| 109 | 109 | * @return void |
| 110 | 110 | */ |
| 111 | 111 | public function no_items() { |
| 112 | - esc_html_e( 'No payments found.', 'formidable' ); | |
| 112 | + include FrmTransLiteAppHelper::plugin_path() . '/views/lists/no-payments.php'; | |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | /** |
| 116 | 116 | * @return array |
| @@ -138,9 +138,9 @@ | ||
| 138 | 138 | |
| 139 | 139 | foreach ( $statuses as $status => $name ) { |
| 140 | 140 | $class = $status === $type ? ' class="current"' : ''; |
| 141 | 141 | |
| 142 | - if ( $counts[ $status ] || 'published' === $status ) { | |
| 142 | + if ( $counts[ $status ] || 'payments' === $status ) { | |
| 143 | 143 | // phpcs:disable Generic.WhiteSpace.ScopeIndent |
| 144 | 144 | $links[ $status ] = '<a href="' . esc_url( '?page=formidable-payments&trans_type=' . $status ) . '" ' . $class . '>' |
| 145 | 145 | // translators: %1$s: Transaction type (Payments or Subscriptions), %2$s: Span start tag, %3$s: Count, %4$s: Span close tag. |
| 146 | 146 | . sprintf( esc_html__( '%1$s %2$s(%3$s)%4$s', 'formidable' ), esc_html( $name ), '<span class="count">', number_format_i18n( $counts[ $status ] ), '</span>' ) |
| @@ -172,8 +172,9 @@ | ||
| 172 | 172 | 'receipt_id' => 'receipt_id', |
| 173 | 173 | 'sub_id' => 'sub_id', |
| 174 | 174 | 'begin_date' => 'begin_date', |
| 175 | 175 | 'expire_date' => 'expire_date', |
| 176 | + 'paysys' => 'paysys', | |
| 176 | 177 | 'status' => 'status', |
| 177 | 178 | 'next_bill_date' => 'next_bill_date', |
| 178 | 179 | ); |
| 179 | 180 | } |
| @@ -620,15 +621,8 @@ | ||
| 620 | 621 | */ |
| 621 | 622 | private function get_paysys_column( $item, $atts ) { |
| 622 | 623 | if ( isset( $atts['gateways'][ $item->paysys ] ) ) { |
| 623 | 624 | return $atts['gateways'][ $item->paysys ]['label']; |
| 624 | - } | |
| 625 | - | |
| 626 | - if ( 'paypal' === $item->paysys ) { | |
| 627 | - // The PayPal add-on does not use a gateway. | |
| 628 | - // This should be safe to remove once we release | |
| 629 | - // PayPal Commerce in Lite. | |
| 630 | - return 'PayPal'; | |
| 631 | 625 | } |
| 632 | 626 | |
| 633 | 627 | return $item->paysys; |
| 634 | 628 | } |