| Server IP : 77.68.64.20 / Your IP : 216.73.216.30 Web Server : Apache System : Linux hp3-wp-1011484.hostingp3.local 3.10.0-1160.139.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Nov 3 13:30:41 UTC 2025 x86_64 User : csh2668037 ( 2112352) PHP Version : 7.4.33 Disable Function : shell_exec,exec,system,popen,set_time_limit MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/domains/vol3/223/3261223/user/htdocs/wp-content/themes/workscout/ |
Upload File : |
<?php
/**
* Template Name: Page Template Login
*
*
* The "Template Name:" bit above allows this to be selectable
* from a dropdown menu on the edit page screen.
*
* @package WordPress
* @subpackage workscout
* @since workscout 1.0
*/
$action = !empty( $_GET['action'] ) && ($_GET['action'] == 'register' || $_GET['action'] == 'forgot' || $_GET['action'] == 'resetpass') ? $_GET['action'] : 'login';
$header_old = Kirki::get_option('workscout','pp_old_header');
$header_type = (Kirki::get_option('workscout','pp_old_header') == true) ? 'old' : '' ;
$header_type = apply_filters('workscout_header_type',$header_type);
get_header($header_type); ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php $header_image = get_post_meta($post->ID, 'pp_job_header_bg', TRUE);
if(!empty($header_image)) { ?>
<div id="titlebar" class="photo-bg single" style="background: url('<?php echo esc_url($header_image); ?>')">
<?php } else { ?>
<div id="titlebar" class="single">
<?php } ?>
<div class="container">
<div class="sixteen columns">
<h1><?php the_title(); ?></h1>
<?php if(function_exists('bcn_display')) { ?>
<nav id="breadcrumbs" xmlns:v="http://rdf.data-vocabulary.org/#">
<ul>
<?php bcn_display_list(); ?>
</ul>
</nav>
<?php } ?>
</div>
</div>
</div>
<?php
$layout = get_post_meta($post->ID, 'pp_sidebar_layout', true);
if(empty($layout)) { $layout = 'full-width'; }
$class = ($layout !="full-width") ? "eleven columns" : "sixteen columns" ;
?>
<div class="container <?php echo esc_attr($layout); ?>">
<article id="post-<?php the_ID(); ?>" <?php post_class($class); ?>>
<?php if ( !empty($_GET['change_password']) ): ?>
<div class="columns six my-account woo-login-form">
<h2><?php _e('Change password','workscout') ?></h2>
<p><?php _e('You may change your password if you are so inclined.','workscout') ?></p>
<?php echo do_shortcode('[workscout_old_password_form]'); ?>
</div>
<?php endif; ?>
<?php if(isset($_GET['password-reset']) && $_GET['password-reset'] == 'true') { ?>
<div class="notification closeable success">
<p><?php _e('Password changed successfully', 'workscout'); ?></p>
</div>
<?php } ?>
<?php global $current_user;
if ( is_user_logged_in() ) {
$user = wp_get_current_user(); ?>
<div class="myaccount_user">
<?php printf( __( '<h2 class="my-acc-h2">Hello <strong>%1$s</strong></h2>', 'workscout' ), $current_user->display_name ); ?>
<a class="button gray" href="<?php echo wp_logout_url('index.php'); ?>"><?php esc_html_e('Log out','workscout') ?></a>
<a class="button gray" href="?change_password=1"><i class="fa fa-user"></i> <?php esc_html_e('Change password','workscout') ?></a>
<?php
if ( in_array( 'candidate', (array) $user->roles ) || in_array( 'administrator', (array) $user->roles ) ) {
$candidate_dashboard_page_id = get_option( 'resume_manager_candidate_dashboard_page_id' );
printf( __( '<a href="%s" class="button margin-bottom-15"><i class="fa fa-user"></i> Candidate Dashboard </a>', 'workscout' ), get_permalink($candidate_dashboard_page_id));
}
if (in_array( 'employer', (array) $user->roles ) || in_array( 'administrator', (array) $user->roles ) ) {
$employer_dashboard_page_id = get_option( 'job_manager_job_dashboard_page_id' );
printf( __( '<a href="%s" class="button margin-bottom-15"><i class="fa fa-user"></i> Employer Dashboard </a>', 'workscout' ), get_permalink($employer_dashboard_page_id) );
} ?>
</div>
<?php } else { ?>
<div id="login-register-password" class="columns six my-account woo-login-form">
<?php do_action('workscout-before-login'); ?>
<ul class="tabs-nav-o" id="login-tabs">
<li class="<?php if ($action == 'login') echo 'active'; ?>"><a href="#tab-login"><?php esc_html_e('Login','workscout'); ?></a></li>
<?php if ( get_option( 'users_can_register' ) ) { ?>
<li class="<?php if ($action == 'register') echo 'active'; ?>"><a href="#tab-register"><?php esc_html_e('Register','workscout'); ?></a></li>
<?php } ?>
</ul>
<div id="tab-login" class="tab-content" style="<?php if ( $action != 'login' ) echo 'display:none' ?>">
<?php echo do_shortcode('[workscout_old_login_form]'); ?>
</div>
<?php if ( get_option( 'users_can_register' ) ) { ?>
<div id="tab-register" class="tab-content" style="<?php if ( $action != 'register' ) echo 'display:none' ?>">
<?php echo do_shortcode('[workscout_old_register_form]'); ?>
</div>
<?php } ?>
</div>
<?php } ?>
<?php
the_content();
?>
</article>
</div>
<?php endwhile; // End of the loop. ?>
<?php get_footer(); ?>