' . "\n\n"; if ( have_posts() ) { while ( have_posts() ) { the_post(); echo ' ' . "\n\n"; // This also populates the iconsize for the next line $attachment_link = get_the_attachment_link($post->ID, true, array(450, 800)); // This lets us style narrow icons specially $_post = &get_post($post->ID); $classname = ($_post->iconsize[0] <= 128 ? 'small' : '') . 'attachment'; echo '
' . "\n"; echo '

' . get_the_title($post->post_parent) . ' » ' . the_title( '', '', false) . '

' . "\n"; echo '
' . "\n"; echo '

' . $attachment_link . '
' . basename($post->guid) . '

' . "\n"; the_content('

' . __('Read the rest of this entry »', 'german_newspaper') . '

'); wp_link_pages(array('before' => '

' . __('Pages:', 'german_newspaper') . ' ', 'after' => '

', 'next_or_number' => 'number')); echo ' ' . "\n"; echo '
' . "\n"; echo '
' . "\n\n"; comments_template(); } } else { echo '

' . __('Sorry, no attachments matched your criteria.', 'german_newspaper') . '

' . "\n"; } echo '' . "\n\n"; get_footer(); ?>