ID ), 'full'); $image_width = $featured_image[1]; if ( $content_width AND $image_width >= $content_width ) { if ( is_home() ) { $classes[] = 'has-cover-image'; } else { $classes[] = 'has-section-image'; } //endif is_home } //endif $content_width // If custom header and not overridden, then add class for that } elseif ( get_header_image() ) { $classes[] = 'has-header-image'; } //endif has_post_thumbnail return $classes; } endif; // end ! function_exists /** * Filter in a link to a content ID attribute for the next/previous image links on * image attachment pages */ if ( ! function_exists( 'xsbf_enhanced_image_navigation' ) ) : add_filter( 'attachment_link', 'xsbf_enhanced_image_navigation', 10, 2 ); function xsbf_enhanced_image_navigation( $url, $id ) { if ( ! is_attachment() && ! wp_attachment_is_image( $id ) ) return $url; $image = get_post( $id ); if ( ! empty( $image->post_parent ) && $image->post_parent != $id ) $url .= '#main'; return $url; } endif; // end ! function_exists /** * Filters wp_title to print a neat