$listing_template .= '<% if ( typeof extra_phone !== "undefined" && extra_phone ) { %>' . "\r\n"; $listing_template .= '

<%= extra_phone %>

' . "\r\n"; $listing_template .= '<% } %>' . "\r\n";