Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #22 from jlz18002/master
updated uc-people-widget
  • Loading branch information
jmr06005 committed Sep 5, 2018
2 parents cb7dc94 + 135b674 commit 74a9a88
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions uc-people-widget.php
Expand Up @@ -196,6 +196,10 @@ Class UC_People_Widget extends WP_Widget {
$out .= '</td>';
} else if( $f == 'mailing_address' && in_array('mailing_address', $information_to_display) ){
$out .= '<td class="person-'.$f.'">'.str_replace(';','<br>',get_field($f, $id )).'</td>';
// If the value($f) is a phone number than we should replace any hyphens with the html entity for a non-break hyphen (&#8209;)
} elseif ($f == 'phone' && in_array('phone', $information_to_display) ) {
$phoneStrReplace = str_replace('-', '&#8209;', get_field('phone', $id ));
$out .= '<td>'.$phoneStrReplace.'</td>';
} elseif( $f == 'url' && in_array( 'url', $information_to_display ) ){
$out .= '<td class="person-url"><a href="'.get_field('url', $id ).'">'.get_field('url', $id ).'</a>'.'</td>';
} else {
Expand Down

0 comments on commit 74a9a88

Please sign in to comment.