Skip to content

Instantly share code, notes, and snippets.

Created January 20, 2010 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/281865 to your computer and use it in GitHub Desktop.
Save anonymous/281865 to your computer and use it in GitHub Desktop.
str_replace("Â&","&",@$l["company_name"]).
"</a>"
).
"</b>".
"<p>".str_replace("&Acirc;&","&",$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