Changeset 16197
- Timestamp:
- 11/05/2010 02:25:41 AM (14 years ago)
- Location:
- trunk/wp-content/themes/twentyten
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyten/functions.php
r16174 r16197 78 78 add_editor_style(); 79 79 80 // Temporarily add Post Format support81 add_theme_support( 'post-formats', array( 'aside', ' video', 'image' ) );80 // Post Format support. You can also use the legacy "gallery" or "asides" (note the plural) categories. 81 add_theme_support( 'post-formats', array( 'aside', 'gallery' ) ); 82 82 83 83 // This theme uses post thumbnails -
trunk/wp-content/themes/twentyten/loop.php
r15392 r16197 58 58 <?php /* How to display posts in the Gallery category. */ ?> 59 59 60 <?php if ( in_category( _x('gallery', 'gallery category slug', 'twentyten') ) ) : ?>60 <?php if ( in_category( _x('gallery', 'gallery category slug', 'twentyten') ) || 'gallery' == get_post_format( $post->ID ) ) : ?> 61 61 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 62 62 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> … … 99 99 <?php /* How to display posts in the asides category */ ?> 100 100 101 <?php elseif ( in_category( _x('asides', 'asides category slug', 'twentyten') ) ) : ?>101 <?php elseif ( in_category( _x('asides', 'asides category slug', 'twentyten') ) || 'aside' == get_post_format( $post->ID ) ) : ?> 102 102 <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 103 103 -
trunk/wp-content/themes/twentyten/style.css
r15997 r16197 4 4 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. 5 5 Author: the WordPress team 6 Version: 1. 16 Version: 1.2-alpha 7 7 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 8 8 */
Note: See TracChangeset
for help on using the changeset viewer.