| 1 |
<?php |
| 2 |
if (!defined( 'ABSPATH' ) )exit('No Such File'); |
| 3 |
wpsp_header(); |
| 4 |
if( is_user_logged_in() ) { |
| 5 |
wpsp_topbar(); |
| 6 |
wpsp_sidebar(); |
| 7 |
wpsp_body_start(); |
| 8 |
$proversion = wpsp_check_pro_version( 'wpsp_payment_version' ); |
| 9 |
$proclass = !$proversion['status'] && isset( $proversion['class'] )? $proversion['class'] : ''; |
| 10 |
$protitle = !$proversion['status'] && isset( $proversion['message'] )? $proversion['message'] : ''; |
| 11 |
|
| 12 |
?> |
| 13 |
<section class="content-header"> |
| 14 |
<h1><?php esc_html_e( 'Payment', 'wpschoolpress' ); ?></h1> |
| 15 |
<ol class="breadcrumb"> |
| 16 |
<li><a href="<?php echo esc_url(site_url('sch-dashboard')); ?> "><i class="fa fa-dashboard"></i> <?php esc_html_e( 'Dashboard', 'wpschoolpress' ); ?></a></li> |
| 17 |
<li><a href="<?php echo esc_url(site_url('sch-payment')); ?>"><?php esc_html_e( 'Payment', 'wpschoolpress' ); ?></a></li> |
| 18 |
</ol> |
| 19 |
</section> |
| 20 |
|
| 21 |
|
| 22 |
<?php |
| 23 |
if( !empty( $protitle ) ){ |
| 24 |
echo '<h2>To use this feature upgrade to pro version</h2>'; |
| 25 |
} else { |
| 26 |
do_action( 'wpsp_payment_service' ); |
| 27 |
} |
| 28 |
wpsp_body_end(); |
| 29 |
wpsp_footer(); |
| 30 |
} |
| 31 |
else{ |
| 32 |
//Include Login Section |
| 33 |
include_once( WPSP_PLUGIN_PATH .'/includes/wpsp-login.php'); |
| 34 |
} |
| 35 |
?> |
| 36 |
|