$post->post_parent,
'post_status' => 'inherit',
'post_type' => 'attachment',
'post_mime_type' => 'image',
'order' => 'ASC',
'orderby' => 'menu_order ID'
) ) );
foreach ( $attachments as $k => $attachment ) {
if ( $attachment->ID == $post->ID )
break;
}
// If there is more than 1 image attachment in a gallery
if ( count( $attachments ) > 1 ) {
if ( isset( $attachments[ $k+1 ] ) ) {
// get the URL of the next image attachment
$next_attachment_link = 'Next image ';
$next_attachment_link .= '';
$next_attachment_link .= esc_attr( get_the_title($attachments[ $k+1 ]->ID) );
$next_attachment_link .= '';
}
if ( isset( $attachments[ $k-1 ] ) ) {
// get the URL of the prev image attachment
$prev_attachment_link = 'Previous image ';
$prev_attachment_link .= '';
$prev_attachment_link .= esc_attr( get_the_title($attachments[ $k-1 ]->ID) );
$prev_attachment_link .= '';
}
}
$attachment_width = apply_filters('soup_attachment_width', bigRed_option('attachment_page_img_width'));
$attachment_height = apply_filters('soup_attachment_width', bigRed_option('attachment_page_img_width'));
if ( ($metadata['width'] > $attachment_width) OR ($metadata['height'] > $attachment_height) ) {
$zoom_attachment_link = '';
$zoom_attachment_link_close = '';
}
?>
&link_before=&link_after='); ?>
ID, array( $attachment_width, $attachment_height ) ); echo $zoom_attachment_link_close; // filterable image width with, essentially, no limit for image height. ?>
post_excerpt ) ) the_excerpt(); ?>
Pages:&after=