PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.19
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.19
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 / controllers / FrmTransLiteEntriesController.php

FrmTransLiteEntriesController.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.19, at stripe/controllers/FrmTransLiteEntriesController.php

47 lines 1.2 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 class FrmTransLiteEntriesController {
7
8 /**
9 * Include payment details in the entry sidebar.
10 *
11 * @param stdClass $entry
12 * @return void
13 */
14 public static function sidebar_list( $entry ) {
15 if ( FrmTransLiteAppHelper::should_fallback_to_paypal() ) {
16 return;
17 }
18
19 // This line removes PayPal actions from the entries sidebar.
20 remove_action( 'frm_show_entry_sidebar', 'FrmPaymentsController::sidebar_list' );
21 add_action( 'frm_entry_shared_sidebar_middle', __CLASS__ . '::show_sidebar_list' );
22 }
23
24 /**
25 * Show the payment details in the entry sidebar.
26 *
27 * @param stdClass $entry
28 * @return void
29 */
30 public static function show_sidebar_list( $entry ) {
31 $frm_payment = new FrmTransLitePayment();
32 $payments = $frm_payment->get_all_for_entry( $entry->id );
33 if ( ! $payments ) {
34 return;
35 }
36
37 $frm_sub = new FrmTransLiteSubscription();
38 $subscriptions = $frm_sub->get_all_for_entry( $entry->id );
39 $entry_total = 0;
40 $date_format = get_option( 'date_format' );
41
42 FrmTransLiteActionsController::actions_js();
43
44 include FrmTransLiteAppHelper::plugin_path() . '/views/payments/sidebar_list.php';
45 }
46 }
47