default: ?> <table class="ib-edu-membership"> <tbody> <tr> <th style="width:30%;"><?php _e('Membership Level', 'ibeducator'); ?> </th> <td> <?php echo esc_html($membership->post_title); ?> <div> <?php echo ib_edu_purchase_link(array('object_id' => $membership->ID, 'type' => 'membership', 'class' => array('extend-membership'), 'text' => __('Extend', 'ibeducator'))); ?> </div> </td> </tr> <tr> <th><?php _e('Status', 'ibeducator'); ?> </th> <td> <?php $statuses = $ms->get_statuses(); if (!empty($user_membership['status']) && array_key_exists($user_membership['status'], $statuses)) { echo esc_html($statuses[$user_membership['status']]);
</a></h2> </header> <section class="price"> <?php echo $ms->format_price($membership_meta['price'], $membership_meta['duration'], $membership_meta['period']); ?> </section> <section class="membership-summary"> <?php $continue_reading = get_theme_mod('continue_reading') ? sprintf(__('Continue reading %s', 'ib-educator'), the_title('<span class="screen-reader-text">', '</span>', false)) : ''; the_content($continue_reading); ?> </section> <footer class="membership-options post-meta"> <?php if (function_exists('ib_edu_purchase_link')) { echo ib_edu_purchase_link(array('object_id' => $membership_id, 'type' => 'membership')); } else { $purchase_url = ib_edu_get_endpoint_url('edu-membership', $membership_id, get_permalink(ib_edu_page_id('payment'))); echo '<a href="' . esc_url($purchase_url) . '">' . __('Purchase', 'ibeducator') . '</a>'; } ?> <?php echo educator_share('menu'); ?> </footer> </article>
default: ?> <table class="ib-edu-membership"> <tbody> <tr> <th style="width:30%;"><?php esc_html_e('Membership Level', 'training'); ?> </th> <td> <?php echo esc_html($membership->post_title); ?> <div> <?php echo ib_edu_purchase_link(array('object_id' => $membership->ID, 'type' => 'membership', 'class' => array('extend-membership'), 'text' => esc_html__('Extend', 'training'))); ?> </div> </td> </tr> <tr> <th><?php esc_html_e('Status', 'training'); ?> </th> <td> <?php $statuses = $ms->get_statuses(); if (!empty($user_membership['status']) && array_key_exists($user_membership['status'], $statuses)) { echo esc_html($statuses[$user_membership['status']]);