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 / sidebar_list.php

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

103 lines 3.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="postbox frm_with_icons">
7 <h3>
8 <span><?php esc_html_e( 'Payment Details', 'formidable' ); ?></span>
9 </h3>
10 <div class="inside">
11 <?php
12 foreach ( $payments as $payment ) {
13 if ( empty( $payment->status ) && ! empty( $payment->completed ) ) {
14 // PayPal fallback.
15 $payment->status = 'complete';
16 }
17
18 if ( $payment->status === 'complete' ) {
19 $entry_total += $payment->amount;
20 $total_payment = $payment;
21 }
22 ?>
23 <div class="misc-pub-section">
24 <?php FrmAppHelper::icon_by_class( 'frmfont frm_calendar_icon' ); ?>
25 <span>
26 <?php esc_html_e( 'Created:', 'formidable' ); ?>
27 </span>
28 <span>
29 <b><a href="?page=formidable-payments&action=show&id=<?php echo absint( $payment->id ); ?>" title="<?php esc_attr_e( 'Show Payment', 'formidable' ); ?>">
30 <?php echo esc_html( FrmAppHelper::get_localized_date( $date_format, $payment->created_at ) ); ?>
31 </a></b>
32 </span>
33 </div>
34 <div class="misc-pub-section">
35 <?php FrmAppHelper::icon_by_class( 'frmfont frm_total_icon' ); ?>
36 <span>
37 <?php esc_html_e( 'Amount:', 'formidable' ); ?>
38 </span>
39 <span>
40 <b><?php echo esc_html( FrmTransLiteAppHelper::formatted_amount( $payment ) ); ?></b>
41 </span>
42 <?php do_action( 'frm_pay_' . $payment->paysys . '_refund_link', $payment ); ?>
43 </div>
44 <div class="misc-pub-section">
45 <?php
46 FrmAppHelper::icon_by_class( 'frmfont ' . ( $payment->status === 'complete' ? 'frm_check1_icon' : 'frm_x_icon' ) );
47 ?>
48 <span>
49 <?php esc_html_e( 'Status:', 'formidable' ); ?>
50 </span>
51 <span>
52 <b><?php echo esc_html( FrmTransLiteAppHelper::show_status( $payment->status ) ); ?></b>
53 </span>
54 </div>
55 <?php
56 }//end foreach
57 ?>
58
59 <?php foreach ( $subscriptions as $sub ) { ?>
60 <div class="misc-pub-section">
61 <?php FrmAppHelper::icon_by_class( 'frmfont frm_repeater_icon' ); ?>
62 <span>
63 <a href="?page=formidable-payments&amp;action=show&amp;type=subscriptions&amp;id=<?php echo absint( $sub->id ); ?>">
64 <?php esc_html_e( 'Subscription:', 'formidable' ); ?>
65 <?php echo esc_html( FrmTransLiteAppHelper::format_billing_cycle( $sub ) ); ?>
66 </a>
67 </span>
68 </div>
69
70 <?php if ( $sub->status === 'active' ) { ?>
71 <div class="misc-pub-section">
72 <?php FrmAppHelper::icon_by_class( 'frmfont frm_x_icon' ); ?>
73 <?php
74 FrmTransLiteSubscriptionsController::show_cancel_link(
75 $sub,
76 array(
77 'cancel' => __( 'Cancel Subscription', 'formidable' ),
78 )
79 );
80 ?>
81 </div>
82 <?php } ?>
83 <?php
84 }//end foreach
85 ?>
86
87 <?php
88 if ( $entry_total ) {
89 $total_payment->amount = $entry_total;
90 ?>
91 <div class="misc-pub-section">
92 <?php FrmAppHelper::icon_by_class( 'frmfont frm_product_icon' ); ?>
93 <span>
94 <?php esc_html_e( 'Total Paid:', 'formidable' ); ?>
95 </span>
96 <span>
97 <b><?php echo esc_html( FrmTransLiteAppHelper::formatted_amount( $total_payment ) ); ?></b>
98 </span>
99 </div>
100 <?php } ?>
101 </div>
102 </div>
103