-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathform-credits-purchase.php
80 lines (56 loc) · 2.12 KB
/
form-credits-purchase.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
/**
* Purchase credits form template
*
* @package HireBee\Templates
* @since 1.0.0
*/
?>
<div class="section-head">
<h1><?php _e( 'Select a Plan', APP_TD ); ?></h1>
</div>
<form id="purchase-credits" method="POST" class="custom main" action="<?php echo esc_url( appthemes_get_step_url() ); ?>">
<fieldset>
<?php if ( ! empty( $plans ) ) : ?>
<?php foreach ( $plans as $key => $plan ) : ?>
<fieldset>
<div class="plan">
<div class="content">
<div class="row">
<div class="title large-12 columns">
<h3><?php echo $plan['title']; ?></h3>
</div>
</div>
<div class="row">
<div class="description large-12 columns">
<p class="description"><?php echo apply_filters( 'the_content', $plan['description'] ); ?></p>
</div>
</div>
</div>
<div class="row">
<div class="price-box large-12 columns">
<input name="plan" type="radio" <?php echo ( $key == 0 ) ? 'checked="checked"' : ''; ?> value="<?php echo esc_attr( $plan['post']->ID ); ?>" />
<span class="price">
<?php printf( '%d %s / %s', $plan['credits'], _n( 'Credit', 'Credits', $plan['credits'], APP_TD ), appthemes_get_price( $plan['price'] ) ); ?>
</span>
</div>
</div>
</div>
</fieldset>
<?php endforeach; ?>
<?php else : ?>
<em><?php _e( 'No plans are currently available.', APP_TD ); ?></em>
<?php endif; ?>
</fieldset>
<?php do_action( 'hrb_credits_form_purchase' ); ?>
<fieldset>
<?php do_action( 'appthemes_purchase_fields', HRB_PROPOSAL_PLAN_PTYPE ); ?>
<input type="hidden" name="action" value="purchase-credits">
<?php if ( $previous_step = appthemes_get_previous_step() ) { ?>
<input class="button secondary previous-step" previous-step-url="<?php echo esc_url( appthemes_get_step_url( $previous_step ) ); ?>" value="<?php esc_attr_e( '← Back', APP_TD ); ?>" type="submit" />
<?php } ?>
<?php if ( ! empty( $plans ) ) { ?>
<input class="button" type="submit" value="<?php echo esc_attr( $bt_step_text ); ?>" />
<?php } ?>
</fieldset>
</form>