$user = get_user_by('login', $username);
 }
 $options = ltp_options::get_options();
 /* start profile output */
 print '<div class="ltp-profile-viewer">';
 // se if a CV has been uploaded
 $cv_URL = '';
 $cv_ID = get_user_meta($user->ID, 'cv', true);
 if ($cv_ID !== '') {
     $cv_URL = wp_get_attachment_url($cv_ID);
 }
 // start toolbar output
 print '<div class="section sticky toolbar">';
 if (ltp_is_wpp()) {
     // WPP users toolbar
     print ltp_template::wpp_profile_toolbar($current_user->ID, $post->ID, $cv_URL);
 } elseif ($current_user->ID == $user->ID) {
     // student toolbar
     printf('<div class="status">Profile views: %d | Profile saves: %d | CV downloads: %d</div>', ltp_data::get_views($post->ID), ltp_data::get_saves($post->ID), ltp_data::get_downloads($post->ID));
     printf('<form action="%s" method="post">', get_permalink($options["builder_page_id"]));
     print '<button name="return" class="ppt-button ppt-return-button">Return to profile builder</button>';
     if ($post->post_status !== 'publish') {
         print '<button name="publish" class="ppt-button ppt-publish-button">Publish</button>';
     } else {
         print '<button name="unpublish" class="ppt-button ppt-unpublish-button">Un-publish</button>';
     }
     print '<p><em>This is how recruiters will see your profile</em></p>';
     print '</form>';
 }
 print '</div>';
 print '<div class="ltp-profile-wrap"><div class="vcard">';