From db89577313d67221aa6e3a9a4abd80e8aba086e5 Mon Sep 17 00:00:00 2001 From: Ian Stewart Date: Tue, 10 Jan 2012 20:43:34 +0000 Subject: [PATCH] _s * Post format support for asides only, supported by CSS and not a template, is a good workable minimum for a theme so the post format templates are gone * With good support for essential CSS in IE8+ it's not neccesary to have a ID on the HTML element for the version of IE * Branding and site-generator are ugly id names * The title and description are selectable by class for consistency and portability --- content-aside.php | 36 ------------------- content-gallery.php | 86 --------------------------------------------- content-image.php | 30 ---------------- footer.php | 4 +-- functions.php | 2 +- header.php | 27 +++++--------- 6 files changed, 11 insertions(+), 174 deletions(-) delete mode 100644 content-aside.php delete mode 100644 content-gallery.php delete mode 100644 content-image.php diff --git a/content-aside.php b/content-aside.php deleted file mode 100644 index 543eed61..00000000 --- a/content-aside.php +++ /dev/null @@ -1,36 +0,0 @@ - - -
> -
-

-
- - -
- -
- -
- →', '_s' ) ); ?> - '' ) ); ?> -
- - -
- - - | - - - | ', '' ); ?> -
-
diff --git a/content-gallery.php b/content-gallery.php deleted file mode 100644 index a8ca0ab8..00000000 --- a/content-gallery.php +++ /dev/null @@ -1,86 +0,0 @@ - - -
> -
-

- - -
- - -
- -
- -
- - →', '_s' ) ); ?> - - - $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC' ) ); - if ( $images ) : - $total_images = count( $images ); - $image = array_shift( $images ); - $image_img_tag = wp_get_attachment_image( $image->ID, 'thumbnail' ); - ?> - - - -

%2$s photo.', 'This gallery contains %2$s photos.', $total_images, '_s' ), - 'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', '_s' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"', - number_format_i18n( $total_images ) - ); ?>

- - - - '' ) ); ?> -
- - -
- - - - - - | - - - - - - - | - - - - - - | - - - ', '' ); ?> -
-
diff --git a/content-image.php b/content-image.php deleted file mode 100644 index 43170b5c..00000000 --- a/content-image.php +++ /dev/null @@ -1,30 +0,0 @@ - - -
> -
-

-
- -
- →', '_s' ) ); ?> - '' ) ); ?> -
- -
- - - | - - - | ', '' ); ?> -
-
diff --git a/footer.php b/footer.php index bbeddaf5..2875897d 100644 --- a/footer.php +++ b/footer.php @@ -12,12 +12,12 @@ diff --git a/functions.php b/functions.php index 53e7bc3f..dc395d12 100644 --- a/functions.php +++ b/functions.php @@ -68,7 +68,7 @@ function _s_setup() { /** * Add support for the Aside and Gallery Post Formats */ - add_theme_support( 'post-formats', array( 'aside', 'image', 'gallery' ) ); + add_theme_support( 'post-formats', array( 'aside', ) ); } endif; // _s_setup diff --git a/header.php b/header.php index 93d4df49..b8382c82 100644 --- a/header.php +++ b/header.php @@ -8,18 +8,7 @@ * @since _s 1.0 */ ?> - - - - > - @@ -58,18 +47,18 @@ >
-
\ No newline at end of file