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
formidable / stripe / views / payments / show.php

show.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More trunk, at stripe/views/payments/show.php

187 lines 5.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 die( 'You are not allowed to call this page directly.' );
4 }
5
6 ?>
7 <div class="frm_wrap">
8 <div>
9 <?php
10 FrmAppHelper::get_admin_header(
11 array(
12 'label' => __( 'View Payment', 'formidable' ),
13 'form' => $form_id,
14 'hide_title' => true,
15 )
16 );
17 ?>
18
19 <div class="columns-2">
20
21 <div id="post-body-content" class="frm-fields">
22
23 <div class="wrap frm-with-margin frm_form_fields">
24 <div class="postbox">
25
26 <h3 class="hndle">
27 <span><?php esc_html_e( 'Payment', 'formidable' ); ?></span>
28 </h3>
29
30 <table class="frm-alt-table">
31 <tbody>
32 <tr>
33 <th scope="row"><?php esc_html_e( 'Status', 'formidable' ); ?>:</th>
34 <td><?php echo esc_html( FrmTransLiteAppHelper::show_status( FrmTransLiteAppHelper::get_payment_status( $payment ) ) ); ?></td>
35 </tr>
36
37 <tr>
38 <th scope="row"><?php esc_html_e( 'User', 'formidable' ); ?>:</th>
39 <td>
40 <?php echo wp_kses_post( $user_name ); ?>
41 </td>
42 </tr>
43
44 <tr>
45 <th scope="row"><?php esc_html_e( 'Entry', 'formidable' ); ?>:</th>
46 <td>
47 <?php FrmTransLitePaymentsController::show_entry_link( $payment ); ?>
48 </td>
49 </tr>
50
51 <?php if ( ! empty( $payment->receipt_id ) ) { ?>
52 <tr>
53 <th scope="row"><?php esc_html_e( 'Receipt', 'formidable' ); ?>:</th>
54 <td>
55 <?php FrmTransLitePaymentsController::show_receipt_link( $payment ); ?>
56 </td>
57 </tr>
58 <?php } ?>
59
60 <?php
61 if ( isset( $payment->invoice_id ) ) {
62 FrmTransLiteAppHelper::show_in_table( $payment->invoice_id, __( 'Invoice #', 'formidable' ) );
63 }
64 ?>
65
66 <?php if ( ! empty( $payment->sub_id ) ) { ?>
67 <tr>
68 <th scope="row"><?php esc_html_e( 'Subscription', 'formidable' ); ?>:</th>
69 <td>
70 <a href="?page=formidable-payments&amp;action=show&amp;type=subscriptions&amp;id=<?php echo absint( $payment->sub_id ); ?>">
71 <?php esc_html_e( 'View Subscription', 'formidable' ); ?>
72 </a>
73 </td>
74 </tr>
75 <?php } ?>
76
77 <tr>
78 <th scope="row"><?php esc_html_e( 'Amount', 'formidable' ); ?>:</th>
79 <td><?php echo esc_html( FrmTransLiteAppHelper::formatted_amount( $payment ) ); ?></td>
80 </tr>
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
89 <?php if ( $payment->expire_date && $payment->expire_date !== '0000-00-00' ) { ?>
90 <tr>
91 <th scope="row"><?php esc_html_e( 'Payment Dates', 'formidable' ); ?>:</th>
92 <td>
93 <?php echo esc_html( FrmTransLiteAppHelper::format_the_date( $payment->begin_date, $date_format ) ); ?> -
94 <?php echo esc_html( FrmTransLiteAppHelper::format_the_date( $payment->expire_date, $date_format ) ); ?>
95 </td>
96 </tr>
97 <?php } ?>
98
99 <?php
100 if ( $payment->meta_value ) {
101 $payment->meta_value = maybe_unserialize( $payment->meta_value );
102 ?>
103 <tr>
104 <th scope="row"><?php esc_html_e( 'Payment Status Updates', 'formidable' ); ?>:</th>
105 <td>
106
107 <?php
108 foreach ( $payment->meta_value as $k => $metas ) {
109 if ( ! $metas ) {
110 continue;
111 }
112 ?>
113 <table class="widefat" style="border:none;overflow-wrap:break-word;word-break:break-word;">
114 <?php
115 if ( is_array( $metas ) ) {
116 foreach ( $metas as $key => $meta ) {
117 ?>
118 <tr>
119 <th><?php echo esc_html( $key ); ?></th>
120 <td><?php echo esc_html( $meta ); ?></td>
121 </tr>
122 <?php
123 }
124 } else {
125 ?>
126 <tr>
127 <th><?php echo esc_html( $k ); ?></th>
128 <td><?php echo esc_html( $metas ); ?></td>
129 </tr>
130 <?php
131 }
132 ?>
133 </table>
134 <br/>
135 <?php
136 }//end foreach
137 ?>
138
139 </td>
140 </tr>
141 <?php
142 }//end if
143 ?>
144 </tbody>
145 </table>
146 </div>
147 </div>
148 </div>
149
150 <div class="frm-right-panel">
151 <div class="frm_with_icons frm_no_print">
152 <h3>
153 <?php esc_html_e( 'Payment Details', 'formidable' ); ?>
154 </h3>
155 <div class="inside">
156 <?php FrmTransLitePaymentsController::load_sidebar_actions( $payment ); ?>
157 <div class="clear"></div>
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
172 <div class="misc-pub-section">
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' ); ?>
175 <span class="frm_link_label">
176 <?php esc_html_e( 'Delete Payment', 'formidable' ); ?>
177 </span>
178 </a>
179 <div class="clear"></div>
180 </div>
181 </div>
182 </div>
183 </div>
184 </div>
185 </div>
186 </div>
187