Skip to content

Commit

Permalink
Email custom field not shoWing on map bubble - FIXED
Browse files Browse the repository at this point in the history
  • Loading branch information
Stiofan committed Oct 23, 2017
1 parent 3610123 commit c225a40
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions change_log.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
v1.6.25
My Favorites text in breadcrumb not translatable - FIXED
Email custom field not shoWing on map bubble - FIXED

v1.6.24
Fix affiliate links for GeoDirectory CPTs listing pages - FIXED
Expand Down
7 changes: 6 additions & 1 deletion geodirectory-functions/custom_fields_output_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,12 @@ function geodir_cf_email($html,$location,$cf,$p=''){
* @param array $cf Custom field variables array.
*/
$email_name = apply_filters('geodir_email_field_name_output',$email,$cf);
$html .= "<script>document.write('<a href=\"mailto:'+'$e_split[0]' + '@' + '$e_split[1]'+'\">$email_name</a>')</script>";
if($location=='mapbubble'){
$html .= "<a href=\"mailto:$email\">$email_name</a>";
}else{
$html .= "<script>document.write('<a href=\"mailto:'+'$e_split[0]' + '@' + '$e_split[1]'+'\">$email_name</a>')</script>";
}

}else{
$html .= $email;
}
Expand Down

0 comments on commit c225a40

Please sign in to comment.