@@ -15,10 +15,10 @@ discard block |
||
15 | 15 | * |
16 | 16 | * If none of the sidebars have widgets, then let's bail early. |
17 | 17 | */ |
18 | - if ( ! is_active_sidebar( 'first-footer-widget-area' ) |
|
19 | - && ! is_active_sidebar( 'second-footer-widget-area' ) |
|
20 | - && ! is_active_sidebar( 'third-footer-widget-area' ) |
|
21 | - && ! is_active_sidebar( 'fourth-footer-widget-area' ) |
|
18 | + if ( ! is_active_sidebar('first-footer-widget-area') |
|
19 | + && ! is_active_sidebar('second-footer-widget-area') |
|
20 | + && ! is_active_sidebar('third-footer-widget-area') |
|
21 | + && ! is_active_sidebar('fourth-footer-widget-area') |
|
22 | 22 | ) |
23 | 23 | return; |
24 | 24 | // If we get this far, we have widgets. Let do this. |
@@ -26,34 +26,34 @@ discard block |
||
26 | 26 | |
27 | 27 | <div id="footer-widget-area" role="complementary"> |
28 | 28 | |
29 | -<?php if ( is_active_sidebar( 'first-footer-widget-area' ) ) : ?> |
|
29 | +<?php if (is_active_sidebar('first-footer-widget-area')) : ?> |
|
30 | 30 | <div id="first" class="widget-area"> |
31 | 31 | <ul class="xoxo"> |
32 | - <?php dynamic_sidebar( 'first-footer-widget-area' ); ?> |
|
32 | + <?php dynamic_sidebar('first-footer-widget-area'); ?> |
|
33 | 33 | </ul> |
34 | 34 | </div><!-- #first .widget-area --> |
35 | 35 | <?php endif; ?> |
36 | 36 | |
37 | -<?php if ( is_active_sidebar( 'second-footer-widget-area' ) ) : ?> |
|
37 | +<?php if (is_active_sidebar('second-footer-widget-area')) : ?> |
|
38 | 38 | <div id="second" class="widget-area"> |
39 | 39 | <ul class="xoxo"> |
40 | - <?php dynamic_sidebar( 'second-footer-widget-area' ); ?> |
|
40 | + <?php dynamic_sidebar('second-footer-widget-area'); ?> |
|
41 | 41 | </ul> |
42 | 42 | </div><!-- #second .widget-area --> |
43 | 43 | <?php endif; ?> |
44 | 44 | |
45 | -<?php if ( is_active_sidebar( 'third-footer-widget-area' ) ) : ?> |
|
45 | +<?php if (is_active_sidebar('third-footer-widget-area')) : ?> |
|
46 | 46 | <div id="third" class="widget-area"> |
47 | 47 | <ul class="xoxo"> |
48 | - <?php dynamic_sidebar( 'third-footer-widget-area' ); ?> |
|
48 | + <?php dynamic_sidebar('third-footer-widget-area'); ?> |
|
49 | 49 | </ul> |
50 | 50 | </div><!-- #third .widget-area --> |
51 | 51 | <?php endif; ?> |
52 | 52 | |
53 | -<?php if ( is_active_sidebar( 'fourth-footer-widget-area' ) ) : ?> |
|
53 | +<?php if (is_active_sidebar('fourth-footer-widget-area')) : ?> |
|
54 | 54 | <div id="fourth" class="widget-area"> |
55 | 55 | <ul class="xoxo"> |
56 | - <?php dynamic_sidebar( 'fourth-footer-widget-area' ); ?> |
|
56 | + <?php dynamic_sidebar('fourth-footer-widget-area'); ?> |
|
57 | 57 | </ul> |
58 | 58 | </div><!-- #fourth .widget-area --> |
59 | 59 | <?php endif; ?> |
@@ -18,8 +18,9 @@ |
||
18 | 18 | if ( ! is_active_sidebar( 'sidebar-3' ) |
19 | 19 | && ! is_active_sidebar( 'sidebar-4' ) |
20 | 20 | && ! is_active_sidebar( 'sidebar-5' ) |
21 | - ) |
|
22 | - return; |
|
21 | + ) { |
|
22 | + return; |
|
23 | + } |
|
23 | 24 | // If we get this far, we have widgets. Let do this. |
24 | 25 | ?> |
25 | 26 | <div id="supplementary" <?php twentyeleven_footer_sidebar_class(); ?>> |
@@ -15,11 +15,11 @@ discard block |
||
15 | 15 | */ |
16 | 16 | ?> |
17 | 17 | |
18 | -<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> |
|
18 | +<?php if (have_posts()) while (have_posts()) : the_post(); ?> |
|
19 | 19 | |
20 | 20 | <div id="nav-above" class="navigation"> |
21 | - <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'twentyten' ) . '</span> %title' ); ?></div> |
|
22 | - <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'twentyten' ) . '</span>' ); ?></div> |
|
21 | + <div class="nav-previous"><?php previous_post_link('%link', '<span class="meta-nav">'._x('←', 'Previous post link', 'twentyten').'</span> %title'); ?></div> |
|
22 | + <div class="nav-next"><?php next_post_link('%link', '%title <span class="meta-nav">'._x('→', 'Next post link', 'twentyten').'</span>'); ?></div> |
|
23 | 23 | </div><!-- #nav-above --> |
24 | 24 | |
25 | 25 | <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
@@ -31,23 +31,23 @@ discard block |
||
31 | 31 | |
32 | 32 | <div class="entry-content"> |
33 | 33 | <?php the_content(); ?> |
34 | - <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?> |
|
34 | + <?php wp_link_pages(array('before' => '<div class="page-link">'.__('Pages:', 'twentyten'), 'after' => '</div>')); ?> |
|
35 | 35 | </div><!-- .entry-content --> |
36 | 36 | |
37 | -<?php if ( get_the_author_meta( 'description' ) ) : // If a user has filled out their description, show a bio on their entries ?> |
|
37 | +<?php if (get_the_author_meta('description')) : // If a user has filled out their description, show a bio on their entries ?> |
|
38 | 38 | <div id="entry-author-info"> |
39 | 39 | <div id="author-avatar"> |
40 | 40 | <?php |
41 | 41 | /** This filter is documented in author.php */ |
42 | - echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); |
|
42 | + echo get_avatar(get_the_author_meta('user_email'), apply_filters('twentyten_author_bio_avatar_size', 60)); |
|
43 | 43 | ?> |
44 | 44 | </div><!-- #author-avatar --> |
45 | 45 | <div id="author-description"> |
46 | - <h2><?php printf( __( 'About %s', 'twentyten' ), get_the_author() ); ?></h2> |
|
47 | - <?php the_author_meta( 'description' ); ?> |
|
46 | + <h2><?php printf(__('About %s', 'twentyten'), get_the_author()); ?></h2> |
|
47 | + <?php the_author_meta('description'); ?> |
|
48 | 48 | <div id="author-link"> |
49 | - <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"> |
|
50 | - <?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'twentyten' ), get_the_author() ); ?> |
|
49 | + <a href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>" rel="author"> |
|
50 | + <?php printf(__('View all posts by %s <span class="meta-nav">→</span>', 'twentyten'), get_the_author()); ?> |
|
51 | 51 | </a> |
52 | 52 | </div><!-- #author-link --> |
53 | 53 | </div><!-- #author-description --> |
@@ -56,15 +56,15 @@ discard block |
||
56 | 56 | |
57 | 57 | <div class="entry-utility"> |
58 | 58 | <?php twentyten_posted_in(); ?> |
59 | - <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?> |
|
59 | + <?php edit_post_link(__('Edit', 'twentyten'), '<span class="edit-link">', '</span>'); ?> |
|
60 | 60 | </div><!-- .entry-utility --> |
61 | 61 | </div><!-- #post-## --> |
62 | 62 | |
63 | 63 | <div id="nav-below" class="navigation"> |
64 | - <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'twentyten' ) . '</span> %title' ); ?></div> |
|
65 | - <div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'twentyten' ) . '</span>' ); ?></div> |
|
64 | + <div class="nav-previous"><?php previous_post_link('%link', '<span class="meta-nav">'._x('←', 'Previous post link', 'twentyten').'</span> %title'); ?></div> |
|
65 | + <div class="nav-next"><?php next_post_link('%link', '%title <span class="meta-nav">'._x('→', 'Next post link', 'twentyten').'</span>'); ?></div> |
|
66 | 66 | </div><!-- #nav-below --> |
67 | 67 | |
68 | - <?php comments_template( '', true ); ?> |
|
68 | + <?php comments_template('', true); ?> |
|
69 | 69 | |
70 | 70 | <?php endwhile; // end of the loop. ?> |
@@ -15,7 +15,10 @@ |
||
15 | 15 | */ |
16 | 16 | ?> |
17 | 17 | |
18 | -<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> |
|
18 | +<?php if ( have_posts() ) { |
|
19 | + while ( have_posts() ) : the_post(); |
|
20 | +} |
|
21 | +?> |
|
19 | 22 | |
20 | 23 | <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
21 | 24 | <?php if ( is_front_page() ) { ?> |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | <div id="content" role="main"> |
14 | 14 | |
15 | 15 | <h1 class="page-title"><?php |
16 | - printf( __( 'Tag Archives: %s', 'twentyten' ), '<span>' . single_tag_title( '', false ) . '</span>' ); |
|
16 | + printf(__('Tag Archives: %s', 'twentyten'), '<span>'.single_tag_title('', false).'</span>'); |
|
17 | 17 | ?></h1> |
18 | 18 | |
19 | 19 | <?php |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * If you want to overload this in a child theme then include a file |
23 | 23 | * called loop-tag.php and that will be used instead. |
24 | 24 | */ |
25 | -get_template_part( 'loop', 'tag' ); |
|
25 | +get_template_part('loop', 'tag'); |
|
26 | 26 | ?> |
27 | 27 | </div><!-- #content --> |
28 | 28 | </div><!-- #container --> |
@@ -25,19 +25,19 @@ discard block |
||
25 | 25 | * We reset this later so we can run the loop |
26 | 26 | * properly with a call to rewind_posts(). |
27 | 27 | */ |
28 | - if ( have_posts() ) |
|
28 | + if (have_posts()) |
|
29 | 29 | the_post(); |
30 | 30 | ?> |
31 | 31 | |
32 | 32 | <h1 class="page-title"> |
33 | -<?php if ( is_day() ) : ?> |
|
34 | - <?php printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_date() ); ?> |
|
35 | -<?php elseif ( is_month() ) : ?> |
|
36 | - <?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyten' ) ) ); ?> |
|
37 | -<?php elseif ( is_year() ) : ?> |
|
38 | - <?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentyten' ) ) ); ?> |
|
33 | +<?php if (is_day()) : ?> |
|
34 | + <?php printf(__('Daily Archives: <span>%s</span>', 'twentyten'), get_the_date()); ?> |
|
35 | +<?php elseif (is_month()) : ?> |
|
36 | + <?php printf(__('Monthly Archives: <span>%s</span>', 'twentyten'), get_the_date(_x('F Y', 'monthly archives date format', 'twentyten'))); ?> |
|
37 | +<?php elseif (is_year()) : ?> |
|
38 | + <?php printf(__('Yearly Archives: <span>%s</span>', 'twentyten'), get_the_date(_x('Y', 'yearly archives date format', 'twentyten'))); ?> |
|
39 | 39 | <?php else : ?> |
40 | - <?php _e( 'Blog Archives', 'twentyten' ); ?> |
|
40 | + <?php _e('Blog Archives', 'twentyten'); ?> |
|
41 | 41 | <?php endif; ?> |
42 | 42 | </h1> |
43 | 43 | |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | * If you want to overload this in a child theme then include a file |
55 | 55 | * called loop-archive.php and that will be used instead. |
56 | 56 | */ |
57 | - get_template_part( 'loop', 'archive' ); |
|
57 | + get_template_part('loop', 'archive'); |
|
58 | 58 | ?> |
59 | 59 | |
60 | 60 | </div><!-- #content --> |
@@ -25,9 +25,10 @@ discard block |
||
25 | 25 | * We reset this later so we can run the loop |
26 | 26 | * properly with a call to rewind_posts(). |
27 | 27 | */ |
28 | - if ( have_posts() ) |
|
29 | - the_post(); |
|
30 | -?> |
|
28 | + if ( have_posts() ) { |
|
29 | + the_post(); |
|
30 | + } |
|
31 | + ?> |
|
31 | 32 | |
32 | 33 | <h1 class="page-title"> |
33 | 34 | <?php if ( is_day() ) : ?> |
@@ -36,8 +37,11 @@ discard block |
||
36 | 37 | <?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyten' ) ) ); ?> |
37 | 38 | <?php elseif ( is_year() ) : ?> |
38 | 39 | <?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentyten' ) ) ); ?> |
39 | -<?php else : ?> |
|
40 | - <?php _e( 'Blog Archives', 'twentyten' ); ?> |
|
40 | +<?php else { |
|
41 | + : ?> |
|
42 | + <?php _e( 'Blog Archives', 'twentyten' ); |
|
43 | +} |
|
44 | +?> |
|
41 | 45 | <?php endif; ?> |
42 | 46 | </h1> |
43 | 47 |
@@ -18,7 +18,7 @@ |
||
18 | 18 | * If you want to overload this in a child theme then include a file |
19 | 19 | * called loop-attachment.php and that will be used instead. |
20 | 20 | */ |
21 | - get_template_part( 'loop', 'attachment' ); |
|
21 | + get_template_part('loop', 'attachment'); |
|
22 | 22 | ?> |
23 | 23 | |
24 | 24 | </div><!-- #content --> |
@@ -15,10 +15,10 @@ discard block |
||
15 | 15 | */ |
16 | 16 | ?> |
17 | 17 | |
18 | -<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> |
|
18 | +<?php if (have_posts()) while (have_posts()) : the_post(); ?> |
|
19 | 19 | |
20 | 20 | <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
21 | - <?php if ( is_front_page() ) { ?> |
|
21 | + <?php if (is_front_page()) { ?> |
|
22 | 22 | <h2 class="entry-title"><?php the_title(); ?></h2> |
23 | 23 | <?php } else { ?> |
24 | 24 | <h1 class="entry-title"><?php the_title(); ?></h1> |
@@ -26,11 +26,11 @@ discard block |
||
26 | 26 | |
27 | 27 | <div class="entry-content"> |
28 | 28 | <?php the_content(); ?> |
29 | - <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?> |
|
30 | - <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?> |
|
29 | + <?php wp_link_pages(array('before' => '<div class="page-link">'.__('Pages:', 'twentyten'), 'after' => '</div>')); ?> |
|
30 | + <?php edit_post_link(__('Edit', 'twentyten'), '<span class="edit-link">', '</span>'); ?> |
|
31 | 31 | </div><!-- .entry-content --> |
32 | 32 | </div><!-- #post-## --> |
33 | 33 | |
34 | - <?php comments_template( '', true ); ?> |
|
34 | + <?php comments_template('', true); ?> |
|
35 | 35 | |
36 | 36 | <?php endwhile; // end of the loop. ?> |
@@ -15,7 +15,10 @@ |
||
15 | 15 | */ |
16 | 16 | ?> |
17 | 17 | |
18 | -<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> |
|
18 | +<?php if ( have_posts() ) { |
|
19 | + while ( have_posts() ) : the_post(); |
|
20 | +} |
|
21 | +?> |
|
19 | 22 | |
20 | 23 | <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
21 | 24 | <?php if ( is_front_page() ) { ?> |
@@ -21,15 +21,15 @@ discard block |
||
21 | 21 | * We reset this later so we can run the loop |
22 | 22 | * properly with a call to rewind_posts(). |
23 | 23 | */ |
24 | - if ( have_posts() ) |
|
24 | + if (have_posts()) |
|
25 | 25 | the_post(); |
26 | 26 | ?> |
27 | 27 | |
28 | - <h1 class="page-title author"><?php printf( __( 'Author Archives: %s', 'twentyten' ), '<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>' ); ?></h1> |
|
28 | + <h1 class="page-title author"><?php printf(__('Author Archives: %s', 'twentyten'), '<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>'); ?></h1> |
|
29 | 29 | |
30 | 30 | <?php |
31 | 31 | // If a user has filled out their description, show a bio on their entries. |
32 | -if ( get_the_author_meta( 'description' ) ) : ?> |
|
32 | +if (get_the_author_meta('description')) : ?> |
|
33 | 33 | <div id="entry-author-info"> |
34 | 34 | <div id="author-avatar"> |
35 | 35 | <?php |
@@ -40,12 +40,12 @@ discard block |
||
40 | 40 | * |
41 | 41 | * @param int The height and width avatar dimensions in pixels. Default 60. |
42 | 42 | */ |
43 | - echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); |
|
43 | + echo get_avatar(get_the_author_meta('user_email'), apply_filters('twentyten_author_bio_avatar_size', 60)); |
|
44 | 44 | ?> |
45 | 45 | </div><!-- #author-avatar --> |
46 | 46 | <div id="author-description"> |
47 | - <h2><?php printf( __( 'About %s', 'twentyten' ), get_the_author() ); ?></h2> |
|
48 | - <?php the_author_meta( 'description' ); ?> |
|
47 | + <h2><?php printf(__('About %s', 'twentyten'), get_the_author()); ?></h2> |
|
48 | + <?php the_author_meta('description'); ?> |
|
49 | 49 | </div><!-- #author-description --> |
50 | 50 | </div><!-- #entry-author-info --> |
51 | 51 | <?php endif; ?> |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * If you want to overload this in a child theme then include a file |
64 | 64 | * called loop-author.php and that will be used instead. |
65 | 65 | */ |
66 | - get_template_part( 'loop', 'author' ); |
|
66 | + get_template_part('loop', 'author'); |
|
67 | 67 | ?> |
68 | 68 | </div><!-- #content --> |
69 | 69 | </div><!-- #container --> |
@@ -21,9 +21,10 @@ |
||
21 | 21 | * We reset this later so we can run the loop |
22 | 22 | * properly with a call to rewind_posts(). |
23 | 23 | */ |
24 | - if ( have_posts() ) |
|
25 | - the_post(); |
|
26 | -?> |
|
24 | + if ( have_posts() ) { |
|
25 | + the_post(); |
|
26 | + } |
|
27 | + ?> |
|
27 | 28 | |
28 | 29 | <h1 class="page-title author"><?php printf( __( 'Author Archives: %s', 'twentyten' ), '<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>' ); ?></h1> |
29 | 30 |
@@ -18,7 +18,7 @@ |
||
18 | 18 | * If you want to overload this in a child theme then include a file |
19 | 19 | * called loop-single.php and that will be used instead. |
20 | 20 | */ |
21 | - get_template_part( 'loop', 'single' ); |
|
21 | + get_template_part('loop', 'single'); |
|
22 | 22 | ?> |
23 | 23 | |
24 | 24 | </div><!-- #content --> |
@@ -23,7 +23,7 @@ |
||
23 | 23 | * If you want to overload this in a child theme then include a file |
24 | 24 | * called loop-page.php and that will be used instead. |
25 | 25 | */ |
26 | - get_template_part( 'loop', 'page' ); |
|
26 | + get_template_part('loop', 'page'); |
|
27 | 27 | ?> |
28 | 28 | |
29 | 29 | </div><!-- #content --> |