<div class='fullwidth'> <p><?php echo __('Please check the details of your subscription below and click on the relevant button to complete the subscription.', 'membership'); ?> </p> <table class='purchasetable'> <tr> <td class='detailscolumn'> <?php echo $sub->sub_name(); ?> </td> <td class='pricecolumn'> <?php $amount = $sub->sub_pricetext(); if (!empty($amount)) { echo $amount; if (isset($sub->coupon_label) && !empty($sub->coupon_label)) { echo sprintf('<p class="membership_coupon_label">%s</p>', $sub->coupon_label); } } else { $first = $sub->get_level_at_position(1); if (!empty($first)) { $price = $first->level_price; if ($price == 0) { $price = "Free"; } else { $M_options = get_option('membership_options', array()); switch ($M_options['paymentcurrency']) { case "USD":
$subscription = new M_Subscription($sub->id); ?> <div class="pricebox subscriptionbox" id='subscriptionbox-<?php echo $subscription->id; ?> '> <div class="topbar"><span class='title'><?php echo $subscription->sub_name(); ?> </span></div> <div class="pricedetails"><?php echo $subscription->sub_description(); ?> </div> <div class="bottombar"><span class='price'><?php echo $subscription->sub_pricetext(); ?> </span> <?php $pricing = $subscription->get_pricingarray(); if ($pricing) { ?> <span class='link'> <?php if (isset($M_options['formtype']) && $M_options['formtype'] == 'new') { // pop up form $link = admin_url('admin-ajax.php'); $link .= '?action=buynow&subscription=' . (int) $sub->id; $class = 'popover'; } else { // original form