| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/aecm.ihu.gr/wp-content/themes/educrat/learnpress/pages/ |
Upload File : |
<?php
/**
* Template for displaying main user profile page.
*
* @author ThimPress
* @package Learnpress/Templates
* @version 4.0.0
*/
defined( 'ABSPATH' ) || exit();
if ( ! isset( $profile ) ) {
return;
}
?>
<div id="learn-press-profile" <?php $profile->main_class(); ?>>
<div class="lp-content-area">
<?php
remove_action( 'learn-press/user-profile', LP()->template( 'profile' )->func( 'login_form' ), 10 );
remove_action( 'learn-press/user-profile', LP()->template( 'profile' )->func( 'register_form' ), 15 );
do_action( 'learn-press/user-profile', $profile );
if ( $profile->get_user()->is_guest() ) {
if ( 'yes' === LP()->settings()->get( 'enable_login_profile' ) || 'yes' === LP()->settings()->get( 'enable_register_profile') ) {
?>
<ul class="nav nav-tabs-account" id="myTab" role="tablist">
<?php if ( 'yes' === LP()->settings()->get( 'enable_login_profile' ) ) { ?>
<li class="nav-item" role="presentation">
<button class="nav-link active" id="login-tab" data-bs-toggle="tab" data-bs-target="#login" type="button" role="tab" aria-controls="login" aria-selected="true"><?php echo esc_html__('Login','educrat') ?></button>
</li>
<?php } ?>
<?php if ( 'yes' === LP()->settings()->get( 'enable_register_profile' ) ) { ?>
<li class="nav-item" role="presentation">
<button class="nav-link" id="register-tab" data-bs-toggle="tab" data-bs-target="#register" type="button" role="tab" aria-controls="register" aria-selected="false"><?php echo esc_html__('Register','educrat') ?></button>
</li>
<?php } ?>
</ul>
<div class="tab-content" id="myTabContent">
<div class="tab-pane fade show active" id="login" role="tabpanel" aria-labelledby="login-tab">
<?php
if ( 'yes' === LP()->settings()->get( 'enable_login_profile' ) ) {
learn_press_get_template( 'global/form-login.php' );
}
?>
</div>
<div class="tab-pane fade" id="register" role="tabpanel" aria-labelledby="register-tab">
<?php
if ( 'yes' === LP()->settings()->get( 'enable_register_profile' ) ) {
learn_press_get_template( 'global/form-register.php' );
}
?>
</div>
</div>
<?php
}
} ?>
</div>
</div>