103 | | if ( $bookmark->link_image != null && $show_images ) { |
104 | | if ( strpos($bookmark->link_image, 'http') === 0 ) |
105 | | $output .= "<img src=\"$bookmark->link_image\" $alt $title />"; |
106 | | else // If it's a relative path |
107 | | $output .= "<img src=\"" . get_option('siteurl') . "$bookmark->link_image\" $alt $title />"; |
| 103 | if ( $bookmark->link_image != null && $show_images ) { |
| 104 | if ( strpos($bookmark->link_image, 'http') === 0 ) { |
| 105 | @list( $width, $height, , $size_string ) = getimagesize( $bookmark->link_image ); |
| 106 | if ( '' != $size_string ) $size_attrib = $size_string; |
| 107 | |
| 108 | $output .= "<img src=\"$bookmark->link_image\" $size_attrib $alt $title />"; |
| 109 | } else { // If it's a relative path |
| 110 | @list( $width, $height, , $size_string ) = getimagesize( get_option('siteurl') . $bookmark->link_image ); |
| 111 | if ( '' != $size_string ) $size_attrib = $size_string; |
| 112 | |
| 113 | $output .= "<img src=\"" . get_option('siteurl') . "$bookmark->link_image\" $size_attrib $alt $title />"; |
| 114 | } |