7eb0331b by Kevin Burton

Added user_login and work extesion to the profile

1 parent 875115ad
......@@ -275,6 +275,10 @@ class ProfileValidation extends Common\Validation {
update_user_meta($_POST['uid'], __FUNCTION__, $val);
}
public function work_extension($val) {
update_user_meta($_POST['uid'], __FUNCTION__, $val);
}
public function work_mobile($val) {
update_user_meta($_POST['uid'], __FUNCTION__, $val);
......
......@@ -65,6 +65,10 @@ use WP_User, WP_Roles;
<table cellspacing="0" class="widefat post fixed" style="border:none;">
<tbody>
<tr>
<th>User Login:</th>
<td><?php echo $account->user_login; ?></td>
</tr>
<?php if (!empty($first_name)): ?>
<tr>
<th>First Name:</th>
......
......@@ -209,7 +209,8 @@ $preference = get_user_meta($user->ID, 'email_address_preference', true);
<tr>
<th>Phone:</th>
<td><input type="text" name="work_phone" value="<?php echo get_user_meta($_GET['uid'], 'work_phone', true);?>" rel="mask-phone" /></td>
<td><input type="text" name="work_phone" value="<?php echo get_user_meta($_GET['uid'], 'work_phone', true);?>" rel="mask-phone" />
&nbsp;Ext. <input style="width:40px;" type="text" name="work_extension" value="<?php echo get_user_meta($_GET['uid'], 'work_extension', true);?>" rel="mask-phone" /></td>
</tr>
<tr>
<th>Fax:</th>
......