Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/tutor-pro/addons/pmpro/views/pmpro-pricing.php
Keine Baseline-Datei – Diff nur gegen leer.
1
-
1
+
<?php
2
+
/**
3
+
* PM PRO pricing view
4
+
*
5
+
* @package TutorPro\Addons
6
+
* @subpackage PmPro\Views
7
+
* @author Themeum <support@themeum.com>
8
+
* @link https://themeum.com
9
+
* @since 1.3.5
10
+
*/
11
+
12
+
?>
13
+
<form class="tutor-pmpro-single-course-pricing">
14
+
<h3 class="tutor-fs-5 tutor-fw-bold tutor-mb-16"><?php esc_html_e( 'Pick a plan', 'tutor-pro' ); ?></h3>
15
+
16
+
<?php
17
+
// Tutor Setting for PM Pro.
18
+
$no_commitment = tutor_utils()->get_option( 'pmpro_no_commitment_message' );
19
+
$money_back = tutor_utils()->get_option( 'pmpro_moneyback_day' );
20
+
$money_back = ( is_numeric( $money_back ) && $money_back > 0 ) ? $money_back : false;
21
+
22
+
$level_page_id = apply_filters( 'tutor_pmpro_checkout_page_id', pmpro_getOption( 'checkout_page_id' ) );
23
+
$level_page_url = get_the_permalink( $level_page_id );
24
+
25
+
if ( $no_commitment ) {
26
+
?>
27
+
<small><?php esc_html_e( $no_commitment, 'tutor-pro' );//phpcs:ignore ?></small>
28
+
<?php
29
+
}
30
+
31
+
$level_count = count( $required_levels );
32
+
?>
33
+
34
+
35
+
<?php foreach ( $required_levels as $level ) : ?>
36
+
<?php
37
+
$level_id = 'tutor_pmpro_level_radio_' . $level->id;
38
+
$highlight = get_pmpro_membership_level_meta( $level->id, 'tutor_pmpro_level_highlight', true );
39
+
?>
40
+
<input type="radio" name="tutor_pmpro_level_radio" id="<?php echo esc_attr( $level_id ); ?>" <?php echo ( $highlight || 1 === $level_count ) ? 'checked="checked"' : ''; ?>/>
41
+
<label for="<?php echo esc_attr( $level_id ); ?>" class="<?php echo $highlight ? 'tutor-pmpro-level-highlight' : ''; ?>">
42
+
<div class="tutor-pmpro-level-header tutor-d-flex tutor-align-center tutor-justify-between">
43
+
<div class="tutor-d-flex tutor-align-center">
44
+
<span class="tutor-form-check-input tutor-form-check-input-radio" area-hidden="true"></span>
45
+
<span class="tutor-fs-5 tutor-fw-medium tutor-ml-12"><?php echo esc_html( $level->name ); ?></span>
46
+
</div>
47
+
48
+
<div class="tutor-fs-4">
49
+
<?php
50
+
$billing_amount = round( $level->billing_amount );
51
+
$initial_payment = round( $level->initial_payment );
52
+
53
+
$billing_text = '<span class="tutor-fw-bold">';
54
+
'left' === $currency_position ? $billing_text .= $currency_symbol : 0;
55
+
$billing_text .= ( $level->cycle_period ? $billing_amount : $initial_payment );
56
+
'right' === $currency_position ? $billing_text .= $currency_symbol : 0;
57
+
$billing_text .= '</span>';
58
+
59
+
$billing_text .= ( $level->cycle_period ? '<span class="tutor-fs-7 tutor-color-muted">/' . substr( $level->cycle_period, 0, 2 ) . '</span>' : '' );
60
+
61
+
echo $billing_text;//phpcs:ignore
62
+
?>
63
+
64
+
</div>
65
+
</div>
66
+
67
+
<div class="tutor-pmpro-level-desc tutor-mt-20">
68
+
<div class="tutor-fs-6 tutor-color-muted tutor-mb-20"><?php echo wp_kses_post( $level->description ); ?></div>
69
+
70
+
<a href="<?php echo esc_url( $level_page_url ) . '?level=' . esc_attr( $level->id ); ?>" class="tutor-btn tutor-btn-primary tutor-btn-lg tutor-btn-block">
71
+
<?php esc_html_e( 'Buy Now', 'tutor-pro' ); ?>
72
+
</a>
73
+
74
+
<?php if ( $money_back ) : ?>
75
+
<div class="tutor-fs-6 tutor-color-muted tutor-mt-16 tutor-text-center">
76
+
<?php
77
+
printf(
78
+
// translators: %d: Number of days.
79
+
esc_html__( '%d-day money-back guarantee', 'tutor-pro' ), $money_back ); //phpcs:ignore?>
80
+
</div>
81
+
<?php endif; ?>
82
+
</div>
83
+
</label>
84
+
<?php endforeach; ?>
85
+
</form>
86
+