updates
Showing
2 changed files
with
4 additions
and
4 deletions
| ... | @@ -15,7 +15,7 @@ if ( class_exists( 'WP_CLI' ) ) { | ... | @@ -15,7 +15,7 @@ if ( class_exists( 'WP_CLI' ) ) { |
| 15 | continue; | 15 | continue; |
| 16 | } | 16 | } |
| 17 | $staff_members[] = ['full_name'=>trim($data[0]),'email'=>trim($data[1]), | 17 | $staff_members[] = ['full_name'=>trim($data[0]),'email'=>trim($data[1]), |
| 18 | 'phone'=>trim($data[2]).' #'.trim($data[3]),'category'=>strtolower(trim($data[4])),'sub_category'=>strtolower(trim($data[5])),'brokerages'=>trim($data[6])]; | 18 | 'phone'=>trim($data[2]),'ext'=>trim($data[3]),'category'=>strtolower(trim($data[4])),'sub_category'=>strtolower(trim($data[5])),'brokerages'=>trim($data[6])]; |
| 19 | } | 19 | } |
| 20 | } | 20 | } |
| 21 | 21 | ||
| ... | @@ -39,8 +39,8 @@ if ( class_exists( 'WP_CLI' ) ) { | ... | @@ -39,8 +39,8 @@ if ( class_exists( 'WP_CLI' ) ) { |
| 39 | $iter_counter = 0; | 39 | $iter_counter = 0; |
| 40 | foreach($staff_members as $assign) { | 40 | foreach($staff_members as $assign) { |
| 41 | 41 | ||
| 42 | if($assign['phone'] == ' #') { | 42 | if(!empty($assign['ext'])) { |
| 43 | $assign['phone'] = ''; | 43 | $assign['phone'] = $assign['phone'].' #'.$assign['ext']; |
| 44 | } | 44 | } |
| 45 | 45 | ||
| 46 | foreach($field_keys as $fk) { | 46 | foreach($field_keys as $fk) { | ... | ... |
| ... | @@ -362,7 +362,7 @@ | ... | @@ -362,7 +362,7 @@ |
| 362 | foreach($assignment_arr['farm'] as $aa) { ?> | 362 | foreach($assignment_arr['farm'] as $aa) { ?> |
| 363 | 363 | ||
| 364 | <?php if(!empty($aa['label'])) { ?> | 364 | <?php if(!empty($aa['label'])) { ?> |
| 365 | <?php if(!$team_labeled) { $team_labeled = true; ?> <b><?= __($aa['label']) ?></b> <?php } ?> | 365 | <?php if(!$team_labeled) { $team_labeled = true; ?> <b><?= ucwords(__($aa['label'])) ?></b> <?php } ?> |
| 366 | <?php } ?> | 366 | <?php } ?> |
| 367 | 367 | ||
| 368 | <?php if(empty($aa['label']) && !$team_labeled) { | 368 | <?php if(empty($aa['label']) && !$team_labeled) { | ... | ... |
-
Please register or sign in to post a comment