Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 8th, 2012  |  syntax: None  |  size: 0.91 KB  |  hits: 4  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. if(empty($row['cb_facebookurl'])) {
  2.             echo '<img alt="Facebook" border="0" src="/images/fb_icon_bw.png" class="social_links">'  . "\n";
  3.         } else {
  4.                         $fblink = $row['cb_facebookurl'];
  5.                         $fblink =  str_replace("http://", "", $fblink);  
  6.             echo '<a target="_blank" href=http://' . $fblink . '>';
  7.             echo '<img alt="Facebook" border="0" src="/images/fb_icon.png" class="social_links"></a>'  . "\n";
  8.         }
  9.  
  10.        
  11.         if(empty($row['cb_twitterurl'])) {
  12.             echo '<img alt="Twitter" border="0" src="/images/tw_icon_bw.png" class="social_links twitter">'  . "\n";
  13.         } else {
  14.                         $twlink = $row['cb_twitterurl'];
  15.                         $twlink =  str_replace("http://", "", $twlink);
  16.             echo '<a target="_blank"  href=http://' . $twlink . '>';
  17.             echo '<img alt="Twitter" border="0" src="/images/tw_icon.png" class="social_links twitter"></a>'   . "\n";
  18.         }