| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
die( 'You are not allowed to call this page directly.' ); |
| 4 |
} |
| 5 |
?> |
| 6 |
<div class="misc-pub-section"> |
| 7 |
<?php FrmAppHelper::icon_by_class( 'frm_icon_font frm_calendar_icon' ); ?> |
| 8 |
<span id="timestamp" class="frm_link_label"> |
| 9 |
<?php |
| 10 |
printf( |
| 11 |
// translators: %s: Timestamp. |
| 12 |
esc_html__( 'Created on: %1$s', 'formidable' ), |
| 13 |
'<b>' . esc_html( FrmAppHelper::get_localized_date( $date_format, $subscription->created_at ) ) . '</b>' |
| 14 |
); |
| 15 |
?> |
| 16 |
</span> |
| 17 |
</div> |
| 18 |
|
| 19 |
<?php foreach ( $payments as $payment ) { ?> |
| 20 |
<div class="misc-pub-section"> |
| 21 |
<?php |
| 22 |
FrmAppHelper::icon_by_class( 'frm_icon_font ' . ( $payment->status === 'complete' ? 'frm_check1_icon' : 'frm_x_icon' ) ); |
| 23 |
?> |
| 24 |
<span class="frm_link_label"> |
| 25 |
<?php echo esc_html( FrmTransLiteAppHelper::formatted_amount( $payment ) ); ?> |
| 26 |
<a href="?page=formidable-payments&action=show&id=<?php echo absint( $payment->id ); ?>"> |
| 27 |
<?php echo esc_html( FrmAppHelper::get_localized_date( $date_format, $payment->created_at ) ); ?> |
| 28 |
</a> |
| 29 |
</span> |
| 30 |
</div> |
| 31 |
<?php } ?> |
| 32 |
|
| 33 |
<?php if ( $subscription->status === 'active' ) { ?> |
| 34 |
<div class="misc-pub-section"> |
| 35 |
<?php FrmAppHelper::icon_by_class( 'frm_icon_font frm_x_icon' ); ?> |
| 36 |
<span class="frm_link_label"> |
| 37 |
<?php |
| 38 |
FrmTransLiteSubscriptionsController::show_cancel_link( |
| 39 |
$subscription, |
| 40 |
array( |
| 41 |
'cancel' => __( 'Cancel Subscription', 'formidable' ), |
| 42 |
) |
| 43 |
); |
| 44 |
?> |
| 45 |
</span> |
| 46 |
</div> |
| 47 |
<?php } ?> |
| 48 |
|