<?php
/**
 * @var $args
 */

$title = esc_html__( 'Sign up', 'masterstudy' );
if ( is_user_logged_in() ) {
	$title = esc_html__( 'My account', 'masterstudy' );
}

if ( ! empty( $args ) ) {
	extract( $args );
}

if ( class_exists( 'STM_LMS_User' ) ) : ?>
	<a href="<?php echo esc_url( add_query_arg( 'mode', 'register', STM_LMS_User::login_page_url() ) ); ?>" class="btn btn-default"
	data-text="<?php echo esc_attr( $title ); ?>">
		<span><?php echo esc_attr( $title ); ?></span>
	</a>
	<?php
endif;
