c804da2b by Jeremy Groot

updates

1 parent 583fe01e
......@@ -15,7 +15,7 @@ if ( class_exists( 'WP_CLI' ) ) {
continue;
}
$staff_members[] = ['full_name'=>trim($data[0]),'email'=>trim($data[1]),
'phone'=>trim($data[2]).' #'.trim($data[3]),'category'=>strtolower(trim($data[4])),'sub_category'=>strtolower(trim($data[5])),'brokerages'=>trim($data[6])];
'phone'=>trim($data[2]),'ext'=>trim($data[3]),'category'=>strtolower(trim($data[4])),'sub_category'=>strtolower(trim($data[5])),'brokerages'=>trim($data[6])];
}
}
......@@ -39,8 +39,8 @@ if ( class_exists( 'WP_CLI' ) ) {
$iter_counter = 0;
foreach($staff_members as $assign) {
if($assign['phone'] == ' #') {
$assign['phone'] = '';
if(!empty($assign['ext'])) {
$assign['phone'] = $assign['phone'].' #'.$assign['ext'];
}
foreach($field_keys as $fk) {
......
......@@ -362,7 +362,7 @@
foreach($assignment_arr['farm'] as $aa) { ?>
<?php if(!empty($aa['label'])) { ?>
<?php if(!$team_labeled) { $team_labeled = true; ?> <b><?= __($aa['label']) ?></b> <?php } ?>
<?php if(!$team_labeled) { $team_labeled = true; ?> <b><?= ucwords(__($aa['label'])) ?></b> <?php } ?>
<?php } ?>
<?php if(empty($aa['label']) && !$team_labeled) {
......