Changeset 3092 for trunk/wp-includes/template-functions-post.php
- Timestamp:
- 11/15/2005 10:55:24 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/template-functions-post.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-post.php
r2991 r3092 438 438 } 439 439 440 function prepend_ object($content) {440 function prepend_attachment($content) { 441 441 global $post; 442 442 443 $p = '<p class=" subpostobject">';443 $p = '<p class="attachment">'; 444 444 445 445 if ( '' != $post->guid ) { 446 if ( substr($post->post_ type, 0, 6) == 'image/' )447 $p .= '<a href="' . $post->guid . '" title="Click for full-size image" ><img class=" subpostimage" src="' . $post->guid . '" alt="' . $post->post_title . '" /></a>';446 if ( substr($post->post_mime_type, 0, 6) == 'image/' ) 447 $p .= '<a href="' . $post->guid . '" title="Click for full-size image" ><img class="attachmentimage" src="' . $post->guid . '" alt="' . $post->post_title . '" /></a>'; 448 448 else 449 $p .= __('Attachment') . ' (' . $post->post_ type . ')';449 $p .= __('Attachment') . ' (' . $post->post_mime_type . ')'; 450 450 } else { 451 451 $p .= __('Missing attachment');
Note: See TracChangeset
for help on using the changeset viewer.