+ + + + + + + + +
+ +

+ + + +

+ + +
+ + + +
+ +
+
+
+
+ +
+ + + + + + + + + +
+ +

+ +
+

+
+ +
+ + + + Date: Wed, 23 Oct 2013 11:50:54 +0000 Subject: [PATCH 3/5] Add a loop to handle attachment pages --- index.php | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 76 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 88cc6ab..6c97d70 100644 --- a/index.php +++ b/index.php @@ -186,7 +186,7 @@ /* Start Single loop /*-----------------------------------------------------------------------------------*/ - if( is_single() ) { + if( is_single() && ! is_attachment() ) { ?> @@ -238,6 +238,81 @@ + + + + + + + +
+ +

+ + +
+ + ID, 'full' ); ?> + + post_excerpt ) ) : ?> +
+ +
+ + +
+ +
+ Published at %4$s × %5$s in %8$s', 'less' ), + esc_attr( get_the_time() ), + get_the_date(), + esc_url( wp_get_attachment_url() ), + $metadata['width'], + $metadata['height'], + esc_url( get_permalink( $post->post_parent ) ), + esc_attr( strip_tags( get_the_title( $post->post_parent ) ) ), + get_the_title( $post->post_parent ) + ); + ?> +
+ +
+ + + + + + + + +
+

Nothing posted yet

+
+ + + + + + Date: Wed, 23 Oct 2013 12:51:53 +0000 Subject: [PATCH 4/5] Do not display attachments twice on attachments attached to a Page --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 6c97d70..4df943f 100644 --- a/index.php +++ b/index.php @@ -186,7 +186,7 @@ /* Start Single loop /*-----------------------------------------------------------------------------------*/ - if( is_single() && ! is_attachment() ) { + if( is_single() && !is_attachment() ) { ?> @@ -319,7 +319,7 @@ /* Start Page loop /*-----------------------------------------------------------------------------------*/ - if( is_page()) { + if( is_page() && !is_attachment() ) { ?> From bae0af9c93d83fc7bb23bfa1b26dc113b2abe4e4 Mon Sep 17 00:00:00 2001 From: Jeremy Herve Date: Wed, 23 Oct 2013 12:52:41 +0000 Subject: [PATCH 5/5] Bump version to 1.2.1 --- style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/style.css b/style.css index 23ee467..934f3d9 100644 --- a/style.css +++ b/style.css @@ -5,7 +5,7 @@ Theme URI: http://lessmade.com/themes/less Author: Jared Erickson Author URI: http://jarederickson.com Description: A super simple theme that can be customized using LESS variables -Version: 1.1 +Version: 1.2.1 License: GNU General Public License */