$file = get_post_meta($post->ID, '_wp_attached_file', true); $iwidth = get_option('iwidth'); $secondimage = get_option('secondimage'); $returnto = get_option('returnto'); $src = $post->guid; $src_file = & $file; $imagesize = getimagesize($src_file); $new_height = $imagesize[1]/$imagesize[0]*$iwidth; $innerHTML = get_attachment_innerHTML($post->ID, true, array($iwidth, $new_height)); if (($imagesize[0] > $iwidth) and ($secondimage)) $attachment_link = "
post_title ."\">{$innerHTML}
"; else { switch ($returnto) { case "home": $link = get_bloginfo('url'); break; case "post": $link = get_permalink(); break; case "none": $link = ""; } if ($link == "") $attachment_link = $innerHTML; else { $attachment_link = '
' . $innerHTML .'
'; } } $_post = &get_post($post->ID); $classname = ($_post->iconsize[0] <= 128 ? 'small' : '') . 'attachment'; // This lets us style narrow icons specially ?>
post_parent); ?>
- the_title(); ?>
echo PrintCode('topcode');?>
echo PrintCode('leftcode');?>
Sorry, no attachments matched your criteria.
echo PrintCode('rightcode');?>