forked from mirror/_s
Merge pull request #201 from iamtakashi/minor-clean-up
Minor code style clean-up.
This commit is contained in:
commit
bcff5534a5
10
404.php
10
404.php
|
@ -26,7 +26,15 @@ get_header(); ?>
|
|||
<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; ?>
|
||||
|
|
|
@ -28,7 +28,7 @@ get_header(); ?>
|
|||
* 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.
|
||||
|
|
|
@ -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-## -->
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -22,7 +22,12 @@
|
|||
<?php else : ?>
|
||||
<div class="entry-content">
|
||||
<?php the_content( __( 'Continue reading <span class="meta-nav">→</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; ?>
|
||||
|
||||
|
|
|
@ -90,7 +90,12 @@ get_header();
|
|||
</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 -->
|
||||
|
||||
|
|
|
@ -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-## -->
|
||||
|
||||
|
|
Reference in New Issue