-
From c3cbe6c0b93d08d9861112da32c2a1ff4a13ac57 Mon Sep 17 00:00:00 2001
From: Chris Christoff <chriscct7@gmail.com>
Date: Sat, 8 Jun 2013 00:28:11 -0400
Subject: [PATCH] Removes Endifs from 2010,2011,2012,2013
---
wp-content/themes/twentyeleven/archive.php | 16 +++----
wp-content/themes/twentyeleven/author.php | 10 ++--
wp-content/themes/twentyeleven/category.php | 6 +--
wp-content/themes/twentyeleven/comments.php | 20 ++++----
wp-content/themes/twentyeleven/content-aside.php | 14 +++---
wp-content/themes/twentyeleven/content-gallery.php | 36 +++++++-------
wp-content/themes/twentyeleven/content-image.php | 16 +++----
wp-content/themes/twentyeleven/content-link.php | 14 +++---
wp-content/themes/twentyeleven/content-quote.php | 30 ++++++------
wp-content/themes/twentyeleven/content-single.php | 8 ++--
wp-content/themes/twentyeleven/content-status.php | 14 +++---
wp-content/themes/twentyeleven/content.php | 48 +++++++++----------
wp-content/themes/twentyeleven/functions.php | 52 ++++++++++----------
wp-content/themes/twentyeleven/header.php | 18 +++----
wp-content/themes/twentyeleven/inc/widgets.php | 10 ++--
wp-content/themes/twentyeleven/index.php | 6 +--
wp-content/themes/twentyeleven/search.php | 6 +--
wp-content/themes/twentyeleven/showcase.php | 18 +++----
wp-content/themes/twentyeleven/sidebar-footer.php | 12 ++---
wp-content/themes/twentyeleven/sidebar.php | 8 ++--
wp-content/themes/twentyeleven/tag.php | 6 +--
wp-content/themes/twentyten/archive.php | 10 ++--
wp-content/themes/twentyten/author.php | 4 +-
wp-content/themes/twentyten/comments.php | 20 ++++----
wp-content/themes/twentyten/functions.php | 28 +++++------
wp-content/themes/twentyten/header.php | 6 +--
wp-content/themes/twentyten/loop-attachment.php | 10 ++--
wp-content/themes/twentyten/loop-single.php | 4 +-
wp-content/themes/twentyten/loop.php | 56 +++++++++++-----------
wp-content/themes/twentyten/search.php | 6 +--
wp-content/themes/twentyten/sidebar-footer.php | 16 +++----
wp-content/themes/twentyten/sidebar.php | 8 ++--
wp-content/themes/twentythirteen/archive.php | 16 +++----
wp-content/themes/twentythirteen/author.php | 8 ++--
wp-content/themes/twentythirteen/category.php | 8 ++--
wp-content/themes/twentythirteen/comments.php | 10 ++--
wp-content/themes/twentythirteen/content-aside.php | 10 ++--
wp-content/themes/twentythirteen/content-audio.php | 8 ++--
wp-content/themes/twentythirteen/content-chat.php | 6 +--
.../themes/twentythirteen/content-gallery.php | 20 ++++----
wp-content/themes/twentythirteen/content-image.php | 12 ++---
wp-content/themes/twentythirteen/content-link.php | 8 ++--
wp-content/themes/twentythirteen/content-none.php | 8 ++--
wp-content/themes/twentythirteen/content-quote.php | 4 +-
.../themes/twentythirteen/content-status.php | 4 +-
wp-content/themes/twentythirteen/content-video.php | 14 +++---
wp-content/themes/twentythirteen/content.php | 24 +++++-----
wp-content/themes/twentythirteen/functions.php | 28 +++++------
wp-content/themes/twentythirteen/image.php | 8 ++--
.../themes/twentythirteen/inc/custom-header.php | 18 +++----
wp-content/themes/twentythirteen/index.php | 6 +--
wp-content/themes/twentythirteen/page.php | 4 +-
wp-content/themes/twentythirteen/search.php | 6 +--
wp-content/themes/twentythirteen/sidebar-main.php | 4 +-
wp-content/themes/twentythirteen/sidebar.php | 4 +-
wp-content/themes/twentythirteen/tag.php | 10 ++--
.../themes/twentythirteen/taxonomy-post_format.php | 6 +--
wp-content/themes/twentytwelve/archive.php | 16 +++----
wp-content/themes/twentytwelve/author.php | 10 ++--
wp-content/themes/twentytwelve/category.php | 10 ++--
wp-content/themes/twentytwelve/comments.php | 10 ++--
wp-content/themes/twentytwelve/content-aside.php | 4 +-
wp-content/themes/twentytwelve/content-image.php | 4 +-
wp-content/themes/twentytwelve/content-link.php | 4 +-
wp-content/themes/twentytwelve/content-page.php | 4 +-
wp-content/themes/twentytwelve/content-quote.php | 4 +-
wp-content/themes/twentytwelve/content-status.php | 4 +-
wp-content/themes/twentytwelve/content.php | 24 +++++-----
wp-content/themes/twentytwelve/functions.php | 20 ++++----
wp-content/themes/twentytwelve/header.php | 4 +-
wp-content/themes/twentytwelve/image.php | 16 +++----
.../themes/twentytwelve/inc/custom-header.php | 10 ++--
wp-content/themes/twentytwelve/index.php | 12 ++---
.../twentytwelve/page-templates/front-page.php | 4 +-
wp-content/themes/twentytwelve/search.php | 6 +--
wp-content/themes/twentytwelve/sidebar-front.php | 8 ++--
wp-content/themes/twentytwelve/sidebar.php | 4 +-
wp-content/themes/twentytwelve/tag.php | 10 ++--
78 files changed, 489 insertions(+), 489 deletions(-)
diff --git a/wp-content/themes/twentyeleven/archive.php b/wp-content/themes/twentyeleven/archive.php
index 13390e2..81a4bad 100644
a
|
b
|
|
17 | 17 | <section id="primary"> |
18 | 18 | <div id="content" role="main"> |
19 | 19 | |
20 | | <?php if ( have_posts() ) : ?> |
| 20 | <?php if ( have_posts() ) { ?> |
21 | 21 | |
22 | 22 | <header class="page-header"> |
23 | 23 | <h1 class="page-title"> |
24 | | <?php if ( is_day() ) : ?> |
| 24 | <?php if ( is_day() ) { ?> |
25 | 25 | <?php printf( __( 'Daily Archives: %s', 'twentyeleven' ), '<span>' . get_the_date() . '</span>' ); ?> |
26 | | <?php elseif ( is_month() ) : ?> |
| 26 | <?php } elseif ( is_month() ) { ?> |
27 | 27 | <?php printf( __( 'Monthly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyeleven' ) ) . '</span>' ); ?> |
28 | | <?php elseif ( is_year() ) : ?> |
| 28 | <?php } elseif ( is_year() ) { ?> |
29 | 29 | <?php printf( __( 'Yearly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentyeleven' ) ) . '</span>' ); ?> |
30 | | <?php else : ?> |
| 30 | <?php } else { ?> |
31 | 31 | <?php _e( 'Blog Archives', 'twentyeleven' ); ?> |
32 | | <?php endif; ?> |
| 32 | <?php } ?> |
33 | 33 | </h1> |
34 | 34 | </header> |
35 | 35 | |
… |
… |
|
50 | 50 | |
51 | 51 | <?php twentyeleven_content_nav( 'nav-below' ); ?> |
52 | 52 | |
53 | | <?php else : ?> |
| 53 | <?php } else { ?> |
54 | 54 | |
55 | 55 | <article id="post-0" class="post no-results not-found"> |
56 | 56 | <header class="entry-header"> |
… |
… |
|
63 | 63 | </div><!-- .entry-content --> |
64 | 64 | </article><!-- #post-0 --> |
65 | 65 | |
66 | | <?php endif; ?> |
| 66 | <?php } ?> |
67 | 67 | |
68 | 68 | </div><!-- #content --> |
69 | 69 | </section><!-- #primary --> |
-
diff --git a/wp-content/themes/twentyeleven/author.php b/wp-content/themes/twentyeleven/author.php
index 472cb13..dd023e6 100644
a
|
b
|
|
12 | 12 | <section id="primary"> |
13 | 13 | <div id="content" role="main"> |
14 | 14 | |
15 | | <?php if ( have_posts() ) : ?> |
| 15 | <?php if ( have_posts() ) { ?> |
16 | 16 | |
17 | 17 | <?php |
18 | 18 | /* Queue the first post, that way we know |
… |
… |
|
40 | 40 | |
41 | 41 | <?php |
42 | 42 | // If a user has filled out their description, show a bio on their entries. |
43 | | if ( get_the_author_meta( 'description' ) ) : ?> |
| 43 | if ( get_the_author_meta( 'description' ) ) { ?> |
44 | 44 | <div id="author-info"> |
45 | 45 | <div id="author-avatar"> |
46 | 46 | <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyeleven_author_bio_avatar_size', 60 ) ); ?> |
… |
… |
|
50 | 50 | <?php the_author_meta( 'description' ); ?> |
51 | 51 | </div><!-- #author-description --> |
52 | 52 | </div><!-- #author-info --> |
53 | | <?php endif; ?> |
| 53 | <?php } ?> |
54 | 54 | |
55 | 55 | <?php /* Start the Loop */ ?> |
56 | 56 | <?php while ( have_posts() ) : the_post(); ?> |
… |
… |
|
67 | 67 | |
68 | 68 | <?php twentyeleven_content_nav( 'nav-below' ); ?> |
69 | 69 | |
70 | | <?php else : ?> |
| 70 | <?php } else { ?> |
71 | 71 | |
72 | 72 | <article id="post-0" class="post no-results not-found"> |
73 | 73 | <header class="entry-header"> |
… |
… |
|
80 | 80 | </div><!-- .entry-content --> |
81 | 81 | </article><!-- #post-0 --> |
82 | 82 | |
83 | | <?php endif; ?> |
| 83 | <?php } ?> |
84 | 84 | |
85 | 85 | </div><!-- #content --> |
86 | 86 | </section><!-- #primary --> |
-
diff --git a/wp-content/themes/twentyeleven/category.php b/wp-content/themes/twentyeleven/category.php
index 539cbbd..1d8b20a 100644
a
|
b
|
|
12 | 12 | <section id="primary"> |
13 | 13 | <div id="content" role="main"> |
14 | 14 | |
15 | | <?php if ( have_posts() ) : ?> |
| 15 | <?php if ( have_posts() ) { ?> |
16 | 16 | |
17 | 17 | <header class="page-header"> |
18 | 18 | <h1 class="page-title"><?php |
… |
… |
|
43 | 43 | |
44 | 44 | <?php twentyeleven_content_nav( 'nav-below' ); ?> |
45 | 45 | |
46 | | <?php else : ?> |
| 46 | <?php } else { ?> |
47 | 47 | |
48 | 48 | <article id="post-0" class="post no-results not-found"> |
49 | 49 | <header class="entry-header"> |
… |
… |
|
56 | 56 | </div><!-- .entry-content --> |
57 | 57 | </article><!-- #post-0 --> |
58 | 58 | |
59 | | <?php endif; ?> |
| 59 | <?php } ?> |
60 | 60 | |
61 | 61 | </div><!-- #content --> |
62 | 62 | </section><!-- #primary --> |
-
diff --git a/wp-content/themes/twentyeleven/comments.php b/wp-content/themes/twentyeleven/comments.php
index 6b77fee..4ff3e01 100644
a
|
b
|
|
13 | 13 | */ |
14 | 14 | ?> |
15 | 15 | <div id="comments"> |
16 | | <?php if ( post_password_required() ) : ?> |
| 16 | <?php if ( post_password_required() ) { ?> |
17 | 17 | <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyeleven' ); ?></p> |
18 | 18 | </div><!-- #comments --> |
19 | 19 | <?php |
… |
… |
|
22 | 22 | * to fully load the template. |
23 | 23 | */ |
24 | 24 | return; |
25 | | endif; |
| 25 | } |
26 | 26 | ?> |
27 | 27 | |
28 | 28 | <?php // You can start editing here -- including this comment! ?> |
29 | 29 | |
30 | | <?php if ( have_comments() ) : ?> |
| 30 | <?php if ( have_comments() ) { ?> |
31 | 31 | <h2 id="comments-title"> |
32 | 32 | <?php |
33 | 33 | printf( _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentyeleven' ), |
… |
… |
|
35 | 35 | ?> |
36 | 36 | </h2> |
37 | 37 | |
38 | | <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> |
| 38 | <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) { // are there comments to navigate through ?> |
39 | 39 | <nav id="comment-nav-above"> |
40 | 40 | <h1 class="assistive-text"><?php _e( 'Comment navigation', 'twentyeleven' ); ?></h1> |
41 | 41 | <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentyeleven' ) ); ?></div> |
42 | 42 | <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentyeleven' ) ); ?></div> |
43 | 43 | </nav> |
44 | | <?php endif; // check for comment navigation ?> |
| 44 | <?php } // check for comment navigation ?> |
45 | 45 | |
46 | 46 | <ol class="commentlist"> |
47 | 47 | <?php |
… |
… |
|
55 | 55 | ?> |
56 | 56 | </ol> |
57 | 57 | |
58 | | <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> |
| 58 | <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) { // are there comments to navigate through ?> |
59 | 59 | <nav id="comment-nav-below"> |
60 | 60 | <h1 class="assistive-text"><?php _e( 'Comment navigation', 'twentyeleven' ); ?></h1> |
61 | 61 | <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentyeleven' ) ); ?></div> |
62 | 62 | <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentyeleven' ) ); ?></div> |
63 | 63 | </nav> |
64 | | <?php endif; // check for comment navigation ?> |
| 64 | <?php } // check for comment navigation ?> |
65 | 65 | |
66 | 66 | <?php |
67 | 67 | /* If there are no comments and comments are closed, let's leave a little note, shall we? |
68 | 68 | * But we only want the note on posts and pages that had comments in the first place. |
69 | 69 | */ |
70 | | if ( ! comments_open() && get_comments_number() ) : ?> |
| 70 | if ( ! comments_open() && get_comments_number() ) { ?> |
71 | 71 | <p class="nocomments"><?php _e( 'Comments are closed.' , 'twentyeleven' ); ?></p> |
72 | | <?php endif; ?> |
| 72 | <?php } ?> |
73 | 73 | |
74 | | <?php endif; // have_comments() ?> |
| 74 | <?php } // have_comments() ?> |
75 | 75 | |
76 | 76 | <?php comment_form(); ?> |
77 | 77 | |
-
diff --git a/wp-content/themes/twentyeleven/content-aside.php b/wp-content/themes/twentyeleven/content-aside.php
index 66f0603..d157850 100644
a
|
b
|
|
17 | 17 | <h3 class="entry-format"><?php _e( 'Aside', 'twentyeleven' ); ?></h3> |
18 | 18 | </hgroup> |
19 | 19 | |
20 | | <?php if ( comments_open() && ! post_password_required() ) : ?> |
| 20 | <?php if ( comments_open() && ! post_password_required() ) { ?> |
21 | 21 | <div class="comments-link"> |
22 | 22 | <?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?> |
23 | 23 | </div> |
24 | | <?php endif; ?> |
| 24 | <?php } ?> |
25 | 25 | </header><!-- .entry-header --> |
26 | 26 | |
27 | | <?php if ( is_search() ) : // Only display Excerpts for Search ?> |
| 27 | <?php if ( is_search() ) { // Only display Excerpts for Search ?> |
28 | 28 | <div class="entry-summary"> |
29 | 29 | <?php the_excerpt(); ?> |
30 | 30 | </div><!-- .entry-summary --> |
31 | | <?php else : ?> |
| 31 | <?php } else { ?> |
32 | 32 | <div class="entry-content"> |
33 | 33 | <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?> |
34 | 34 | <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> |
35 | 35 | </div><!-- .entry-content --> |
36 | | <?php endif; ?> |
| 36 | <?php } ?> |
37 | 37 | |
38 | 38 | <footer class="entry-meta"> |
39 | 39 | <?php twentyeleven_posted_on(); ?> |
40 | | <?php if ( comments_open() ) : ?> |
| 40 | <?php if ( comments_open() ) { ?> |
41 | 41 | <span class="sep"> | </span> |
42 | 42 | <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span> |
43 | | <?php endif; ?> |
| 43 | <?php } ?> |
44 | 44 | <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?> |
45 | 45 | </footer><!-- .entry-meta --> |
46 | 46 | </article><!-- #post-<?php the_ID(); ?> --> |
-
diff --git a/wp-content/themes/twentyeleven/content-gallery.php b/wp-content/themes/twentyeleven/content-gallery.php
index fb7b105..7c4b5d2 100644
a
|
b
|
|
22 | 22 | </div><!-- .entry-meta --> |
23 | 23 | </header><!-- .entry-header --> |
24 | 24 | |
25 | | <?php if ( is_search() ) : // Only display Excerpts for search pages ?> |
| 25 | <?php if ( is_search() ) { // Only display Excerpts for search pages ?> |
26 | 26 | <div class="entry-summary"> |
27 | 27 | <?php the_excerpt(); ?> |
28 | 28 | </div><!-- .entry-summary --> |
29 | | <?php else : ?> |
| 29 | <?php } else { ?> |
30 | 30 | <div class="entry-content"> |
31 | | <?php if ( post_password_required() ) : ?> |
| 31 | <?php if ( post_password_required() ) { ?> |
32 | 32 | <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?> |
33 | | <?php else : |
| 33 | <?php } else { |
34 | 34 | $images = twentyeleven_get_gallery_images(); |
35 | | if ( $images ) : |
| 35 | if ( $images ) { |
36 | 36 | $total_images = count( $images ); |
37 | 37 | $image = array_shift( $images ); |
38 | 38 | ?> |
… |
… |
|
44 | 44 | 'href="' . esc_url( get_permalink() ) . '" title="' . esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ) . '" rel="bookmark"', |
45 | 45 | number_format_i18n( $total_images ) |
46 | 46 | ); ?></em></p> |
47 | | <?php endif; // end twentyeleven_get_gallery_images() check ?> |
| 47 | <?php } // end twentyeleven_get_gallery_images() check ?> |
48 | 48 | <?php the_excerpt(); ?> |
49 | | <?php endif; ?> |
| 49 | <?php } ?> |
50 | 50 | <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> |
51 | 51 | </div><!-- .entry-content --> |
52 | | <?php endif; ?> |
| 52 | <?php } ?> |
53 | 53 | |
54 | 54 | <footer class="entry-meta"> |
55 | 55 | <?php $show_sep = false; ?> |
56 | 56 | <?php |
57 | 57 | /* translators: used between list items, there is a space after the comma */ |
58 | 58 | $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) ); |
59 | | if ( $categories_list ): |
| 59 | if ( $categories_list ) { |
60 | 60 | ?> |
61 | 61 | <span class="cat-links"> |
62 | 62 | <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list ); |
63 | 63 | $show_sep = true; ?> |
64 | 64 | </span> |
65 | | <?php endif; // End if categories ?> |
| 65 | <?php } // End if categories ?> |
66 | 66 | <?php |
67 | 67 | /* translators: used between list items, there is a space after the comma */ |
68 | 68 | $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) ); |
69 | | if ( $tags_list ): |
70 | | if ( $show_sep ) : ?> |
| 69 | if ( $tags_list ) { |
| 70 | if ( $show_sep ) { ?> |
71 | 71 | <span class="sep"> | </span> |
72 | | <?php endif; // End if $show_sep ?> |
| 72 | <?php } // End if $show_sep ?> |
73 | 73 | <span class="tag-links"> |
74 | 74 | <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); |
75 | 75 | $show_sep = true; ?> |
76 | 76 | </span> |
77 | | <?php endif; // End if $tags_list ?> |
| 77 | <?php } // End if $tags_list ?> |
78 | 78 | |
79 | | <?php if ( comments_open() ) : ?> |
80 | | <?php if ( $show_sep ) : ?> |
| 79 | <?php if ( comments_open() ) { ?> |
| 80 | <?php if ( $show_sep ) { ?> |
81 | 81 | <span class="sep"> | </span> |
82 | | <?php endif; // End if $show_sep ?> |
| 82 | <?php } // End if $show_sep ?> |
83 | 83 | <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span> |
84 | | <?php endif; // End if comments_open() ?> |
| 84 | <?php } // End if comments_open() ?> |
85 | 85 | |
86 | 86 | <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?> |
87 | 87 | </footer><!-- .entry-meta --> |
-
diff --git a/wp-content/themes/twentyeleven/content-image.php b/wp-content/themes/twentyeleven/content-image.php
index 4d2cbaf..8bc5dd8 100644
a
|
b
|
|
16 | 16 | <h3 class="entry-format"><?php _e( 'Image', 'twentyeleven' ); ?></h3> |
17 | 17 | </hgroup> |
18 | 18 | |
19 | | <?php if ( comments_open() && ! post_password_required() ) : ?> |
| 19 | <?php if ( comments_open() && ! post_password_required() ) { ?> |
20 | 20 | <div class="comments-link"> |
21 | 21 | <?php comments_popup_link( '<span class="leave-reply">' . __( "Reply", 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?> |
22 | 22 | </div> |
23 | | <?php endif; ?> |
| 23 | <?php } ?> |
24 | 24 | </header><!-- .entry-header --> |
25 | 25 | |
26 | 26 | <div class="entry-content"> |
… |
… |
|
45 | 45 | <?php |
46 | 46 | /* translators: used between list items, there is a space after the comma */ |
47 | 47 | $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) ); |
48 | | if ( $categories_list ): |
| 48 | if ( $categories_list ) { |
49 | 49 | ?> |
50 | 50 | <span class="cat-links"> |
51 | 51 | <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list ); ?> |
52 | 52 | </span> |
53 | | <?php endif; // End if categories ?> |
| 53 | <?php } // End if categories ?> |
54 | 54 | <?php |
55 | 55 | /* translators: used between list items, there is a space after the comma */ |
56 | 56 | $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) ); |
57 | | if ( $tags_list ): ?> |
| 57 | if ( $tags_list ) { ?> |
58 | 58 | <span class="tag-links"> |
59 | 59 | <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?> |
60 | 60 | </span> |
61 | | <?php endif; // End if $tags_list ?> |
| 61 | <?php } // End if $tags_list ?> |
62 | 62 | |
63 | | <?php if ( comments_open() ) : ?> |
| 63 | <?php if ( comments_open() ) { ?> |
64 | 64 | <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span> |
65 | | <?php endif; // End if comments_open() ?> |
| 65 | <?php } // End if comments_open() ?> |
66 | 66 | </div><!-- .entry-meta --> |
67 | 67 | |
68 | 68 | <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?> |
-
diff --git a/wp-content/themes/twentyeleven/content-link.php b/wp-content/themes/twentyeleven/content-link.php
index f03099e..619b14b 100644
a
|
b
|
|
17 | 17 | <h3 class="entry-format"><?php _e( 'Link', 'twentyeleven' ); ?></h3> |
18 | 18 | </hgroup> |
19 | 19 | |
20 | | <?php if ( comments_open() && ! post_password_required() ) : ?> |
| 20 | <?php if ( comments_open() && ! post_password_required() ) { ?> |
21 | 21 | <div class="comments-link"> |
22 | 22 | <?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?> |
23 | 23 | </div> |
24 | | <?php endif; ?> |
| 24 | <?php } ?> |
25 | 25 | </header><!-- .entry-header --> |
26 | 26 | |
27 | | <?php if ( is_search() ) : // Only display Excerpts for Search ?> |
| 27 | <?php if ( is_search() ) { // Only display Excerpts for Search ?> |
28 | 28 | <div class="entry-summary"> |
29 | 29 | <?php the_excerpt(); ?> |
30 | 30 | </div><!-- .entry-summary --> |
31 | | <?php else : ?> |
| 31 | <?php } else { ?> |
32 | 32 | <div class="entry-content"> |
33 | 33 | <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?> |
34 | 34 | <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> |
35 | 35 | </div><!-- .entry-content --> |
36 | | <?php endif; ?> |
| 36 | <?php } ?> |
37 | 37 | |
38 | 38 | <footer class="entry-meta"> |
39 | 39 | <?php twentyeleven_posted_on(); ?> |
40 | | <?php if ( comments_open() ) : ?> |
| 40 | <?php if ( comments_open() ) { ?> |
41 | 41 | <span class="sep"> | </span> |
42 | 42 | <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span> |
43 | | <?php endif; ?> |
| 43 | <?php } ?> |
44 | 44 | <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?> |
45 | 45 | </footer><!-- .entry-meta --> |
46 | 46 | </article><!-- #post-<?php the_ID(); ?> --> |
-
diff --git a/wp-content/themes/twentyeleven/content-quote.php b/wp-content/themes/twentyeleven/content-quote.php
index c74e006..169402a 100644
a
|
b
|
|
19 | 19 | <?php twentyeleven_posted_on(); ?> |
20 | 20 | </div><!-- .entry-meta --> |
21 | 21 | |
22 | | <?php if ( comments_open() && ! post_password_required() ) : ?> |
| 22 | <?php if ( comments_open() && ! post_password_required() ) { ?> |
23 | 23 | <div class="comments-link"> |
24 | 24 | <?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?> |
25 | 25 | </div> |
26 | | <?php endif; ?> |
| 26 | <?php } ?> |
27 | 27 | </header><!-- .entry-header --> |
28 | 28 | |
29 | | <?php if ( is_search() ) : // Only display Excerpts for Search ?> |
| 29 | <?php if ( is_search() ) { // Only display Excerpts for Search ?> |
30 | 30 | <div class="entry-summary"> |
31 | 31 | <?php the_excerpt(); ?> |
32 | 32 | </div><!-- .entry-summary --> |
33 | | <?php else : ?> |
| 33 | <?php } else { ?> |
34 | 34 | <div class="entry-content"> |
35 | 35 | <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?> |
36 | 36 | <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> |
37 | 37 | </div><!-- .entry-content --> |
38 | | <?php endif; ?> |
| 38 | <?php } ?> |
39 | 39 | |
40 | 40 | <footer class="entry-meta"> |
41 | 41 | <?php $show_sep = false; ?> |
42 | 42 | <?php |
43 | 43 | /* translators: used between list items, there is a space after the comma */ |
44 | 44 | $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) ); |
45 | | if ( $categories_list ): |
| 45 | if ( $categories_list ) { |
46 | 46 | ?> |
47 | 47 | <span class="cat-links"> |
48 | 48 | <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list ); |
49 | 49 | $show_sep = true; ?> |
50 | 50 | </span> |
51 | | <?php endif; // End if categories ?> |
| 51 | <?php } // End if categories ?> |
52 | 52 | <?php |
53 | 53 | /* translators: used between list items, there is a space after the comma */ |
54 | 54 | $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) ); |
55 | | if ( $tags_list ): |
56 | | if ( $show_sep ) : ?> |
| 55 | if ( $tags_list ) { |
| 56 | if ( $show_sep ) { ?> |
57 | 57 | <span class="sep"> | </span> |
58 | | <?php endif; // End if $show_sep ?> |
| 58 | <?php } // End if $show_sep ?> |
59 | 59 | <span class="tag-links"> |
60 | 60 | <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); |
61 | 61 | $show_sep = true; ?> |
62 | 62 | </span> |
63 | | <?php endif; // End if $tags_list ?> |
| 63 | <?php } // End if $tags_list ?> |
64 | 64 | |
65 | | <?php if ( comments_open() ) : ?> |
66 | | <?php if ( $show_sep ) : ?> |
| 65 | <?php if ( comments_open() ) { ?> |
| 66 | <?php if ( $show_sep ) { ?> |
67 | 67 | <span class="sep"> | </span> |
68 | | <?php endif; // End if $show_sep ?> |
| 68 | <?php } // End if $show_sep ?> |
69 | 69 | <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span> |
70 | | <?php endif; // End if comments_open() ?> |
| 70 | <?php } // End if comments_open() ?> |
71 | 71 | |
72 | 72 | <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?> |
73 | 73 | </footer><!-- .entry-meta --> |
-
diff --git a/wp-content/themes/twentyeleven/content-single.php b/wp-content/themes/twentyeleven/content-single.php
index 8c28371..f780483 100644
a
|
b
|
|
12 | 12 | <header class="entry-header"> |
13 | 13 | <h1 class="entry-title"><?php the_title(); ?></h1> |
14 | 14 | |
15 | | <?php if ( 'post' == get_post_type() ) : ?> |
| 15 | <?php if ( 'post' == get_post_type() ) { ?> |
16 | 16 | <div class="entry-meta"> |
17 | 17 | <?php twentyeleven_posted_on(); ?> |
18 | 18 | </div><!-- .entry-meta --> |
19 | | <?php endif; ?> |
| 19 | <?php } ?> |
20 | 20 | </header><!-- .entry-header --> |
21 | 21 | |
22 | 22 | <div class="entry-content"> |
… |
… |
|
51 | 51 | ?> |
52 | 52 | <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?> |
53 | 53 | |
54 | | <?php if ( get_the_author_meta( 'description' ) && ( ! function_exists( 'is_multi_author' ) || is_multi_author() ) ) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries ?> |
| 54 | <?php if ( get_the_author_meta( 'description' ) && ( ! function_exists( 'is_multi_author' ) || is_multi_author() ) ) { // If a user has filled out their description and this is a multi-author blog, show a bio on their entries ?> |
55 | 55 | <div id="author-info"> |
56 | 56 | <div id="author-avatar"> |
57 | 57 | <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyeleven_author_bio_avatar_size', 68 ) ); ?> |
… |
… |
|
66 | 66 | </div><!-- #author-link --> |
67 | 67 | </div><!-- #author-description --> |
68 | 68 | </div><!-- #author-info --> |
69 | | <?php endif; ?> |
| 69 | <?php } ?> |
70 | 70 | </footer><!-- .entry-meta --> |
71 | 71 | </article><!-- #post-<?php the_ID(); ?> --> |
-
diff --git a/wp-content/themes/twentyeleven/content-status.php b/wp-content/themes/twentyeleven/content-status.php
index 144d122..4226417 100644
a
|
b
|
|
16 | 16 | <h3 class="entry-format"><?php _e( 'Status', 'twentyeleven' ); ?></h3> |
17 | 17 | </hgroup> |
18 | 18 | |
19 | | <?php if ( comments_open() && ! post_password_required() ) : ?> |
| 19 | <?php if ( comments_open() && ! post_password_required() ) { ?> |
20 | 20 | <div class="comments-link"> |
21 | 21 | <?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?> |
22 | 22 | </div> |
23 | | <?php endif; ?> |
| 23 | <?php } ?> |
24 | 24 | </header><!-- .entry-header --> |
25 | 25 | |
26 | | <?php if ( is_search() ) : // Only display Excerpts for Search ?> |
| 26 | <?php if ( is_search() ) { // Only display Excerpts for Search ?> |
27 | 27 | <div class="entry-summary"> |
28 | 28 | <?php the_excerpt(); ?> |
29 | 29 | </div><!-- .entry-summary --> |
30 | | <?php else : ?> |
| 30 | <?php } else { ?> |
31 | 31 | <div class="entry-content"> |
32 | 32 | <div class="avatar"><?php echo get_avatar( get_the_author_meta( 'ID' ), apply_filters( 'twentyeleven_status_avatar', '65' ) ); ?></div> |
33 | 33 | |
34 | 34 | <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?> |
35 | 35 | <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> |
36 | 36 | </div><!-- .entry-content --> |
37 | | <?php endif; ?> |
| 37 | <?php } ?> |
38 | 38 | |
39 | 39 | <footer class="entry-meta"> |
40 | 40 | <?php twentyeleven_posted_on(); ?> |
41 | | <?php if ( comments_open() ) : ?> |
| 41 | <?php if ( comments_open() ) { ?> |
42 | 42 | <span class="sep"> | </span> |
43 | 43 | <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span> |
44 | | <?php endif; ?> |
| 44 | <?php } ?> |
45 | 45 | <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?> |
46 | 46 | </footer><!-- .entry-meta --> |
47 | 47 | </article><!-- #post-<?php the_ID(); ?> --> |
-
diff --git a/wp-content/themes/twentyeleven/content.php b/wp-content/themes/twentyeleven/content.php
index cc8532c..9981f87 100644
a
|
b
|
|
10 | 10 | |
11 | 11 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
12 | 12 | <header class="entry-header"> |
13 | | <?php if ( is_sticky() ) : ?> |
| 13 | <?php if ( is_sticky() ) { ?> |
14 | 14 | <hgroup> |
15 | 15 | <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2> |
16 | 16 | <h3 class="entry-format"><?php _e( 'Featured', 'twentyeleven' ); ?></h3> |
17 | 17 | </hgroup> |
18 | | <?php else : ?> |
| 18 | <?php } else { ?> |
19 | 19 | <h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1> |
20 | | <?php endif; ?> |
| 20 | <?php } ?> |
21 | 21 | |
22 | | <?php if ( 'post' == get_post_type() ) : ?> |
| 22 | <?php if ( 'post' == get_post_type() ) { ?> |
23 | 23 | <div class="entry-meta"> |
24 | 24 | <?php twentyeleven_posted_on(); ?> |
25 | 25 | </div><!-- .entry-meta --> |
26 | | <?php endif; ?> |
| 26 | <?php } ?> |
27 | 27 | |
28 | | <?php if ( comments_open() && ! post_password_required() ) : ?> |
| 28 | <?php if ( comments_open() && ! post_password_required() ) { ?> |
29 | 29 | <div class="comments-link"> |
30 | 30 | <?php comments_popup_link( '<span class="leave-reply">' . __( 'Reply', 'twentyeleven' ) . '</span>', _x( '1', 'comments number', 'twentyeleven' ), _x( '%', 'comments number', 'twentyeleven' ) ); ?> |
31 | 31 | </div> |
32 | | <?php endif; ?> |
| 32 | <?php } ?> |
33 | 33 | </header><!-- .entry-header --> |
34 | 34 | |
35 | | <?php if ( is_search() ) : // Only display Excerpts for Search ?> |
| 35 | <?php if ( is_search() ) { // Only display Excerpts for Search ?> |
36 | 36 | <div class="entry-summary"> |
37 | 37 | <?php the_excerpt(); ?> |
38 | 38 | </div><!-- .entry-summary --> |
39 | | <?php else : ?> |
| 39 | <?php } else { ?> |
40 | 40 | <div class="entry-content"> |
41 | 41 | <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?> |
42 | 42 | <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> |
43 | 43 | </div><!-- .entry-content --> |
44 | | <?php endif; ?> |
| 44 | <?php } ?> |
45 | 45 | |
46 | 46 | <footer class="entry-meta"> |
47 | 47 | <?php $show_sep = false; ?> |
48 | | <?php if ( is_object_in_taxonomy( get_post_type(), 'category' ) ) : // Hide category text when not supported ?> |
| 48 | <?php if ( is_object_in_taxonomy( get_post_type(), 'category' ) ) { // Hide category text when not supported ?> |
49 | 49 | <?php |
50 | 50 | /* translators: used between list items, there is a space after the comma */ |
51 | 51 | $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) ); |
52 | | if ( $categories_list ): |
| 52 | if ( $categories_list ) { |
53 | 53 | ?> |
54 | 54 | <span class="cat-links"> |
55 | 55 | <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list ); |
56 | 56 | $show_sep = true; ?> |
57 | 57 | </span> |
58 | | <?php endif; // End if categories ?> |
59 | | <?php endif; // End if is_object_in_taxonomy( get_post_type(), 'category' ) ?> |
60 | | <?php if ( is_object_in_taxonomy( get_post_type(), 'post_tag' ) ) : // Hide tag text when not supported ?> |
| 58 | <?php } // End if categories ?> |
| 59 | <?php } // End if is_object_in_taxonomy( get_post_type(), 'category' ) ?> |
| 60 | <?php if ( is_object_in_taxonomy( get_post_type(), 'post_tag' ) ) { // Hide tag text when not supported ?> |
61 | 61 | <?php |
62 | 62 | /* translators: used between list items, there is a space after the comma */ |
63 | 63 | $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) ); |
64 | | if ( $tags_list ): |
65 | | if ( $show_sep ) : ?> |
| 64 | if ( $tags_list ) { |
| 65 | if ( $show_sep ) { ?> |
66 | 66 | <span class="sep"> | </span> |
67 | | <?php endif; // End if $show_sep ?> |
| 67 | <?php } // End if $show_sep ?> |
68 | 68 | <span class="tag-links"> |
69 | 69 | <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); |
70 | 70 | $show_sep = true; ?> |
71 | 71 | </span> |
72 | | <?php endif; // End if $tags_list ?> |
73 | | <?php endif; // End if is_object_in_taxonomy( get_post_type(), 'post_tag' ) ?> |
| 72 | <?php } // End if $tags_list ?> |
| 73 | <?php } // End if is_object_in_taxonomy( get_post_type(), 'post_tag' ) ?> |
74 | 74 | |
75 | | <?php if ( comments_open() ) : ?> |
76 | | <?php if ( $show_sep ) : ?> |
| 75 | <?php if ( comments_open() ) { ?> |
| 76 | <?php if ( $show_sep ) { ?> |
77 | 77 | <span class="sep"> | </span> |
78 | | <?php endif; // End if $show_sep ?> |
| 78 | <?php } // End if $show_sep ?> |
79 | 79 | <span class="comments-link"><?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentyeleven' ) . '</span>', __( '<b>1</b> Reply', 'twentyeleven' ), __( '<b>%</b> Replies', 'twentyeleven' ) ); ?></span> |
80 | | <?php endif; // End if comments_open() ?> |
| 80 | <?php } // End if comments_open() ?> |
81 | 81 | |
82 | 82 | <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?> |
83 | 83 | </footer><!-- .entry-meta --> |
-
diff --git a/wp-content/themes/twentyeleven/functions.php b/wp-content/themes/twentyeleven/functions.php
index 296d887..3a0159a 100644
a
|
b
|
|
49 | 49 | */ |
50 | 50 | add_action( 'after_setup_theme', 'twentyeleven_setup' ); |
51 | 51 | |
52 | | if ( ! function_exists( 'twentyeleven_setup' ) ): |
| 52 | if ( ! function_exists( 'twentyeleven_setup' ) ) { |
53 | 53 | /** |
54 | 54 | * Sets up theme defaults and registers support for various WordPress features. |
55 | 55 | * |
… |
… |
function twentyeleven_setup() { |
207 | 207 | ) |
208 | 208 | ) ); |
209 | 209 | } |
210 | | endif; // twentyeleven_setup |
| 210 | } // twentyeleven_setup |
211 | 211 | |
212 | | if ( ! function_exists( 'twentyeleven_header_style' ) ) : |
| 212 | if ( ! function_exists( 'twentyeleven_header_style' ) ) { |
213 | 213 | /** |
214 | 214 | * Styles the header image and text displayed on the blog |
215 | 215 | * |
… |
… |
function twentyeleven_header_style() { |
227 | 227 | <style type="text/css" id="twentyeleven-header-css"> |
228 | 228 | <?php |
229 | 229 | // Has the text been hidden? |
230 | | if ( 'blank' == $text_color ) : |
| 230 | if ( 'blank' == $text_color ) { |
231 | 231 | ?> |
232 | 232 | #site-title, |
233 | 233 | #site-description { |
… |
… |
function twentyeleven_header_style() { |
237 | 237 | } |
238 | 238 | <?php |
239 | 239 | // If the user has set a custom color for the text use that |
240 | | else : |
| 240 | } else { |
241 | 241 | ?> |
242 | 242 | #site-title a, |
243 | 243 | #site-description { |
244 | 244 | color: #<?php echo $text_color; ?> !important; |
245 | 245 | } |
246 | | <?php endif; ?> |
| 246 | <?php } ?> |
247 | 247 | </style> |
248 | 248 | <?php |
249 | 249 | } |
250 | | endif; // twentyeleven_header_style |
| 250 | } // twentyeleven_header_style |
251 | 251 | |
252 | | if ( ! function_exists( 'twentyeleven_admin_header_style' ) ) : |
| 252 | if ( ! function_exists( 'twentyeleven_admin_header_style' ) ) { |
253 | 253 | /** |
254 | 254 | * Styles the header image displayed on the Appearance > Header admin panel. |
255 | 255 | * |
… |
… |
function twentyeleven_admin_header_style() { |
282 | 282 | } |
283 | 283 | <?php |
284 | 284 | // If the user has set a custom color for the text use that |
285 | | if ( get_header_textcolor() != HEADER_TEXTCOLOR ) : |
| 285 | if ( get_header_textcolor() != HEADER_TEXTCOLOR ) { |
286 | 286 | ?> |
287 | 287 | #site-title a, |
288 | 288 | #site-description { |
289 | 289 | color: #<?php echo get_header_textcolor(); ?>; |
290 | 290 | } |
291 | | <?php endif; ?> |
| 291 | <?php } ?> |
292 | 292 | #headimg img { |
293 | 293 | max-width: 1000px; |
294 | 294 | height: auto; |
… |
… |
function twentyeleven_admin_header_style() { |
297 | 297 | </style> |
298 | 298 | <?php |
299 | 299 | } |
300 | | endif; // twentyeleven_admin_header_style |
| 300 | } // twentyeleven_admin_header_style |
301 | 301 | |
302 | | if ( ! function_exists( 'twentyeleven_admin_header_image' ) ) : |
| 302 | if ( ! function_exists( 'twentyeleven_admin_header_image' ) ) { |
303 | 303 | /** |
304 | 304 | * Custom header image markup displayed on the Appearance > Header admin panel. |
305 | 305 | * |
… |
… |
function twentyeleven_admin_header_image() { ?> |
321 | 321 | <div id="desc" class="displaying-header-text"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></div> |
322 | 322 | <?php if ( $image ) : ?> |
323 | 323 | <img src="<?php echo esc_url( $image ); ?>" alt="" /> |
324 | | <?php endif; ?> |
| 324 | <?php } ?> |
325 | 325 | </div> |
326 | 326 | <?php } |
327 | | endif; // twentyeleven_admin_header_image |
| 327 | } // twentyeleven_admin_header_image |
328 | 328 | |
329 | 329 | /** |
330 | 330 | * Sets the post excerpt length to 40 words. |
… |
… |
function twentyeleven_excerpt_length( $length ) { |
337 | 337 | } |
338 | 338 | add_filter( 'excerpt_length', 'twentyeleven_excerpt_length' ); |
339 | 339 | |
340 | | if ( ! function_exists( 'twentyeleven_continue_reading_link' ) ) : |
| 340 | if ( ! function_exists( 'twentyeleven_continue_reading_link' ) ) { |
341 | 341 | /** |
342 | 342 | * Returns a "Continue Reading" link for excerpts |
343 | 343 | */ |
344 | 344 | function twentyeleven_continue_reading_link() { |
345 | 345 | return ' <a href="'. esc_url( get_permalink() ) . '">' . __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) . '</a>'; |
346 | 346 | } |
347 | | endif; // twentyeleven_continue_reading_link |
| 347 | } // twentyeleven_continue_reading_link |
348 | 348 | |
349 | 349 | /** |
350 | 350 | * Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and twentyeleven_continue_reading_link(). |
… |
… |
function twentyeleven_widgets_init() { |
441 | 441 | } |
442 | 442 | add_action( 'widgets_init', 'twentyeleven_widgets_init' ); |
443 | 443 | |
444 | | if ( ! function_exists( 'twentyeleven_content_nav' ) ) : |
| 444 | if ( ! function_exists( 'twentyeleven_content_nav' ) ) { |
445 | 445 | /** |
446 | 446 | * Display navigation to next/previous pages when applicable |
447 | 447 | */ |
448 | 448 | function twentyeleven_content_nav( $html_id ) { |
449 | 449 | global $wp_query; |
450 | 450 | |
451 | | if ( $wp_query->max_num_pages > 1 ) : ?> |
| 451 | if ( $wp_query->max_num_pages > 1 ) { ?> |
452 | 452 | <nav id="<?php echo esc_attr( $html_id ); ?>"> |
453 | 453 | <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentyeleven' ); ?></h3> |
454 | 454 | <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyeleven' ) ); ?></div> |
455 | 455 | <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?></div> |
456 | 456 | </nav><!-- #nav-above --> |
457 | | <?php endif; |
| 457 | <?php } |
458 | 458 | } |
459 | | endif; // twentyeleven_content_nav |
| 459 | } // twentyeleven_content_nav |
460 | 460 | |
461 | 461 | /** |
462 | 462 | * Return the first link from the post content. If none found, the |
… |
… |
function twentyeleven_footer_sidebar_class() { |
519 | 519 | echo 'class="' . $class . '"'; |
520 | 520 | } |
521 | 521 | |
522 | | if ( ! function_exists( 'twentyeleven_comment' ) ) : |
| 522 | if ( ! function_exists( 'twentyeleven_comment' ) ) { |
523 | 523 | /** |
524 | 524 | * Template for comments and pingbacks. |
525 | 525 | * |
… |
… |
function twentyeleven_comment( $comment, $args, $depth ) { |
568 | 568 | <?php edit_comment_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?> |
569 | 569 | </div><!-- .comment-author .vcard --> |
570 | 570 | |
571 | | <?php if ( $comment->comment_approved == '0' ) : ?> |
| 571 | <?php if ( $comment->comment_approved == '0' ) { ?> |
572 | 572 | <em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentyeleven' ); ?></em> |
573 | 573 | <br /> |
574 | | <?php endif; ?> |
| 574 | <?php } ?> |
575 | 575 | |
576 | 576 | </footer> |
577 | 577 | |
… |
… |
function twentyeleven_comment( $comment, $args, $depth ) { |
586 | 586 | break; |
587 | 587 | endswitch; |
588 | 588 | } |
589 | | endif; // ends check for twentyeleven_comment() |
| 589 | } // ends check for twentyeleven_comment() |
590 | 590 | |
591 | | if ( ! function_exists( 'twentyeleven_posted_on' ) ) : |
| 591 | if ( ! function_exists( 'twentyeleven_posted_on' ) ) { |
592 | 592 | /** |
593 | 593 | * Prints HTML with meta information for the current post-date/time and author. |
594 | 594 | * Create your own twentyeleven_posted_on to override in a child theme |
… |
… |
function twentyeleven_posted_on() { |
606 | 606 | get_the_author() |
607 | 607 | ); |
608 | 608 | } |
609 | | endif; |
| 609 | } |
610 | 610 | |
611 | 611 | /** |
612 | 612 | * Adds two classes to the array of body classes. |
-
diff --git a/wp-content/themes/twentyeleven/header.php b/wp-content/themes/twentyeleven/header.php
index 59b6d3b..9df35ef 100644
a
|
b
|
|
78 | 78 | <?php |
79 | 79 | // Check to see if the header image has been removed |
80 | 80 | $header_image = get_header_image(); |
81 | | if ( $header_image ) : |
| 81 | if ( $header_image ) { |
82 | 82 | // Compatibility with versions of WordPress prior to 3.4. |
83 | 83 | if ( function_exists( 'get_custom_header' ) ) { |
84 | 84 | // We need to figure out what the minimum width should be for our featured image. |
… |
… |
|
94 | 94 | // Check if this is a post or page, if it has a thumbnail, and if it's a big one |
95 | 95 | if ( is_singular() && has_post_thumbnail( $post->ID ) && |
96 | 96 | ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( $header_image_width, $header_image_width ) ) ) && |
97 | | $image[1] >= $header_image_width ) : |
| 97 | $image[1] >= $header_image_width ) { |
98 | 98 | // Houston, we have a new header image! |
99 | 99 | echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' ); |
100 | | else : |
| 100 | } else { |
101 | 101 | // Compatibility with versions of WordPress prior to 3.4. |
102 | 102 | if ( function_exists( 'get_custom_header' ) ) { |
103 | 103 | $header_image_width = get_custom_header()->width; |
… |
… |
|
108 | 108 | } |
109 | 109 | ?> |
110 | 110 | <img src="<?php header_image(); ?>" width="<?php echo $header_image_width; ?>" height="<?php echo $header_image_height; ?>" alt="" /> |
111 | | <?php endif; // end check for featured image or standard header ?> |
| 111 | <?php } // end check for featured image or standard header ?> |
112 | 112 | </a> |
113 | | <?php endif; // end check for removed header image ?> |
| 113 | <?php } // end check for removed header image ?> |
114 | 114 | |
115 | 115 | <?php |
116 | 116 | // Has the text been hidden? |
117 | | if ( 'blank' == get_header_textcolor() ) : |
| 117 | if ( 'blank' == get_header_textcolor() ) { |
118 | 118 | ?> |
119 | | <div class="only-search<?php if ( $header_image ) : ?> with-image<?php endif; ?>"> |
| 119 | <div class="only-search<?php if ( $header_image ) { ?> with-image<?php } ?>"> |
120 | 120 | <?php get_search_form(); ?> |
121 | 121 | </div> |
122 | 122 | <?php |
123 | | else : |
| 123 | } else { |
124 | 124 | ?> |
125 | 125 | <?php get_search_form(); ?> |
126 | | <?php endif; ?> |
| 126 | <?php } ?> |
127 | 127 | |
128 | 128 | <nav id="access" role="navigation"> |
129 | 129 | <h3 class="assistive-text"><?php _e( 'Main menu', 'twentyeleven' ); ?></h3> |
-
diff --git a/wp-content/themes/twentyeleven/inc/widgets.php b/wp-content/themes/twentyeleven/inc/widgets.php
index 2571274..98dfea3 100644
a
|
b
|
function widget( $args, $instance ) { |
74 | 74 | ); |
75 | 75 | $ephemera = new WP_Query( $ephemera_args ); |
76 | 76 | |
77 | | if ( $ephemera->have_posts() ) : |
| 77 | if ( $ephemera->have_posts() ) { |
78 | 78 | echo $before_widget; |
79 | 79 | echo $before_title; |
80 | 80 | echo $title; // Can set this with a widget option, or omit altogether |
… |
… |
function widget( $args, $instance ) { |
83 | 83 | <ol> |
84 | 84 | <?php while ( $ephemera->have_posts() ) : $ephemera->the_post(); ?> |
85 | 85 | |
86 | | <?php if ( 'link' != get_post_format() ) : ?> |
| 86 | <?php if ( 'link' != get_post_format() ) { ?> |
87 | 87 | |
88 | 88 | <li class="widget-entry-title"> |
89 | 89 | <a href="<?php echo esc_url( get_permalink() ); ?>" rel="bookmark"><?php the_title(); ?></a> |
… |
… |
function widget( $args, $instance ) { |
92 | 92 | </span> |
93 | 93 | </li> |
94 | 94 | |
95 | | <?php else : ?> |
| 95 | <?php } else { ?> |
96 | 96 | |
97 | 97 | <li class="widget-entry-title"> |
98 | 98 | <a href="<?php echo esc_url( twentyeleven_get_first_url() ); ?>" rel="bookmark"><?php the_title(); ?> <span>→</span></a> |
… |
… |
function widget( $args, $instance ) { |
101 | 101 | </span> |
102 | 102 | </li> |
103 | 103 | |
104 | | <?php endif; ?> |
| 104 | <?php } ?> |
105 | 105 | |
106 | 106 | <?php endwhile; ?> |
107 | 107 | </ol> |
… |
… |
function widget( $args, $instance ) { |
113 | 113 | wp_reset_postdata(); |
114 | 114 | |
115 | 115 | // end check for ephemeral posts |
116 | | endif; |
| 116 | } |
117 | 117 | |
118 | 118 | $cache[$args['widget_id']] = ob_get_flush(); |
119 | 119 | wp_cache_set( 'widget_twentyeleven_ephemera', $cache, 'widget' ); |
-
diff --git a/wp-content/themes/twentyeleven/index.php b/wp-content/themes/twentyeleven/index.php
index f955f34..e902bf4 100644
a
|
b
|
|
17 | 17 | <div id="primary"> |
18 | 18 | <div id="content" role="main"> |
19 | 19 | |
20 | | <?php if ( have_posts() ) : ?> |
| 20 | <?php if ( have_posts() ) { ?> |
21 | 21 | |
22 | 22 | <?php twentyeleven_content_nav( 'nav-above' ); ?> |
23 | 23 | |
… |
… |
|
30 | 30 | |
31 | 31 | <?php twentyeleven_content_nav( 'nav-below' ); ?> |
32 | 32 | |
33 | | <?php else : ?> |
| 33 | <?php } else { ?> |
34 | 34 | |
35 | 35 | <article id="post-0" class="post no-results not-found"> |
36 | 36 | <header class="entry-header"> |
… |
… |
|
43 | 43 | </div><!-- .entry-content --> |
44 | 44 | </article><!-- #post-0 --> |
45 | 45 | |
46 | | <?php endif; ?> |
| 46 | <?php } ?> |
47 | 47 | |
48 | 48 | </div><!-- #content --> |
49 | 49 | </div><!-- #primary --> |
-
diff --git a/wp-content/themes/twentyeleven/search.php b/wp-content/themes/twentyeleven/search.php
index bf45c2f..76c62f6 100644
a
|
b
|
|
12 | 12 | <section id="primary"> |
13 | 13 | <div id="content" role="main"> |
14 | 14 | |
15 | | <?php if ( have_posts() ) : ?> |
| 15 | <?php if ( have_posts() ) { ?> |
16 | 16 | |
17 | 17 | <header class="page-header"> |
18 | 18 | <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyeleven' ), '<span>' . get_search_query() . '</span>' ); ?></h1> |
… |
… |
|
35 | 35 | |
36 | 36 | <?php twentyeleven_content_nav( 'nav-below' ); ?> |
37 | 37 | |
38 | | <?php else : ?> |
| 38 | <?php } else { ?> |
39 | 39 | |
40 | 40 | <article id="post-0" class="post no-results not-found"> |
41 | 41 | <header class="entry-header"> |
… |
… |
|
48 | 48 | </div><!-- .entry-content --> |
49 | 49 | </article><!-- #post-0 --> |
50 | 50 | |
51 | | <?php endif; ?> |
| 51 | <?php } ?> |
52 | 52 | |
53 | 53 | </div><!-- #content --> |
54 | 54 | </section><!-- #primary --> |
-
diff --git a/wp-content/themes/twentyeleven/showcase.php b/wp-content/themes/twentyeleven/showcase.php
index e514231..db1086f 100644
a
|
b
|
|
45 | 45 | $sticky = get_option( 'sticky_posts' ); |
46 | 46 | |
47 | 47 | // Proceed only if sticky posts exist. |
48 | | if ( ! empty( $sticky ) ) : |
| 48 | if ( ! empty( $sticky ) ) { |
49 | 49 | |
50 | 50 | $featured_args = array( |
51 | 51 | 'post__in' => $sticky, |
… |
… |
|
58 | 58 | $featured = new WP_Query( $featured_args ); |
59 | 59 | |
60 | 60 | // Proceed only if published posts exist |
61 | | if ( $featured->have_posts() ) : |
| 61 | if ( $featured->have_posts() ) { |
62 | 62 | |
63 | 63 | /** |
64 | 64 | * We will need to count featured posts starting from zero |
… |
… |
|
127 | 127 | |
128 | 128 | <?php |
129 | 129 | // Show slider only if we have more than one featured post. |
130 | | if ( $featured->post_count > 1 ) : |
| 130 | if ( $featured->post_count > 1 ) { |
131 | 131 | ?> |
132 | 132 | <nav class="feature-slider"> |
133 | 133 | <ul> |
… |
… |
|
151 | 151 | <?php endwhile; ?> |
152 | 152 | </ul> |
153 | 153 | </nav> |
154 | | <?php endif; // End check for more than one sticky post. ?> |
| 154 | <?php } // End check for more than one sticky post. ?> |
155 | 155 | </div><!-- .featured-posts --> |
156 | | <?php endif; // End check for published posts. ?> |
157 | | <?php endif; // End check for sticky posts. ?> |
| 156 | <?php } // End check for published posts. ?> |
| 157 | <?php } // End check for sticky posts. ?> |
158 | 158 | |
159 | 159 | <section class="recent-posts"> |
160 | 160 | <h1 class="showcase-heading"><?php _e( 'Recent Posts', 'twentyeleven' ); ?></h1> |
… |
… |
|
190 | 190 | |
191 | 191 | echo '<ol class="other-recent-posts">'; |
192 | 192 | |
193 | | endif; |
| 193 | } |
194 | 194 | |
195 | 195 | // For all other recent posts, just display the title and comment status. |
196 | 196 | while ( $recent->have_posts() ) : $recent->the_post(); ?> |
… |
… |
|
212 | 212 | </section><!-- .recent-posts --> |
213 | 213 | |
214 | 214 | <div class="widget-area" role="complementary"> |
215 | | <?php if ( ! dynamic_sidebar( 'sidebar-2' ) ) : ?> |
| 215 | <?php if ( ! dynamic_sidebar( 'sidebar-2' ) ) { ?> |
216 | 216 | |
217 | 217 | <?php |
218 | 218 | the_widget( 'Twenty_Eleven_Ephemera_Widget', '', array( 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>' ) ); |
219 | 219 | ?> |
220 | 220 | |
221 | | <?php endif; // end sidebar widget area ?> |
| 221 | <?php } // end sidebar widget area ?> |
222 | 222 | </div><!-- .widget-area --> |
223 | 223 | |
224 | 224 | </div><!-- #content --> |
-
diff --git a/wp-content/themes/twentyeleven/sidebar-footer.php b/wp-content/themes/twentyeleven/sidebar-footer.php
index cbcb49b..64ae283 100644
a
|
b
|
|
22 | 22 | // If we get this far, we have widgets. Let do this. |
23 | 23 | ?> |
24 | 24 | <div id="supplementary" <?php twentyeleven_footer_sidebar_class(); ?>> |
25 | | <?php if ( is_active_sidebar( 'sidebar-3' ) ) : ?> |
| 25 | <?php if ( is_active_sidebar( 'sidebar-3' ) ) { ?> |
26 | 26 | <div id="first" class="widget-area" role="complementary"> |
27 | 27 | <?php dynamic_sidebar( 'sidebar-3' ); ?> |
28 | 28 | </div><!-- #first .widget-area --> |
29 | | <?php endif; ?> |
| 29 | <?php } ?> |
30 | 30 | |
31 | | <?php if ( is_active_sidebar( 'sidebar-4' ) ) : ?> |
| 31 | <?php if ( is_active_sidebar( 'sidebar-4' ) ) { ?> |
32 | 32 | <div id="second" class="widget-area" role="complementary"> |
33 | 33 | <?php dynamic_sidebar( 'sidebar-4' ); ?> |
34 | 34 | </div><!-- #second .widget-area --> |
35 | | <?php endif; ?> |
| 35 | <?php } ?> |
36 | 36 | |
37 | | <?php if ( is_active_sidebar( 'sidebar-5' ) ) : ?> |
| 37 | <?php if ( is_active_sidebar( 'sidebar-5' ) ) { ?> |
38 | 38 | <div id="third" class="widget-area" role="complementary"> |
39 | 39 | <?php dynamic_sidebar( 'sidebar-5' ); ?> |
40 | 40 | </div><!-- #third .widget-area --> |
41 | | <?php endif; ?> |
| 41 | <?php } ?> |
42 | 42 | </div><!-- #supplementary --> |
| 43 | No newline at end of file |
-
diff --git a/wp-content/themes/twentyeleven/sidebar.php b/wp-content/themes/twentyeleven/sidebar.php
index 0f08571..d45dbd1 100644
a
|
b
|
|
10 | 10 | $options = twentyeleven_get_theme_options(); |
11 | 11 | $current_layout = $options['theme_layout']; |
12 | 12 | |
13 | | if ( 'content' != $current_layout ) : |
| 13 | if ( 'content' != $current_layout ) { |
14 | 14 | ?> |
15 | 15 | <div id="secondary" class="widget-area" role="complementary"> |
16 | | <?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?> |
| 16 | <?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) { ?> |
17 | 17 | |
18 | 18 | <aside id="archives" class="widget"> |
19 | 19 | <h3 class="widget-title"><?php _e( 'Archives', 'twentyeleven' ); ?></h3> |
… |
… |
|
31 | 31 | </ul> |
32 | 32 | </aside> |
33 | 33 | |
34 | | <?php endif; // end sidebar widget area ?> |
| 34 | <?php } // end sidebar widget area ?> |
35 | 35 | </div><!-- #secondary .widget-area --> |
36 | | <?php endif; ?> |
37 | | No newline at end of file |
| 36 | <?php } ?> |
| 37 | No newline at end of file |
-
diff --git a/wp-content/themes/twentyeleven/tag.php b/wp-content/themes/twentyeleven/tag.php
index 8180a8c..3c00a60 100644
a
|
b
|
|
12 | 12 | <section id="primary"> |
13 | 13 | <div id="content" role="main"> |
14 | 14 | |
15 | | <?php if ( have_posts() ) : ?> |
| 15 | <?php if ( have_posts() ) { ?> |
16 | 16 | |
17 | 17 | <header class="page-header"> |
18 | 18 | <h1 class="page-title"><?php |
… |
… |
|
43 | 43 | |
44 | 44 | <?php twentyeleven_content_nav( 'nav-below' ); ?> |
45 | 45 | |
46 | | <?php else : ?> |
| 46 | <?php } else { ?> |
47 | 47 | |
48 | 48 | <article id="post-0" class="post no-results not-found"> |
49 | 49 | <header class="entry-header"> |
… |
… |
|
56 | 56 | </div><!-- .entry-content --> |
57 | 57 | </article><!-- #post-0 --> |
58 | 58 | |
59 | | <?php endif; ?> |
| 59 | <?php } ?> |
60 | 60 | |
61 | 61 | </div><!-- #content --> |
62 | 62 | </section><!-- #primary --> |
-
diff --git a/wp-content/themes/twentyten/archive.php b/wp-content/themes/twentyten/archive.php
index 3899f0e..d63725a 100644
a
|
b
|
|
29 | 29 | ?> |
30 | 30 | |
31 | 31 | <h1 class="page-title"> |
32 | | <?php if ( is_day() ) : ?> |
| 32 | <?php if ( is_day() ) { ?> |
33 | 33 | <?php printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_date() ); ?> |
34 | | <?php elseif ( is_month() ) : ?> |
| 34 | <?php } elseif ( is_month() ) { ?> |
35 | 35 | <?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyten' ) ) ); ?> |
36 | | <?php elseif ( is_year() ) : ?> |
| 36 | <?php } elseif ( is_year() ) { ?> |
37 | 37 | <?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentyten' ) ) ); ?> |
38 | | <?php else : ?> |
| 38 | <?php } else { ?> |
39 | 39 | <?php _e( 'Blog Archives', 'twentyten' ); ?> |
40 | | <?php endif; ?> |
| 40 | <?php } ?> |
41 | 41 | </h1> |
42 | 42 | |
43 | 43 | <?php |
-
diff --git a/wp-content/themes/twentyten/author.php b/wp-content/themes/twentyten/author.php
index 2bd48c8..96f986c 100644
a
|
b
|
|
28 | 28 | |
29 | 29 | <?php |
30 | 30 | // If a user has filled out their description, show a bio on their entries. |
31 | | if ( get_the_author_meta( 'description' ) ) : ?> |
| 31 | if ( get_the_author_meta( 'description' ) ) { ?> |
32 | 32 | <div id="entry-author-info"> |
33 | 33 | <div id="author-avatar"> |
34 | 34 | <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); ?> |
… |
… |
|
38 | 38 | <?php the_author_meta( 'description' ); ?> |
39 | 39 | </div><!-- #author-description --> |
40 | 40 | </div><!-- #entry-author-info --> |
41 | | <?php endif; ?> |
| 41 | <?php } ?> |
42 | 42 | |
43 | 43 | <?php |
44 | 44 | /* Since we called the_post() above, we need to |
-
diff --git a/wp-content/themes/twentyten/comments.php b/wp-content/themes/twentyten/comments.php
index 6252728..4b3d036 100644
a
|
b
|
|
14 | 14 | ?> |
15 | 15 | |
16 | 16 | <div id="comments"> |
17 | | <?php if ( post_password_required() ) : ?> |
| 17 | <?php if ( post_password_required() ) { ?> |
18 | 18 | <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyten' ); ?></p> |
19 | 19 | </div><!-- #comments --> |
20 | 20 | <?php |
… |
… |
|
23 | 23 | * to fully load the template. |
24 | 24 | */ |
25 | 25 | return; |
26 | | endif; |
| 26 | } |
27 | 27 | ?> |
28 | 28 | |
29 | 29 | <?php |
30 | 30 | // You can start editing here -- including this comment! |
31 | 31 | ?> |
32 | 32 | |
33 | | <?php if ( have_comments() ) : ?> |
| 33 | <?php if ( have_comments() ) { ?> |
34 | 34 | <h3 id="comments-title"><?php |
35 | 35 | printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'twentyten' ), |
36 | 36 | number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' ); |
37 | 37 | ?></h3> |
38 | 38 | |
39 | | <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> |
| 39 | <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) { // Are there comments to navigate through? ?> |
40 | 40 | <div class="navigation"> |
41 | 41 | <div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">←</span> Older Comments', 'twentyten' ) ); ?></div> |
42 | 42 | <div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div> |
43 | 43 | </div> <!-- .navigation --> |
44 | | <?php endif; // check for comment navigation ?> |
| 44 | <?php } // check for comment navigation ?> |
45 | 45 | |
46 | 46 | <ol class="commentlist"> |
47 | 47 | <?php |
… |
… |
|
55 | 55 | ?> |
56 | 56 | </ol> |
57 | 57 | |
58 | | <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> |
| 58 | <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) { // Are there comments to navigate through? ?> |
59 | 59 | <div class="navigation"> |
60 | 60 | <div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">←</span> Older Comments', 'twentyten' ) ); ?></div> |
61 | 61 | <div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div> |
62 | 62 | </div><!-- .navigation --> |
63 | | <?php endif; // check for comment navigation ?> |
| 63 | <?php } // check for comment navigation ?> |
64 | 64 | |
65 | 65 | <?php |
66 | 66 | /* If there are no comments and comments are closed, let's leave a little note, shall we? |
67 | 67 | * But we only want the note on posts and pages that had comments in the first place. |
68 | 68 | */ |
69 | | if ( ! comments_open() && get_comments_number() ) : ?> |
| 69 | if ( ! comments_open() && get_comments_number() ) { ?> |
70 | 70 | <p class="nocomments"><?php _e( 'Comments are closed.' , 'twentyten' ); ?></p> |
71 | | <?php endif; ?> |
| 71 | <?php } ?> |
72 | 72 | |
73 | | <?php endif; // end have_comments() ?> |
| 73 | <?php } // end have_comments() ?> |
74 | 74 | |
75 | 75 | <?php comment_form(); ?> |
76 | 76 | |
-
diff --git a/wp-content/themes/twentyten/functions.php b/wp-content/themes/twentyten/functions.php
index adc7e7a..be6a3d4 100644
a
|
b
|
|
50 | 50 | /** Tell WordPress to run twentyten_setup() when the 'after_setup_theme' hook is run. */ |
51 | 51 | add_action( 'after_setup_theme', 'twentyten_setup' ); |
52 | 52 | |
53 | | if ( ! function_exists( 'twentyten_setup' ) ): |
| 53 | if ( ! function_exists( 'twentyten_setup' ) ) { |
54 | 54 | /** |
55 | 55 | * Sets up theme defaults and registers support for various WordPress features. |
56 | 56 | * |
… |
… |
function twentyten_setup() { |
188 | 188 | ) |
189 | 189 | ) ); |
190 | 190 | } |
191 | | endif; |
| 191 | } |
192 | 192 | |
193 | | if ( ! function_exists( 'twentyten_admin_header_style' ) ) : |
| 193 | if ( ! function_exists( 'twentyten_admin_header_style' ) ) { |
194 | 194 | /** |
195 | 195 | * Styles the header image displayed on the Appearance > Header admin panel. |
196 | 196 | * |
… |
… |
function twentyten_admin_header_style() { |
213 | 213 | </style> |
214 | 214 | <?php |
215 | 215 | } |
216 | | endif; |
| 216 | } |
217 | 217 | |
218 | 218 | /** |
219 | 219 | * Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link. |
… |
… |
function twentyten_excerpt_length( $length ) { |
244 | 244 | } |
245 | 245 | add_filter( 'excerpt_length', 'twentyten_excerpt_length' ); |
246 | 246 | |
247 | | if ( ! function_exists( 'twentyten_continue_reading_link' ) ) : |
| 247 | if ( ! function_exists( 'twentyten_continue_reading_link' ) ) { |
248 | 248 | /** |
249 | 249 | * Returns a "Continue Reading" link for excerpts |
250 | 250 | * |
… |
… |
function twentyten_excerpt_length( $length ) { |
254 | 254 | function twentyten_continue_reading_link() { |
255 | 255 | return ' <a href="'. get_permalink() . '">' . __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) . '</a>'; |
256 | 256 | } |
257 | | endif; |
| 257 | } |
258 | 258 | |
259 | 259 | /** |
260 | 260 | * Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and twentyten_continue_reading_link(). |
… |
… |
function twentyten_remove_gallery_css( $css ) { |
315 | 315 | if ( version_compare( $GLOBALS['wp_version'], '3.1', '<' ) ) |
316 | 316 | add_filter( 'gallery_style', 'twentyten_remove_gallery_css' ); |
317 | 317 | |
318 | | if ( ! function_exists( 'twentyten_comment' ) ) : |
| 318 | if ( ! function_exists( 'twentyten_comment' ) ) { |
319 | 319 | /** |
320 | 320 | * Template for comments and pingbacks. |
321 | 321 | * |
… |
… |
function twentyten_comment( $comment, $args, $depth ) { |
337 | 337 | <?php echo get_avatar( $comment, 40 ); ?> |
338 | 338 | <?php printf( __( '%s <span class="says">says:</span>', 'twentyten' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?> |
339 | 339 | </div><!-- .comment-author .vcard --> |
340 | | <?php if ( $comment->comment_approved == '0' ) : ?> |
| 340 | <?php if ( $comment->comment_approved == '0' ) { ?> |
341 | 341 | <em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em> |
342 | 342 | <br /> |
343 | | <?php endif; ?> |
| 343 | <?php } ?> |
344 | 344 | |
345 | 345 | <div class="comment-meta commentmetadata"><a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"> |
346 | 346 | <?php |
… |
… |
function twentyten_comment( $comment, $args, $depth ) { |
367 | 367 | break; |
368 | 368 | endswitch; |
369 | 369 | } |
370 | | endif; |
| 370 | } |
371 | 371 | |
372 | 372 | /** |
373 | 373 | * Register widgetized areas, including two sidebars and four widget-ready columns in the footer. |
… |
… |
function twentyten_remove_recent_comments_style() { |
465 | 465 | } |
466 | 466 | add_action( 'widgets_init', 'twentyten_remove_recent_comments_style' ); |
467 | 467 | |
468 | | if ( ! function_exists( 'twentyten_posted_on' ) ) : |
| 468 | if ( ! function_exists( 'twentyten_posted_on' ) ) { |
469 | 469 | /** |
470 | 470 | * Prints HTML with meta information for the current post-date/time and author. |
471 | 471 | * |
… |
… |
function twentyten_posted_on() { |
486 | 486 | ) |
487 | 487 | ); |
488 | 488 | } |
489 | | endif; |
| 489 | } |
490 | 490 | |
491 | | if ( ! function_exists( 'twentyten_posted_in' ) ) : |
| 491 | if ( ! function_exists( 'twentyten_posted_in' ) ) { |
492 | 492 | /** |
493 | 493 | * Prints HTML with meta information for the current post (category, tags and permalink). |
494 | 494 | * |
… |
… |
function twentyten_posted_in() { |
513 | 513 | the_title_attribute( 'echo=0' ) |
514 | 514 | ); |
515 | 515 | } |
516 | | endif; |
| 516 | } |
517 | 517 | |
518 | 518 | /** |
519 | 519 | * Retrieves the IDs for images in a gallery. |
-
diff --git a/wp-content/themes/twentyten/header.php b/wp-content/themes/twentyten/header.php
index 50cb375..4e618f4 100644
a
|
b
|
|
79 | 79 | if ( is_singular() && current_theme_supports( 'post-thumbnails' ) && |
80 | 80 | has_post_thumbnail( $post->ID ) && |
81 | 81 | ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) && |
82 | | $image[1] >= $header_image_width ) : |
| 82 | $image[1] >= $header_image_width ) { |
83 | 83 | // Houston, we have a new header image! |
84 | 84 | echo get_the_post_thumbnail( $post->ID ); |
85 | | elseif ( get_header_image() ) : |
| 85 | } elseif ( get_header_image() ) { |
86 | 86 | // Compatibility with versions of WordPress prior to 3.4. |
87 | 87 | if ( function_exists( 'get_custom_header' ) ) { |
88 | 88 | $header_image_width = get_custom_header()->width; |
… |
… |
|
93 | 93 | } |
94 | 94 | ?> |
95 | 95 | <img src="<?php header_image(); ?>" width="<?php echo $header_image_width; ?>" height="<?php echo $header_image_height; ?>" alt="" /> |
96 | | <?php endif; ?> |
| 96 | <?php } ?> |
97 | 97 | </div><!-- #branding --> |
98 | 98 | |
99 | 99 | <div id="access" role="navigation"> |
-
diff --git a/wp-content/themes/twentyten/loop-attachment.php b/wp-content/themes/twentyten/loop-attachment.php
index e775869..e507eb1 100644
a
|
b
|
|
17 | 17 | |
18 | 18 | <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> |
19 | 19 | |
20 | | <?php if ( ! empty( $post->post_parent ) ) : ?> |
| 20 | <?php if ( ! empty( $post->post_parent ) ) { ?> |
21 | 21 | <p class="page-title"><a href="<?php echo get_permalink( $post->post_parent ); ?>" title="<?php echo esc_attr( sprintf( __( 'Return to %s', 'twentyten' ), strip_tags( get_the_title( $post->post_parent ) ) ) ); ?>" rel="gallery"><?php |
22 | 22 | /* translators: %s - title of parent post */ |
23 | 23 | printf( __( '<span class="meta-nav">←</span> %s', 'twentyten' ), get_the_title( $post->post_parent ) ); |
24 | 24 | ?></a></p> |
25 | | <?php endif; ?> |
| 25 | <?php } ?> |
26 | 26 | |
27 | 27 | <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
28 | 28 | <h2 class="entry-title"><?php the_title(); ?></h2> |
… |
… |
|
65 | 65 | |
66 | 66 | <div class="entry-content"> |
67 | 67 | <div class="entry-attachment"> |
68 | | <?php if ( wp_attachment_is_image() ) : |
| 68 | <?php if ( wp_attachment_is_image() ) { |
69 | 69 | $attachments = array_values( get_children( array( 'post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) ); |
70 | 70 | foreach ( $attachments as $k => $attachment ) { |
71 | 71 | if ( $attachment->ID == $post->ID ) |
… |
… |
|
95 | 95 | <div class="nav-previous"><?php previous_image_link( false ); ?></div> |
96 | 96 | <div class="nav-next"><?php next_image_link( false ); ?></div> |
97 | 97 | </div><!-- #nav-below --> |
98 | | <?php else : ?> |
| 98 | <?php } else { ?> |
99 | 99 | <a href="<?php echo wp_get_attachment_url(); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php echo basename( get_permalink() ); ?></a> |
100 | | <?php endif; ?> |
| 100 | <?php } ?> |
101 | 101 | </div><!-- .entry-attachment --> |
102 | 102 | <div class="entry-caption"><?php if ( !empty( $post->post_excerpt ) ) the_excerpt(); ?></div> |
103 | 103 | |
-
diff --git a/wp-content/themes/twentyten/loop-single.php b/wp-content/themes/twentyten/loop-single.php
index 1dde4aa..ec38034 100644
a
|
b
|
|
34 | 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 echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); ?> |
… |
… |
|
49 | 49 | </div><!-- #author-link --> |
50 | 50 | </div><!-- #author-description --> |
51 | 51 | </div><!-- #entry-author-info --> |
52 | | <?php endif; ?> |
| 52 | <?php } ?> |
53 | 53 | |
54 | 54 | <div class="entry-utility"> |
55 | 55 | <?php twentyten_posted_in(); ?> |
-
diff --git a/wp-content/themes/twentyten/loop.php b/wp-content/themes/twentyten/loop.php
index a2d7f2e..c51c462 100644
a
|
b
|
|
20 | 20 | ?> |
21 | 21 | |
22 | 22 | <?php /* Display navigation to next/previous pages when applicable */ ?> |
23 | | <?php if ( $wp_query->max_num_pages > 1 ) : ?> |
| 23 | <?php if ( $wp_query->max_num_pages > 1 ) { ?> |
24 | 24 | <div id="nav-above" class="navigation"> |
25 | 25 | <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyten' ) ); ?></div> |
26 | 26 | <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div> |
27 | 27 | </div><!-- #nav-above --> |
28 | | <?php endif; ?> |
| 28 | <?php } ?> |
29 | 29 | |
30 | 30 | <?php /* If there are no posts to display, such as an empty archive page */ ?> |
31 | | <?php if ( ! have_posts() ) : ?> |
| 31 | <?php if ( ! have_posts() ) { ?> |
32 | 32 | <div id="post-0" class="post error404 not-found"> |
33 | 33 | <h1 class="entry-title"><?php _e( 'Not Found', 'twentyten' ); ?></h1> |
34 | 34 | <div class="entry-content"> |
… |
… |
|
36 | 36 | <?php get_search_form(); ?> |
37 | 37 | </div><!-- .entry-content --> |
38 | 38 | </div><!-- #post-0 --> |
39 | | <?php endif; ?> |
| 39 | <?php } ?> |
40 | 40 | |
41 | 41 | <?php |
42 | 42 | /* Start the Loop. |
… |
… |
|
57 | 57 | |
58 | 58 | <?php /* How to display posts of the Gallery format. The gallery category is the old way. */ ?> |
59 | 59 | |
60 | | <?php if ( ( function_exists( 'get_post_format' ) && 'gallery' == get_post_format( $post->ID ) ) || in_category( _x( 'gallery', 'gallery category slug', 'twentyten' ) ) ) : ?> |
| 60 | <?php if ( ( function_exists( 'get_post_format' ) && 'gallery' == get_post_format( $post->ID ) ) || in_category( _x( 'gallery', 'gallery category slug', 'twentyten' ) ) ) { ?> |
61 | 61 | <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
62 | 62 | <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2> |
63 | 63 | |
… |
… |
|
66 | 66 | </div><!-- .entry-meta --> |
67 | 67 | |
68 | 68 | <div class="entry-content"> |
69 | | <?php if ( post_password_required() ) : ?> |
| 69 | <?php if ( post_password_required() ) { ?> |
70 | 70 | <?php the_content(); ?> |
71 | | <?php else : ?> |
| 71 | <?php } else { ?> |
72 | 72 | <?php |
73 | 73 | $images = twentyten_get_gallery_images(); |
74 | | if ( $images ) : |
| 74 | if ( $images ) { |
75 | 75 | $total_images = count( $images ); |
76 | 76 | $image = array_shift( $images ); |
77 | 77 | ?> |
… |
… |
|
82 | 82 | 'href="' . get_permalink() . '" title="' . esc_attr( sprintf( __( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) ) . '" rel="bookmark"', |
83 | 83 | number_format_i18n( $total_images ) |
84 | 84 | ); ?></em></p> |
85 | | <?php endif; // end twentyten_get_gallery_images() check ?> |
| 85 | <?php } // end twentyten_get_gallery_images() check ?> |
86 | 86 | <?php the_excerpt(); ?> |
87 | | <?php endif; ?> |
| 87 | <?php } ?> |
88 | 88 | </div><!-- .entry-content --> |
89 | 89 | |
90 | 90 | <div class="entry-utility"> |
91 | | <?php if ( function_exists( 'get_post_format' ) && 'gallery' == get_post_format( $post->ID ) ) : ?> |
| 91 | <?php if ( function_exists( 'get_post_format' ) && 'gallery' == get_post_format( $post->ID ) ) { ?> |
92 | 92 | <a href="<?php echo get_post_format_link( 'gallery' ); ?>" title="<?php esc_attr_e( 'View Galleries', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a> |
93 | 93 | <span class="meta-sep">|</span> |
94 | | <?php elseif ( $gallery = get_term_by( 'slug', _x( 'gallery', 'gallery category slug', 'twentyten' ), 'category' ) && in_category( $gallery->term_id ) ) : ?> |
| 94 | <?php } elseif ( $gallery = get_term_by( 'slug', _x( 'gallery', 'gallery category slug', 'twentyten' ), 'category' ) && in_category( $gallery->term_id ) ) { ?> |
95 | 95 | <a href="<?php echo get_category_link( $gallery ); ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a> |
96 | 96 | <span class="meta-sep">|</span> |
97 | | <?php endif; ?> |
| 97 | <?php } ?> |
98 | 98 | <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> |
99 | 99 | <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?> |
100 | 100 | </div><!-- .entry-utility --> |
… |
… |
|
102 | 102 | |
103 | 103 | <?php /* How to display posts of the Aside format. The asides category is the old way. */ ?> |
104 | 104 | |
105 | | <?php elseif ( ( function_exists( 'get_post_format' ) && 'aside' == get_post_format( $post->ID ) ) || in_category( _x( 'asides', 'asides category slug', 'twentyten' ) ) ) : ?> |
| 105 | <?php } elseif ( ( function_exists( 'get_post_format' ) && 'aside' == get_post_format( $post->ID ) ) || in_category( _x( 'asides', 'asides category slug', 'twentyten' ) ) ) { ?> |
106 | 106 | <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
107 | 107 | |
108 | | <?php if ( is_archive() || is_search() ) : // Display excerpts for archives and search. ?> |
| 108 | <?php if ( is_archive() || is_search() ) { // Display excerpts for archives and search. ?> |
109 | 109 | <div class="entry-summary"> |
110 | 110 | <?php the_excerpt(); ?> |
111 | 111 | </div><!-- .entry-summary --> |
112 | | <?php else : ?> |
| 112 | <?php } else { ?> |
113 | 113 | <div class="entry-content"> |
114 | 114 | <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> |
115 | 115 | </div><!-- .entry-content --> |
116 | | <?php endif; ?> |
| 116 | <?php } ?> |
117 | 117 | |
118 | 118 | <div class="entry-utility"> |
119 | 119 | <?php twentyten_posted_on(); ?> |
… |
… |
|
125 | 125 | |
126 | 126 | <?php /* How to display all other posts. */ ?> |
127 | 127 | |
128 | | <?php else : ?> |
| 128 | <?php } else { ?> |
129 | 129 | <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
130 | 130 | <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2> |
131 | 131 | |
… |
… |
|
133 | 133 | <?php twentyten_posted_on(); ?> |
134 | 134 | </div><!-- .entry-meta --> |
135 | 135 | |
136 | | <?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?> |
| 136 | <?php if ( is_archive() || is_search() ) { // Only display excerpts for archives and search. ?> |
137 | 137 | <div class="entry-summary"> |
138 | 138 | <?php the_excerpt(); ?> |
139 | 139 | </div><!-- .entry-summary --> |
140 | | <?php else : ?> |
| 140 | <?php } else { ?> |
141 | 141 | <div class="entry-content"> |
142 | 142 | <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> |
143 | 143 | <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?> |
144 | 144 | </div><!-- .entry-content --> |
145 | | <?php endif; ?> |
| 145 | <?php } ?> |
146 | 146 | |
147 | 147 | <div class="entry-utility"> |
148 | | <?php if ( count( get_the_category() ) ) : ?> |
| 148 | <?php if ( count( get_the_category() ) ) { ?> |
149 | 149 | <span class="cat-links"> |
150 | 150 | <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?> |
151 | 151 | </span> |
152 | 152 | <span class="meta-sep">|</span> |
153 | | <?php endif; ?> |
| 153 | <?php } ?> |
154 | 154 | <?php |
155 | 155 | $tags_list = get_the_tag_list( '', ', ' ); |
156 | | if ( $tags_list ): |
| 156 | if ( $tags_list ) { |
157 | 157 | ?> |
158 | 158 | <span class="tag-links"> |
159 | 159 | <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?> |
160 | 160 | </span> |
161 | 161 | <span class="meta-sep">|</span> |
162 | | <?php endif; ?> |
| 162 | <?php } ?> |
163 | 163 | <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> |
164 | 164 | <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?> |
165 | 165 | </div><!-- .entry-utility --> |
… |
… |
|
167 | 167 | |
168 | 168 | <?php comments_template( '', true ); ?> |
169 | 169 | |
170 | | <?php endif; // This was the if statement that broke the loop into three parts based on categories. ?> |
| 170 | <?php } // This was the if statement that broke the loop into three parts based on categories. ?> |
171 | 171 | |
172 | 172 | <?php endwhile; // End the loop. Whew. ?> |
173 | 173 | |
174 | 174 | <?php /* Display navigation to next/previous pages when applicable */ ?> |
175 | | <?php if ( $wp_query->max_num_pages > 1 ) : ?> |
| 175 | <?php if ( $wp_query->max_num_pages > 1 ) { ?> |
176 | 176 | <div id="nav-below" class="navigation"> |
177 | 177 | <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyten' ) ); ?></div> |
178 | 178 | <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div> |
179 | 179 | </div><!-- #nav-below --> |
180 | | <?php endif; ?> |
| 180 | <?php } ?> |
-
diff --git a/wp-content/themes/twentyten/search.php b/wp-content/themes/twentyten/search.php
index 3b198bb..208c808 100644
a
|
b
|
|
12 | 12 | <div id="container"> |
13 | 13 | <div id="content" role="main"> |
14 | 14 | |
15 | | <?php if ( have_posts() ) : ?> |
| 15 | <?php if ( have_posts() ) { ?> |
16 | 16 | <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyten' ), '<span>' . get_search_query() . '</span>' ); ?></h1> |
17 | 17 | <?php |
18 | 18 | /* Run the loop for the search to output the results. |
… |
… |
|
21 | 21 | */ |
22 | 22 | get_template_part( 'loop', 'search' ); |
23 | 23 | ?> |
24 | | <?php else : ?> |
| 24 | <?php } else { ?> |
25 | 25 | <div id="post-0" class="post no-results not-found"> |
26 | 26 | <h2 class="entry-title"><?php _e( 'Nothing Found', 'twentyten' ); ?></h2> |
27 | 27 | <div class="entry-content"> |
… |
… |
|
29 | 29 | <?php get_search_form(); ?> |
30 | 30 | </div><!-- .entry-content --> |
31 | 31 | </div><!-- #post-0 --> |
32 | | <?php endif; ?> |
| 32 | <?php } ?> |
33 | 33 | </div><!-- #content --> |
34 | 34 | </div><!-- #container --> |
35 | 35 | |
-
diff --git a/wp-content/themes/twentyten/sidebar-footer.php b/wp-content/themes/twentyten/sidebar-footer.php
index 0e9f702..8c1fdff 100644
a
|
b
|
|
25 | 25 | |
26 | 26 | <div id="footer-widget-area" role="complementary"> |
27 | 27 | |
28 | | <?php if ( is_active_sidebar( 'first-footer-widget-area' ) ) : ?> |
| 28 | <?php if ( is_active_sidebar( 'first-footer-widget-area' ) ) { ?> |
29 | 29 | <div id="first" class="widget-area"> |
30 | 30 | <ul class="xoxo"> |
31 | 31 | <?php dynamic_sidebar( 'first-footer-widget-area' ); ?> |
32 | 32 | </ul> |
33 | 33 | </div><!-- #first .widget-area --> |
34 | | <?php endif; ?> |
| 34 | <?php } ?> |
35 | 35 | |
36 | | <?php if ( is_active_sidebar( 'second-footer-widget-area' ) ) : ?> |
| 36 | <?php if ( is_active_sidebar( 'second-footer-widget-area' ) ) { ?> |
37 | 37 | <div id="second" class="widget-area"> |
38 | 38 | <ul class="xoxo"> |
39 | 39 | <?php dynamic_sidebar( 'second-footer-widget-area' ); ?> |
40 | 40 | </ul> |
41 | 41 | </div><!-- #second .widget-area --> |
42 | | <?php endif; ?> |
| 42 | <?php } ?> |
43 | 43 | |
44 | | <?php if ( is_active_sidebar( 'third-footer-widget-area' ) ) : ?> |
| 44 | <?php if ( is_active_sidebar( 'third-footer-widget-area' ) ) { ?> |
45 | 45 | <div id="third" class="widget-area"> |
46 | 46 | <ul class="xoxo"> |
47 | 47 | <?php dynamic_sidebar( 'third-footer-widget-area' ); ?> |
48 | 48 | </ul> |
49 | 49 | </div><!-- #third .widget-area --> |
50 | | <?php endif; ?> |
| 50 | <?php } ?> |
51 | 51 | |
52 | | <?php if ( is_active_sidebar( 'fourth-footer-widget-area' ) ) : ?> |
| 52 | <?php if ( is_active_sidebar( 'fourth-footer-widget-area' ) ) { ?> |
53 | 53 | <div id="fourth" class="widget-area"> |
54 | 54 | <ul class="xoxo"> |
55 | 55 | <?php dynamic_sidebar( 'fourth-footer-widget-area' ); ?> |
56 | 56 | </ul> |
57 | 57 | </div><!-- #fourth .widget-area --> |
58 | | <?php endif; ?> |
| 58 | <?php } ?> |
59 | 59 | |
60 | 60 | </div><!-- #footer-widget-area --> |
-
diff --git a/wp-content/themes/twentyten/sidebar.php b/wp-content/themes/twentyten/sidebar.php
index 8a1664f..34bd06b 100644
a
|
b
|
|
17 | 17 | * then the sidebar simply doesn't exist, so we'll hard-code in |
18 | 18 | * some default sidebar stuff just in case. |
19 | 19 | */ |
20 | | if ( ! dynamic_sidebar( 'primary-widget-area' ) ) : ?> |
| 20 | if ( ! dynamic_sidebar( 'primary-widget-area' ) ) { ?> |
21 | 21 | |
22 | 22 | <li id="search" class="widget-container widget_search"> |
23 | 23 | <?php get_search_form(); ?> |
… |
… |
|
39 | 39 | </ul> |
40 | 40 | </li> |
41 | 41 | |
42 | | <?php endif; // end primary widget area ?> |
| 42 | <?php } // end primary widget area ?> |
43 | 43 | </ul> |
44 | 44 | </div><!-- #primary .widget-area --> |
45 | 45 | |
46 | 46 | <?php |
47 | 47 | // A second sidebar for widgets, just because. |
48 | | if ( is_active_sidebar( 'secondary-widget-area' ) ) : ?> |
| 48 | if ( is_active_sidebar( 'secondary-widget-area' ) ) { ?> |
49 | 49 | |
50 | 50 | <div id="secondary" class="widget-area" role="complementary"> |
51 | 51 | <ul class="xoxo"> |
… |
… |
|
53 | 53 | </ul> |
54 | 54 | </div><!-- #secondary .widget-area --> |
55 | 55 | |
56 | | <?php endif; ?> |
| 56 | <?php } ?> |
-
diff --git a/wp-content/themes/twentythirteen/archive.php b/wp-content/themes/twentythirteen/archive.php
index af6c0ca..dae63c3 100644
a
|
b
|
|
22 | 22 | <div id="primary" class="content-area"> |
23 | 23 | <div id="content" class="site-content" role="main"> |
24 | 24 | |
25 | | <?php if ( have_posts() ) : ?> |
| 25 | <?php if ( have_posts() ) { ?> |
26 | 26 | <header class="archive-header"> |
27 | 27 | <h1 class="archive-title"><?php |
28 | | if ( is_day() ) : |
| 28 | if ( is_day() ) { |
29 | 29 | printf( __( 'Daily Archives: %s', 'twentythirteen' ), get_the_date() ); |
30 | | elseif ( is_month() ) : |
| 30 | } elseif ( is_month() ) { |
31 | 31 | printf( __( 'Monthly Archives: %s', 'twentythirteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentythirteen' ) ) ); |
32 | | elseif ( is_year() ) : |
| 32 | } elseif ( is_year() ) { |
33 | 33 | printf( __( 'Yearly Archives: %s', 'twentythirteen' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentythirteen' ) ) ); |
34 | | else : |
| 34 | } else { |
35 | 35 | _e( 'Archives', 'twentythirteen' ); |
36 | | endif; |
| 36 | } |
37 | 37 | ?></h1> |
38 | 38 | </header><!-- .archive-header --> |
39 | 39 | |
… |
… |
|
44 | 44 | |
45 | 45 | <?php twentythirteen_paging_nav(); ?> |
46 | 46 | |
47 | | <?php else : ?> |
| 47 | <?php } else { ?> |
48 | 48 | <?php get_template_part( 'content', 'none' ); ?> |
49 | | <?php endif; ?> |
| 49 | <?php } ?> |
50 | 50 | |
51 | 51 | </div><!-- #content --> |
52 | 52 | </div><!-- #primary --> |
-
diff --git a/wp-content/themes/twentythirteen/author.php b/wp-content/themes/twentythirteen/author.php
index dd27b07..5b302c5 100644
a
|
b
|
|
38 | 38 | rewind_posts(); |
39 | 39 | ?> |
40 | 40 | |
41 | | <?php if ( get_the_author_meta( 'description' ) ) : ?> |
| 41 | <?php if ( get_the_author_meta( 'description' ) ) { ?> |
42 | 42 | <?php get_template_part( 'author-bio' ); ?> |
43 | | <?php endif; ?> |
| 43 | <?php } ?> |
44 | 44 | |
45 | 45 | <?php /* The loop */ ?> |
46 | 46 | <?php while ( have_posts() ) : the_post(); ?> |
… |
… |
|
49 | 49 | |
50 | 50 | <?php twentythirteen_paging_nav(); ?> |
51 | 51 | |
52 | | <?php else : ?> |
| 52 | <?php } else { ?> |
53 | 53 | <?php get_template_part( 'content', 'none' ); ?> |
54 | | <?php endif; ?> |
| 54 | <?php } ?> |
55 | 55 | |
56 | 56 | </div><!-- #content --> |
57 | 57 | </div><!-- #primary --> |
-
diff --git a/wp-content/themes/twentythirteen/category.php b/wp-content/themes/twentythirteen/category.php
index 7971177..c500d30 100644
a
|
b
|
|
14 | 14 | <div id="primary" class="content-area"> |
15 | 15 | <div id="content" class="site-content" role="main"> |
16 | 16 | |
17 | | <?php if ( have_posts() ) : ?> |
| 17 | <?php if ( have_posts() ) { ?> |
18 | 18 | <header class="archive-header"> |
19 | 19 | <h1 class="archive-title"><?php printf( __( 'Category Archives: %s', 'twentythirteen' ), single_cat_title( '', false ) ); ?></h1> |
20 | 20 | |
21 | 21 | <?php if ( category_description() ) : // Show an optional category description ?> |
22 | 22 | <div class="archive-meta"><?php echo category_description(); ?></div> |
23 | | <?php endif; ?> |
| 23 | <?php } ?> |
24 | 24 | </header><!-- .archive-header --> |
25 | 25 | |
26 | 26 | <?php /* The loop */ ?> |
… |
… |
|
30 | 30 | |
31 | 31 | <?php twentythirteen_paging_nav(); ?> |
32 | 32 | |
33 | | <?php else : ?> |
| 33 | <?php } else { ?> |
34 | 34 | <?php get_template_part( 'content', 'none' ); ?> |
35 | | <?php endif; ?> |
| 35 | <?php } ?> |
36 | 36 | |
37 | 37 | </div><!-- #content --> |
38 | 38 | </div><!-- #primary --> |
-
diff --git a/wp-content/themes/twentythirteen/comments.php b/wp-content/themes/twentythirteen/comments.php
index 22818ac..9348d95 100644
a
|
b
|
|
39 | 39 | |
40 | 40 | <?php |
41 | 41 | // Are there comments to navigate through? |
42 | | if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : |
| 42 | if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) { |
43 | 43 | ?> |
44 | 44 | <nav class="navigation comment-navigation" role="navigation"> |
45 | 45 | <h1 class="screen-reader-text section-heading"><?php _e( 'Comment navigation', 'twentythirteen' ); ?></h1> |
46 | 46 | <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentythirteen' ) ); ?></div> |
47 | 47 | <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentythirteen' ) ); ?></div> |
48 | 48 | </nav><!-- .comment-navigation --> |
49 | | <?php endif; // Check for comment navigation ?> |
| 49 | <?php } // Check for comment navigation ?> |
50 | 50 | |
51 | | <?php if ( ! comments_open() && get_comments_number() ) : ?> |
| 51 | <?php if ( ! comments_open() && get_comments_number() ) { ?> |
52 | 52 | <p class="no-comments"><?php _e( 'Comments are closed.' , 'twentythirteen' ); ?></p> |
53 | | <?php endif; ?> |
| 53 | <?php } ?> |
54 | 54 | |
55 | | <?php endif; // have_comments() ?> |
| 55 | <?php } // have_comments() ?> |
56 | 56 | |
57 | 57 | <?php comment_form(); ?> |
58 | 58 | |
-
diff --git a/wp-content/themes/twentythirteen/content-aside.php b/wp-content/themes/twentythirteen/content-aside.php
index 9949fdd..e9f527c 100644
a
|
b
|
|
15 | 15 | </div><!-- .entry-content --> |
16 | 16 | |
17 | 17 | <footer class="entry-meta"> |
18 | | <?php if ( is_single() ) : ?> |
| 18 | <?php if ( is_single() ) { ?> |
19 | 19 | <?php twentythirteen_entry_meta(); ?> |
20 | 20 | <?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?> |
21 | 21 | |
22 | | <?php if ( get_the_author_meta( 'description' ) && is_multi_author() ) : ?> |
| 22 | <?php if ( get_the_author_meta( 'description' ) && is_multi_author() ) { ?> |
23 | 23 | <?php get_template_part( 'author-bio' ); ?> |
24 | | <?php endif; ?> |
| 24 | <?php } ?> |
25 | 25 | |
26 | | <?php else : ?> |
| 26 | <?php } else { ?> |
27 | 27 | <?php twentythirteen_entry_date(); ?> |
28 | 28 | <?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?> |
29 | | <?php endif; // is_single() ?> |
| 29 | <?php } // is_single() ?> |
30 | 30 | </footer><!-- .entry-meta --> |
31 | 31 | </article><!-- #post --> |
-
diff --git a/wp-content/themes/twentythirteen/content-audio.php b/wp-content/themes/twentythirteen/content-audio.php
index 23abeaf..96f579b 100644
a
|
b
|
|
10 | 10 | |
11 | 11 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
12 | 12 | <header class="entry-header"> |
13 | | <?php if ( is_single() ) : ?> |
| 13 | <?php if ( is_single() ) { ?> |
14 | 14 | <h1 class="entry-title"><?php the_title(); ?></h1> |
15 | 15 | <?php else : ?> |
16 | 16 | <h1 class="entry-title"> |
17 | 17 | <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> |
18 | 18 | </h1> |
19 | | <?php endif; // is_single() ?> |
| 19 | <?php } // is_single() ?> |
20 | 20 | </header><!-- .entry-header --> |
21 | 21 | |
22 | 22 | <div class="entry-content"> |
… |
… |
|
30 | 30 | <?php twentythirteen_entry_meta(); ?> |
31 | 31 | <?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?> |
32 | 32 | |
33 | | <?php if ( is_single() && get_the_author_meta( 'description' ) && is_multi_author() ) : ?> |
| 33 | <?php if ( is_single() && get_the_author_meta( 'description' ) && is_multi_author() ) { ?> |
34 | 34 | <?php get_template_part( 'author-bio' ); ?> |
35 | | <?php endif; ?> |
| 35 | <?php } ?> |
36 | 36 | </footer><!-- .entry-meta --> |
37 | 37 | </article><!-- #post --> |
-
diff --git a/wp-content/themes/twentythirteen/content-chat.php b/wp-content/themes/twentythirteen/content-chat.php
index eb2fe69..ba66ee6 100644
a
|
b
|
|
10 | 10 | |
11 | 11 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
12 | 12 | <header class="entry-header"> |
13 | | <?php if ( is_single() ) : ?> |
| 13 | <?php if ( is_single() ) { ?> |
14 | 14 | <h1 class="entry-title"><?php the_title(); ?></h1> |
15 | | <?php else : ?> |
| 15 | <?php } else { ?> |
16 | 16 | <h1 class="entry-title"> |
17 | 17 | <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> |
18 | 18 | </h1> |
19 | | <?php endif; // is_single() ?> |
| 19 | <?php } // is_single() ?> |
20 | 20 | </header><!-- .entry-header --> |
21 | 21 | |
22 | 22 | <div class="entry-content"> |
-
diff --git a/wp-content/themes/twentythirteen/content-gallery.php b/wp-content/themes/twentythirteen/content-gallery.php
index b9537e8..01d2087 100644
a
|
b
|
|
10 | 10 | |
11 | 11 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
12 | 12 | <header class="entry-header"> |
13 | | <?php if ( is_single() ) : ?> |
| 13 | <?php if ( is_single() ) { ?> |
14 | 14 | <h1 class="entry-title"><?php the_title(); ?></h1> |
15 | | <?php else : ?> |
| 15 | <?php } else { ?> |
16 | 16 | <h1 class="entry-title"> |
17 | 17 | <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> |
18 | 18 | </h1> |
19 | | <?php endif; // is_single() ?> |
| 19 | <?php } // is_single() ?> |
20 | 20 | </header><!-- .entry-header --> |
21 | 21 | |
22 | 22 | <div class="entry-content"> |
23 | | <?php if ( is_single() || ! get_post_gallery() ) : ?> |
| 23 | <?php if ( is_single() || ! get_post_gallery() ) { ?> |
24 | 24 | <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentythirteen' ) ); ?> |
25 | 25 | <?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?> |
26 | | <?php else : ?> |
| 26 | <?php } else { ?> |
27 | 27 | <?php echo get_post_gallery(); ?> |
28 | | <?php endif; // is_single() ?> |
| 28 | <?php } // is_single() ?> |
29 | 29 | </div><!-- .entry-content --> |
30 | 30 | |
31 | 31 | <footer class="entry-meta"> |
32 | 32 | <?php twentythirteen_entry_meta(); ?> |
33 | 33 | |
34 | | <?php if ( comments_open() && ! is_single() ) : ?> |
| 34 | <?php if ( comments_open() && ! is_single() ) { ?> |
35 | 35 | <span class="comments-link"> |
36 | 36 | <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a comment', 'twentythirteen' ) . '</span>', __( 'One comment so far', 'twentythirteen' ), __( 'View all % comments', 'twentythirteen' ) ); ?> |
37 | 37 | </span><!-- .comments-link --> |
38 | | <?php endif; // comments_open() ?> |
| 38 | <?php } // comments_open() ?> |
39 | 39 | <?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?> |
40 | 40 | |
41 | | <?php if ( is_single() && get_the_author_meta( 'description' ) && is_multi_author() ) : ?> |
| 41 | <?php if ( is_single() && get_the_author_meta( 'description' ) && is_multi_author() ) { ?> |
42 | 42 | <?php get_template_part( 'author-bio' ); ?> |
43 | | <?php endif; ?> |
| 43 | <?php } ?> |
44 | 44 | </footer><!-- .entry-meta --> |
45 | 45 | </article><!-- #post --> |
-
diff --git a/wp-content/themes/twentythirteen/content-image.php b/wp-content/themes/twentythirteen/content-image.php
index 34f5144..fdd2be2 100644
a
|
b
|
|
10 | 10 | |
11 | 11 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
12 | 12 | <header class="entry-header"> |
13 | | <?php if ( is_single() ) : ?> |
| 13 | <?php if ( is_single() ) { ?> |
14 | 14 | <h1 class="entry-title"><?php the_title(); ?></h1> |
15 | 15 | <?php else : ?> |
16 | 16 | <h1 class="entry-title"> |
17 | 17 | <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> |
18 | 18 | </h1> |
19 | | <?php endif; // is_single() ?> |
| 19 | <?php } // is_single() ?> |
20 | 20 | </header><!-- .entry-header --> |
21 | 21 | |
22 | 22 | <div class="entry-content"> |
… |
… |
|
27 | 27 | <footer class="entry-meta"> |
28 | 28 | <?php twentythirteen_entry_meta(); ?> |
29 | 29 | |
30 | | <?php if ( comments_open() && ! is_single() ) : ?> |
| 30 | <?php if ( comments_open() && ! is_single() ) { ?> |
31 | 31 | <span class="comments-link"> |
32 | 32 | <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a comment', 'twentythirteen' ) . '</span>', __( 'One comment so far', 'twentythirteen' ), __( 'View all % comments', 'twentythirteen' ) ); ?> |
33 | 33 | </span><!-- .comments-link --> |
34 | | <?php endif; // comments_open() ?> |
| 34 | <?php } // comments_open() ?> |
35 | 35 | <?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?> |
36 | 36 | |
37 | | <?php if ( is_single() && get_the_author_meta( 'description' ) && is_multi_author() ) : ?> |
| 37 | <?php if ( is_single() && get_the_author_meta( 'description' ) && is_multi_author() ) { ?> |
38 | 38 | <?php get_template_part( 'author-bio' ); ?> |
39 | | <?php endif; ?> |
| 39 | <?php } ?> |
40 | 40 | </footer><!-- .entry-meta --> |
41 | 41 | </article><!-- #post --> |
-
diff --git a/wp-content/themes/twentythirteen/content-link.php b/wp-content/themes/twentythirteen/content-link.php
index e9082cb..45a9dce 100644
a
|
b
|
|
25 | 25 | <?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?> |
26 | 26 | </div><!-- .entry-content --> |
27 | 27 | |
28 | | <?php if ( is_single() ) : ?> |
| 28 | <?php if ( is_single() ) { ?> |
29 | 29 | <footer class="entry-meta"> |
30 | 30 | <?php twentythirteen_entry_meta(); ?> |
31 | | <?php if ( get_the_author_meta( 'description' ) && is_multi_author() ) : ?> |
| 31 | <?php if ( get_the_author_meta( 'description' ) && is_multi_author() ) { ?> |
32 | 32 | <?php get_template_part( 'author-bio' ); ?> |
33 | | <?php endif; ?> |
| 33 | <?php } ?> |
34 | 34 | </footer><!-- .entry-meta --> |
35 | | <?php endif; // is_single() ?> |
| 35 | <?php } // is_single() ?> |
36 | 36 | </article><!-- #post --> |
-
diff --git a/wp-content/themes/twentythirteen/content-none.php b/wp-content/themes/twentythirteen/content-none.php
index d3d27ec..7f1fb1e 100644
a
|
b
|
|
13 | 13 | </header> |
14 | 14 | |
15 | 15 | <div class="page-content"> |
16 | | <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?> |
| 16 | <?php if ( is_home() && current_user_can( 'publish_posts' ) ) { ?> |
17 | 17 | |
18 | 18 | <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentythirteen' ), admin_url( 'post-new.php' ) ); ?></p> |
19 | 19 | |
20 | | <?php elseif ( is_search() ) : ?> |
| 20 | <?php } elseif ( is_search() ) { ?> |
21 | 21 | |
22 | 22 | <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with different keywords.', 'twentythirteen' ); ?></p> |
23 | 23 | <?php get_search_form(); ?> |
24 | 24 | |
25 | | <?php else : ?> |
| 25 | <?php } else { ?> |
26 | 26 | |
27 | 27 | <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'twentythirteen' ); ?></p> |
28 | 28 | <?php get_search_form(); ?> |
29 | 29 | |
30 | | <?php endif; ?> |
| 30 | <?php } ?> |
31 | 31 | </div><!-- .page-content --> |
-
diff --git a/wp-content/themes/twentythirteen/content-quote.php b/wp-content/themes/twentythirteen/content-quote.php
index 4c3422b..0ca93ad 100644
a
|
b
|
|
17 | 17 | <footer class="entry-meta"> |
18 | 18 | <?php twentythirteen_entry_meta(); ?> |
19 | 19 | |
20 | | <?php if ( comments_open() && ! is_single() ) : ?> |
| 20 | <?php if ( comments_open() && ! is_single() ) { ?> |
21 | 21 | <span class="comments-link"> |
22 | 22 | <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a comment', 'twentythirteen' ) . '</span>', __( 'One comment so far', 'twentythirteen' ), __( 'View all % comments', 'twentythirteen' ) ); ?> |
23 | 23 | </span><!-- .comments-link --> |
24 | | <?php endif; // comments_open() ?> |
| 24 | <?php } // comments_open() ?> |
25 | 25 | <?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?> |
26 | 26 | </footer><!-- .entry-meta --> |
27 | 27 | </article><!-- #post --> |
-
diff --git a/wp-content/themes/twentythirteen/content-status.php b/wp-content/themes/twentythirteen/content-status.php
index 281becf..15c2a0c 100644
a
|
b
|
|
18 | 18 | <?php twentythirteen_entry_meta(); ?> |
19 | 19 | <?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?> |
20 | 20 | |
21 | | <?php if ( is_single() && get_the_author_meta( 'description' ) && is_multi_author() ) : ?> |
| 21 | <?php if ( is_single() && get_the_author_meta( 'description' ) && is_multi_author() ) { ?> |
22 | 22 | <?php get_template_part( 'author-bio' ); ?> |
23 | | <?php endif; ?> |
| 23 | <?php } ?> |
24 | 24 | </footer><!-- .entry-meta --> |
25 | 25 | </article><!-- #post --> |
-
diff --git a/wp-content/themes/twentythirteen/content-video.php b/wp-content/themes/twentythirteen/content-video.php
index af2ff71..7c4c7c4 100644
a
|
b
|
|
10 | 10 | |
11 | 11 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
12 | 12 | <header class="entry-header"> |
13 | | <?php if ( is_single() ) : ?> |
| 13 | <?php if ( is_single() ) { ?> |
14 | 14 | <h1 class="entry-title"><?php the_title(); ?></h1> |
15 | | <?php else : ?> |
| 15 | <?php } else { ?> |
16 | 16 | <h1 class="entry-title"> |
17 | 17 | <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> |
18 | 18 | </h1> |
19 | | <?php endif; // is_single() ?> |
| 19 | <?php } // is_single() ?> |
20 | 20 | </header><!-- .entry-header --> |
21 | 21 | |
22 | 22 | <div class="entry-content"> |
… |
… |
|
27 | 27 | <footer class="entry-meta"> |
28 | 28 | <?php twentythirteen_entry_meta(); ?> |
29 | 29 | |
30 | | <?php if ( comments_open() && ! is_single() ) : ?> |
| 30 | <?php if ( comments_open() && ! is_single() ) { ?> |
31 | 31 | <span class="comments-link"> |
32 | 32 | <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a comment', 'twentythirteen' ) . '</span>', __( 'One comment so far', 'twentythirteen' ), __( 'View all % comments', 'twentythirteen' ) ); ?> |
33 | 33 | </span><!-- .comments-link --> |
34 | | <?php endif; // comments_open() ?> |
| 34 | <?php } // comments_open() ?> |
35 | 35 | <?php edit_post_link( __( 'Edit', 'twentythirteen' ), '<span class="edit-link">', '</span>' ); ?> |
36 | 36 | |
37 | | <?php if ( is_single() && get_the_author_meta( 'description' ) && is_multi_author() ) : ?> |
| 37 | <?php if ( is_single() && get_the_author_meta( 'description' ) && is_multi_author() ) { ?> |
38 | 38 | <?php get_template_part( 'author-bio' ); ?> |
39 | | <?php endif; ?> |
| 39 | <?php } ?> |
40 | 40 | </footer><!-- .entry-meta --> |
41 | 41 | </article><!-- #post --> |
-
diff --git a/wp-content/themes/twentythirteen/content.php b/wp-content/themes/twentythirteen/content.php
index 4f61b22..c4798bc 100644
a
|
b
|
|
10 | 10 | |
11 | 11 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
12 | 12 | <header class="entry-header"> |
13 | | <?php if ( has_post_thumbnail() && ! post_password_required() ) : ?> |
| 13 | <?php if ( has_post_thumbnail() && ! post_password_required() ) { ?> |
14 | 14 | <div class="entry-thumbnail"> |
15 | 15 | <?php the_post_thumbnail(); ?> |
16 | 16 | </div> |
17 | | <?php endif; ?> |
| 17 | <?php } ?> |
18 | 18 | |
19 | | <?php if ( is_single() ) : ?> |
| 19 | <?php if ( is_single() ) { ?> |
20 | 20 | <h1 class="entry-title"><?php the_title(); ?></h1> |
21 | | <?php else : ?> |
| 21 | <?php } else { ?> |
22 | 22 | <h1 class="entry-title"> |
23 | 23 | <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> |
24 | 24 | </h1> |
25 | | <?php endif; // is_single() ?> |
| 25 | <?php } // is_single() ?> |
26 | 26 | |
27 | 27 | <div class="entry-meta"> |
28 | 28 | <?php twentythirteen_entry_meta(); ?> |
… |
… |
|
30 | 30 | </div><!-- .entry-meta --> |
31 | 31 | </header><!-- .entry-header --> |
32 | 32 | |
33 | | <?php if ( is_search() ) : // Only display Excerpts for Search ?> |
| 33 | <?php if ( is_search() ) { // Only display Excerpts for Search ?> |
34 | 34 | <div class="entry-summary"> |
35 | 35 | <?php the_excerpt(); ?> |
36 | 36 | </div><!-- .entry-summary --> |
37 | | <?php else : ?> |
| 37 | <?php } else { ?> |
38 | 38 | <div class="entry-content"> |
39 | 39 | <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentythirteen' ) ); ?> |
40 | 40 | <?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?> |
41 | 41 | </div><!-- .entry-content --> |
42 | | <?php endif; ?> |
| 42 | <?php } ?> |
43 | 43 | |
44 | 44 | <footer class="entry-meta"> |
45 | | <?php if ( comments_open() && ! is_single() ) : ?> |
| 45 | <?php if ( comments_open() && ! is_single() ) { ?> |
46 | 46 | <div class="comments-link"> |
47 | 47 | <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a comment', 'twentythirteen' ) . '</span>', __( 'One comment so far', 'twentythirteen' ), __( 'View all % comments', 'twentythirteen' ) ); ?> |
48 | 48 | </div><!-- .comments-link --> |
49 | | <?php endif; // comments_open() ?> |
| 49 | <?php } // comments_open() ?> |
50 | 50 | |
51 | | <?php if ( is_single() && get_the_author_meta( 'description' ) && is_multi_author() ) : ?> |
| 51 | <?php if ( is_single() && get_the_author_meta( 'description' ) && is_multi_author() ) { ?> |
52 | 52 | <?php get_template_part( 'author-bio' ); ?> |
53 | | <?php endif; ?> |
| 53 | <?php } ?> |
54 | 54 | </footer><!-- .entry-meta --> |
55 | 55 | </article><!-- #post --> |
-
diff --git a/wp-content/themes/twentythirteen/functions.php b/wp-content/themes/twentythirteen/functions.php
index 021cd74..af76b5d 100644
a
|
b
|
function twentythirteen_widgets_init() { |
291 | 291 | } |
292 | 292 | add_action( 'widgets_init', 'twentythirteen_widgets_init' ); |
293 | 293 | |
294 | | if ( ! function_exists( 'twentythirteen_paging_nav' ) ) : |
| 294 | if ( ! function_exists( 'twentythirteen_paging_nav' ) ) { |
295 | 295 | /** |
296 | 296 | * Displays navigation to next/previous set of posts when applicable. |
297 | 297 | * |
… |
… |
function twentythirteen_paging_nav() { |
310 | 310 | <h1 class="screen-reader-text"><?php _e( 'Posts navigation', 'twentythirteen' ); ?></h1> |
311 | 311 | <div class="nav-links"> |
312 | 312 | |
313 | | <?php if ( get_next_posts_link() ) : ?> |
| 313 | <?php if ( get_next_posts_link() ) { ?> |
314 | 314 | <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentythirteen' ) ); ?></div> |
315 | | <?php endif; ?> |
| 315 | <?php } ?> |
316 | 316 | |
317 | | <?php if ( get_previous_posts_link() ) : ?> |
| 317 | <?php if ( get_previous_posts_link() ) { ?> |
318 | 318 | <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentythirteen' ) ); ?></div> |
319 | | <?php endif; ?> |
| 319 | <?php } ?> |
320 | 320 | |
321 | 321 | </div><!-- .nav-links --> |
322 | 322 | </nav><!-- .navigation --> |
323 | 323 | <?php |
324 | 324 | } |
325 | | endif; |
| 325 | } |
326 | 326 | |
327 | | if ( ! function_exists( 'twentythirteen_post_nav' ) ) : |
| 327 | if ( ! function_exists( 'twentythirteen_post_nav' ) ) { |
328 | 328 | /** |
329 | 329 | * Displays navigation to next/previous post when applicable. |
330 | 330 | * |
… |
… |
function twentythirteen_post_nav() { |
353 | 353 | </nav><!-- .navigation --> |
354 | 354 | <?php |
355 | 355 | } |
356 | | endif; |
| 356 | } |
357 | 357 | |
358 | | if ( ! function_exists( 'twentythirteen_entry_meta' ) ) : |
| 358 | if ( ! function_exists( 'twentythirteen_entry_meta' ) ) { |
359 | 359 | /** |
360 | 360 | * Prints HTML with meta information for current post: categories, tags, permalink, author, and date. |
361 | 361 | * |
… |
… |
function twentythirteen_entry_meta() { |
393 | 393 | ); |
394 | 394 | } |
395 | 395 | } |
396 | | endif; |
| 396 | } |
397 | 397 | |
398 | | if ( ! function_exists( 'twentythirteen_entry_date' ) ) : |
| 398 | if ( ! function_exists( 'twentythirteen_entry_date' ) ) { |
399 | 399 | /** |
400 | 400 | * Prints HTML with date information for current post. |
401 | 401 | * |
… |
… |
function twentythirteen_entry_date( $echo = true ) { |
421 | 421 | |
422 | 422 | return $date; |
423 | 423 | } |
424 | | endif; |
| 424 | } |
425 | 425 | |
426 | | if ( ! function_exists( 'twentythirteen_the_attached_image' ) ) : |
| 426 | if ( ! function_exists( 'twentythirteen_the_attached_image' ) ) { |
427 | 427 | /** |
428 | 428 | * Prints the attached image with a link to the next attached image. |
429 | 429 | * |
… |
… |
function twentythirteen_the_attached_image() { |
474 | 474 | wp_get_attachment_image( $post->ID, $attachment_size ) |
475 | 475 | ); |
476 | 476 | } |
477 | | endif; |
| 477 | } |
478 | 478 | |
479 | 479 | /** |
480 | 480 | * Returns the URL from the post. |
-
diff --git a/wp-content/themes/twentythirteen/image.php b/wp-content/themes/twentythirteen/image.php
index 4ef31c4..46907a9 100644
a
|
b
|
|
56 | 56 | <div class="attachment"> |
57 | 57 | <?php twentythirteen_the_attached_image(); ?> |
58 | 58 | |
59 | | <?php if ( has_excerpt() ) : ?> |
| 59 | <?php if ( has_excerpt() ) { ?> |
60 | 60 | <div class="entry-caption"> |
61 | 61 | <?php the_excerpt(); ?> |
62 | 62 | </div> |
63 | | <?php endif; ?> |
| 63 | <?php } ?> |
64 | 64 | </div><!-- .attachment --> |
65 | 65 | </div><!-- .entry-attachment --> |
66 | 66 | |
67 | | <?php if ( ! empty( $post->post_content ) ) : ?> |
| 67 | <?php if ( ! empty( $post->post_content ) ) { ?> |
68 | 68 | <div class="entry-description"> |
69 | 69 | <?php the_content(); ?> |
70 | 70 | <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentythirteen' ), 'after' => '</div>' ) ); ?> |
71 | 71 | </div><!-- .entry-description --> |
72 | | <?php endif; ?> |
| 72 | <?php } ?> |
73 | 73 | |
74 | 74 | </div><!-- .entry-content --> |
75 | 75 | </article><!-- #post --> |
-
diff --git a/wp-content/themes/twentythirteen/inc/custom-header.php b/wp-content/themes/twentythirteen/inc/custom-header.php
index 82d1200..3a96b6c 100644
a
|
b
|
function twentythirteen_header_style() { |
82 | 82 | ?> |
83 | 83 | <style type="text/css" id="twentythirteen-header-css"> |
84 | 84 | <?php |
85 | | if ( ! empty( $header_image ) ) : |
| 85 | if ( ! empty( $header_image ) ) { |
86 | 86 | ?> |
87 | 87 | .site-header { |
88 | 88 | background: url(<?php header_image(); ?>) no-repeat scroll top; |
89 | 89 | background-size: 1600px auto; |
90 | 90 | } |
91 | 91 | <?php |
92 | | endif; |
| 92 | } |
93 | 93 | |
94 | 94 | // Has the text been hidden? |
95 | | if ( ! display_header_text() ) : |
| 95 | if ( ! display_header_text() ) { |
96 | 96 | ?> |
97 | 97 | .site-title, |
98 | 98 | .site-description { |
… |
… |
function twentythirteen_header_style() { |
101 | 101 | clip: rect(1px, 1px, 1px, 1px); |
102 | 102 | } |
103 | 103 | <?php |
104 | | if ( empty( $header_image ) ) : |
| 104 | if ( empty( $header_image ) ) { |
105 | 105 | ?> |
106 | 106 | .site-header .home-link { |
107 | 107 | min-height: 0; |
108 | 108 | } |
109 | 109 | <?php |
110 | | endif; |
| 110 | } |
111 | 111 | |
112 | 112 | // If the user has set a custom color for the text, use that. |
113 | | elseif ( $text_color != get_theme_support( 'custom-header', 'default-text-color' ) ) : |
| 113 | } elseif ( $text_color != get_theme_support( 'custom-header', 'default-text-color' ) ) { |
114 | 114 | ?> |
115 | 115 | .site-title, |
116 | 116 | .site-description { |
117 | 117 | color: #<?php echo esc_attr( $text_color ); ?>; |
118 | 118 | } |
119 | | <?php endif; ?> |
| 119 | <?php } ?> |
120 | 120 | </style> |
121 | 121 | <?php |
122 | 122 | } |
… |
… |
function twentythirteen_admin_header_style() { |
153 | 153 | } ?> |
154 | 154 | width: 100%; |
155 | 155 | } |
156 | | <?php if ( ! display_header_text() ) : ?> |
| 156 | <?php if ( ! display_header_text() ) { ?> |
157 | 157 | #headimg h1, |
158 | 158 | #headimg h2 { |
159 | 159 | position: absolute !important; |
160 | 160 | clip: rect(1px 1px 1px 1px); /* IE7 */ |
161 | 161 | clip: rect(1px, 1px, 1px, 1px); |
162 | 162 | } |
163 | | <?php endif; ?> |
| 163 | <?php } ?> |
164 | 164 | #headimg h1 { |
165 | 165 | font: bold 60px/1 Bitter, Georgia, serif; |
166 | 166 | margin: 0; |
-
diff --git a/wp-content/themes/twentythirteen/index.php b/wp-content/themes/twentythirteen/index.php
index 67faeaf..b402262 100644
a
|
b
|
|
18 | 18 | |
19 | 19 | <div id="primary" class="content-area"> |
20 | 20 | <div id="content" class="site-content" role="main"> |
21 | | <?php if ( have_posts() ) : ?> |
| 21 | <?php if ( have_posts() ) { ?> |
22 | 22 | |
23 | 23 | <?php /* The loop */ ?> |
24 | 24 | <?php while ( have_posts() ) : the_post(); ?> |
… |
… |
|
27 | 27 | |
28 | 28 | <?php twentythirteen_paging_nav(); ?> |
29 | 29 | |
30 | | <?php else : ?> |
| 30 | <?php } else { ?> |
31 | 31 | <?php get_template_part( 'content', 'none' ); ?> |
32 | | <?php endif; ?> |
| 32 | <?php } ?> |
33 | 33 | |
34 | 34 | </div><!-- #content --> |
35 | 35 | </div><!-- #primary --> |
-
diff --git a/wp-content/themes/twentythirteen/page.php b/wp-content/themes/twentythirteen/page.php
index 06e38e7..7eab01f 100644
a
|
b
|
|
21 | 21 | |
22 | 22 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
23 | 23 | <header class="entry-header"> |
24 | | <?php if ( has_post_thumbnail() && ! post_password_required() ) : ?> |
| 24 | <?php if ( has_post_thumbnail() && ! post_password_required() ) { ?> |
25 | 25 | <div class="entry-thumbnail"> |
26 | 26 | <?php the_post_thumbnail(); ?> |
27 | 27 | </div> |
28 | | <?php endif; ?> |
| 28 | <?php } ?> |
29 | 29 | |
30 | 30 | <h1 class="entry-title"><?php the_title(); ?></h1> |
31 | 31 | </header><!-- .entry-header --> |
-
diff --git a/wp-content/themes/twentythirteen/search.php b/wp-content/themes/twentythirteen/search.php
index 7839def..7822384 100644
a
|
b
|
|
12 | 12 | <div id="primary" class="content-area"> |
13 | 13 | <div id="content" class="site-content" role="main"> |
14 | 14 | |
15 | | <?php if ( have_posts() ) : ?> |
| 15 | <?php if ( have_posts() ) { ?> |
16 | 16 | |
17 | 17 | <header class="page-header"> |
18 | 18 | <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentythirteen' ), get_search_query() ); ?></h1> |
… |
… |
|
25 | 25 | |
26 | 26 | <?php twentythirteen_paging_nav(); ?> |
27 | 27 | |
28 | | <?php else : ?> |
| 28 | <?php } else { ?> |
29 | 29 | <?php get_template_part( 'content', 'none' ); ?> |
30 | | <?php endif; ?> |
| 30 | <?php } ?> |
31 | 31 | |
32 | 32 | </div><!-- #content --> |
33 | 33 | </div><!-- #primary --> |
-
diff --git a/wp-content/themes/twentythirteen/sidebar-main.php b/wp-content/themes/twentythirteen/sidebar-main.php
index bb6034c..32e4e6b 100644
a
|
b
|
|
9 | 9 | * @since Twenty Thirteen 1.0 |
10 | 10 | */ |
11 | 11 | |
12 | | if ( is_active_sidebar( 'sidebar-1' ) ) : ?> |
| 12 | if ( is_active_sidebar( 'sidebar-1' ) ) { ?> |
13 | 13 | <div id="secondary" class="sidebar-container" role="complementary"> |
14 | 14 | <div class="widget-area"> |
15 | 15 | <?php dynamic_sidebar( 'sidebar-1' ); ?> |
16 | 16 | </div><!-- .widget-area --> |
17 | 17 | </div><!-- #secondary --> |
18 | | <?php endif; ?> |
19 | | No newline at end of file |
| 18 | <?php } ?> |
| 19 | No newline at end of file |
-
diff --git a/wp-content/themes/twentythirteen/sidebar.php b/wp-content/themes/twentythirteen/sidebar.php
index 750945c..e09ad2b 100644
a
|
b
|
|
9 | 9 | * @since Twenty Thirteen 1.0 |
10 | 10 | */ |
11 | 11 | |
12 | | if ( is_active_sidebar( 'sidebar-2' ) ) : ?> |
| 12 | if ( is_active_sidebar( 'sidebar-2' ) ) { ?> |
13 | 13 | <div id="tertiary" class="sidebar-container" role="complementary"> |
14 | 14 | <div class="sidebar-inner"> |
15 | 15 | <div class="widget-area"> |
… |
… |
|
17 | 17 | </div><!-- .widget-area --> |
18 | 18 | </div><!-- .sidebar-inner --> |
19 | 19 | </div><!-- #tertiary --> |
20 | | <?php endif; ?> |
21 | | No newline at end of file |
| 20 | <?php } ?> |
| 21 | No newline at end of file |
-
diff --git a/wp-content/themes/twentythirteen/tag.php b/wp-content/themes/twentythirteen/tag.php
index 5454005..9ca7949 100644
a
|
b
|
|
16 | 16 | <div id="primary" class="content-area"> |
17 | 17 | <div id="content" class="site-content" role="main"> |
18 | 18 | |
19 | | <?php if ( have_posts() ) : ?> |
| 19 | <?php if ( have_posts() ) { ?> |
20 | 20 | <header class="archive-header"> |
21 | 21 | <h1 class="archive-title"><?php printf( __( 'Tag Archives: %s', 'twentythirteen' ), single_tag_title( '', false ) ); ?></h1> |
22 | 22 | |
23 | | <?php if ( tag_description() ) : // Show an optional tag description ?> |
| 23 | <?php if ( tag_description() ) { // Show an optional tag description ?> |
24 | 24 | <div class="archive-meta"><?php echo tag_description(); ?></div> |
25 | | <?php endif; ?> |
| 25 | <?php } ?> |
26 | 26 | </header><!-- .archive-header --> |
27 | 27 | |
28 | 28 | <?php /* The loop */ ?> |
… |
… |
|
32 | 32 | |
33 | 33 | <?php twentythirteen_paging_nav(); ?> |
34 | 34 | |
35 | | <?php else : ?> |
| 35 | <?php } else { ?> |
36 | 36 | <?php get_template_part( 'content', 'none' ); ?> |
37 | | <?php endif; ?> |
| 37 | <?php } ?> |
38 | 38 | |
39 | 39 | </div><!-- #content --> |
40 | 40 | </div><!-- #primary --> |
-
diff --git a/wp-content/themes/twentythirteen/taxonomy-post_format.php b/wp-content/themes/twentythirteen/taxonomy-post_format.php
index 0deb97c..9121dcc 100644
a
|
b
|
|
18 | 18 | <div id="primary" class="content-area"> |
19 | 19 | <div id="content" class="site-content" role="main"> |
20 | 20 | |
21 | | <?php if ( have_posts() ) : ?> |
| 21 | <?php if ( have_posts() ) { ?> |
22 | 22 | <header class="archive-header"> |
23 | 23 | <h1 class="archive-title"><?php printf( __( '%s Archives', 'twentythirteen' ), '<span>' . get_post_format_string( get_post_format() ) . '</span>' ); ?></h1> |
24 | 24 | </header><!-- .archive-header --> |
… |
… |
|
30 | 30 | |
31 | 31 | <?php twentythirteen_paging_nav(); ?> |
32 | 32 | |
33 | | <?php else : ?> |
| 33 | <?php } else { ?> |
34 | 34 | <?php get_template_part( 'content', 'none' ); ?> |
35 | | <?php endif; ?> |
| 35 | <?php } ?> |
36 | 36 | |
37 | 37 | </div><!-- #content --> |
38 | 38 | </div><!-- #primary --> |
-
diff --git a/wp-content/themes/twentytwelve/archive.php b/wp-content/themes/twentytwelve/archive.php
index 8bfb01c..ee4b42c 100644
a
|
b
|
|
22 | 22 | <section id="primary" class="site-content"> |
23 | 23 | <div id="content" role="main"> |
24 | 24 | |
25 | | <?php if ( have_posts() ) : ?> |
| 25 | <?php if ( have_posts() ) { ?> |
26 | 26 | <header class="archive-header"> |
27 | 27 | <h1 class="archive-title"><?php |
28 | | if ( is_day() ) : |
| 28 | if ( is_day() ) { |
29 | 29 | printf( __( 'Daily Archives: %s', 'twentytwelve' ), '<span>' . get_the_date() . '</span>' ); |
30 | | elseif ( is_month() ) : |
| 30 | } elseif ( is_month() ) { |
31 | 31 | printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '</span>' ); |
32 | | elseif ( is_year() ) : |
| 32 | } elseif ( is_year() ) { |
33 | 33 | printf( __( 'Yearly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentytwelve' ) ) . '</span>' ); |
34 | | else : |
| 34 | } else { |
35 | 35 | _e( 'Archives', 'twentytwelve' ); |
36 | | endif; |
| 36 | } |
37 | 37 | ?></h1> |
38 | 38 | </header><!-- .archive-header --> |
39 | 39 | |
… |
… |
|
52 | 52 | twentytwelve_content_nav( 'nav-below' ); |
53 | 53 | ?> |
54 | 54 | |
55 | | <?php else : ?> |
| 55 | <?php } else { ?> |
56 | 56 | <?php get_template_part( 'content', 'none' ); ?> |
57 | | <?php endif; ?> |
| 57 | <?php } ?> |
58 | 58 | |
59 | 59 | </div><!-- #content --> |
60 | 60 | </section><!-- #primary --> |
-
diff --git a/wp-content/themes/twentytwelve/author.php b/wp-content/themes/twentytwelve/author.php
index 0fa2e6b..b5fe65b 100644
a
|
b
|
|
16 | 16 | <section id="primary" class="site-content"> |
17 | 17 | <div id="content" role="main"> |
18 | 18 | |
19 | | <?php if ( have_posts() ) : ?> |
| 19 | <?php if ( have_posts() ) { ?> |
20 | 20 | |
21 | 21 | <?php |
22 | 22 | /* Queue the first post, that way we know |
… |
… |
|
44 | 44 | |
45 | 45 | <?php |
46 | 46 | // If a user has filled out their description, show a bio on their entries. |
47 | | if ( get_the_author_meta( 'description' ) ) : ?> |
| 47 | if ( get_the_author_meta( 'description' ) ) { ?> |
48 | 48 | <div class="author-info"> |
49 | 49 | <div class="author-avatar"> |
50 | 50 | <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentytwelve_author_bio_avatar_size', 60 ) ); ?> |
… |
… |
|
54 | 54 | <p><?php the_author_meta( 'description' ); ?></p> |
55 | 55 | </div><!-- .author-description --> |
56 | 56 | </div><!-- .author-info --> |
57 | | <?php endif; ?> |
| 57 | <?php } ?> |
58 | 58 | |
59 | 59 | <?php /* Start the Loop */ ?> |
60 | 60 | <?php while ( have_posts() ) : the_post(); ?> |
… |
… |
|
63 | 63 | |
64 | 64 | <?php twentytwelve_content_nav( 'nav-below' ); ?> |
65 | 65 | |
66 | | <?php else : ?> |
| 66 | <?php } else { ?> |
67 | 67 | <?php get_template_part( 'content', 'none' ); ?> |
68 | | <?php endif; ?> |
| 68 | <?php } ?> |
69 | 69 | |
70 | 70 | </div><!-- #content --> |
71 | 71 | </section><!-- #primary --> |
-
diff --git a/wp-content/themes/twentytwelve/category.php b/wp-content/themes/twentytwelve/category.php
index fc50086..c647c90 100644
a
|
b
|
|
16 | 16 | <section id="primary" class="site-content"> |
17 | 17 | <div id="content" role="main"> |
18 | 18 | |
19 | | <?php if ( have_posts() ) : ?> |
| 19 | <?php if ( have_posts() ) { ?> |
20 | 20 | <header class="archive-header"> |
21 | 21 | <h1 class="archive-title"><?php printf( __( 'Category Archives: %s', 'twentytwelve' ), '<span>' . single_cat_title( '', false ) . '</span>' ); ?></h1> |
22 | 22 | |
23 | | <?php if ( category_description() ) : // Show an optional category description ?> |
| 23 | <?php if ( category_description() ) { // Show an optional category description ?> |
24 | 24 | <div class="archive-meta"><?php echo category_description(); ?></div> |
25 | | <?php endif; ?> |
| 25 | <?php } ?> |
26 | 26 | </header><!-- .archive-header --> |
27 | 27 | |
28 | 28 | <?php |
… |
… |
|
40 | 40 | twentytwelve_content_nav( 'nav-below' ); |
41 | 41 | ?> |
42 | 42 | |
43 | | <?php else : ?> |
| 43 | <?php } else { ?> |
44 | 44 | <?php get_template_part( 'content', 'none' ); ?> |
45 | | <?php endif; ?> |
| 45 | <?php } ?> |
46 | 46 | |
47 | 47 | </div><!-- #content --> |
48 | 48 | </section><!-- #primary --> |
-
diff --git a/wp-content/themes/twentytwelve/comments.php b/wp-content/themes/twentytwelve/comments.php
index 457b9e4..314662e 100644
a
|
b
|
|
37 | 37 | <?php wp_list_comments( array( 'callback' => 'twentytwelve_comment', 'style' => 'ol' ) ); ?> |
38 | 38 | </ol><!-- .commentlist --> |
39 | 39 | |
40 | | <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> |
| 40 | <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) { // are there comments to navigate through ?> |
41 | 41 | <nav id="comment-nav-below" class="navigation" role="navigation"> |
42 | 42 | <h1 class="assistive-text section-heading"><?php _e( 'Comment navigation', 'twentytwelve' ); ?></h1> |
43 | 43 | <div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentytwelve' ) ); ?></div> |
44 | 44 | <div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentytwelve' ) ); ?></div> |
45 | 45 | </nav> |
46 | | <?php endif; // check for comment navigation ?> |
| 46 | <?php } // check for comment navigation ?> |
47 | 47 | |
48 | 48 | <?php |
49 | 49 | /* If there are no comments and comments are closed, let's leave a note. |
50 | 50 | * But we only want the note on posts and pages that had comments in the first place. |
51 | 51 | */ |
52 | | if ( ! comments_open() && get_comments_number() ) : ?> |
| 52 | if ( ! comments_open() && get_comments_number() ) { ?> |
53 | 53 | <p class="nocomments"><?php _e( 'Comments are closed.' , 'twentytwelve' ); ?></p> |
54 | | <?php endif; ?> |
| 54 | <?php } ?> |
55 | 55 | |
56 | | <?php endif; // have_comments() ?> |
| 56 | <?php } // have_comments() ?> |
57 | 57 | |
58 | 58 | <?php comment_form(); ?> |
59 | 59 | |
-
diff --git a/wp-content/themes/twentytwelve/content-aside.php b/wp-content/themes/twentytwelve/content-aside.php
index 4a84ae7..63f4280 100644
a
|
b
|
|
18 | 18 | |
19 | 19 | <footer class="entry-meta"> |
20 | 20 | <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a> |
21 | | <?php if ( comments_open() ) : ?> |
| 21 | <?php if ( comments_open() ) { ?> |
22 | 22 | <div class="comments-link"> |
23 | 23 | <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?> |
24 | 24 | </div><!-- .comments-link --> |
25 | | <?php endif; // comments_open() ?> |
| 25 | <?php } // comments_open() ?> |
26 | 26 | <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> |
27 | 27 | </footer><!-- .entry-meta --> |
28 | 28 | </article><!-- #post --> |
-
diff --git a/wp-content/themes/twentytwelve/content-image.php b/wp-content/themes/twentytwelve/content-image.php
index a683b83..aae4a95 100644
a
|
b
|
|
18 | 18 | <h1><?php the_title(); ?></h1> |
19 | 19 | <h2><time class="entry-date" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>"><?php echo get_the_date(); ?></time></h2> |
20 | 20 | </a> |
21 | | <?php if ( comments_open() ) : ?> |
| 21 | <?php if ( comments_open() ) { ?> |
22 | 22 | <div class="comments-link"> |
23 | 23 | <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?> |
24 | 24 | </div><!-- .comments-link --> |
25 | | <?php endif; // comments_open() ?> |
| 25 | <?php } // comments_open() ?> |
26 | 26 | <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> |
27 | 27 | </footer><!-- .entry-meta --> |
28 | 28 | </article><!-- #post --> |
-
diff --git a/wp-content/themes/twentytwelve/content-link.php b/wp-content/themes/twentytwelve/content-link.php
index 31e4ec9..7897083 100644
a
|
b
|
|
16 | 16 | |
17 | 17 | <footer class="entry-meta"> |
18 | 18 | <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a> |
19 | | <?php if ( comments_open() ) : ?> |
| 19 | <?php if ( comments_open() ) { ?> |
20 | 20 | <div class="comments-link"> |
21 | 21 | <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?> |
22 | 22 | </div><!-- .comments-link --> |
23 | | <?php endif; // comments_open() ?> |
| 23 | <?php } // comments_open() ?> |
24 | 24 | <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> |
25 | 25 | </footer><!-- .entry-meta --> |
26 | 26 | </article><!-- #post --> |
-
diff --git a/wp-content/themes/twentytwelve/content-page.php b/wp-content/themes/twentytwelve/content-page.php
index 0abcbf7..4211f35 100644
a
|
b
|
|
10 | 10 | |
11 | 11 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
12 | 12 | <header class="entry-header"> |
13 | | <?php if ( ! is_page_template( 'page-templates/front-page.php' ) ) : ?> |
| 13 | <?php if ( ! is_page_template( 'page-templates/front-page.php' ) ) { ?> |
14 | 14 | <?php the_post_thumbnail(); ?> |
15 | | <?php endif; ?> |
| 15 | <?php } ?> |
16 | 16 | <h1 class="entry-title"><?php the_title(); ?></h1> |
17 | 17 | </header> |
18 | 18 | |
-
diff --git a/wp-content/themes/twentytwelve/content-quote.php b/wp-content/themes/twentytwelve/content-quote.php
index 0a98a96..0a8d683 100644
a
|
b
|
|
15 | 15 | |
16 | 16 | <footer class="entry-meta"> |
17 | 17 | <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php echo get_the_date(); ?></a> |
18 | | <?php if ( comments_open() ) : ?> |
| 18 | <?php if ( comments_open() ) { ?> |
19 | 19 | <div class="comments-link"> |
20 | 20 | <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?> |
21 | 21 | </div><!-- .comments-link --> |
22 | | <?php endif; // comments_open() ?> |
| 22 | <?php } // comments_open() ?> |
23 | 23 | <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> |
24 | 24 | </footer><!-- .entry-meta --> |
25 | 25 | </article><!-- #post --> |
-
diff --git a/wp-content/themes/twentytwelve/content-status.php b/wp-content/themes/twentytwelve/content-status.php
index 55ffcae..eaf0a43 100644
a
|
b
|
|
22 | 22 | </div><!-- .entry-content --> |
23 | 23 | |
24 | 24 | <footer class="entry-meta"> |
25 | | <?php if ( comments_open() ) : ?> |
| 25 | <?php if ( comments_open() ) { ?> |
26 | 26 | <div class="comments-link"> |
27 | 27 | <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?> |
28 | 28 | </div><!-- .comments-link --> |
29 | | <?php endif; // comments_open() ?> |
| 29 | <?php } // comments_open() ?> |
30 | 30 | <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> |
31 | 31 | </footer><!-- .entry-meta --> |
32 | 32 | </article><!-- #post --> |
-
diff --git a/wp-content/themes/twentytwelve/content.php b/wp-content/themes/twentytwelve/content.php
index bf2936c..962b8fd 100644
a
|
b
|
|
9 | 9 | ?> |
10 | 10 | |
11 | 11 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
12 | | <?php if ( is_sticky() && is_home() && ! is_paged() ) : ?> |
| 12 | <?php if ( is_sticky() && is_home() && ! is_paged() ) { ?> |
13 | 13 | <div class="featured-post"> |
14 | 14 | <?php _e( 'Featured post', 'twentytwelve' ); ?> |
15 | 15 | </div> |
16 | | <?php endif; ?> |
| 16 | <?php } ?> |
17 | 17 | <header class="entry-header"> |
18 | 18 | <?php the_post_thumbnail(); ?> |
19 | | <?php if ( is_single() ) : ?> |
| 19 | <?php if ( is_single() ) { ?> |
20 | 20 | <h1 class="entry-title"><?php the_title(); ?></h1> |
21 | | <?php else : ?> |
| 21 | <?php } else { ?> |
22 | 22 | <h1 class="entry-title"> |
23 | 23 | <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> |
24 | 24 | </h1> |
25 | | <?php endif; // is_single() ?> |
26 | | <?php if ( comments_open() ) : ?> |
| 25 | <?php } // is_single() ?> |
| 26 | <?php if ( comments_open() ) { ?> |
27 | 27 | <div class="comments-link"> |
28 | 28 | <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?> |
29 | 29 | </div><!-- .comments-link --> |
30 | | <?php endif; // comments_open() ?> |
| 30 | <?php } // comments_open() ?> |
31 | 31 | </header><!-- .entry-header --> |
32 | 32 | |
33 | | <?php if ( is_search() ) : // Only display Excerpts for Search ?> |
| 33 | <?php if ( is_search() ) { // Only display Excerpts for Search ?> |
34 | 34 | <div class="entry-summary"> |
35 | 35 | <?php the_excerpt(); ?> |
36 | 36 | </div><!-- .entry-summary --> |
37 | | <?php else : ?> |
| 37 | <?php } else { ?> |
38 | 38 | <div class="entry-content"> |
39 | 39 | <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> |
40 | 40 | <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?> |
41 | 41 | </div><!-- .entry-content --> |
42 | | <?php endif; ?> |
| 42 | <?php } ?> |
43 | 43 | |
44 | 44 | <footer class="entry-meta"> |
45 | 45 | <?php twentytwelve_entry_meta(); ?> |
46 | 46 | <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> |
47 | | <?php if ( is_singular() && get_the_author_meta( 'description' ) && is_multi_author() ) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries. ?> |
| 47 | <?php if ( is_singular() && get_the_author_meta( 'description' ) && is_multi_author() ) { // If a user has filled out their description and this is a multi-author blog, show a bio on their entries. ?> |
48 | 48 | <div class="author-info"> |
49 | 49 | <div class="author-avatar"> |
50 | 50 | <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentytwelve_author_bio_avatar_size', 68 ) ); ?> |
… |
… |
|
59 | 59 | </div><!-- .author-link --> |
60 | 60 | </div><!-- .author-description --> |
61 | 61 | </div><!-- .author-info --> |
62 | | <?php endif; ?> |
| 62 | <?php } ?> |
63 | 63 | </footer><!-- .entry-meta --> |
64 | 64 | </article><!-- #post --> |
-
diff --git a/wp-content/themes/twentytwelve/functions.php b/wp-content/themes/twentytwelve/functions.php
index 0498139..bf9ac5d 100644
a
|
b
|
function twentytwelve_widgets_init() { |
266 | 266 | } |
267 | 267 | add_action( 'widgets_init', 'twentytwelve_widgets_init' ); |
268 | 268 | |
269 | | if ( ! function_exists( 'twentytwelve_content_nav' ) ) : |
| 269 | if ( ! function_exists( 'twentytwelve_content_nav' ) ) { |
270 | 270 | /** |
271 | 271 | * Displays navigation to next/previous pages when applicable. |
272 | 272 | * |
… |
… |
function twentytwelve_content_nav( $html_id ) { |
277 | 277 | |
278 | 278 | $html_id = esc_attr( $html_id ); |
279 | 279 | |
280 | | if ( $wp_query->max_num_pages > 1 ) : ?> |
| 280 | if ( $wp_query->max_num_pages > 1 ) { ?> |
281 | 281 | <nav id="<?php echo $html_id; ?>" class="navigation" role="navigation"> |
282 | 282 | <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3> |
283 | 283 | <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentytwelve' ) ); ?></div> |
284 | 284 | <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?></div> |
285 | 285 | </nav><!-- #<?php echo $html_id; ?> .navigation --> |
286 | | <?php endif; |
| 286 | <?php } |
| 287 | } |
287 | 288 | } |
288 | | endif; |
289 | 289 | |
290 | | if ( ! function_exists( 'twentytwelve_comment' ) ) : |
| 290 | if ( ! function_exists( 'twentytwelve_comment' ) ) { |
291 | 291 | /** |
292 | 292 | * Template for comments and pingbacks. |
293 | 293 | * |
… |
… |
function twentytwelve_comment( $comment, $args, $depth ) { |
332 | 332 | ?> |
333 | 333 | </header><!-- .comment-meta --> |
334 | 334 | |
335 | | <?php if ( '0' == $comment->comment_approved ) : ?> |
| 335 | <?php if ( '0' == $comment->comment_approved ) { ?> |
336 | 336 | <p class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentytwelve' ); ?></p> |
337 | | <?php endif; ?> |
| 337 | <?php } ?> |
338 | 338 | |
339 | 339 | <section class="comment-content comment"> |
340 | 340 | <?php comment_text(); ?> |
… |
… |
function twentytwelve_comment( $comment, $args, $depth ) { |
349 | 349 | break; |
350 | 350 | endswitch; // end comment_type check |
351 | 351 | } |
352 | | endif; |
| 352 | } |
353 | 353 | |
354 | | if ( ! function_exists( 'twentytwelve_entry_meta' ) ) : |
| 354 | if ( ! function_exists( 'twentytwelve_entry_meta' ) ) { |
355 | 355 | /** |
356 | 356 | * Prints HTML with meta information for current post: categories, tags, permalink, author, and date. |
357 | 357 | * |
… |
… |
function twentytwelve_entry_meta() { |
396 | 396 | $author |
397 | 397 | ); |
398 | 398 | } |
399 | | endif; |
| 399 | } |
400 | 400 | |
401 | 401 | /** |
402 | 402 | * Extends the default WordPress body class to denote: |
-
diff --git a/wp-content/themes/twentytwelve/header.php b/wp-content/themes/twentytwelve/header.php
index 2d3dfa6..6a89822 100644
a
|
b
|
|
46 | 46 | </nav><!-- #site-navigation --> |
47 | 47 | |
48 | 48 | <?php $header_image = get_header_image(); |
49 | | if ( ! empty( $header_image ) ) : ?> |
| 49 | if ( ! empty( $header_image ) ) { ?> |
50 | 50 | <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /></a> |
51 | | <?php endif; ?> |
| 51 | <?php } ?> |
52 | 52 | </header><!-- #masthead --> |
53 | 53 | |
54 | 54 | <div id="main" class="wrapper"> |
| 55 | No newline at end of file |
-
diff --git a/wp-content/themes/twentytwelve/image.php b/wp-content/themes/twentytwelve/image.php
index b2fcb42..3292ed8 100644
a
|
b
|
|
60 | 60 | |
61 | 61 | $k++; |
62 | 62 | // If there is more than 1 attachment in a gallery |
63 | | if ( count( $attachments ) > 1 ) : |
64 | | if ( isset( $attachments[ $k ] ) ) : |
| 63 | if ( count( $attachments ) > 1 ) { |
| 64 | if ( isset( $attachments[ $k ] ) ) { |
65 | 65 | // get the URL of the next image attachment |
66 | 66 | $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID ); |
67 | | else : |
| 67 | } else { |
68 | 68 | // or get the URL of the first image attachment |
69 | 69 | $next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID ); |
70 | | endif; |
71 | | else : |
| 70 | } |
| 71 | } else { |
72 | 72 | // or, if there's only 1 image, get the URL of the image |
73 | 73 | $next_attachment_url = wp_get_attachment_url(); |
74 | | endif; |
| 74 | } |
75 | 75 | ?> |
76 | 76 | <a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php |
77 | 77 | $attachment_size = apply_filters( 'twentytwelve_attachment_size', array( 960, 960 ) ); |
78 | 78 | echo wp_get_attachment_image( $post->ID, $attachment_size ); |
79 | 79 | ?></a> |
80 | 80 | |
81 | | <?php if ( ! empty( $post->post_excerpt ) ) : ?> |
| 81 | <?php if ( ! empty( $post->post_excerpt ) ) { ?> |
82 | 82 | <div class="entry-caption"> |
83 | 83 | <?php the_excerpt(); ?> |
84 | 84 | </div> |
85 | | <?php endif; ?> |
| 85 | <?php } ?> |
86 | 86 | </div><!-- .attachment --> |
87 | 87 | |
88 | 88 | </div><!-- .entry-attachment --> |
-
diff --git a/wp-content/themes/twentytwelve/inc/custom-header.php b/wp-content/themes/twentytwelve/inc/custom-header.php
index 595bf98..c8928db 100644
a
|
b
|
function twentytwelve_header_style() { |
79 | 79 | <style type="text/css" id="twentytwelve-header-css"> |
80 | 80 | <?php |
81 | 81 | // Has the text been hidden? |
82 | | if ( ! display_header_text() ) : |
| 82 | if ( ! display_header_text() ) { |
83 | 83 | ?> |
84 | 84 | .site-title, |
85 | 85 | .site-description { |
… |
… |
function twentytwelve_header_style() { |
89 | 89 | } |
90 | 90 | <?php |
91 | 91 | // If the user has set a custom color for the text, use that. |
92 | | else : |
| 92 | } else { |
93 | 93 | ?> |
94 | 94 | .site-header h1 a, |
95 | 95 | .site-header h2 { |
96 | 96 | color: #<?php echo $text_color; ?>; |
97 | 97 | } |
98 | | <?php endif; ?> |
| 98 | <?php } ?> |
99 | 99 | </style> |
100 | 100 | <?php |
101 | 101 | } |
… |
… |
function twentytwelve_admin_header_image() { |
158 | 158 | <h1 class="displaying-header-text"><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1> |
159 | 159 | <h2 id="desc" class="displaying-header-text"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></h2> |
160 | 160 | <?php $header_image = get_header_image(); |
161 | | if ( ! empty( $header_image ) ) : ?> |
| 161 | if ( ! empty( $header_image ) ) { ?> |
162 | 162 | <img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /> |
163 | | <?php endif; ?> |
| 163 | <?php } ?> |
164 | 164 | </div> |
165 | 165 | <?php } |
| 166 | No newline at end of file |
-
diff --git a/wp-content/themes/twentytwelve/index.php b/wp-content/themes/twentytwelve/index.php
index 91201b4..af28cda 100644
a
|
b
|
|
18 | 18 | |
19 | 19 | <div id="primary" class="site-content"> |
20 | 20 | <div id="content" role="main"> |
21 | | <?php if ( have_posts() ) : ?> |
| 21 | <?php if ( have_posts() ) { ?> |
22 | 22 | |
23 | 23 | <?php /* Start the Loop */ ?> |
24 | 24 | <?php while ( have_posts() ) : the_post(); ?> |
… |
… |
|
27 | 27 | |
28 | 28 | <?php twentytwelve_content_nav( 'nav-below' ); ?> |
29 | 29 | |
30 | | <?php else : ?> |
| 30 | <?php } else { ?> |
31 | 31 | |
32 | 32 | <article id="post-0" class="post no-results not-found"> |
33 | 33 | |
34 | | <?php if ( current_user_can( 'edit_posts' ) ) : |
| 34 | <?php if ( current_user_can( 'edit_posts' ) ) { |
35 | 35 | // Show a different message to a logged-in user who can add posts. |
36 | 36 | ?> |
37 | 37 | <header class="entry-header"> |
… |
… |
|
42 | 42 | <p><?php printf( __( 'Ready to publish your first post? <a href="%s">Get started here</a>.', 'twentytwelve' ), admin_url( 'post-new.php' ) ); ?></p> |
43 | 43 | </div><!-- .entry-content --> |
44 | 44 | |
45 | | <?php else : |
| 45 | <?php } else { |
46 | 46 | // Show the default message to everyone else. |
47 | 47 | ?> |
48 | 48 | <header class="entry-header"> |
… |
… |
|
53 | 53 | <p><?php _e( 'Apologies, but no results were found. Perhaps searching will help find a related post.', 'twentytwelve' ); ?></p> |
54 | 54 | <?php get_search_form(); ?> |
55 | 55 | </div><!-- .entry-content --> |
56 | | <?php endif; // end current_user_can() check ?> |
| 56 | <?php } // end current_user_can() check ?> |
57 | 57 | |
58 | 58 | </article><!-- #post-0 --> |
59 | 59 | |
60 | | <?php endif; // end have_posts() check ?> |
| 60 | <?php } // end have_posts() check ?> |
61 | 61 | |
62 | 62 | </div><!-- #content --> |
63 | 63 | </div><!-- #primary --> |
-
diff --git a/wp-content/themes/twentytwelve/page-templates/front-page.php b/wp-content/themes/twentytwelve/page-templates/front-page.php
index 9ae4f27..72b530f 100644
a
|
b
|
|
18 | 18 | <div id="content" role="main"> |
19 | 19 | |
20 | 20 | <?php while ( have_posts() ) : the_post(); ?> |
21 | | <?php if ( has_post_thumbnail() ) : ?> |
| 21 | <?php if ( has_post_thumbnail() ) { ?> |
22 | 22 | <div class="entry-page-image"> |
23 | 23 | <?php the_post_thumbnail(); ?> |
24 | 24 | </div><!-- .entry-page-image --> |
25 | | <?php endif; ?> |
| 25 | <?php } ?> |
26 | 26 | |
27 | 27 | <?php get_template_part( 'content', 'page' ); ?> |
28 | 28 | |
-
diff --git a/wp-content/themes/twentytwelve/search.php b/wp-content/themes/twentytwelve/search.php
index 4eea82c..0a1a42e 100644
a
|
b
|
|
12 | 12 | <section id="primary" class="site-content"> |
13 | 13 | <div id="content" role="main"> |
14 | 14 | |
15 | | <?php if ( have_posts() ) : ?> |
| 15 | <?php if ( have_posts() ) { ?> |
16 | 16 | |
17 | 17 | <header class="page-header"> |
18 | 18 | <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentytwelve' ), '<span>' . get_search_query() . '</span>' ); ?></h1> |
… |
… |
|
27 | 27 | |
28 | 28 | <?php twentytwelve_content_nav( 'nav-below' ); ?> |
29 | 29 | |
30 | | <?php else : ?> |
| 30 | <?php } else { ?> |
31 | 31 | |
32 | 32 | <article id="post-0" class="post no-results not-found"> |
33 | 33 | <header class="entry-header"> |
… |
… |
|
40 | 40 | </div><!-- .entry-content --> |
41 | 41 | </article><!-- #post-0 --> |
42 | 42 | |
43 | | <?php endif; ?> |
| 43 | <?php } ?> |
44 | 44 | |
45 | 45 | </div><!-- #content --> |
46 | 46 | </section><!-- #primary --> |
-
diff --git a/wp-content/themes/twentytwelve/sidebar-front.php b/wp-content/themes/twentytwelve/sidebar-front.php
index 4dfa140..e3f8241 100644
a
|
b
|
|
21 | 21 | // If we get this far, we have widgets. Let do this. |
22 | 22 | ?> |
23 | 23 | <div id="secondary" class="widget-area" role="complementary"> |
24 | | <?php if ( is_active_sidebar( 'sidebar-2' ) ) : ?> |
| 24 | <?php if ( is_active_sidebar( 'sidebar-2' ) ) { ?> |
25 | 25 | <div class="first front-widgets"> |
26 | 26 | <?php dynamic_sidebar( 'sidebar-2' ); ?> |
27 | 27 | </div><!-- .first --> |
28 | | <?php endif; ?> |
| 28 | <?php } ?> |
29 | 29 | |
30 | | <?php if ( is_active_sidebar( 'sidebar-3' ) ) : ?> |
| 30 | <?php if ( is_active_sidebar( 'sidebar-3' ) ) { ?> |
31 | 31 | <div class="second front-widgets"> |
32 | 32 | <?php dynamic_sidebar( 'sidebar-3' ); ?> |
33 | 33 | </div><!-- .second --> |
34 | | <?php endif; ?> |
| 34 | <?php } ?> |
35 | 35 | </div><!-- #secondary --> |
| 36 | No newline at end of file |
-
diff --git a/wp-content/themes/twentytwelve/sidebar.php b/wp-content/themes/twentytwelve/sidebar.php
index 2bc4969..6459602 100644
a
|
b
|
|
10 | 10 | */ |
11 | 11 | ?> |
12 | 12 | |
13 | | <?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?> |
| 13 | <?php if ( is_active_sidebar( 'sidebar-1' ) ) { ?> |
14 | 14 | <div id="secondary" class="widget-area" role="complementary"> |
15 | 15 | <?php dynamic_sidebar( 'sidebar-1' ); ?> |
16 | 16 | </div><!-- #secondary --> |
17 | | <?php endif; ?> |
18 | | No newline at end of file |
| 17 | <?php } ?> |
| 18 | No newline at end of file |
-
diff --git a/wp-content/themes/twentytwelve/tag.php b/wp-content/themes/twentytwelve/tag.php
index 9bf77e0..d3a82b0 100644
a
|
b
|
|
16 | 16 | <section id="primary" class="site-content"> |
17 | 17 | <div id="content" role="main"> |
18 | 18 | |
19 | | <?php if ( have_posts() ) : ?> |
| 19 | <?php if ( have_posts() ) { ?> |
20 | 20 | <header class="archive-header"> |
21 | 21 | <h1 class="archive-title"><?php printf( __( 'Tag Archives: %s', 'twentytwelve' ), '<span>' . single_tag_title( '', false ) . '</span>' ); ?></h1> |
22 | 22 | |
23 | | <?php if ( tag_description() ) : // Show an optional tag description ?> |
| 23 | <?php if ( tag_description() ) { // Show an optional tag description ?> |
24 | 24 | <div class="archive-meta"><?php echo tag_description(); ?></div> |
25 | | <?php endif; ?> |
| 25 | <?php } ?> |
26 | 26 | </header><!-- .archive-header --> |
27 | 27 | |
28 | 28 | <?php |
… |
… |
|
40 | 40 | twentytwelve_content_nav( 'nav-below' ); |
41 | 41 | ?> |
42 | 42 | |
43 | | <?php else : ?> |
| 43 | <?php } else { ?> |
44 | 44 | <?php get_template_part( 'content', 'none' ); ?> |
45 | | <?php endif; ?> |
| 45 | <?php } ?> |
46 | 46 | |
47 | 47 | </div><!-- #content --> |
48 | 48 | </section><!-- #primary --> |