Minor code style clean-up

This commit is contained in:
Takashi Irie 2013-04-20 01:26:43 +01:00
parent a47b1523dd
commit 7be757759c
7 changed files with 40 additions and 7 deletions

10
404.php
View File

@ -26,7 +26,15 @@ get_header(); ?>
<div class="widget widget_categories"> <div class="widget widget_categories">
<h2 class="widgettitle"><?php _e( 'Most Used Categories', '_s' ); ?></h2> <h2 class="widgettitle"><?php _e( 'Most Used Categories', '_s' ); ?></h2>
<ul> <ul>
<?php wp_list_categories( array( 'orderby' => 'count', 'order' => 'DESC', 'show_count' => 1, 'title_li' => '', 'number' => 10 ) ); ?> <?php
wp_list_categories( array(
'orderby' => 'count',
'order' => 'DESC',
'show_count' => 1,
'title_li' => '',
'number' => 10
) );
?>
</ul> </ul>
</div><!-- .widget --> </div><!-- .widget -->
<?php endif; ?> <?php endif; ?>

View File

@ -28,7 +28,7 @@ get_header(); ?>
* what author we're dealing with (if that is the case). * what author we're dealing with (if that is the case).
*/ */
the_post(); the_post();
printf( __( 'Author Archives: %s', '_s' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( "ID" ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); printf( __( 'Author Archives: %s', '_s' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' );
/* Since we called the_post() above, we need to /* Since we called the_post() above, we need to
* rewind the loop back to the beginning that way * rewind the loop back to the beginning that way
* we can run the loop properly, in full. * we can run the loop properly, in full.

View File

@ -13,7 +13,12 @@
<div class="entry-content"> <div class="entry-content">
<?php the_content(); ?> <?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', '_s' ), 'after' => '</div>' ) ); ?> <?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', '_s' ),
'after' => '</div>'
) );
?>
</div><!-- .entry-content --> </div><!-- .entry-content -->
<?php edit_post_link( __( 'Edit', '_s' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?> <?php edit_post_link( __( 'Edit', '_s' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
</article><!-- #post-## --> </article><!-- #post-## -->

View File

@ -15,7 +15,12 @@
<div class="entry-content"> <div class="entry-content">
<?php the_content(); ?> <?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', '_s' ), 'after' => '</div>' ) ); ?> <?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', '_s' ),
'after' => '</div>'
) );
?>
</div><!-- .entry-content --> </div><!-- .entry-content -->
<footer class="entry-meta"> <footer class="entry-meta">

View File

@ -22,7 +22,12 @@
<?php else : ?> <?php else : ?>
<div class="entry-content"> <div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', '_s' ) ); ?> <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', '_s' ) ); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', '_s' ), 'after' => '</div>' ) ); ?> <?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', '_s' ),
'after' => '</div>'
) );
?>
</div><!-- .entry-content --> </div><!-- .entry-content -->
<?php endif; ?> <?php endif; ?>

View File

@ -90,7 +90,12 @@ get_header();
</div><!-- .entry-attachment --> </div><!-- .entry-attachment -->
<?php the_content(); ?> <?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', '_s' ), 'after' => '</div>' ) ); ?> <?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', '_s' ),
'after' => '</div>'
) );
?>
</div><!-- .entry-content --> </div><!-- .entry-content -->

View File

@ -96,7 +96,12 @@ function _s_comment( $comment, $args, $depth ) {
<div class="comment-content"><?php comment_text(); ?></div> <div class="comment-content"><?php comment_text(); ?></div>
<div class="reply"> <div class="reply">
<?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> <?php
comment_reply_link( array_merge( $args,array(
'depth' => $depth,
'max_depth' => $args['max_depth']
) ) );
?>
</div><!-- .reply --> </div><!-- .reply -->
</article><!-- #comment-## --> </article><!-- #comment-## -->