function hmgt_user_profile() { $obj_hospital = new Hospital_Management(get_current_user_id()); $user_info = get_userdata($_REQUEST['user_id']); ?> <style> .profile-cover{ background: url("<?php echo get_option('hmgt_hospital_background_image'); ?> ") repeat scroll 0 0 / cover rgba(0, 0, 0, 0); } </style> <div class="modal-header"> <a href="#" class="close-btn-cat badge badge-success pull-right">X</a> <h4 id="myLargeModalLabel" class="modal-title"><?php $user = $user_info = get_userdata($_REQUEST['user_id']); echo $user->display_name; ?> </h4> </div> <hr> <div class="profile-cover"> <div class="row"> <div class="col-md-3 profile-image"> <div class="profile-image-container"> <?php $umetadata = get_user_meta($_REQUEST['user_id'], 'hmgt_user_avatar', true); if (empty($umetadata)) { echo '<img src=' . get_default_userprofile($obj_hospital->role) . ' height="150px" width="150px" class="img-circle" />'; } else { echo '<img src=' . $umetadata . ' height="150px" width="150px" class="img-circle" />'; } ?> </div> </div> </div> </div> <div id="main-wrapper"> <div class="panel-heading"> <table class="table table-bordered"> <tr> <td><?php _e('Email'); ?> </td> <td><?php echo $user_info->user_email; ?> </td> </tr> <tr> <td><?php _e('Home Town Address'); ?> </td> <td> <?php echo $user_info->address; if ($user_info->home_city != "") { echo ", " . $user_info->home_city; } if ($user_info->home_state != "") { echo " ," . $user_info->home_state; } if ($user_info->home_country != "") { echo ", " . $user_info->home_country . "."; } ?> </td> </tr> <tr> <td><?php _e('Office Address'); ?> </td> <td> <?php if ($user_info->office_address != "") { echo $user_info->office_address . ","; } if ($user_info->city_name != "") { echo ", " . $user_info->city_name; } if ($user_info->state_name != "") { echo " ," . $user_info->state_name; } if ($user_info->country_name != "") { echo ", " . $user_info->country_name . "."; } ?> </td> </tr> <tr> <td><?php _e('Sex'); ?> </td> <td><?php echo $user_info->gender; ?> </td> </tr> <tr> <td><?php _e('Birth Date'); ?> </td> <td><?php echo $user_info->birth_date; ?> </td> </tr> <tr> <td><?php _e('Degree'); ?> </td> <td><?php echo $user_info->doctor_degree; ?> </td> </tr> <tr> <td><?php _e('Visiting fees'); ?> </td> <td><?php echo $user_info->visiting_fees; ?> </td> </tr> </table> </div> <div class="panel-body"> </div> </div> <?php die; }
?> " class="img-circle head_logo" width="40" height="40"/> <span><?php echo get_option('hmgt_hospital_name'); ?> </span> </h3></div> <ul class="nav navbar-right col-md-4 col-sm-4 col-xs-6"> <!-- BEGIN USER LOGIN DROPDOWN --> <li class="dropdown"><a data-toggle="dropdown" class="dropdown-toggle" href="javascript:;"> <?php $userimage = get_user_meta($user->ID, 'hmgt_user_avatar', true); if (empty($userimage)) { echo '<img src=' . get_default_userprofile($obj_hospital->role) . ' height="40px" width="40px" class="img-circle" />'; } else { echo '<img src=' . $userimage . ' height="40px" width="40px" class="img-circle"/>'; } ?> <span> <?php echo $user->display_name; ?> </span> <b class="caret"></b> </a> <ul class="dropdown-menu extended logout"> <li><a href="?dashboard=user&page=account"><i class="fa fa-user"></i> <?php _e('My Profile', 'hospital_mgt'); ?> </a></li>