
Untitled
By: a guest on
Aug 8th, 2012 | syntax:
None | size: 0.91 KB | hits: 4 | expires: Never
if(empty($row['cb_facebookurl'])) {
echo '<img alt="Facebook" border="0" src="/images/fb_icon_bw.png" class="social_links">' . "\n";
} else {
$fblink = $row['cb_facebookurl'];
$fblink = str_replace("http://", "", $fblink);
echo '<a target="_blank" href=http://' . $fblink . '>';
echo '<img alt="Facebook" border="0" src="/images/fb_icon.png" class="social_links"></a>' . "\n";
}
if(empty($row['cb_twitterurl'])) {
echo '<img alt="Twitter" border="0" src="/images/tw_icon_bw.png" class="social_links twitter">' . "\n";
} else {
$twlink = $row['cb_twitterurl'];
$twlink = str_replace("http://", "", $twlink);
echo '<a target="_blank" href=http://' . $twlink . '>';
echo '<img alt="Twitter" border="0" src="/images/tw_icon.png" class="social_links twitter"></a>' . "\n";
}