Пример #1
0
<?php

include_once 'front_template.php';
$obj = new Frontpage();
$obj->checkLogin();
$obj->steps();
$obj->step2();
global $wpdb, $current_user;
get_header();
get_currentuserinfo();
$user_ID = get_current_user_id();
$client_first_name = get_user_meta($user_ID, 'client_first_name', true);
$client_last_name = get_user_meta($user_ID, 'client_last_name', true);
if ($client_last_name != '' && $client_last_name != '') {
} else {
    $client_first_name = $current_user->user_firstname;
    $client_last_name = $current_user->user_lastname;
}
$customer_first_name = $current_user->user_firstname;
$customer_last_name = $current_user->user_lastname;
?>
<script type="text/javascript">
jQuery(window).load(function() {
    __insp.push(['identify', '<?php 
echo $current_user->user_email;
?>
']);
});
</script>
<?php 
while (have_posts()) {