Permalink
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (33 sloc) 1.21 KB
<?php
/**
* Single Access Plan Pricing
* @property obj $plan Instance of the LLMS_Access_Plan
* @author LifterLMS
* @package LifterLMS/Templates
* @since 3.23.0
* @version 3.23.0
*/
defined( 'ABSPATH' ) || exit;
$schedule = $plan->get_schedule_details();
$expires = $plan->get_expiration_details();
?>
<div class="llms-access-plan-pricing regular">
<div class="llms-access-plan-price">
<?php if ( $plan->is_on_sale() ) : ?>
<em class="stamp"><?php _e( 'SALE', 'lifterlms' ); ?></em>
<?php endif; ?>
<span class="price-regular"><?php echo $plan->get_price( 'price' ); ?></span>
<?php if ( $plan->is_on_sale() ) : ?>
<span class="price-sale"><?php echo $plan->get_price( 'sale_price' ); ?></span>
<?php endif; ?>
</div>
<?php if ( $schedule ) : ?>
<div class="llms-access-plan-schedule"><?php echo $schedule; ?></div>
<?php endif; ?>
<?php if ( $expires ) : ?>
<div class="llms-access-plan-expiration"><?php echo $expires; ?></div>
<?php endif; ?>
<?php if ( $plan->is_on_sale() && $plan->get( 'sale_end' ) ) : ?>
<div class="llms-access-plan-sale-end"><?php printf( __( 'sale ends %s', 'lifterlms' ), $plan->get_date( 'sale_end', 'n/j/y' ) ); ?></div>
<?php endif; ?>
</div>