PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.5
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.5
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 / subscriptions / show.php

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

136 lines 4.0 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 <div class="frm_wrap">
7 <div>
8 <?php
9 FrmAppHelper::get_admin_header(
10 array(
11 'label' => __( 'View Subscription', 'formidable' ),
12 'form' => $form_id,
13 'hide_title' => true,
14 )
15 );
16 ?>
17
18 <div class="columns-2">
19
20 <div id="post-body-content" class="frm-fields">
21
22 <div class="wrap frm-with-margin frm_form_fields">
23 <div class="postbox">
24
25 <h3 class="hndle">
26 <span><?php esc_html_e( 'Subscription', 'formidable' ); ?></span>
27 </h3>
28
29 <table class="frm-alt-table">
30 <tbody>
31 <tr>
32 <th scope="row"><?php esc_html_e( 'Status', 'formidable' ); ?>:</th>
33 <td><?php echo esc_html( FrmTransLiteAppHelper::show_status( $subscription->status ) ); ?></td>
34 </tr>
35
36 <tr>
37 <th scope="row"><?php esc_html_e( 'User', 'formidable' ); ?>:</th>
38 <td>
39 <?php echo wp_kses_post( $user_name ); ?>
40 </td>
41 </tr>
42
43 <tr>
44 <th scope="row"><?php esc_html_e( 'Entry', 'formidable' ); ?>:</th>
45 <td>
46 <?php FrmTransLitePaymentsController::show_entry_link( $payment ); ?>
47 </td>
48 </tr>
49
50 <?php if ( ! empty( $subscription->sub_id ) ) { ?>
51 <tr>
52 <th scope="row"><?php esc_html_e( 'Receipt', 'formidable' ); ?>:</th>
53 <td>
54 <?php FrmTransLiteSubscriptionsController::show_receipt_link( $subscription ); ?>
55 </td>
56 </tr>
57 <?php } ?>
58
59 <tr>
60 <th scope="row"><?php esc_html_e( 'Billing Cycle', 'formidable' ); ?>:</th>
61 <td><?php echo esc_html( FrmTransLiteAppHelper::format_billing_cycle( $subscription ) ); ?></td>
62 </tr>
63
64 <tr>
65 <th scope="row"><?php esc_html_e( 'Next Payment Date', 'formidable' ); ?>:</th>
66 <td>
67 <?php echo esc_html( FrmTransLiteAppHelper::format_the_date( $subscription->next_bill_date, $date_format ) ); ?>
68 </td>
69 </tr>
70
71 <?php FrmTransLiteAppHelper::show_in_table( $subscription->fail_count, __( 'Fail Count', 'formidable' ) ); ?>
72
73 <?php
74 if ( $subscription->meta_value ) {
75 $subscription->meta_value = maybe_unserialize( $subscription->meta_value );
76 ?>
77 <tr>
78 <th scope="row"><?php esc_html_e( 'Payment Status Updates', 'formidable' ); ?>:</th>
79 <td>
80
81 <?php foreach ( $subscription->meta_value as $k => $metas ) { ?>
82 <table class="widefat" style="border:none;">
83 <?php
84
85 foreach ( $metas as $key => $meta ) {
86 ?>
87 <tr>
88 <th><?php echo esc_html( $key ); ?></th>
89 <td><?php echo esc_html( $meta ); ?></td>
90 </tr>
91 <?php
92 }
93 ?>
94 </table>
95 <br/>
96 <?php } ?>
97
98 </td>
99 </tr>
100 <?php
101 }
102 ?>
103 </tbody>
104 </table>
105 </div>
106 </div>
107 </div>
108
109 <div class="frm-right-panel">
110 <div class="frm_with_icons frm_no_print">
111 <h3><?php esc_html_e( 'Subscription Details', 'formidable' ); ?></h3>
112 <div class="inside">
113 <div class="submitbox">
114 <div id="minor-publishing" style="border:none;">
115 <div class="misc-pub-section">
116 <?php FrmTransLiteSubscriptionsController::load_sidebar_actions( $subscription ); ?>
117 <div class="clear"></div>
118 </div>
119 </div>
120
121 <div id="misc-pub-section">
122 <a class="submitdelete deletion" href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'frm_action', 'destroy' ) ) ); ?>" data-frmverify="<?php echo esc_attr__( 'Permanently delete this subscription?', 'formidable' ); ?>" data-frmverify-btn="frm-button-red" title="<?php esc_attr_e( 'Delete', 'formidable' ); ?>">
123 <?php FrmAppHelper::icon_by_class( 'frm_icon_font frm_delete_icon' ); ?>
124 <span class="frm_link_label">
125 <?php esc_html_e( 'Delete Subscription', 'formidable' ); ?>
126 </span>
127 </a>
128 </div>
129 </div>
130 </div>
131 </div>
132 </div>
133 </div>
134 </div>
135 </div>
136