Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Commonwell
/
broker-site
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
c804da2b
authored
2023-11-08 14:44:09 -0500
by
Jeremy Groot
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
updates
1 parent
583fe01e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
wp-content/themes/commonwell-broker/inc/brokers_cli.php
wp-content/themes/commonwell-broker/templates/broker_sidebar.php
wp-content/themes/commonwell-broker/inc/brokers_cli.php
View file @
c804da2
...
...
@@ -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
)
{
...
...
wp-content/themes/commonwell-broker/templates/broker_sidebar.php
View file @
c804da2
...
...
@@ -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
)
{
...
...
Please
register
or
sign in
to post a comment