예제 #1
0
function ajax_logout()
{
    $response = array();
    wp_clear_auth_cookie();
    wp_logout();
    $response['status'] = true;
    $response['redirect'] = site_url() . ae_current_lang();
    $response['msg'] = __("Logout success!", 'functions');
    wp_send_json($response);
}
예제 #2
0
}
?>
">
        <div class="number-profile-wrapper">
            <div class="container">
                <div class="row">
                    <?php 
if (get_user_meta($user_ID, 'interview_status', true) == 'unconfirm') {
    ?>
                        <div class="col-md-12" style="margin-top: 25px">
                            <div class="alert alert-warning" role="alert">
                                <?php 
    _e('Your profile is not activated. To activate you profile you need to pass the interview - ', 'projects-page');
    ?>
                                <a href="<?php 
    echo ae_current_lang();
    ?>
/interview"><?php 
    _e('Interview details', 'projects-page');
    ?>
</a>
                                <?php 
    if (get_option('interview_system') == 'false') {
        ?>
                                    <button id="activate_without_interview"
                                            class="btn btn-info"><?php 
        _e('Activate without interview', 'projects-page');
        ?>
                                    </button>
                                    <?php 
    }
    <div class="content-sub">
        <?php 
_e("<h1>The best way to<br>find a virtual <br /> assistant</h1>", 'header-no-login');
?>
        <p><a href="<?php 
echo et_get_page_link(array('page_type' => 'submit-project', 'post_title' => __("Post a Project", 'header-no-login')));
?>
" class="btn-sumary btn-sub-post"><?php 
_e("Post a Project", 'header-no-login');
?>
</a></p>
    </div>
</div>
<div class="color-right">
    <div class="content-sub">
        <?php 
_e("<h1>Are you <br />looking<br />for work?</h1>", 'header-no-login');
?>
        <p>
        <a href="<?php 
echo site_url() . ae_current_lang();
?>
/projects/" class="btn-sumary btn-sub-create">                <?php 
_e("Find a Project", 'header-no-login');
?>
            </a>
        </p>
    </div>
</div>
<div class="d-arrow"></div>
예제 #4
0
					<button type="submit" class="btn-submit btn-sumary btn-sub-create">

						<?php 
_e('Sign in', 'login-page');
?>

					</button>

                    <a class="show-forgot-form" href="<?php 
echo site_url() . ae_current_lang() . '/forgotpassword';
?>
"><?php 
_e("Forgot Password?", 'login-page');
?>
</a> |<a class="show-forgot-form" href="<?php 
echo site_url() . ae_current_lang() . '/sign-up';
?>
"><?php 
_e("Register", 'login-page');
?>
</a>
<?php 
//			                if( function_exists('ae_render_social_button')){
//
//			                    $before_string = __("You can also sign in by:", ET_DOMAIN);
//
//			                    ae_render_social_button( array(), array(), $before_string );
//
//			                }
?>
<!--					  <div class="socials-head">--><?php 
    _e("Notification", 'header');
    if ($notify_number) {
        echo ' <span class="notify-number">(' . $notify_number . ')</span>';
    }
    ?>

                                            </a>

                                        </li>

                                        <li role="presentation" class="divider"></li>

                                        <li role="presentation">

                                            <a role="menuitem" tabindex="-1" href="<?php 
    echo wp_logout_url(site_url() . ae_current_lang());
    ?>
"
                                               class="logout">

                                                <i class="fa fa-sign-out"></i><?php 
    _e("Logout", 'header');
    ?>

                                            </a>

                                        </li>

                                    </ul>

                                </div>