From 7616a6cafb1ce95cf89fdf9052ac0afebcbad112 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Fri, 5 Nov 2010 02:25:41 +0000 Subject: [PATCH] Add Post Format support to TwentyTen. Can now use this to designate an Aside or a Gallery! see #14746 git-svn-id: http://svn.automattic.com/wordpress/trunk@16197 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyten/functions.php | 4 ++-- wp-content/themes/twentyten/loop.php | 4 ++-- wp-content/themes/twentyten/style.css | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-content/themes/twentyten/functions.php b/wp-content/themes/twentyten/functions.php index 7f2f0308c..8d78871aa 100644 --- a/wp-content/themes/twentyten/functions.php +++ b/wp-content/themes/twentyten/functions.php @@ -77,8 +77,8 @@ function twentyten_setup() { // This theme styles the visual editor with editor-style.css to match the theme style. add_editor_style(); - // Temporarily add Post Format support - add_theme_support( 'post-formats', array( 'aside', 'video', 'image' ) ); + // Post Format support. You can also use the legacy "gallery" or "asides" (note the plural) categories. + add_theme_support( 'post-formats', array( 'aside', 'gallery' ) ); // This theme uses post thumbnails add_theme_support( 'post-thumbnails' ); diff --git a/wp-content/themes/twentyten/loop.php b/wp-content/themes/twentyten/loop.php index c0d746f33..9974f7b89 100644 --- a/wp-content/themes/twentyten/loop.php +++ b/wp-content/themes/twentyten/loop.php @@ -57,7 +57,7 @@ - + ID ) ) : ?>
>

@@ -98,7 +98,7 @@ - + ID ) ) : ?>
> diff --git a/wp-content/themes/twentyten/style.css b/wp-content/themes/twentyten/style.css index 0e80fb943..2c3bd7794 100644 --- a/wp-content/themes/twentyten/style.css +++ b/wp-content/themes/twentyten/style.css @@ -3,7 +3,7 @@ Theme Name: Twenty Ten Theme URI: http://wordpress.org/ Description: The 2010 theme for WordPress is stylish, customizable, simple, and readable -- make it yours with a custom menu, header image, and background. Twenty Ten supports six widgetized areas (two in the sidebar, four in the footer) and featured images (thumbnails for gallery posts and custom header images for posts and pages). It includes stylesheets for print and the admin Visual Editor, special styles for posts in the "Asides" and "Gallery" categories, and has an optional one-column page template that removes the sidebar. Author: the WordPress team -Version: 1.1 +Version: 1.2-alpha Tags: black, blue, white, two-columns, fixed-width, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu */