Changeset 18253
- Timestamp:
- 06/10/2011 11:01:16 PM (14 years ago)
- Location:
- trunk/wp-content/themes/twentyeleven
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyeleven/archive.php
r17959 r18253 18 18 <div id="content" role="main"> 19 19 20 <?php21 /* Queue the first post, that way we know22 * what date we're dealing with (if that is the case).23 *24 * We reset this later so we can run the loop25 * properly with a call to rewind_posts().26 */27 if ( have_posts() )28 the_post();29 ?>30 31 20 <header class="page-header"> 32 21 <h1 class="page-title"> … … 42 31 </h1> 43 32 </header> 44 45 <?php46 /* Since we called the_post() above, we need to47 * rewind the loop back to the beginning that way48 * we can run the loop properly, in full.49 */50 rewind_posts();51 ?>52 33 53 34 <?php twentyeleven_content_nav( 'nav-above' ); ?> -
trunk/wp-content/themes/twentyeleven/author.php
r18244 r18253 15 15 <?php 16 16 /* Queue the first post, that way we know 17 * what datewe're dealing with (if that is the case).17 * what author we're dealing with (if that is the case). 18 18 * 19 19 * We reset this later so we can run the loop -
trunk/wp-content/themes/twentyeleven/content-aside.php
r18244 r18253 18 18 </hgroup> 19 19 20 <?php if ( 'post' == $post->post_type) : ?>20 <?php if ( 'post' == get_post_type() ) : ?> 21 21 <?php endif; ?> 22 22 -
trunk/wp-content/themes/twentyeleven/content-image.php
r18244 r18253 30 30 31 31 <footer class="entry-meta"> 32 <?php if ( 'post' == $post->post_type) : // Hide category and tag text for pages on Search ?>32 <?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?> 33 33 <div class="entry-meta"> 34 34 <?php -
trunk/wp-content/themes/twentyeleven/content-link.php
r18244 r18253 18 18 </hgroup> 19 19 20 <?php if ( 'post' == $post->post_type) : ?>20 <?php if ( 'post' == get_post_type() ) : ?> 21 21 <?php endif; ?> 22 22 -
trunk/wp-content/themes/twentyeleven/content-quote.php
r18244 r18253 16 16 </hgroup> 17 17 18 <?php if ( 'post' == $post->post_type) : ?>18 <?php if ( 'post' == get_post_type() ) : ?> 19 19 <div class="entry-meta"> 20 20 <?php twentyeleven_posted_on(); ?> … … 42 42 <footer class="entry-meta"> 43 43 <?php $show_sep = false; ?> 44 <?php if ( 'post' == $post->post_type) : // Hide category and tag text for pages on Search ?>44 <?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?> 45 45 <?php 46 46 /* translators: used between list items, there is a space after the comma */ -
trunk/wp-content/themes/twentyeleven/content-single.php
r18244 r18253 13 13 <h1 class="entry-title"><?php the_title(); ?></h1> 14 14 15 <?php if ( 'post' == get_post_type() ) : /* Bit of a disconnect here, Some files include this test, not all do. */ ?> 15 16 <div class="entry-meta"> 16 17 <?php twentyeleven_posted_on(); ?> 17 18 </div><!-- .entry-meta --> 19 <?php endif; ?> 18 20 </header><!-- .entry-header --> 19 21 -
trunk/wp-content/themes/twentyeleven/content-status.php
r18244 r18253 16 16 <h2 class="entry-format"><?php _e( 'Status', 'twentyeleven' ); ?></h2> 17 17 </hgroup> 18 19 <?php if ( 'post' == $post->post_type ) : ?>20 <?php endif; ?>21 18 22 19 <?php if ( comments_open() ) : ?> … … 33 30 <?php else : ?> 34 31 <div class="entry-content"> 35 <div class="avatar"><?php echo get_avatar( $post->post_author, apply_filters( 'twentyeleven_status_avatar', '65' ) ); ?></div>32 <div class="avatar"><?php echo get_avatar( get_the_author_meta( 'ID' ), apply_filters( 'twentyeleven_status_avatar', '65' ) ); ?></div> 36 33 37 34 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?> -
trunk/wp-content/themes/twentyeleven/content.php
r18244 r18253 13 13 <?php if ( is_sticky() ) : ?> 14 14 <hgroup> 15 <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>15 <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) /* Y NO ARRAY! */ ); ?>" rel="bookmark"><?php the_title(); ?></a></h1> 16 16 <h2 class="entry-format"><?php _e( 'Featured', 'twentyeleven' ); ?></h2> 17 17 </hgroup> … … 20 20 <?php endif; ?> 21 21 22 <?php if ( 'post' == $post->post_type) : ?>22 <?php if ( 'post' == get_post_type() ) : ?> 23 23 <div class="entry-meta"> 24 24 <?php twentyeleven_posted_on(); ?> … … 45 45 46 46 <footer class="entry-meta"> 47 <?php $show_sep = false; ?>48 <?php if ( 'post' == $post->post_type) : // Hide category and tag text for pages on Search ?>47 <?php $show_sep = false; // perhaps a implode(' | ', $utilities) could be used instead of this $show_sep business? ?> 48 <?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?> 49 49 <?php 50 50 /* translators: used between list items, there is a space after the comma */ … … 69 69 </span> 70 70 <?php endif; // End if $tags_list ?> 71 <?php endif; // End if 'post' == $post->post_type?>71 <?php endif; // End if 'post' == get_post_type() ?> 72 72 73 73 <?php if ( comments_open() ) : ?> -
trunk/wp-content/themes/twentyeleven/inc/theme-options.php
r18235 r18253 15 15 * @since Twenty Eleven 1.0 16 16 * 17 * @param string $hook_suffix The action passes the current page to the function. We don't18 * do anything if we're not on our theme options page.19 17 */ 20 18 function twentyeleven_admin_enqueue_scripts( $hook_suffix ) { 21 if ( $hook_suffix != 'appearance_page_theme_options' )22 return;23 24 19 wp_enqueue_style( 'twentyeleven-theme-options', get_template_directory_uri() . '/inc/theme-options.css', false, '2011-04-28' ); 25 20 wp_enqueue_script( 'twentyeleven-theme-options', get_template_directory_uri() . '/inc/theme-options.js', array( 'farbtastic' ), '2011-06-10' ); 26 21 wp_enqueue_style( 'farbtastic' ); 27 22 } 28 add_action( 'admin_ enqueue_scripts', 'twentyeleven_admin_enqueue_scripts' );23 add_action( 'admin_print_styles-appearance_page_theme_options', 'twentyeleven_admin_enqueue_scripts' ); 29 24 30 25 /** … … 310 305 // Link color must be 3 or 6 hexadecimal characters 311 306 if ( isset( $input['link_color'] ) && preg_match( '/^#?([a-f0-9]{3}){1,2}$/i', $input['link_color'] ) ) 312 307 $output['link_color'] = '#' . strtolower( ltrim( $input['link_color'], '#' ) ); 313 308 314 309 // Theme layout must be in our array of theme layout options -
trunk/wp-content/themes/twentyeleven/single.php
r18174 r18253 13 13 <div id="content" role="main"> 14 14 15 <?php if ( have_posts() )while ( have_posts() ) : the_post(); ?>15 <?php while ( have_posts() ) : the_post(); ?> 16 16 17 17 <nav id="nav-single">
Note: See TracChangeset
for help on using the changeset viewer.