Created
January 20, 2010 14:20
-
-
Save anonymous/281865 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
str_replace("Â&","&",@$l["company_name"]). | |
"</a>" | |
). | |
"</b>". | |
"<p>".str_replace("Â&","&",$l["company_description"])."</p>" | |
; | |
// CUT FROM HERE (around line #250) | |
// TO HERE (about line #258): | |
$directory .= "</td></tr>"; | |
} | |
// REPLACE WITH THIS INSTEAD | |
// I've added list tag's but you can always remove them if you prefer. | |
if(!empty($l["company_url"]) || !empty($l["company_email"]) || !empty($l["company_phone"])) | |
{ | |
$directory .= "<ul>"; | |
if(!empty($l["company_url"])) | |
$directory .= "<li><strong>Website:</strong> <a href='".@$l["company_url"]."' target='_blank' title='".@$l["company_name"]."'>".@$l["company_url"]."</a></li>"; | |
if(!empty($l["company_email"])) | |
$directory .= "<li><strong>Email:</strong> <a href='mailto:".@$l["company_email"]."'>".@$l["company_email"]."</a></li>"; | |
if(!empty($l["company_phone"])) | |
$directory .= "<li><strong>Telephone:</strong> ".@$l["company_phone"]."</li>"; | |
$directory .= "</ul>"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment