Skip to content

Commit

Permalink
Minor code style clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
iamtakashi committed Apr 20, 2013
1 parent a47b152 commit 7be7577
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 7 deletions.
10 changes: 9 additions & 1 deletion 404.php
Expand Up @@ -26,7 +26,15 @@
<div class="widget widget_categories">
<h2 class="widgettitle"><?php _e( 'Most Used Categories', '_s' ); ?></h2>
<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>
</div><!-- .widget -->
<?php endif; ?>
Expand Down
2 changes: 1 addition & 1 deletion archive.php
Expand Up @@ -28,7 +28,7 @@
* what author we're dealing with (if that is the case).
*/
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
* rewind the loop back to the beginning that way
* we can run the loop properly, in full.
Expand Down
7 changes: 6 additions & 1 deletion content-page.php
Expand Up @@ -13,7 +13,12 @@

<div class="entry-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 -->
<?php edit_post_link( __( 'Edit', '_s' ), '<footer class="entry-meta"><span class="edit-link">', '</span></footer>' ); ?>
</article><!-- #post-## -->
7 changes: 6 additions & 1 deletion content-single.php
Expand Up @@ -15,7 +15,12 @@

<div class="entry-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 -->

<footer class="entry-meta">
Expand Down
7 changes: 6 additions & 1 deletion content.php
Expand Up @@ -22,7 +22,12 @@
<?php else : ?>
<div class="entry-content">
<?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 -->
<?php endif; ?>

Expand Down
7 changes: 6 additions & 1 deletion image.php
Expand Up @@ -90,7 +90,12 @@
</div><!-- .entry-attachment -->

<?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 -->

Expand Down
7 changes: 6 additions & 1 deletion inc/template-tags.php
Expand Up @@ -96,7 +96,12 @@ function _s_comment( $comment, $args, $depth ) {
<div class="comment-content"><?php comment_text(); ?></div>

<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 -->
</article><!-- #comment-## -->

Expand Down

0 comments on commit 7be7577

Please sign in to comment.