<th><?php _e( 'Actions', 'rcp' ); ?></th> </tr> </thead> <tbody> <tr> <td><?php rcp_print_status(); ?></td> <td><?php echo rcp_get_subscription(); ?></td> <td><?php echo rcp_get_expiration_date(); ?></td> <td> <?php if( ( ( rcp_is_expired( $user_ID ) || ! rcp_is_recurring( $user_ID ) ) || rcp_get_status( $user_ID ) == 'cancelled' ) && rcp_subscription_upgrade_possible( $user_ID ) ) { echo '<a href="' . esc_url( get_permalink( $rcp_options['registration_page'] ) ) . '" title="' . __( 'Renew your subscription', 'rcp' ) . '" class="rcp_sub_details_renew">' . __( 'Renew your subscription', 'rcp' ) . '</a>'; } elseif( ! rcp_is_active( $user_ID ) && rcp_subscription_upgrade_possible( $user_ID ) ) { echo '<a href="' . esc_url( get_permalink( $rcp_options['registration_page'] ) ) . '" title="' . __( 'Upgrade your subscription', 'rcp' ) . '" class="rcp_sub_details_renew">' . __( 'Upgrade your subscription', 'rcp' ) . '</a>'; } elseif( rcp_is_active( $user_ID ) && rcp_can_member_cancel( $user_ID ) ) { echo '<a href="' . rcp_get_member_cancel_url( $user_ID ) . '" title="' . __( 'Cancel your subscription', 'rcp' ) . '">' . __( 'Cancel your subscription', 'rcp' ) . '</a>'; } do_action( 'rcp_subscription_details_action_links' ); ?> </td> </tr> </tbody> </table> <table class="rcp-table" id="rcp-payment-history"> <thead> <tr> <th><?php _e( 'Invoice #', 'rcp' ); ?></th> <th><?php _e( 'Subscription', 'rcp' ); ?></th> <th><?php _e( 'Payment Method', 'rcp' ); ?></th> <th><?php _e( 'Amount', 'rcp' ); ?></th> <th><?php _e( 'Date', 'rcp' ); ?></th>
</td> <td><?php echo rcp_get_expiration_date(); ?> </td> <td> <?php $links = array(); if (rcp_can_member_renew()) { $links[] = apply_filters('rcp_subscription_details_action_renew', '<a href="' . esc_url(get_permalink($rcp_options['registration_page'])) . '" title="' . __('Renew your subscription', 'rcp') . '" class="rcp_sub_details_renew">' . __('Renew your subscription', 'rcp') . '</a>', $user_ID); } if (rcp_subscription_upgrade_possible($user_ID)) { $links[] = apply_filters('rcp_subscription_details_action_upgrade', '<a href="' . esc_url(get_permalink($rcp_options['registration_page'])) . '" title="' . __('Upgrade or change your subscription', 'rcp') . '" class="rcp_sub_details_renew">' . __('Upgrade or change your subscription', 'rcp') . '</a>', $user_ID); } if (rcp_is_active($user_ID) && rcp_can_member_cancel($user_ID)) { $links[] = apply_filters('rcp_subscription_details_action_cancel', '<a href="' . rcp_get_member_cancel_url($user_ID) . '" title="' . __('Cancel your subscription', 'rcp') . '">' . __('Cancel your subscription', 'rcp') . '</a>', $user_ID); } echo apply_filters('rcp_subscription_details_actions', implode('<br/>', $links), $links, $user_ID); do_action('rcp_subscription_details_action_links', $links); ?> </td> </tr> </tbody> </table> <table class="rcp-table" id="rcp-payment-history"> <thead> <tr> <th><?php _e('Invoice #', 'rcp'); ?> </th>