PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | stripe/views/payments/show.php +31 -5 6.5.3 → trunk View file →
@@ -56,9 +56,13 @@
56 56 </td>
57 57 </tr>
58 58 <?php } ?>
59 59
60 - <?php FrmTransLiteAppHelper::show_in_table( $payment->invoice_id, __( 'Invoice #', 'formidable' ) ); ?>
60 + <?php
61 + if ( isset( $payment->invoice_id ) ) {
62 + FrmTransLiteAppHelper::show_in_table( $payment->invoice_id, __( 'Invoice #', 'formidable' ) );
63 + }
64 + ?>
61 65
62 66 <?php if ( ! empty( $payment->sub_id ) ) { ?>
63 67 <tr>
64 68 <th scope="row"><?php esc_html_e( 'Subscription', 'formidable' ); ?>:</th>
@@ -74,8 +78,15 @@
74 78 <th scope="row"><?php esc_html_e( 'Amount', 'formidable' ); ?>:</th>
75 79 <td><?php echo esc_html( FrmTransLiteAppHelper::formatted_amount( $payment ) ); ?></td>
76 80 </tr>
77 81
82 + <?php if ( isset( $payment->test ) ) { ?>
83 + <tr valign="top">
84 + <th scope="row"><?php esc_html_e( 'Mode', 'formidable' ); ?>:</th>
85 + <td><?php echo esc_html( FrmTransLiteAppHelper::get_test_mode_display_string( $payment ) ); ?></td>
86 + </tr>
87 + <?php } ?>
88 +
78 89 <?php if ( $payment->expire_date && $payment->expire_date !== '0000-00-00' ) { ?>
79 90 <tr>
80 91 <th scope="row"><?php esc_html_e( 'Payment Dates', 'formidable' ); ?>:</th>
81 92 <td>
@@ -120,14 +131,16 @@
120 131 }
121 132 ?>
122 133 </table>
123 134 <br/>
124 - <?php } ?>
135 + <?php
136 + }//end foreach
137 + ?>
125 138
126 139 </td>
127 140 </tr>
128 141 <?php
129 - }
142 + }//end if
130 143 ?>
131 144 </tbody>
132 145 </table>
133 146 </div>
@@ -142,11 +155,24 @@
142 155 <div class="inside">
143 156 <?php FrmTransLitePaymentsController::load_sidebar_actions( $payment ); ?>
144 157 <div class="clear"></div>
145 158
159 + <?php if ( FrmTransLiteAppHelper::payments_submodule_or_paypal_is_active() ) : ?>
160 + <div class="misc-pub-section">
161 + <a href="<?php echo esc_url( admin_url( 'admin.php?page=formidable-payments&action=edit&id=' . $payment->id ) ); ?>" title="<?php esc_attr_e( 'Edit', 'formidable' ); ?>">
162 + <?php
163 + FrmAppHelper::icon_by_class( 'frmfont frm_pencil_icon' );
164 + echo ' ';
165 + esc_html_e( 'Edit Payment', 'formidable' );
166 + ?>
167 + </a>
168 + <div class="clear"></div>
169 + </div>
170 + <?php endif; ?>
171 +
146 172 <div class="misc-pub-section">
147 - <a href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'frm_action', 'destroy' ) ) ); ?>" data-frmverify="<?php echo esc_attr__( 'Permanently delete this payment?', 'formidable' ); ?>" data-frmverify-btn="frm-button-red" title="<?php esc_attr_e( 'Delete', 'formidable' ); ?>">
148 - <?php FrmAppHelper::icon_by_class( 'frm_icon_font frm_delete_icon' ); ?>
173 + <a href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'frm_action', 'destroy' ) ) ); ?>" data-frmverify="<?php esc_attr_e( 'Permanently delete this payment?', 'formidable' ); ?>" data-frmverify-btn="frm-button-red" title="<?php esc_attr_e( 'Delete', 'formidable' ); ?>">
174 + <?php FrmAppHelper::icon_by_class( 'frmfont frm_delete_icon' ); ?>
149 175 <span class="frm_link_label">
150 176 <?php esc_html_e( 'Delete Payment', 'formidable' ); ?>
151 177 </span>
152 178 </a>