48c7f5ac by Kevin Burton

merged 239:240 to tag/0.4

1 parent 08c94fc3
...@@ -269,6 +269,10 @@ class ProfileValidation extends Common\Validation { ...@@ -269,6 +269,10 @@ class ProfileValidation extends Common\Validation {
269 public function work_phone($val) { 269 public function work_phone($val) {
270 update_user_meta($_POST['uid'], __FUNCTION__, $val); 270 update_user_meta($_POST['uid'], __FUNCTION__, $val);
271 } 271 }
272
273 public function work_extension($val) {
274 update_user_meta($_POST['uid'], __FUNCTION__, $val);
275 }
272 276
273 277
274 public function work_mobile($val) { 278 public function work_mobile($val) {
......
...@@ -65,6 +65,10 @@ use WP_User, WP_Roles; ...@@ -65,6 +65,10 @@ use WP_User, WP_Roles;
65 65
66 <table cellspacing="0" class="widefat post fixed" style="border:none;"> 66 <table cellspacing="0" class="widefat post fixed" style="border:none;">
67 <tbody> 67 <tbody>
68 <tr>
69 <th>User Login:</th>
70 <td><?php echo $account->user_login; ?></td>
71 </tr>
68 <?php if (!empty($first_name)): ?> 72 <?php if (!empty($first_name)): ?>
69 <tr> 73 <tr>
70 <th>First Name:</th> 74 <th>First Name:</th>
......
...@@ -205,7 +205,8 @@ $preference = get_user_meta($user->ID, 'email_address_preference', true); ...@@ -205,7 +205,8 @@ $preference = get_user_meta($user->ID, 'email_address_preference', true);
205 205
206 <tr> 206 <tr>
207 <th>Phone:</th> 207 <th>Phone:</th>
208 <td><input type="text" name="work_phone" value="<?php echo get_user_meta($_GET['uid'], 'work_phone', true);?>" rel="mask-phone" /></td> 208 <td><input type="text" name="work_phone" value="<?php echo get_user_meta($_GET['uid'], 'work_phone', true);?>" rel="mask-phone" />
209 &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>
209 </tr> 210 </tr>
210 <tr> 211 <tr>
211 <th>Fax:</th> 212 <th>Fax:</th>
......