diff --git a/wp-content/themes/twentyeleven/404.php b/wp-content/themes/twentyeleven/404.php index 63437b9ae13683fceecb7e474e57347a1785b024..897463138cd914b39edabad2f4c81702b993829f 100644 --- a/wp-content/themes/twentyeleven/404.php +++ b/wp-content/themes/twentyeleven/404.php @@ -27,14 +27,31 @@ get_header(); ?> <div class="widget"> <h2 class="widgettitle"><?php _e( 'Most Used Categories', 'twentyeleven' ); ?></h2> <ul> - <?php wp_list_categories( array( 'orderby' => 'count', 'order' => 'DESC', 'show_count' => 1, 'title_li' => '', 'number' => 10 ) ); ?> + <?php + wp_list_categories( + array( + 'orderby' => 'count', + 'order' => 'DESC', + 'show_count' => 1, + 'title_li' => '', + 'number' => 10, + ) + ); + ?> </ul> </div> <?php /* translators: %1$s: smilie */ $archive_content = '<p>' . sprintf( __( 'Try looking in the monthly archives. %1$s', 'twentyeleven' ), convert_smilies( ':)' ) ) . '</p>'; - the_widget( 'WP_Widget_Archives', array( 'count' => 0, 'dropdown' => 1 ), array( 'after_title' => '</h2>' . $archive_content ) ); + the_widget( + 'WP_Widget_Archives', + array( + 'count' => 0, + 'dropdown' => 1, + ), + array( 'after_title' => '</h2>' . $archive_content ) + ); ?> <?php the_widget( 'WP_Widget_Tag_Cloud' ); ?> @@ -45,4 +62,4 @@ get_header(); ?> </div><!-- #content --> </div><!-- #primary --> -<?php get_footer(); ?> \ No newline at end of file +<?php get_footer(); ?> diff --git a/wp-content/themes/twentyeleven/archive.php b/wp-content/themes/twentyeleven/archive.php index 2f54972bd875dcfb81986cd9d89ea89b3d4384f5..9684c7b57f5ac8982356f2eae59475ceba075444 100644 --- a/wp-content/themes/twentyeleven/archive.php +++ b/wp-content/themes/twentyeleven/archive.php @@ -36,7 +36,10 @@ get_header(); ?> <?php twentyeleven_content_nav( 'nav-above' ); ?> <?php /* Start the Loop */ ?> - <?php while ( have_posts() ) : the_post(); ?> + <?php + while ( have_posts() ) : + the_post(); + ?> <?php /* Include the Post-Format-specific template for the content. diff --git a/wp-content/themes/twentyeleven/author.php b/wp-content/themes/twentyeleven/author.php index 274d5b87a46d922f9eb8267516479ae667166721..c6d68e216d626938d27466fa73fe88e24a7acded 100644 --- a/wp-content/themes/twentyeleven/author.php +++ b/wp-content/themes/twentyeleven/author.php @@ -42,7 +42,8 @@ get_header(); ?> <?php // If a user has filled out their description, show a bio on their entries. - if ( get_the_author_meta( 'description' ) ) : ?> + if ( get_the_author_meta( 'description' ) ) : + ?> <div id="author-info"> <div id="author-avatar"> <?php @@ -64,7 +65,10 @@ get_header(); ?> <?php endif; ?> <?php /* Start the Loop */ ?> - <?php while ( have_posts() ) : the_post(); ?> + <?php + while ( have_posts() ) : + the_post(); + ?> <?php /* @@ -98,4 +102,4 @@ get_header(); ?> </section><!-- #primary --> <?php get_sidebar(); ?> -<?php get_footer(); ?> \ No newline at end of file +<?php get_footer(); ?> diff --git a/wp-content/themes/twentyeleven/blocks.css b/wp-content/themes/twentyeleven/blocks.css index e29ddf9ca54e71e5c7f1d46b0212d8c2b1ef18aa..ee0f5ad6add97e4d0d5baaa1c7a756ca839fbacb 100644 --- a/wp-content/themes/twentyeleven/blocks.css +++ b/wp-content/themes/twentyeleven/blocks.css @@ -232,9 +232,6 @@ p.has-drop-cap:not(:focus)::first-letter { /* Buttons */ .wp-block-button .wp-block-button__link { - border: none; - -moz-border-radius: 3px; - border-radius: 3px; -webkit-box-shadow: 0px 1px 2px rgba(0,0,0,0.3); -moz-box-shadow: 0px 1px 2px rgba(0,0,0,0.3); box-shadow: 0px 1px 2px rgba(0,0,0,0.3); @@ -242,10 +239,18 @@ p.has-drop-cap:not(:focus)::first-letter { font-size: 15px; margin: 20px 0; padding: 5px 22px; + text-decoration: none; text-shadow: 0 -1px 0 rgba(0,0,0,0.3); } -.wp-block-button__link { +.is-style-outline .wp-block-button__link:not(.has-text-color) { + color: #222; + text-shadow: none; +} + +.wp-block-button__link, +.wp-block-button .wp-block-button__link:hover, +.wp-block-button .is-style-outline .wp-block-button__link:hover { background: #222; color: #eee; } diff --git a/wp-content/themes/twentyeleven/category.php b/wp-content/themes/twentyeleven/category.php index cd64f4490f0ebaec1df4adccab65f3b5ef0c3e50..903ef1167648e7e915c6c41c25d25aeea6a53026 100644 --- a/wp-content/themes/twentyeleven/category.php +++ b/wp-content/themes/twentyeleven/category.php @@ -15,29 +15,34 @@ get_header(); ?> <?php if ( have_posts() ) : ?> <header class="page-header"> - <h1 class="page-title"><?php + <h1 class="page-title"> + <?php printf( __( 'Category Archives: %s', 'twentyeleven' ), '<span>' . single_cat_title( '', false ) . '</span>' ); - ?></h1> + ?> + </h1> <?php $category_description = category_description(); - if ( ! empty( $category_description ) ) { - /** - * Filter the default Twenty Eleven category description. - * - * @since Twenty Eleven 1.0 - * - * @param string The default category description HTML. - */ - echo apply_filters( 'category_archive_meta', '<div class="category-archive-meta">' . $category_description . '</div>' ); - } + if ( ! empty( $category_description ) ) { + /** + * Filter the default Twenty Eleven category description. + * + * @since Twenty Eleven 1.0 + * + * @param string The default category description HTML. + */ + echo apply_filters( 'category_archive_meta', '<div class="category-archive-meta">' . $category_description . '</div>' ); + } ?> </header> <?php twentyeleven_content_nav( 'nav-above' ); ?> <?php /* Start the Loop */ ?> - <?php while ( have_posts() ) : the_post(); ?> + <?php + while ( have_posts() ) : + the_post(); + ?> <?php /* diff --git a/wp-content/themes/twentyeleven/comments.php b/wp-content/themes/twentyeleven/comments.php index e774e83647b4d0186a902291cdfac8db6f4c7341..68028598beb60e0a2020905f8958a74954d9fc62 100644 --- a/wp-content/themes/twentyeleven/comments.php +++ b/wp-content/themes/twentyeleven/comments.php @@ -16,7 +16,7 @@ <?php if ( post_password_required() ) : ?> <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'twentyeleven' ); ?></p> </div><!-- #comments --> - <?php + <?php /* * Stop the rest of comments.php from being processed, * but don't kill the script entirely -- we still have @@ -24,15 +24,18 @@ */ return; endif; - ?> +?> <?php // You can start editing here -- including this comment! ?> <?php if ( have_comments() ) : ?> <h2 id="comments-title"> <?php - printf( _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentyeleven' ), - number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' ); + printf( + _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentyeleven' ), + number_format_i18n( get_comments_number() ), + '<span>' . get_the_title() . '</span>' + ); ?> </h2> @@ -70,8 +73,9 @@ * If there are no comments and comments are closed, let's leave a little note, shall we? * But we only want the note on posts and pages that had comments in the first place. */ - if ( ! comments_open() && get_comments_number() ) : ?> - <p class="nocomments"><?php _e( 'Comments are closed.' , 'twentyeleven' ); ?></p> + if ( ! comments_open() && get_comments_number() ) : + ?> + <p class="nocomments"><?php _e( 'Comments are closed.', 'twentyeleven' ); ?></p> <?php endif; ?> <?php endif; // have_comments() ?> diff --git a/wp-content/themes/twentyeleven/content-aside.php b/wp-content/themes/twentyeleven/content-aside.php index 387403d62bcfb56f27119d7094c6571d49789bfb..258db8fc456bf56e1f94af2893bf1a1cfb382d37 100644 --- a/wp-content/themes/twentyeleven/content-aside.php +++ b/wp-content/themes/twentyeleven/content-aside.php @@ -33,7 +33,14 @@ <?php else : ?> <div class="entry-content"> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?> - <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> + <?php + wp_link_pages( + array( + 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', + 'after' => '</div>', + ) + ); + ?> </div><!-- .entry-content --> <?php endif; ?> diff --git a/wp-content/themes/twentyeleven/content-featured.php b/wp-content/themes/twentyeleven/content-featured.php index bd31b320098eb97bd1fa6e63d86e3c715d7a3089..8d8fd4f90d25e8fea0e12693aba58a941c797081 100644 --- a/wp-content/themes/twentyeleven/content-featured.php +++ b/wp-content/themes/twentyeleven/content-featured.php @@ -20,18 +20,25 @@ global $feature_class; <div class="entry-summary"> <?php the_excerpt(); ?> - <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> + <?php + wp_link_pages( + array( + 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', + 'after' => '</div>', + ) + ); + ?> </div><!-- .entry-content --> <footer class="entry-meta"> <?php /* translators: used between list items, there is a space after the comma */ $tag_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) ); - if ( '' != $tag_list ) { - $utility_text = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' ); - } else { - $utility_text = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' ); - } + if ( '' != $tag_list ) { + $utility_text = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' ); + } else { + $utility_text = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' ); + } printf( $utility_text, /* translators: used between list items, there is a space after the comma */ @@ -40,7 +47,7 @@ global $feature_class; esc_url( get_permalink() ), the_title_attribute( 'echo=0' ) ); - ?> + ?> <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?> </footer><!-- .entry-meta --> diff --git a/wp-content/themes/twentyeleven/content-gallery.php b/wp-content/themes/twentyeleven/content-gallery.php index e88797811b9690bb8fd7b8d9475e89edfdb7297b..a95f92c1e48901fe519c21d50004720333b0c9df 100644 --- a/wp-content/themes/twentyeleven/content-gallery.php +++ b/wp-content/themes/twentyeleven/content-gallery.php @@ -32,24 +32,37 @@ <div class="entry-content"> <?php if ( post_password_required() ) : ?> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?> - <?php else : + <?php + else : $images = twentyeleven_get_gallery_images(); if ( $images ) : $total_images = count( $images ); - $image = reset( $images ); - ?> + $image = reset( $images ); + ?> <figure class="gallery-thumb"> <a href="<?php the_permalink(); ?>"><?php echo wp_get_attachment_image( $image, 'thumbnail' ); ?></a> - </figure><!-- .gallery-thumb --> + </figure><!-- .gallery-thumb --> - <p><em><?php printf( _n( 'This gallery contains <a %1$s>%2$s photo</a>.', 'This gallery contains <a %1$s>%2$s photos</a>.', $total_images, 'twentyeleven' ), + <p><em> + <?php + printf( + _n( 'This gallery contains <a %1$s>%2$s photo</a>.', 'This gallery contains <a %1$s>%2$s photos</a>.', $total_images, 'twentyeleven' ), 'href="' . esc_url( get_permalink() ) . '" title="' . esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ) . '" rel="bookmark"', number_format_i18n( $total_images ) - ); ?></em></p> - <?php endif; // end twentyeleven_get_gallery_images() check ?> - <?php the_excerpt(); ?> + ); + ?> + </em></p> + <?php endif; // end twentyeleven_get_gallery_images() check ?> + <?php the_excerpt(); ?> <?php endif; ?> - <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> + <?php + wp_link_pages( + array( + 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', + 'after' => '</div>', + ) + ); + ?> </div><!-- .entry-content --> <?php endif; ?> @@ -58,28 +71,33 @@ <?php /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) ); - if ( $categories_list ): - ?> + if ( $categories_list ) : + ?> <span class="cat-links"> - <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list ); - $show_sep = true; ?> + <?php + printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list ); + $show_sep = true; + ?> </span> <?php endif; // End if categories ?> <?php /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) ); - if ( $tags_list ): - if ( $show_sep ) : ?> + if ( $tags_list ) : + if ( $show_sep ) : + ?> <span class="sep"> | </span> <?php endif; // End if $show_sep ?> <span class="tag-links"> - <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); - $show_sep = true; ?> + <?php + printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); + $show_sep = true; + ?> </span> <?php endif; // End if $tags_list ?> <?php if ( comments_open() ) : ?> - <?php if ( $show_sep ) : ?> + <?php if ( $show_sep ) : ?> <span class="sep"> | </span> <?php endif; // End if $show_sep ?> <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> diff --git a/wp-content/themes/twentyeleven/content-image.php b/wp-content/themes/twentyeleven/content-image.php index 24976908690f3efd97031b7a9119da56dfedfc6d..6ed6a51a35827e996424a7fc15ef5469319a6163 100644 --- a/wp-content/themes/twentyeleven/content-image.php +++ b/wp-content/themes/twentyeleven/content-image.php @@ -27,13 +27,21 @@ <div class="entry-content"> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?> - <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> + <?php + wp_link_pages( + array( + 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', + 'after' => '</div>', + ) + ); + ?> </div><!-- .entry-content --> <footer class="entry-meta"> <div class="entry-meta"> <?php - printf( __( '<a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span></span>', 'twentyeleven' ), + printf( + __( '<a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%4$s" title="%5$s" rel="author">%6$s</a></span></span>', 'twentyeleven' ), esc_url( get_permalink() ), get_the_date( 'c' ), get_the_date(), @@ -41,14 +49,14 @@ esc_attr( sprintf( __( 'View all posts by %s', 'twentyeleven' ), get_the_author() ) ), get_the_author() ); - ?> + ?> </div><!-- .entry-meta --> <div class="entry-meta"> <?php /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) ); - if ( $categories_list ): - ?> + if ( $categories_list ) : + ?> <span class="cat-links"> <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list ); ?> </span> @@ -56,7 +64,8 @@ <?php /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) ); - if ( $tags_list ): ?> + if ( $tags_list ) : + ?> <span class="tag-links"> <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?> </span> diff --git a/wp-content/themes/twentyeleven/content-intro.php b/wp-content/themes/twentyeleven/content-intro.php index 6b9099cf820849ba919702604ee309db7a660f72..2882b8fe9cb79cce6f8be94b75dbf2ecad6461a2 100644 --- a/wp-content/themes/twentyeleven/content-intro.php +++ b/wp-content/themes/twentyeleven/content-intro.php @@ -15,7 +15,14 @@ <div class="entry-content"> <?php the_content(); ?> - <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> + <?php + wp_link_pages( + array( + 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', + 'after' => '</div>', + ) + ); + ?> <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?> </div><!-- .entry-content --> </article><!-- #post-<?php the_ID(); ?> --> diff --git a/wp-content/themes/twentyeleven/content-link.php b/wp-content/themes/twentyeleven/content-link.php index 04e673016eea75eba894b2107f38e28f6f36b1d5..bf4743e4ecf9b3ef97f4fe5f55faceff8023b856 100644 --- a/wp-content/themes/twentyeleven/content-link.php +++ b/wp-content/themes/twentyeleven/content-link.php @@ -33,7 +33,14 @@ <?php else : ?> <div class="entry-content"> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?> - <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> + <?php + wp_link_pages( + array( + 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', + 'after' => '</div>', + ) + ); + ?> </div><!-- .entry-content --> <?php endif; ?> diff --git a/wp-content/themes/twentyeleven/content-page.php b/wp-content/themes/twentyeleven/content-page.php index 800a695090d2b113f86c674342a3c9f0034ab5a1..968a0cac45c5005052a7b6c6552ade5e2b1a6dbc 100644 --- a/wp-content/themes/twentyeleven/content-page.php +++ b/wp-content/themes/twentyeleven/content-page.php @@ -15,7 +15,14 @@ <div class="entry-content"> <?php the_content(); ?> - <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> + <?php + wp_link_pages( + array( + 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', + 'after' => '</div>', + ) + ); + ?> </div><!-- .entry-content --> <footer class="entry-meta"> <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?> diff --git a/wp-content/themes/twentyeleven/content-quote.php b/wp-content/themes/twentyeleven/content-quote.php index 2bf20cdf29ee9f193e2b64e89189138a70ec9f7a..f2a958327c6afaf4e50577e06bd1b47240f6293a 100644 --- a/wp-content/themes/twentyeleven/content-quote.php +++ b/wp-content/themes/twentyeleven/content-quote.php @@ -33,7 +33,14 @@ <?php else : ?> <div class="entry-content"> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?> - <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> + <?php + wp_link_pages( + array( + 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', + 'after' => '</div>', + ) + ); + ?> </div><!-- .entry-content --> <?php endif; ?> @@ -42,28 +49,33 @@ <?php /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) ); - if ( $categories_list ): - ?> + if ( $categories_list ) : + ?> <span class="cat-links"> - <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list ); - $show_sep = true; ?> + <?php + printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list ); + $show_sep = true; + ?> </span> <?php endif; // End if categories ?> <?php /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) ); - if ( $tags_list ): - if ( $show_sep ) : ?> + if ( $tags_list ) : + if ( $show_sep ) : + ?> <span class="sep"> | </span> <?php endif; // End if $show_sep ?> <span class="tag-links"> - <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); - $show_sep = true; ?> + <?php + printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); + $show_sep = true; + ?> </span> <?php endif; // End if $tags_list ?> <?php if ( comments_open() ) : ?> - <?php if ( $show_sep ) : ?> + <?php if ( $show_sep ) : ?> <span class="sep"> | </span> <?php endif; // End if $show_sep ?> <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> diff --git a/wp-content/themes/twentyeleven/content-single.php b/wp-content/themes/twentyeleven/content-single.php index 11ac986b53ced32ff2ce2adbcd8890babfe23206..2615513e458f2dbde04c55232e5e7bb6ef84f9e5 100644 --- a/wp-content/themes/twentyeleven/content-single.php +++ b/wp-content/themes/twentyeleven/content-single.php @@ -21,7 +21,14 @@ <div class="entry-content"> <?php the_content(); ?> - <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> + <?php + wp_link_pages( + array( + 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', + 'after' => '</div>', + ) + ); + ?> </div><!-- .entry-content --> <footer class="entry-meta"> @@ -31,13 +38,13 @@ /* translators: used between list items, there is a space after the comma */ $tag_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) ); - if ( '' != $tag_list ) { - $utility_text = __( 'This entry was posted in %1$s and tagged %2$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' ); - } elseif ( '' != $categories_list ) { - $utility_text = __( 'This entry was posted in %1$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' ); - } else { - $utility_text = __( 'This entry was posted by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' ); - } + if ( '' != $tag_list ) { + $utility_text = __( 'This entry was posted in %1$s and tagged %2$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' ); + } elseif ( '' != $categories_list ) { + $utility_text = __( 'This entry was posted in %1$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' ); + } else { + $utility_text = __( 'This entry was posted by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' ); + } printf( $utility_text, @@ -48,7 +55,7 @@ get_the_author(), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) ); - ?> + ?> <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?> <?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 ?> diff --git a/wp-content/themes/twentyeleven/content-status.php b/wp-content/themes/twentyeleven/content-status.php index afcf823d896a4ee5a45c6b893361b1fc51674b30..b7ac2b6be6b9a86684b34bdc23fb49698d4688ed 100644 --- a/wp-content/themes/twentyeleven/content-status.php +++ b/wp-content/themes/twentyeleven/content-status.php @@ -46,7 +46,14 @@ </div> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?> - <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> + <?php + wp_link_pages( + array( + 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', + 'after' => '</div>', + ) + ); + ?> </div><!-- .entry-content --> <?php endif; ?> diff --git a/wp-content/themes/twentyeleven/content.php b/wp-content/themes/twentyeleven/content.php index 1f5e50faee8a50e9981acdcc1aa92ee4a0e8351e..7da6cc5fa91cecf20884f874e48e2c6f823607f2 100644 --- a/wp-content/themes/twentyeleven/content.php +++ b/wp-content/themes/twentyeleven/content.php @@ -39,41 +39,53 @@ <?php else : ?> <div class="entry-content"> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?> - <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> + <?php + wp_link_pages( + array( + 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', + 'after' => '</div>', + ) + ); + ?> </div><!-- .entry-content --> <?php endif; ?> <footer class="entry-meta"> <?php $show_sep = false; ?> <?php if ( is_object_in_taxonomy( get_post_type(), 'category' ) ) : // Hide category text when not supported ?> - <?php + <?php /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) ); - if ( $categories_list ): - ?> + if ( $categories_list ) : + ?> <span class="cat-links"> - <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list ); - $show_sep = true; ?> + <?php + printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-cat-links', $categories_list ); + $show_sep = true; + ?> </span> - <?php endif; // End if categories ?> + <?php endif; // End if categories ?> <?php endif; // End if is_object_in_taxonomy( get_post_type(), 'category' ) ?> <?php if ( is_object_in_taxonomy( get_post_type(), 'post_tag' ) ) : // Hide tag text when not supported ?> - <?php + <?php /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) ); - if ( $tags_list ): - if ( $show_sep ) : ?> + if ( $tags_list ) : + if ( $show_sep ) : + ?> <span class="sep"> | </span> - <?php endif; // End if $show_sep ?> + <?php endif; // End if $show_sep ?> <span class="tag-links"> - <?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); - $show_sep = true; ?> + <?php + printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyeleven' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); + $show_sep = true; + ?> </span> - <?php endif; // End if $tags_list ?> + <?php endif; // End if $tags_list ?> <?php endif; // End if is_object_in_taxonomy( get_post_type(), 'post_tag' ) ?> <?php if ( comments_open() ) : ?> - <?php if ( $show_sep ) : ?> + <?php if ( $show_sep ) : ?> <span class="sep"> | </span> <?php endif; // End if $show_sep ?> <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> diff --git a/wp-content/themes/twentyeleven/editor-blocks.css b/wp-content/themes/twentyeleven/editor-blocks.css index b9dd850704c45446aea340fc5c7ff7b4d7fffa8e..d32df04ba6744da0f9a6f751c760cee4d80eafb4 100644 --- a/wp-content/themes/twentyeleven/editor-blocks.css +++ b/wp-content/themes/twentyeleven/editor-blocks.css @@ -371,14 +371,9 @@ p.has-drop-cap:not(:focus)::first-letter { /* Buttons */ .wp-block-button .wp-block-button__link { - background: #222; - border: none; - -moz-border-radius: 3px; - border-radius: 3px; -webkit-box-shadow: 0px 1px 2px rgba(0,0,0,0.3); -moz-box-shadow: 0px 1px 2px rgba(0,0,0,0.3); box-shadow: 0px 1px 2px rgba(0,0,0,0.3); - color: #eee; cursor: pointer; font-size: 15px; line-height: 24px; @@ -387,6 +382,19 @@ p.has-drop-cap:not(:focus)::first-letter { text-shadow: 0 -1px 0 rgba(0,0,0,0.3); } +.wp-block-button__link { + background: #222; + color: #eee; +} + +.is-style-outline .wp-block-button__link { + color: #222; +} + +.wp-block-button__link.has-text-color { + text-shadow: none; +} + /* Media & Text */ .wp-block-media-text *:last-child { diff --git a/wp-content/themes/twentyeleven/footer.php b/wp-content/themes/twentyeleven/footer.php index 446bc8106809a4e72f8479bcdf86e3dca5996650..53fa696ee4a9fb94981a6b0d4f485b8c31991bb5 100644 --- a/wp-content/themes/twentyeleven/footer.php +++ b/wp-content/themes/twentyeleven/footer.php @@ -19,8 +19,9 @@ * A sidebar in the footer? Yep. You can customize * your footer with three columns of widgets. */ - if ( ! is_404() ) - get_sidebar( 'footer' ); + if ( ! is_404() ) { + get_sidebar( 'footer' ); + } ?> <div id="site-generator"> @@ -40,4 +41,4 @@ <?php wp_footer(); ?> </body> -</html> \ No newline at end of file +</html> diff --git a/wp-content/themes/twentyeleven/functions.php b/wp-content/themes/twentyeleven/functions.php index 7a0ced08e8a0e20ca4ace5cbea91ae3fe6cedff9..1654d391e6064883d10e405d17964c22a329e344 100644 --- a/wp-content/themes/twentyeleven/functions.php +++ b/wp-content/themes/twentyeleven/functions.php @@ -39,240 +39,250 @@ */ // Set the content width based on the theme's design and stylesheet. -if ( ! isset( $content_width ) ) +if ( ! isset( $content_width ) ) { $content_width = 584; +} /* * Tell WordPress to run twentyeleven_setup() when the 'after_setup_theme' hook is run. */ add_action( 'after_setup_theme', 'twentyeleven_setup' ); -if ( ! function_exists( 'twentyeleven_setup' ) ): -/** - * Set up theme defaults and registers support for various WordPress features. - * - * Note that this function is hooked into the after_setup_theme hook, which runs - * before the init hook. The init hook is too late for some features, such as indicating - * support post thumbnails. - * - * To override twentyeleven_setup() in a child theme, add your own twentyeleven_setup to your child theme's - * functions.php file. - * - * @uses load_theme_textdomain() For translation/localization support. - * @uses add_editor_style() To style the visual editor. - * @uses add_theme_support() To add support for post thumbnails, automatic feed links, custom headers - * and backgrounds, and post formats. - * @uses register_nav_menus() To add support for navigation menus. - * @uses register_default_headers() To register the default custom header images provided with the theme. - * @uses set_post_thumbnail_size() To set a custom post thumbnail size. - * - * @since Twenty Eleven 1.0 - */ -function twentyeleven_setup() { - - /* - * Make Twenty Eleven available for translation. - * Translations can be added to the /languages/ directory. - * If you're building a theme based on Twenty Eleven, use - * a find and replace to change 'twentyeleven' to the name - * of your theme in all the template files. +if ( ! function_exists( 'twentyeleven_setup' ) ) : + /** + * Set up theme defaults and registers support for various WordPress features. + * + * Note that this function is hooked into the after_setup_theme hook, which runs + * before the init hook. The init hook is too late for some features, such as indicating + * support post thumbnails. + * + * To override twentyeleven_setup() in a child theme, add your own twentyeleven_setup to your child theme's + * functions.php file. + * + * @uses load_theme_textdomain() For translation/localization support. + * @uses add_editor_style() To style the visual editor. + * @uses add_theme_support() To add support for post thumbnails, automatic feed links, custom headers + * and backgrounds, and post formats. + * @uses register_nav_menus() To add support for navigation menus. + * @uses register_default_headers() To register the default custom header images provided with the theme. + * @uses set_post_thumbnail_size() To set a custom post thumbnail size. + * + * @since Twenty Eleven 1.0 */ - load_theme_textdomain( 'twentyeleven', get_template_directory() . '/languages' ); - - // This theme styles the visual editor with editor-style.css to match the theme style. - add_editor_style(); - - // Load regular editor styles into the new block-based editor. - add_theme_support( 'editor-styles' ); - - // Load default block styles. - add_theme_support( 'wp-block-styles' ); - - // Add support for responsive embeds. - add_theme_support( 'responsive-embeds' ); - - // Add support for custom color scheme. - add_theme_support( 'editor-color-palette', array( - array( - 'name' => __( 'Blue', 'twentyeleven' ), - 'slug' => 'blue', - 'color' => '#1982d1', - ), - array( - 'name' => __( 'Black', 'twentyeleven' ), - 'slug' => 'black', - 'color' => '#000', - ), - array( - 'name' => __( 'Dark Gray', 'twentyeleven' ), - 'slug' => 'dark-gray', - 'color' => '#373737', - ), - array( - 'name' => __( 'Medium Gray', 'twentyeleven' ), - 'slug' => 'medium-gray', - 'color' => '#666', - ), - array( - 'name' => __( 'Light Gray', 'twentyeleven' ), - 'slug' => 'light-gray', - 'color' => '#e2e2e2', - ), - array( - 'name' => __( 'White', 'twentyeleven' ), - 'slug' => 'white', - 'color' => '#fff', - ) - ) ); - - // Load up our theme options page and related code. - require( get_template_directory() . '/inc/theme-options.php' ); - - // Grab Twenty Eleven's Ephemera widget. - require( get_template_directory() . '/inc/widgets.php' ); - - // Add default posts and comments RSS feed links to <head>. - add_theme_support( 'automatic-feed-links' ); - - // This theme uses wp_nav_menu() in one location. - register_nav_menu( 'primary', __( 'Primary Menu', 'twentyeleven' ) ); + function twentyeleven_setup() { - // Add support for a variety of post formats - add_theme_support( 'post-formats', array( 'aside', 'link', 'gallery', 'status', 'quote', 'image' ) ); + /* + * Make Twenty Eleven available for translation. + * Translations can be added to the /languages/ directory. + * If you're building a theme based on Twenty Eleven, use + * a find and replace to change 'twentyeleven' to the name + * of your theme in all the template files. + */ + load_theme_textdomain( 'twentyeleven', get_template_directory() . '/languages' ); + + // This theme styles the visual editor with editor-style.css to match the theme style. + add_editor_style(); + + // Load regular editor styles into the new block-based editor. + add_theme_support( 'editor-styles' ); + + // Load default block styles. + add_theme_support( 'wp-block-styles' ); + + // Add support for responsive embeds. + add_theme_support( 'responsive-embeds' ); + + // Add support for custom color scheme. + add_theme_support( + 'editor-color-palette', + array( + array( + 'name' => __( 'Blue', 'twentyeleven' ), + 'slug' => 'blue', + 'color' => '#1982d1', + ), + array( + 'name' => __( 'Black', 'twentyeleven' ), + 'slug' => 'black', + 'color' => '#000', + ), + array( + 'name' => __( 'Dark Gray', 'twentyeleven' ), + 'slug' => 'dark-gray', + 'color' => '#373737', + ), + array( + 'name' => __( 'Medium Gray', 'twentyeleven' ), + 'slug' => 'medium-gray', + 'color' => '#666', + ), + array( + 'name' => __( 'Light Gray', 'twentyeleven' ), + 'slug' => 'light-gray', + 'color' => '#e2e2e2', + ), + array( + 'name' => __( 'White', 'twentyeleven' ), + 'slug' => 'white', + 'color' => '#fff', + ), + ) + ); + + // Load up our theme options page and related code. + require( get_template_directory() . '/inc/theme-options.php' ); + + // Grab Twenty Eleven's Ephemera widget. + require( get_template_directory() . '/inc/widgets.php' ); + + // Add default posts and comments RSS feed links to <head>. + add_theme_support( 'automatic-feed-links' ); + + // This theme uses wp_nav_menu() in one location. + register_nav_menu( 'primary', __( 'Primary Menu', 'twentyeleven' ) ); + + // Add support for a variety of post formats + add_theme_support( 'post-formats', array( 'aside', 'link', 'gallery', 'status', 'quote', 'image' ) ); + + $theme_options = twentyeleven_get_theme_options(); + if ( 'dark' == $theme_options['color_scheme'] ) { + $default_background_color = '1d1d1d'; + } else { + $default_background_color = 'e2e2e2'; + } - $theme_options = twentyeleven_get_theme_options(); - if ( 'dark' == $theme_options['color_scheme'] ) - $default_background_color = '1d1d1d'; - else - $default_background_color = 'e2e2e2'; + // Add support for custom backgrounds. + add_theme_support( + 'custom-background', + array( + /* + * Let WordPress know what our default background color is. + * This is dependent on our current color scheme. + */ + 'default-color' => $default_background_color, + ) + ); + + // This theme uses Featured Images (also known as post thumbnails) for per-post/per-page Custom Header images + add_theme_support( 'post-thumbnails' ); + + // Add support for custom headers. + $custom_header_support = array( + // The default header text color. + 'default-text-color' => '000', + // The height and width of our custom header. + /** + * Filter the Twenty Eleven default header image width. + * + * @since Twenty Eleven 1.0 + * + * @param int The default header image width in pixels. Default 1000. + */ + 'width' => apply_filters( 'twentyeleven_header_image_width', 1000 ), + /** + * Filter the Twenty Eleven default header image height. + * + * @since Twenty Eleven 1.0 + * + * @param int The default header image height in pixels. Default 288. + */ + 'height' => apply_filters( 'twentyeleven_header_image_height', 288 ), + // Support flexible heights. + 'flex-height' => true, + // Random image rotation by default. + 'random-default' => true, + // Callback for styling the header. + 'wp-head-callback' => 'twentyeleven_header_style', + // Callback for styling the header preview in the admin. + 'admin-head-callback' => 'twentyeleven_admin_header_style', + // Callback used to display the header preview in the admin. + 'admin-preview-callback' => 'twentyeleven_admin_header_image', + ); + + add_theme_support( 'custom-header', $custom_header_support ); + + if ( ! function_exists( 'get_custom_header' ) ) { + // This is all for compatibility with versions of WordPress prior to 3.4. + define( 'HEADER_TEXTCOLOR', $custom_header_support['default-text-color'] ); + define( 'HEADER_IMAGE', '' ); + define( 'HEADER_IMAGE_WIDTH', $custom_header_support['width'] ); + define( 'HEADER_IMAGE_HEIGHT', $custom_header_support['height'] ); + add_custom_image_header( $custom_header_support['wp-head-callback'], $custom_header_support['admin-head-callback'], $custom_header_support['admin-preview-callback'] ); + add_custom_background(); + } - // Add support for custom backgrounds. - add_theme_support( 'custom-background', array( /* - * Let WordPress know what our default background color is. - * This is dependent on our current color scheme. - */ - 'default-color' => $default_background_color, - ) ); - - // This theme uses Featured Images (also known as post thumbnails) for per-post/per-page Custom Header images - add_theme_support( 'post-thumbnails' ); - - // Add support for custom headers. - $custom_header_support = array( - // The default header text color. - 'default-text-color' => '000', - // The height and width of our custom header. - /** - * Filter the Twenty Eleven default header image width. - * - * @since Twenty Eleven 1.0 - * - * @param int The default header image width in pixels. Default 1000. + * We'll be using post thumbnails for custom header images on posts and pages. + * We want them to be the size of the header image that we just defined. + * Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php. */ - 'width' => apply_filters( 'twentyeleven_header_image_width', 1000 ), - /** - * Filter the Twenty Eleven default header image height. - * - * @since Twenty Eleven 1.0 - * - * @param int The default header image height in pixels. Default 288. - */ - 'height' => apply_filters( 'twentyeleven_header_image_height', 288 ), - // Support flexible heights. - 'flex-height' => true, - // Random image rotation by default. - 'random-default' => true, - // Callback for styling the header. - 'wp-head-callback' => 'twentyeleven_header_style', - // Callback for styling the header preview in the admin. - 'admin-head-callback' => 'twentyeleven_admin_header_style', - // Callback used to display the header preview in the admin. - 'admin-preview-callback' => 'twentyeleven_admin_header_image', - ); - - add_theme_support( 'custom-header', $custom_header_support ); + set_post_thumbnail_size( $custom_header_support['width'], $custom_header_support['height'], true ); - if ( ! function_exists( 'get_custom_header' ) ) { - // This is all for compatibility with versions of WordPress prior to 3.4. - define( 'HEADER_TEXTCOLOR', $custom_header_support['default-text-color'] ); - define( 'HEADER_IMAGE', '' ); - define( 'HEADER_IMAGE_WIDTH', $custom_header_support['width'] ); - define( 'HEADER_IMAGE_HEIGHT', $custom_header_support['height'] ); - add_custom_image_header( $custom_header_support['wp-head-callback'], $custom_header_support['admin-head-callback'], $custom_header_support['admin-preview-callback'] ); - add_custom_background(); + /* + * Add Twenty Eleven's custom image sizes. + * Used for large feature (header) images. + */ + add_image_size( 'large-feature', $custom_header_support['width'], $custom_header_support['height'], true ); + // Used for featured posts if a large-feature doesn't exist. + add_image_size( 'small-feature', 500, 300 ); + + // Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI. + register_default_headers( + array( + 'wheel' => array( + 'url' => '%s/images/headers/wheel.jpg', + 'thumbnail_url' => '%s/images/headers/wheel-thumbnail.jpg', + /* translators: header image description */ + 'description' => __( 'Wheel', 'twentyeleven' ), + ), + 'shore' => array( + 'url' => '%s/images/headers/shore.jpg', + 'thumbnail_url' => '%s/images/headers/shore-thumbnail.jpg', + /* translators: header image description */ + 'description' => __( 'Shore', 'twentyeleven' ), + ), + 'trolley' => array( + 'url' => '%s/images/headers/trolley.jpg', + 'thumbnail_url' => '%s/images/headers/trolley-thumbnail.jpg', + /* translators: header image description */ + 'description' => __( 'Trolley', 'twentyeleven' ), + ), + 'pine-cone' => array( + 'url' => '%s/images/headers/pine-cone.jpg', + 'thumbnail_url' => '%s/images/headers/pine-cone-thumbnail.jpg', + /* translators: header image description */ + 'description' => __( 'Pine Cone', 'twentyeleven' ), + ), + 'chessboard' => array( + 'url' => '%s/images/headers/chessboard.jpg', + 'thumbnail_url' => '%s/images/headers/chessboard-thumbnail.jpg', + /* translators: header image description */ + 'description' => __( 'Chessboard', 'twentyeleven' ), + ), + 'lanterns' => array( + 'url' => '%s/images/headers/lanterns.jpg', + 'thumbnail_url' => '%s/images/headers/lanterns-thumbnail.jpg', + /* translators: header image description */ + 'description' => __( 'Lanterns', 'twentyeleven' ), + ), + 'willow' => array( + 'url' => '%s/images/headers/willow.jpg', + 'thumbnail_url' => '%s/images/headers/willow-thumbnail.jpg', + /* translators: header image description */ + 'description' => __( 'Willow', 'twentyeleven' ), + ), + 'hanoi' => array( + 'url' => '%s/images/headers/hanoi.jpg', + 'thumbnail_url' => '%s/images/headers/hanoi-thumbnail.jpg', + /* translators: header image description */ + 'description' => __( 'Hanoi Plant', 'twentyeleven' ), + ), + ) + ); + + // Indicate widget sidebars can use selective refresh in the Customizer. + add_theme_support( 'customize-selective-refresh-widgets' ); } - - /* - * We'll be using post thumbnails for custom header images on posts and pages. - * We want them to be the size of the header image that we just defined. - * Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php. - */ - set_post_thumbnail_size( $custom_header_support['width'], $custom_header_support['height'], true ); - - /* - * Add Twenty Eleven's custom image sizes. - * Used for large feature (header) images. - */ - add_image_size( 'large-feature', $custom_header_support['width'], $custom_header_support['height'], true ); - // Used for featured posts if a large-feature doesn't exist. - add_image_size( 'small-feature', 500, 300 ); - - // Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI. - register_default_headers( array( - 'wheel' => array( - 'url' => '%s/images/headers/wheel.jpg', - 'thumbnail_url' => '%s/images/headers/wheel-thumbnail.jpg', - /* translators: header image description */ - 'description' => __( 'Wheel', 'twentyeleven' ) - ), - 'shore' => array( - 'url' => '%s/images/headers/shore.jpg', - 'thumbnail_url' => '%s/images/headers/shore-thumbnail.jpg', - /* translators: header image description */ - 'description' => __( 'Shore', 'twentyeleven' ) - ), - 'trolley' => array( - 'url' => '%s/images/headers/trolley.jpg', - 'thumbnail_url' => '%s/images/headers/trolley-thumbnail.jpg', - /* translators: header image description */ - 'description' => __( 'Trolley', 'twentyeleven' ) - ), - 'pine-cone' => array( - 'url' => '%s/images/headers/pine-cone.jpg', - 'thumbnail_url' => '%s/images/headers/pine-cone-thumbnail.jpg', - /* translators: header image description */ - 'description' => __( 'Pine Cone', 'twentyeleven' ) - ), - 'chessboard' => array( - 'url' => '%s/images/headers/chessboard.jpg', - 'thumbnail_url' => '%s/images/headers/chessboard-thumbnail.jpg', - /* translators: header image description */ - 'description' => __( 'Chessboard', 'twentyeleven' ) - ), - 'lanterns' => array( - 'url' => '%s/images/headers/lanterns.jpg', - 'thumbnail_url' => '%s/images/headers/lanterns-thumbnail.jpg', - /* translators: header image description */ - 'description' => __( 'Lanterns', 'twentyeleven' ) - ), - 'willow' => array( - 'url' => '%s/images/headers/willow.jpg', - 'thumbnail_url' => '%s/images/headers/willow-thumbnail.jpg', - /* translators: header image description */ - 'description' => __( 'Willow', 'twentyeleven' ) - ), - 'hanoi' => array( - 'url' => '%s/images/headers/hanoi.jpg', - 'thumbnail_url' => '%s/images/headers/hanoi-thumbnail.jpg', - /* translators: header image description */ - 'description' => __( 'Hanoi Plant', 'twentyeleven' ) - ) - ) ); - - // Indicate widget sidebars can use selective refresh in the Customizer. - add_theme_support( 'customize-selective-refresh-widgets' ); -} endif; // twentyeleven_setup /** @@ -282,7 +292,7 @@ endif; // twentyeleven_setup */ function twentyeleven_scripts_styles() { // Theme block stylesheet. - wp_enqueue_style( 'twentyeleven-block-style', get_template_directory_uri() . '/blocks.css', array(), '20181018' ); + wp_enqueue_style( 'twentyeleven-block-style', get_template_directory_uri() . '/blocks.css', array(), '20181230' ); } add_action( 'wp_enqueue_scripts', 'twentyeleven_scripts_styles' ); @@ -293,60 +303,61 @@ add_action( 'wp_enqueue_scripts', 'twentyeleven_scripts_styles' ); */ function twentyeleven_block_editor_styles() { // Block styles. - wp_enqueue_style( 'twentyeleven-block-editor-style', get_template_directory_uri() . '/editor-blocks.css' ); + wp_enqueue_style( 'twentyeleven-block-editor-style', get_template_directory_uri() . '/editor-blocks.css', array(), '20181230' ); } add_action( 'enqueue_block_editor_assets', 'twentyeleven_block_editor_styles' ); if ( ! function_exists( 'twentyeleven_header_style' ) ) : -/** - * Styles the header image and text displayed on the blog. - * - * @since Twenty Eleven 1.0 - */ -function twentyeleven_header_style() { - $text_color = get_header_textcolor(); + /** + * Styles the header image and text displayed on the blog. + * + * @since Twenty Eleven 1.0 + */ + function twentyeleven_header_style() { + $text_color = get_header_textcolor(); - // If no custom options for text are set, let's bail. - if ( $text_color == HEADER_TEXTCOLOR ) - return; + // If no custom options for text are set, let's bail. + if ( $text_color == HEADER_TEXTCOLOR ) { + return; + } - // If we get this far, we have custom styles. Let's do this. - ?> - <style type="text/css" id="twentyeleven-header-css"> - <?php + // If we get this far, we have custom styles. Let's do this. + ?> + <style type="text/css" id="twentyeleven-header-css"> + <?php // Has the text been hidden? if ( 'blank' == $text_color ) : - ?> + ?> #site-title, #site-description { position: absolute; clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ clip: rect(1px, 1px, 1px, 1px); } - <?php - // If the user has set a custom color for the text use that + <?php + // If the user has set a custom color for the text use that else : - ?> + ?> #site-title a, #site-description { color: #<?php echo $text_color; ?>; } <?php endif; ?> </style> - <?php -} + <?php + } endif; // twentyeleven_header_style if ( ! function_exists( 'twentyeleven_admin_header_style' ) ) : -/** - * Styles the header image displayed on the Appearance > Header admin panel. - * - * Referenced via add_theme_support('custom-header') in twentyeleven_setup(). - * - * @since Twenty Eleven 1.0 - */ -function twentyeleven_admin_header_style() { -?> + /** + * Styles the header image displayed on the Appearance > Header admin panel. + * + * Referenced via add_theme_support('custom-header') in twentyeleven_setup(). + * + * @since Twenty Eleven 1.0 + */ + function twentyeleven_admin_header_style() { + ?> <style type="text/css" id="twentyeleven-admin-header-css"> .appearance_page_custom-header #headimg { border: none; @@ -368,14 +379,14 @@ function twentyeleven_admin_header_style() { line-height: 23px; padding: 0 0 3em; } - <?php + <?php // If the user has set a custom color for the text use that if ( get_header_textcolor() != HEADER_TEXTCOLOR ) : - ?> - #site-title a, - #site-description { - color: #<?php echo get_header_textcolor(); ?>; - } + ?> + #site-title a, + #site-description { + color: #<?php echo get_header_textcolor(); ?>; + } <?php endif; ?> #headimg img { max-width: 1000px; @@ -383,35 +394,38 @@ function twentyeleven_admin_header_style() { width: 100%; } </style> -<?php -} + <?php + } endif; // twentyeleven_admin_header_style if ( ! function_exists( 'twentyeleven_admin_header_image' ) ) : -/** - * Custom header image markup displayed on the Appearance > Header admin panel. - * - * Referenced via add_theme_support('custom-header') in twentyeleven_setup(). - * - * @since Twenty Eleven 1.0 - */ -function twentyeleven_admin_header_image() { ?> - <div id="headimg"> - <?php - $color = get_header_textcolor(); - $image = get_header_image(); - $style = 'display: none;'; - if ( $color && $color != 'blank' ) { - $style = 'color: #' . $color . ';'; - } + /** + * Custom header image markup displayed on the Appearance > Header admin panel. + * + * Referenced via add_theme_support('custom-header') in twentyeleven_setup(). + * + * @since Twenty Eleven 1.0 + */ + function twentyeleven_admin_header_image() { + ?> - <h1 class="displaying-header-text"><a id="name" style="<?php echo esc_attr( $style ); ?>" onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>" tabindex="-1"><?php bloginfo( 'name' ); ?></a></h1> + <div id="headimg"> + <?php + $color = get_header_textcolor(); + $image = get_header_image(); + $style = 'display: none;'; + if ( $color && $color != 'blank' ) { + $style = 'color: #' . $color . ';'; + } + ?> + <h1 class="displaying-header-text"><a id="name" style="<?php echo esc_attr( $style ); ?>" onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>" tabindex="-1"><?php bloginfo( 'name' ); ?></a></h1> <div id="desc" class="displaying-header-text" style="<?php echo esc_attr( $style ); ?>"><?php bloginfo( 'description' ); ?></div> - <?php if ( $image ) : ?> + <?php if ( $image ) : ?> <img src="<?php echo esc_url( $image ); ?>" alt="" /> <?php endif; ?> - </div> -<?php } + </div> + <?php + } endif; // twentyeleven_admin_header_image /** @@ -432,16 +446,16 @@ function twentyeleven_excerpt_length( $length ) { add_filter( 'excerpt_length', 'twentyeleven_excerpt_length' ); if ( ! function_exists( 'twentyeleven_continue_reading_link' ) ) : -/** - * Return a "Continue Reading" link for excerpts - * - * @since Twenty Eleven 1.0 - * - * @return string The "Continue Reading" HTML link. - */ -function twentyeleven_continue_reading_link() { - return ' <a href="'. esc_url( get_permalink() ) . '">' . __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) . '</a>'; -} + /** + * Return a "Continue Reading" link for excerpts + * + * @since Twenty Eleven 1.0 + * + * @return string The "Continue Reading" HTML link. + */ + function twentyeleven_continue_reading_link() { + return ' <a href="' . esc_url( get_permalink() ) . '">' . __( 'Continue reading <span class="meta-nav">→</span>', 'twentyeleven' ) . '</a>'; + } endif; // twentyeleven_continue_reading_link /** @@ -493,8 +507,9 @@ add_filter( 'get_the_excerpt', 'twentyeleven_custom_excerpt_more' ); * @return array The filtered page menu arguments. */ function twentyeleven_page_menu_args( $args ) { - if ( ! isset( $args['show_home'] ) ) + if ( ! isset( $args['show_home'] ) ) { $args['show_home'] = true; + } return $args; } add_filter( 'wp_page_menu_args', 'twentyeleven_page_menu_args' ); @@ -510,76 +525,88 @@ function twentyeleven_widgets_init() { register_widget( 'Twenty_Eleven_Ephemera_Widget' ); - register_sidebar( array( - 'name' => __( 'Main Sidebar', 'twentyeleven' ), - 'id' => 'sidebar-1', - 'before_widget' => '<aside id="%1$s" class="widget %2$s">', - 'after_widget' => '</aside>', - 'before_title' => '<h3 class="widget-title">', - 'after_title' => '</h3>', - ) ); - - register_sidebar( array( - 'name' => __( 'Showcase Sidebar', 'twentyeleven' ), - 'id' => 'sidebar-2', - 'description' => __( 'The sidebar for the optional Showcase Template', 'twentyeleven' ), - 'before_widget' => '<aside id="%1$s" class="widget %2$s">', - 'after_widget' => '</aside>', - 'before_title' => '<h3 class="widget-title">', - 'after_title' => '</h3>', - ) ); - - register_sidebar( array( - 'name' => __( 'Footer Area One', 'twentyeleven' ), - 'id' => 'sidebar-3', - 'description' => __( 'An optional widget area for your site footer', 'twentyeleven' ), - 'before_widget' => '<aside id="%1$s" class="widget %2$s">', - 'after_widget' => '</aside>', - 'before_title' => '<h3 class="widget-title">', - 'after_title' => '</h3>', - ) ); - - register_sidebar( array( - 'name' => __( 'Footer Area Two', 'twentyeleven' ), - 'id' => 'sidebar-4', - 'description' => __( 'An optional widget area for your site footer', 'twentyeleven' ), - 'before_widget' => '<aside id="%1$s" class="widget %2$s">', - 'after_widget' => '</aside>', - 'before_title' => '<h3 class="widget-title">', - 'after_title' => '</h3>', - ) ); - - register_sidebar( array( - 'name' => __( 'Footer Area Three', 'twentyeleven' ), - 'id' => 'sidebar-5', - 'description' => __( 'An optional widget area for your site footer', 'twentyeleven' ), - 'before_widget' => '<aside id="%1$s" class="widget %2$s">', - 'after_widget' => '</aside>', - 'before_title' => '<h3 class="widget-title">', - 'after_title' => '</h3>', - ) ); + register_sidebar( + array( + 'name' => __( 'Main Sidebar', 'twentyeleven' ), + 'id' => 'sidebar-1', + 'before_widget' => '<aside id="%1$s" class="widget %2$s">', + 'after_widget' => '</aside>', + 'before_title' => '<h3 class="widget-title">', + 'after_title' => '</h3>', + ) + ); + + register_sidebar( + array( + 'name' => __( 'Showcase Sidebar', 'twentyeleven' ), + 'id' => 'sidebar-2', + 'description' => __( 'The sidebar for the optional Showcase Template', 'twentyeleven' ), + 'before_widget' => '<aside id="%1$s" class="widget %2$s">', + 'after_widget' => '</aside>', + 'before_title' => '<h3 class="widget-title">', + 'after_title' => '</h3>', + ) + ); + + register_sidebar( + array( + 'name' => __( 'Footer Area One', 'twentyeleven' ), + 'id' => 'sidebar-3', + 'description' => __( 'An optional widget area for your site footer', 'twentyeleven' ), + 'before_widget' => '<aside id="%1$s" class="widget %2$s">', + 'after_widget' => '</aside>', + 'before_title' => '<h3 class="widget-title">', + 'after_title' => '</h3>', + ) + ); + + register_sidebar( + array( + 'name' => __( 'Footer Area Two', 'twentyeleven' ), + 'id' => 'sidebar-4', + 'description' => __( 'An optional widget area for your site footer', 'twentyeleven' ), + 'before_widget' => '<aside id="%1$s" class="widget %2$s">', + 'after_widget' => '</aside>', + 'before_title' => '<h3 class="widget-title">', + 'after_title' => '</h3>', + ) + ); + + register_sidebar( + array( + 'name' => __( 'Footer Area Three', 'twentyeleven' ), + 'id' => 'sidebar-5', + 'description' => __( 'An optional widget area for your site footer', 'twentyeleven' ), + 'before_widget' => '<aside id="%1$s" class="widget %2$s">', + 'after_widget' => '</aside>', + 'before_title' => '<h3 class="widget-title">', + 'after_title' => '</h3>', + ) + ); } add_action( 'widgets_init', 'twentyeleven_widgets_init' ); if ( ! function_exists( 'twentyeleven_content_nav' ) ) : -/** - * Display navigation to next/previous pages when applicable. - * - * @since Twenty Eleven 1.0 - * - * @param string $html_id The HTML id attribute. - */ -function twentyeleven_content_nav( $html_id ) { - global $wp_query; - - if ( $wp_query->max_num_pages > 1 ) : ?> - <nav id="<?php echo esc_attr( $html_id ); ?>"> - <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentyeleven' ); ?></h3> - <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyeleven' ) ); ?></div> - <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?></div> - </nav><!-- #nav-above --> - <?php endif; -} + /** + * Display navigation to next/previous pages when applicable. + * + * @since Twenty Eleven 1.0 + * + * @param string $html_id The HTML id attribute. + */ + function twentyeleven_content_nav( $html_id ) { + global $wp_query; + + if ( $wp_query->max_num_pages > 1 ) : + ?> + <nav id="<?php echo esc_attr( $html_id ); ?>"> + <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentyeleven' ); ?></h3> + <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyeleven' ) ); ?></div> + <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?></div> + </nav><!-- #nav-above --> + <?php + endif; + } endif; // twentyeleven_content_nav /** @@ -596,8 +623,9 @@ function twentyeleven_get_first_url() { $content = get_the_content(); $has_url = function_exists( 'get_url_in_content' ) ? get_url_in_content( $content ) : false; - if ( ! $has_url ) + if ( ! $has_url ) { $has_url = twentyeleven_url_grabber(); + } /** This filter is documented in wp-includes/link-template.php */ return ( $has_url ) ? $has_url : apply_filters( 'the_permalink', get_permalink() ); @@ -611,8 +639,9 @@ function twentyeleven_get_first_url() { * @return string|bool URL or false when no link is present. */ function twentyeleven_url_grabber() { - if ( ! preg_match( '/<a\s[^>]*?href=[\'"](.+?)[\'"]/is', get_the_content(), $matches ) ) + if ( ! preg_match( '/<a\s[^>]*?href=[\'"](.+?)[\'"]/is', get_the_content(), $matches ) ) { return false; + } return esc_url_raw( $matches[1] ); } @@ -625,14 +654,17 @@ function twentyeleven_url_grabber() { function twentyeleven_footer_sidebar_class() { $count = 0; - if ( is_active_sidebar( 'sidebar-3' ) ) + if ( is_active_sidebar( 'sidebar-3' ) ) { $count++; + } - if ( is_active_sidebar( 'sidebar-4' ) ) + if ( is_active_sidebar( 'sidebar-4' ) ) { $count++; + } - if ( is_active_sidebar( 'sidebar-5' ) ) + if ( is_active_sidebar( 'sidebar-5' ) ) { $count++; + } $class = ''; @@ -648,52 +680,56 @@ function twentyeleven_footer_sidebar_class() { break; } - if ( $class ) + if ( $class ) { echo 'class="' . esc_attr( $class ) . '"'; + } } if ( ! function_exists( 'twentyeleven_comment' ) ) : -/** - * Template for comments and pingbacks. - * - * To override this walker in a child theme without modifying the comments template - * simply create your own twentyeleven_comment(), and that function will be used instead. - * - * Used as a callback by wp_list_comments() for displaying the comments. - * - * @since Twenty Eleven 1.0 - * - * @param object $comment The comment object. - * @param array $args An array of comment arguments. @see get_comment_reply_link() - * @param int $depth The depth of the comment. - */ -function twentyeleven_comment( $comment, $args, $depth ) { - $GLOBALS['comment'] = $comment; - switch ( $comment->comment_type ) : - case 'pingback' : - case 'trackback' : - ?> - <li class="post pingback"> + /** + * Template for comments and pingbacks. + * + * To override this walker in a child theme without modifying the comments template + * simply create your own twentyeleven_comment(), and that function will be used instead. + * + * Used as a callback by wp_list_comments() for displaying the comments. + * + * @since Twenty Eleven 1.0 + * + * @param object $comment The comment object. + * @param array $args An array of comment arguments. @see get_comment_reply_link() + * @param int $depth The depth of the comment. + */ + function twentyeleven_comment( $comment, $args, $depth ) { + $GLOBALS['comment'] = $comment; + switch ( $comment->comment_type ) : + case 'pingback': + case 'trackback': + ?> + <li class="post pingback"> <p><?php _e( 'Pingback:', 'twentyeleven' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?></p> - <?php - break; - default : - ?> - <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>"> + <?php + break; + default: + ?> + <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>"> <article id="comment-<?php comment_ID(); ?>" class="comment"> <footer class="comment-meta"> <div class="comment-author vcard"> <?php $avatar_size = 68; - if ( '0' != $comment->comment_parent ) - $avatar_size = 39; + if ( '0' != $comment->comment_parent ) { + $avatar_size = 39; + } echo get_avatar( $comment, $avatar_size ); /* translators: 1: comment author, 2: date and time */ - printf( __( '%1$s on %2$s <span class="says">said:</span>', 'twentyeleven' ), + printf( + __( '%1$s on %2$s <span class="says">said:</span>', 'twentyeleven' ), sprintf( '<span class="fn">%s</span>', get_comment_author_link() ), - sprintf( '<a href="%1$s"><time datetime="%2$s">%3$s</time></a>', + sprintf( + '<a href="%1$s"><time datetime="%2$s">%3$s</time></a>', esc_url( get_comment_link( $comment->comment_ID ) ), get_comment_time( 'c' ), /* translators: 1: date, 2: time */ @@ -702,48 +738,60 @@ function twentyeleven_comment( $comment, $args, $depth ) { ); ?> - <?php edit_comment_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?> - </div><!-- .comment-author .vcard --> + <?php edit_comment_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?> + </div><!-- .comment-author .vcard --> - <?php if ( $comment->comment_approved == '0' ) : ?> + <?php if ( $comment->comment_approved == '0' ) : ?> <em class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentyeleven' ); ?></em> <br /> <?php endif; ?> - </footer> + </footer> - <div class="comment-content"><?php comment_text(); ?></div> + <div class="comment-content"><?php comment_text(); ?></div> - <div class="reply"> - <?php comment_reply_link( array_merge( $args, array( 'reply_text' => __( 'Reply <span>↓</span>', 'twentyeleven' ), 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> - </div><!-- .reply --> - </article><!-- #comment-## --> + <div class="reply"> + <?php + comment_reply_link( + array_merge( + $args, + array( + 'reply_text' => __( 'Reply <span>↓</span>', 'twentyeleven' ), + 'depth' => $depth, + 'max_depth' => $args['max_depth'], + ) + ) + ); + ?> + </div><!-- .reply --> + </article><!-- #comment-## --> - <?php - break; - endswitch; -} + <?php + break; + endswitch; + } endif; // ends check for twentyeleven_comment() if ( ! function_exists( 'twentyeleven_posted_on' ) ) : -/** - * Print HTML with meta information for the current post-date/time and author. - * - * Create your own twentyeleven_posted_on to override in a child theme - * - * @since Twenty Eleven 1.0 - */ -function twentyeleven_posted_on() { - printf( __( '<span class="sep">Posted on </span><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'twentyeleven' ), - esc_url( get_permalink() ), - esc_attr( get_the_time() ), - esc_attr( get_the_date( 'c' ) ), - esc_html( get_the_date() ), - esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), - esc_attr( sprintf( __( 'View all posts by %s', 'twentyeleven' ), get_the_author() ) ), - get_the_author() - ); -} + /** + * Print HTML with meta information for the current post-date/time and author. + * + * Create your own twentyeleven_posted_on to override in a child theme + * + * @since Twenty Eleven 1.0 + */ + function twentyeleven_posted_on() { + printf( + __( '<span class="sep">Posted on </span><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'twentyeleven' ), + esc_url( get_permalink() ), + esc_attr( get_the_time() ), + esc_attr( get_the_date( 'c' ) ), + esc_html( get_the_date() ), + esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), + esc_attr( sprintf( __( 'View all posts by %s', 'twentyeleven' ), get_the_author() ) ), + get_the_author() + ); + } endif; /** @@ -759,11 +807,13 @@ endif; */ function twentyeleven_body_classes( $classes ) { - if ( function_exists( 'is_multi_author' ) && ! is_multi_author() ) + if ( function_exists( 'is_multi_author' ) && ! is_multi_author() ) { $classes[] = 'single-author'; + } - if ( is_singular() && ! is_home() && ! is_page_template( 'showcase.php' ) && ! is_page_template( 'sidebar-page.php' ) ) + if ( is_singular() && ! is_home() && ! is_page_template( 'showcase.php' ) && ! is_page_template( 'sidebar-page.php' ) ) { $classes[] = 'singular'; + } return $classes; } @@ -784,26 +834,30 @@ function twentyeleven_get_gallery_images() { if ( function_exists( 'get_post_galleries' ) ) { $galleries = get_post_galleries( get_the_ID(), false ); - if ( isset( $galleries[0]['ids'] ) ) + if ( isset( $galleries[0]['ids'] ) ) { $images = explode( ',', $galleries[0]['ids'] ); + } } else { $pattern = get_shortcode_regex(); preg_match( "/$pattern/s", get_the_content(), $match ); $atts = shortcode_parse_atts( $match[3] ); - if ( isset( $atts['ids'] ) ) + if ( isset( $atts['ids'] ) ) { $images = explode( ',', $atts['ids'] ); + } } if ( ! $images ) { - $images = get_posts( array( - 'fields' => 'ids', - 'numberposts' => 999, - 'order' => 'ASC', - 'orderby' => 'menu_order', - 'post_mime_type' => 'image', - 'post_parent' => get_the_ID(), - 'post_type' => 'attachment', - ) ); + $images = get_posts( + array( + 'fields' => 'ids', + 'numberposts' => 999, + 'order' => 'ASC', + 'orderby' => 'menu_order', + 'post_mime_type' => 'image', + 'post_parent' => get_the_ID(), + 'post_type' => 'attachment', + ) + ); } return $images; diff --git a/wp-content/themes/twentyeleven/header.php b/wp-content/themes/twentyeleven/header.php index f9be4f52e0dd67dd1ead5d9215a4bd8873ccd2b3..78e9264f85987050f60ff30808efb72a0cf5a93a 100644 --- a/wp-content/themes/twentyeleven/header.php +++ b/wp-content/themes/twentyeleven/header.php @@ -24,7 +24,8 @@ <head> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <meta name="viewport" content="width=device-width" /> -<title><?php +<title> +<?php // Print the <title> tag based on what is being viewed. global $page, $paged; @@ -35,14 +36,17 @@ // Add the blog description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); - if ( $site_description && ( is_home() || is_front_page() ) ) - echo " | $site_description"; +if ( $site_description && ( is_home() || is_front_page() ) ) { + echo " | $site_description"; +} // Add a page number if necessary: - if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) - echo esc_html( ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) ) ); +if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) { + echo esc_html( ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) ) ); +} - ?></title> +?> + </title> <link rel="profile" href="http://gmpg.org/xfn/11" /> <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" /> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> @@ -54,8 +58,9 @@ * We add some JavaScript to pages with the comment form * to support sites with threaded comments (when in use). */ - if ( is_singular() && get_option( 'thread_comments' ) ) - wp_enqueue_script( 'comment-reply' ); +if ( is_singular() && get_option( 'thread_comments' ) ) { + wp_enqueue_script( 'comment-reply' ); +} /* * Always have wp_head() just before the closing </head> @@ -78,39 +83,39 @@ <?php // Check to see if the header image has been removed $header_image = get_header_image(); - if ( $header_image ) : + if ( $header_image ) : + // Compatibility with versions of WordPress prior to 3.4. + if ( function_exists( 'get_custom_header' ) ) { + /* + * We need to figure out what the minimum width should be for our featured image. + * This result would be the suggested width if the theme were to implement flexible widths. + */ + $header_image_width = get_theme_support( 'custom-header', 'width' ); + } else { + $header_image_width = HEADER_IMAGE_WIDTH; + } + ?> + <a href="<?php echo esc_url( home_url( '/' ) ); ?>"> + <?php + /* + * The header image. + * Check if this is a post or page, if it has a thumbnail, and if it's a big one + */ + if ( is_singular() && has_post_thumbnail( $post->ID ) && + ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( $header_image_width, $header_image_width ) ) ) && + $image[1] >= $header_image_width ) : + // Houston, we have a new header image! + echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' ); + else : // Compatibility with versions of WordPress prior to 3.4. if ( function_exists( 'get_custom_header' ) ) { - /* - * We need to figure out what the minimum width should be for our featured image. - * This result would be the suggested width if the theme were to implement flexible widths. - */ - $header_image_width = get_theme_support( 'custom-header', 'width' ); + $header_image_width = get_custom_header()->width; + $header_image_height = get_custom_header()->height; } else { - $header_image_width = HEADER_IMAGE_WIDTH; + $header_image_width = HEADER_IMAGE_WIDTH; + $header_image_height = HEADER_IMAGE_HEIGHT; } ?> - <a href="<?php echo esc_url( home_url( '/' ) ); ?>"> - <?php - /* - * The header image. - * Check if this is a post or page, if it has a thumbnail, and if it's a big one - */ - if ( is_singular() && has_post_thumbnail( $post->ID ) && - ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( $header_image_width, $header_image_width ) ) ) && - $image[1] >= $header_image_width ) : - // Houston, we have a new header image! - echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' ); - else : - // Compatibility with versions of WordPress prior to 3.4. - if ( function_exists( 'get_custom_header' ) ) { - $header_image_width = get_custom_header()->width; - $header_image_height = get_custom_header()->height; - } else { - $header_image_width = HEADER_IMAGE_WIDTH; - $header_image_height = HEADER_IMAGE_HEIGHT; - } - ?> <img src="<?php header_image(); ?>" width="<?php echo esc_attr( $header_image_width ); ?>" height="<?php echo esc_attr( $header_image_height ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" /> <?php endif; // end check for featured image or standard header ?> </a> @@ -118,15 +123,19 @@ <?php // Has the text been hidden? - if ( 'blank' == get_header_textcolor() ) : - ?> - <div class="only-search<?php if ( $header_image ) : ?> with-image<?php endif; ?>"> + if ( 'blank' == get_header_textcolor() ) : + $header_image_class = ''; + if ( $header_image ) { + $header_image_class = ' with-image'; + } + ?> + <div class="only-search<?php echo $header_image_class; ?>"> <?php get_search_form(); ?> - </div> - <?php + </div> + <?php else : - ?> - <?php get_search_form(); ?> + ?> + <?php get_search_form(); ?> <?php endif; ?> <nav id="access" role="navigation"> diff --git a/wp-content/themes/twentyeleven/image.php b/wp-content/themes/twentyeleven/image.php index 5c855904f67ac1cbbd9011e05b96b649521ff3cf..454ee95fbeb8ca56b3df8475d48acba74a115b17 100644 --- a/wp-content/themes/twentyeleven/image.php +++ b/wp-content/themes/twentyeleven/image.php @@ -12,12 +12,15 @@ get_header(); ?> <div id="primary" class="image-attachment"> <div id="content" role="main"> - <?php while ( have_posts() ) : the_post(); ?> + <?php + while ( have_posts() ) : + the_post(); + ?> <nav id="nav-single"> <h3 class="assistive-text"><?php _e( 'Image navigation', 'twentyeleven' ); ?></h3> - <span class="nav-previous"><?php previous_image_link( false, __( '← Previous' , 'twentyeleven' ) ); ?></span> - <span class="nav-next"><?php next_image_link( false, __( 'Next →' , 'twentyeleven' ) ); ?></span> + <span class="nav-previous"><?php previous_image_link( false, __( '← Previous', 'twentyeleven' ) ); ?></span> + <span class="nav-next"><?php next_image_link( false, __( 'Next →', 'twentyeleven' ) ); ?></span> </nav><!-- #nav-single --> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> @@ -27,7 +30,8 @@ get_header(); ?> <div class="entry-meta"> <?php $metadata = wp_get_attachment_metadata(); - printf( __( '<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><abbr class="published" title="%1$s">%2$s</abbr></span> at <a href="%3$s" title="Link to full-size image">%4$s × %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%8$s</a>', 'twentyeleven' ), + printf( + __( '<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><abbr class="published" title="%1$s">%2$s</abbr></span> at <a href="%3$s" title="Link to full-size image">%4$s × %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%8$s</a>', 'twentyeleven' ), esc_attr( get_the_time() ), get_the_date(), esc_url( wp_get_attachment_url() ), @@ -47,42 +51,56 @@ get_header(); ?> <div class="entry-attachment"> <div class="attachment"> -<?php - /* - * Grab the IDs of all the image attachments in a gallery so we can get the URL of the next adjacent image in a gallery, - * or the first image (if we're looking at the last image in a gallery), or, in a gallery of one, just the link to that image file - */ - $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' ) ) ); - foreach ( $attachments as $k => $attachment ) { - if ( $attachment->ID == $post->ID ) - break; - } - - // If there is more than 1 attachment in a gallery - if ( count( $attachments ) > 1 ) { - $k++; - if ( isset( $attachments[ $k ] ) ) - // get the URL of the next image attachment - $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID ); - else - // or get the URL of the first image attachment - $next_attachment_url = get_attachment_link( $attachments[0]->ID ); - } else { - // or, if there's only 1 image, get the URL of the image - $next_attachment_url = wp_get_attachment_url(); - } -?> - <a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php - /** - * Filter the Twenty Eleven default attachment size. - * - * @since Twenty Eleven 1.0 - * - * @param int The height and width attachment size dimensions in pixels. Default 848. - */ - $attachment_size = apply_filters( 'twentyeleven_attachment_size', 848 ); - echo wp_get_attachment_image( $post->ID, array( $attachment_size, 1024 ) ); // filterable image width with 1024px limit for image height. - ?></a> + <?php + /* + * Grab the IDs of all the image attachments in a gallery so we can get the URL of the next adjacent image in a gallery, + * or the first image (if we're looking at the last image in a gallery), or, in a gallery of one, just the link to that image file + */ + $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', + ) + ) + ); + foreach ( $attachments as $k => $attachment ) { + if ( $attachment->ID == $post->ID ) { + break; + } + } + + // If there is more than 1 attachment in a gallery + if ( count( $attachments ) > 1 ) { + $k++; + if ( isset( $attachments[ $k ] ) ) { + // get the URL of the next image attachment + $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID ); + } else { // or get the URL of the first image attachment + $next_attachment_url = get_attachment_link( $attachments[0]->ID ); + } + } else { + // or, if there's only 1 image, get the URL of the image + $next_attachment_url = wp_get_attachment_url(); + } + ?> + <a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"> + <?php + /** + * Filter the Twenty Eleven default attachment size. + * + * @since Twenty Eleven 1.0 + * + * @param int The height and width attachment size dimensions in pixels. Default 848. + */ + $attachment_size = apply_filters( 'twentyeleven_attachment_size', 848 ); + echo wp_get_attachment_image( $post->ID, array( $attachment_size, 1024 ) ); // filterable image width with 1024px limit for image height. + ?> + </a> <?php if ( ! empty( $post->post_excerpt ) ) : ?> <div class="entry-caption"> @@ -95,7 +113,14 @@ get_header(); ?> <div class="entry-description"> <?php the_content(); ?> - <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> + <?php + wp_link_pages( + array( + 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', + 'after' => '</div>', + ) + ); + ?> </div><!-- .entry-description --> </div><!-- .entry-content --> @@ -109,4 +134,4 @@ get_header(); ?> </div><!-- #content --> </div><!-- #primary --> -<?php get_footer(); ?> \ No newline at end of file +<?php get_footer(); ?> diff --git a/wp-content/themes/twentyeleven/inc/theme-options.php b/wp-content/themes/twentyeleven/inc/theme-options.php index e71ab9a1679b7e9763cdd0701a33e1ef2ace0b3b..f296c982e538aed17c477df3d33ccefe4e2dabfe 100644 --- a/wp-content/themes/twentyeleven/inc/theme-options.php +++ b/wp-content/themes/twentyeleven/inc/theme-options.php @@ -59,8 +59,8 @@ function twentyeleven_theme_options_init() { 'general' // Settings section. Same as the first argument in the add_settings_section() above ); - add_settings_field( 'link_color', __( 'Link Color', 'twentyeleven' ), 'twentyeleven_settings_field_link_color', 'theme_options', 'general' ); - add_settings_field( 'layout', __( 'Default Layout', 'twentyeleven' ), 'twentyeleven_settings_field_layout', 'theme_options', 'general' ); + add_settings_field( 'link_color', __( 'Link Color', 'twentyeleven' ), 'twentyeleven_settings_field_link_color', 'theme_options', 'general' ); + add_settings_field( 'layout', __( 'Default Layout', 'twentyeleven' ), 'twentyeleven_settings_field_layout', 'theme_options', 'general' ); } add_action( 'admin_init', 'twentyeleven_theme_options_init' ); @@ -99,8 +99,9 @@ function twentyeleven_theme_options_add_page() { 'twentyeleven_theme_options_render_page' // Function that renders the options page ); - if ( ! $theme_page ) + if ( ! $theme_page ) { return; + } add_action( "load-$theme_page", 'twentyeleven_theme_options_help' ); } @@ -124,10 +125,11 @@ function twentyeleven_theme_options_help() { if ( method_exists( $screen, 'add_help_tab' ) ) { // WordPress 3.3.0 - $screen->add_help_tab( array( - 'title' => __( 'Overview', 'twentyeleven' ), - 'id' => 'theme-options-help', - 'content' => $help, + $screen->add_help_tab( + array( + 'title' => __( 'Overview', 'twentyeleven' ), + 'id' => 'theme-options-help', + 'content' => $help, ) ); @@ -146,15 +148,15 @@ function twentyeleven_theme_options_help() { function twentyeleven_color_schemes() { $color_scheme_options = array( 'light' => array( - 'value' => 'light', - 'label' => __( 'Light', 'twentyeleven' ), - 'thumbnail' => get_template_directory_uri() . '/inc/images/light.png', + 'value' => 'light', + 'label' => __( 'Light', 'twentyeleven' ), + 'thumbnail' => get_template_directory_uri() . '/inc/images/light.png', 'default_link_color' => '#1b8be0', ), - 'dark' => array( - 'value' => 'dark', - 'label' => __( 'Dark', 'twentyeleven' ), - 'thumbnail' => get_template_directory_uri() . '/inc/images/dark.png', + 'dark' => array( + 'value' => 'dark', + 'label' => __( 'Dark', 'twentyeleven' ), + 'thumbnail' => get_template_directory_uri() . '/inc/images/dark.png', 'default_link_color' => '#e4741f', ), ); @@ -177,18 +179,18 @@ function twentyeleven_color_schemes() { function twentyeleven_layouts() { $layout_options = array( 'content-sidebar' => array( - 'value' => 'content-sidebar', - 'label' => __( 'Content on left', 'twentyeleven' ), + 'value' => 'content-sidebar', + 'label' => __( 'Content on left', 'twentyeleven' ), 'thumbnail' => get_template_directory_uri() . '/inc/images/content-sidebar.png', ), 'sidebar-content' => array( - 'value' => 'sidebar-content', - 'label' => __( 'Content on right', 'twentyeleven' ), + 'value' => 'sidebar-content', + 'label' => __( 'Content on right', 'twentyeleven' ), 'thumbnail' => get_template_directory_uri() . '/inc/images/sidebar-content.png', ), - 'content' => array( - 'value' => 'content', - 'label' => __( 'One-column, no sidebar', 'twentyeleven' ), + 'content' => array( + 'value' => 'content', + 'label' => __( 'One-column, no sidebar', 'twentyeleven' ), 'thumbnail' => get_template_directory_uri() . '/inc/images/content.png', ), ); @@ -217,8 +219,9 @@ function twentyeleven_get_default_theme_options() { 'theme_layout' => 'content-sidebar', ); - if ( is_rtl() ) + if ( is_rtl() ) { $default_theme_options['theme_layout'] = 'sidebar-content'; + } /** * Filter the Twenty Eleven default options. @@ -238,16 +241,17 @@ function twentyeleven_get_default_theme_options() { * @param string $color_scheme Optional. Color scheme. * Default null (or the active color scheme). * @return string The default link color. -*/ + */ function twentyeleven_get_default_link_color( $color_scheme = null ) { if ( null === $color_scheme ) { - $options = twentyeleven_get_theme_options(); + $options = twentyeleven_get_theme_options(); $color_scheme = $options['color_scheme']; } $color_schemes = twentyeleven_color_schemes(); - if ( ! isset( $color_schemes[ $color_scheme ] ) ) + if ( ! isset( $color_schemes[ $color_scheme ] ) ) { return false; + } return $color_schemes[ $color_scheme ]['default_link_color']; } @@ -270,7 +274,7 @@ function twentyeleven_settings_field_color_scheme() { $options = twentyeleven_get_theme_options(); foreach ( twentyeleven_color_schemes() as $scheme ) { - ?> + ?> <div class="layout image-radio-option color-scheme"> <label class="description"> <input type="radio" name="twentyeleven_theme_options[color_scheme]" value="<?php echo esc_attr( $scheme['value'] ); ?>" <?php checked( $options['color_scheme'], $scheme['value'] ); ?> /> @@ -281,7 +285,7 @@ function twentyeleven_settings_field_color_scheme() { </span> </label> </div> - <?php + <?php } } @@ -364,19 +368,22 @@ function twentyeleven_theme_options_validate( $input ) { $output = $defaults = twentyeleven_get_default_theme_options(); // Color scheme must be in our array of color scheme options - if ( isset( $input['color_scheme'] ) && array_key_exists( $input['color_scheme'], twentyeleven_color_schemes() ) ) + if ( isset( $input['color_scheme'] ) && array_key_exists( $input['color_scheme'], twentyeleven_color_schemes() ) ) { $output['color_scheme'] = $input['color_scheme']; + } // Our defaults for the link color may have changed, based on the color scheme. $output['link_color'] = $defaults['link_color'] = twentyeleven_get_default_link_color( $output['color_scheme'] ); // Link color must be 3 or 6 hexadecimal characters - if ( isset( $input['link_color'] ) && preg_match( '/^#?([a-f0-9]{3}){1,2}$/i', $input['link_color'] ) ) + if ( isset( $input['link_color'] ) && preg_match( '/^#?([a-f0-9]{3}){1,2}$/i', $input['link_color'] ) ) { $output['link_color'] = '#' . strtolower( ltrim( $input['link_color'], '#' ) ); + } // Theme layout must be in our array of theme layout options - if ( isset( $input['theme_layout'] ) && array_key_exists( $input['theme_layout'], twentyeleven_layouts() ) ) + if ( isset( $input['theme_layout'] ) && array_key_exists( $input['theme_layout'], twentyeleven_layouts() ) ) { $output['theme_layout'] = $input['theme_layout']; + } /** * Filter the Twenty Eleven sanitized form input array. @@ -396,11 +403,12 @@ function twentyeleven_theme_options_validate( $input ) { * @since Twenty Eleven 1.0 */ function twentyeleven_enqueue_color_scheme() { - $options = twentyeleven_get_theme_options(); + $options = twentyeleven_get_theme_options(); $color_scheme = $options['color_scheme']; - if ( 'dark' == $color_scheme ) + if ( 'dark' == $color_scheme ) { wp_enqueue_style( 'dark', get_template_directory_uri() . '/colors/dark.css', array(), null ); + } /** * Fires after the styles for the Twenty Eleven color scheme are enqueued. @@ -421,15 +429,16 @@ add_action( 'wp_enqueue_scripts', 'twentyeleven_enqueue_color_scheme' ); * @since Twenty Eleven 1.0 */ function twentyeleven_print_link_color_style() { - $options = twentyeleven_get_theme_options(); + $options = twentyeleven_get_theme_options(); $link_color = $options['link_color']; $default_options = twentyeleven_get_default_theme_options(); // Don't do anything if the current link color is the default. - if ( $default_options['link_color'] == $link_color ) + if ( $default_options['link_color'] == $link_color ) { return; -?> + } + ?> <style> /* Link color */ a, @@ -457,7 +466,7 @@ function twentyeleven_print_link_color_style() { background-color: <?php echo $link_color; ?>; } </style> -<?php + <?php } add_action( 'wp_head', 'twentyeleven_print_link_color_style' ); @@ -469,20 +478,22 @@ add_action( 'wp_head', 'twentyeleven_print_link_color_style' ); * @param array $existing_classes An array of existing body classes. */ function twentyeleven_layout_classes( $existing_classes ) { - $options = twentyeleven_get_theme_options(); + $options = twentyeleven_get_theme_options(); $current_layout = $options['theme_layout']; - if ( in_array( $current_layout, array( 'content-sidebar', 'sidebar-content' ) ) ) + if ( in_array( $current_layout, array( 'content-sidebar', 'sidebar-content' ) ) ) { $classes = array( 'two-column' ); - else + } else { $classes = array( 'one-column' ); + } - if ( 'content-sidebar' == $current_layout ) + if ( 'content-sidebar' == $current_layout ) { $classes[] = 'right-sidebar'; - elseif ( 'sidebar-content' == $current_layout ) + } elseif ( 'sidebar-content' == $current_layout ) { $classes[] = 'left-sidebar'; - else + } else { $classes[] = $current_layout; + } /** * Filter the Twenty Eleven layout body classes. @@ -506,31 +517,40 @@ add_filter( 'body_class', 'twentyeleven_layout_classes' ); * @param object $wp_customize Customizer object. */ function twentyeleven_customize_register( $wp_customize ) { - $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; - $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; + $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; + $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; if ( isset( $wp_customize->selective_refresh ) ) { - $wp_customize->selective_refresh->add_partial( 'blogname', array( - 'selector' => '#site-title a', - 'container_inclusive' => false, - 'render_callback' => 'twentyeleven_customize_partial_blogname', - ) ); - $wp_customize->selective_refresh->add_partial( 'blogdescription', array( - 'selector' => '#site-description', - 'container_inclusive' => false, - 'render_callback' => 'twentyeleven_customize_partial_blogdescription', - ) ); + $wp_customize->selective_refresh->add_partial( + 'blogname', + array( + 'selector' => '#site-title a', + 'container_inclusive' => false, + 'render_callback' => 'twentyeleven_customize_partial_blogname', + ) + ); + $wp_customize->selective_refresh->add_partial( + 'blogdescription', + array( + 'selector' => '#site-description', + 'container_inclusive' => false, + 'render_callback' => 'twentyeleven_customize_partial_blogdescription', + ) + ); } $options = twentyeleven_get_theme_options(); $defaults = twentyeleven_get_default_theme_options(); - $wp_customize->add_setting( 'twentyeleven_theme_options[color_scheme]', array( - 'default' => $defaults['color_scheme'], - 'type' => 'option', - 'capability' => 'edit_theme_options', - ) ); + $wp_customize->add_setting( + 'twentyeleven_theme_options[color_scheme]', + array( + 'default' => $defaults['color_scheme'], + 'type' => 'option', + 'capability' => 'edit_theme_options', + ) + ); $schemes = twentyeleven_color_schemes(); $choices = array(); @@ -538,40 +558,58 @@ function twentyeleven_customize_register( $wp_customize ) { $choices[ $scheme['value'] ] = $scheme['label']; } - $wp_customize->add_control( 'twentyeleven_color_scheme', array( - 'label' => __( 'Color Scheme', 'twentyeleven' ), - 'section' => 'colors', - 'settings' => 'twentyeleven_theme_options[color_scheme]', - 'type' => 'radio', - 'choices' => $choices, - 'priority' => 5, - ) ); + $wp_customize->add_control( + 'twentyeleven_color_scheme', + array( + 'label' => __( 'Color Scheme', 'twentyeleven' ), + 'section' => 'colors', + 'settings' => 'twentyeleven_theme_options[color_scheme]', + 'type' => 'radio', + 'choices' => $choices, + 'priority' => 5, + ) + ); // Link Color (added to Color Scheme section in Customizer) - $wp_customize->add_setting( 'twentyeleven_theme_options[link_color]', array( - 'default' => twentyeleven_get_default_link_color( $options['color_scheme'] ), - 'type' => 'option', - 'sanitize_callback' => 'sanitize_hex_color', - 'capability' => 'edit_theme_options', - ) ); - - $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'link_color', array( - 'label' => __( 'Link Color', 'twentyeleven' ), - 'section' => 'colors', - 'settings' => 'twentyeleven_theme_options[link_color]', - ) ) ); + $wp_customize->add_setting( + 'twentyeleven_theme_options[link_color]', + array( + 'default' => twentyeleven_get_default_link_color( $options['color_scheme'] ), + 'type' => 'option', + 'sanitize_callback' => 'sanitize_hex_color', + 'capability' => 'edit_theme_options', + ) + ); + + $wp_customize->add_control( + new WP_Customize_Color_Control( + $wp_customize, + 'link_color', + array( + 'label' => __( 'Link Color', 'twentyeleven' ), + 'section' => 'colors', + 'settings' => 'twentyeleven_theme_options[link_color]', + ) + ) + ); // Default Layout - $wp_customize->add_section( 'twentyeleven_layout', array( - 'title' => __( 'Layout', 'twentyeleven' ), - 'priority' => 50, - ) ); + $wp_customize->add_section( + 'twentyeleven_layout', + array( + 'title' => __( 'Layout', 'twentyeleven' ), + 'priority' => 50, + ) + ); - $wp_customize->add_setting( 'twentyeleven_theme_options[theme_layout]', array( - 'type' => 'option', - 'default' => $defaults['theme_layout'], - 'sanitize_callback' => 'sanitize_key', - ) ); + $wp_customize->add_setting( + 'twentyeleven_theme_options[theme_layout]', + array( + 'type' => 'option', + 'default' => $defaults['theme_layout'], + 'sanitize_callback' => 'sanitize_key', + ) + ); $layouts = twentyeleven_layouts(); $choices = array(); @@ -579,11 +617,14 @@ function twentyeleven_customize_register( $wp_customize ) { $choices[ $layout['value'] ] = $layout['label']; } - $wp_customize->add_control( 'twentyeleven_theme_options[theme_layout]', array( - 'section' => 'twentyeleven_layout', - 'type' => 'radio', - 'choices' => $choices, - ) ); + $wp_customize->add_control( + 'twentyeleven_theme_options[theme_layout]', + array( + 'section' => 'twentyeleven_layout', + 'type' => 'radio', + 'choices' => $choices, + ) + ); } add_action( 'customize_register', 'twentyeleven_customize_register' ); diff --git a/wp-content/themes/twentyeleven/inc/widgets.php b/wp-content/themes/twentyeleven/inc/widgets.php index 9b007f4af28a36b9663899da6d6574fb63b18020..17e9a7ce1b7e57f79a0a40bb3ec34dfed74a842c 100644 --- a/wp-content/themes/twentyeleven/inc/widgets.php +++ b/wp-content/themes/twentyeleven/inc/widgets.php @@ -18,11 +18,15 @@ class Twenty_Eleven_Ephemera_Widget extends WP_Widget { * @since Twenty Eleven 2.2 */ function __construct() { - parent::__construct( 'widget_twentyeleven_ephemera', __( 'Twenty Eleven Ephemera', 'twentyeleven' ), array( - 'classname' => 'widget_twentyeleven_ephemera', - 'description' => __( 'Use this widget to list your recent Aside, Status, Quote, and Link posts', 'twentyeleven' ), - 'customize_selective_refresh' => true, - ) ); + parent::__construct( + 'widget_twentyeleven_ephemera', + __( 'Twenty Eleven Ephemera', 'twentyeleven' ), + array( + 'classname' => 'widget_twentyeleven_ephemera', + 'description' => __( 'Use this widget to list your recent Aside, Status, Quote, and Link posts', 'twentyeleven' ), + 'customize_selective_refresh' => true, + ) + ); $this->alt_option_name = 'widget_twentyeleven_ephemera'; add_action( 'save_post', array( &$this, 'flush_widget_cache' ) ); @@ -46,15 +50,17 @@ class Twenty_Eleven_Ephemera_Widget extends WP_Widget { * * @param array $args An array of standard parameters for widgets in this theme. * @param array $instance An array of settings for this widget instance. - **/ + */ function widget( $args, $instance ) { $cache = wp_cache_get( 'widget_twentyeleven_ephemera', 'widget' ); - if ( ! is_array( $cache ) ) + if ( ! is_array( $cache ) ) { $cache = array(); + } - if ( ! isset( $args['widget_id'] ) ) + if ( ! isset( $args['widget_id'] ) ) { $args['widget_id'] = null; + } if ( ! is_customize_preview() && isset( $cache[ $args['widget_id'] ] ) ) { echo $cache[ $args['widget_id'] ]; @@ -67,11 +73,13 @@ class Twenty_Eleven_Ephemera_Widget extends WP_Widget { /** This filter is documented in wp-includes/default-widgets.php */ $args['title'] = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Ephemera', 'twentyeleven' ) : $instance['title'], $instance, $this->id_base ); - if ( ! isset( $instance['number'] ) ) + if ( ! isset( $instance['number'] ) ) { $instance['number'] = '10'; + } - if ( ! $args['number'] = absint( $instance['number'] ) ) + if ( ! $args['number'] = absint( $instance['number'] ) ) { $args['number'] = 10; + } $ephemera_args = array( 'order' => 'DESC', @@ -88,7 +96,7 @@ class Twenty_Eleven_Ephemera_Widget extends WP_Widget { ), ), ); - $ephemera = new WP_Query( $ephemera_args ); + $ephemera = new WP_Query( $ephemera_args ); if ( $ephemera->have_posts() ) : echo $args['before_widget']; @@ -97,7 +105,10 @@ class Twenty_Eleven_Ephemera_Widget extends WP_Widget { echo $args['after_title']; ?> <ol> - <?php while ( $ephemera->have_posts() ) : $ephemera->the_post(); ?> + <?php + while ( $ephemera->have_posts() ) : + $ephemera->the_post(); + ?> <?php if ( 'link' != get_post_format() ) : ?> @@ -128,7 +139,7 @@ class Twenty_Eleven_Ephemera_Widget extends WP_Widget { // Reset the post globals as this query will have stomped on it wp_reset_postdata(); - // end check for ephemeral posts + // end check for ephemeral posts endif; $cache[ $args['widget_id'] ] = ob_get_flush(); @@ -145,16 +156,17 @@ class Twenty_Eleven_Ephemera_Widget extends WP_Widget { * where any validation should be dealt with. * * @since Twenty Eleven 1.0 - **/ + */ function update( $new_instance, $old_instance ) { - $instance = $old_instance; - $instance['title'] = strip_tags( $new_instance['title'] ); + $instance = $old_instance; + $instance['title'] = strip_tags( $new_instance['title'] ); $instance['number'] = (int) $new_instance['number']; $this->flush_widget_cache(); $alloptions = wp_cache_get( 'alloptions', 'options' ); - if ( isset( $alloptions['widget_twentyeleven_ephemera'] ) ) + if ( isset( $alloptions['widget_twentyeleven_ephemera'] ) ) { delete_option( 'widget_twentyeleven_ephemera' ); + } return $instance; } @@ -174,11 +186,11 @@ class Twenty_Eleven_Ephemera_Widget extends WP_Widget { * Displays the form for this widget on the Widgets page of the WP Admin area. * * @since Twenty Eleven 1.0 - **/ + */ function form( $instance ) { - $title = isset( $instance['title']) ? esc_attr( $instance['title'] ) : ''; + $title = isset( $instance['title'] ) ? esc_attr( $instance['title'] ) : ''; $number = isset( $instance['number'] ) ? absint( $instance['number'] ) : 10; -?> + ?> <p><label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php _e( 'Title:', 'twentyeleven' ); ?></label> <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" /></p> diff --git a/wp-content/themes/twentyeleven/index.php b/wp-content/themes/twentyeleven/index.php index 1dd72c8f627614a481cd61edcd32e21d32bcde34..b43b3f5268f69b29f3fbf9ea77f9e96f2df3fb0e 100644 --- a/wp-content/themes/twentyeleven/index.php +++ b/wp-content/themes/twentyeleven/index.php @@ -22,7 +22,10 @@ get_header(); ?> <?php twentyeleven_content_nav( 'nav-above' ); ?> <?php /* Start the Loop */ ?> - <?php while ( have_posts() ) : the_post(); ?> + <?php + while ( have_posts() ) : + the_post(); + ?> <?php get_template_part( 'content', get_post_format() ); ?> diff --git a/wp-content/themes/twentyeleven/languages/twentyeleven.pot b/wp-content/themes/twentyeleven/languages/twentyeleven.pot index 023ef54fd58945cb0b24d0f99ec67b9b4d586eb5..5eeef09fadf263fe56581fd5e512a724bc3c66ea 100644 --- a/wp-content/themes/twentyeleven/languages/twentyeleven.pot +++ b/wp-content/themes/twentyeleven/languages/twentyeleven.pot @@ -1,14 +1,14 @@ -# Copyright (C) 2018 the WordPress team +# Copyright (C) 2019 the WordPress team # This file is distributed under the GNU General Public License v2 or later. msgid "" msgstr "" -"Project-Id-Version: Twenty Eleven 3.0\n" +"Project-Id-Version: Twenty Eleven 3.1\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/theme/twentyeleven\n" -"POT-Creation-Date: 2018-12-18 17:41:59+00:00\n" +"POT-Creation-Date: 2019-01-02 18:09:07+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"PO-Revision-Date: 2018-MO-DA HO:MI+ZONE\n" +"PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -26,7 +26,7 @@ msgstr "" #. translators: %1$s: smilie -#: 404.php:36 +#: 404.php:46 msgid "Try looking in the monthly archives. %1$s" msgstr "" @@ -56,12 +56,12 @@ msgstr "" msgid "Blog Archives" msgstr "" -#: archive.php:57 author.php:86 category.php:59 index.php:37 search.php:44 -#: tag.php:60 +#: archive.php:60 author.php:90 category.php:64 index.php:40 search.php:47 +#: tag.php:65 msgid "Nothing Found" msgstr "" -#: archive.php:61 author.php:90 category.php:63 index.php:41 tag.php:64 +#: archive.php:64 author.php:94 category.php:68 index.php:44 tag.php:69 msgid "Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post." msgstr "" @@ -69,11 +69,11 @@ msgstr "" msgid "Author Archives: %s" msgstr "" -#: author.php:60 content-single.php:63 +#: author.php:61 content-single.php:70 msgid "About %s" msgstr "" -#: category.php:19 +#: category.php:20 msgid "Category Archives: %s" msgstr "" @@ -81,25 +81,25 @@ msgstr "" msgid "This post is password protected. Enter the password to view any comments." msgstr "" -#: comments.php:34 +#: comments.php:35 msgid "One thought on “%2$s”" msgid_plural "%1$s thoughts on “%2$s”" msgstr[0] "" msgstr[1] "" -#: comments.php:41 comments.php:62 +#: comments.php:44 comments.php:65 msgid "Comment navigation" msgstr "" -#: comments.php:42 comments.php:63 +#: comments.php:45 comments.php:66 msgid "← Older Comments" msgstr "" -#: comments.php:43 comments.php:64 +#: comments.php:46 comments.php:67 msgid "Newer Comments →" msgstr "" -#: comments.php:74 +#: comments.php:78 msgid "Comments are closed." msgstr "" @@ -126,57 +126,57 @@ msgstr "" #: content-aside.php:35 content-gallery.php:34 content-image.php:29 #: content-link.php:35 content-quote.php:35 content-status.php:48 -#: content.php:41 functions.php:443 +#: content.php:41 functions.php:457 msgid "Continue reading <span class=\"meta-nav\">→</span>" msgstr "" -#: content-aside.php:36 content-featured.php:23 content-gallery.php:52 -#: content-image.php:30 content-intro.php:18 content-link.php:36 -#: content-page.php:18 content-quote.php:36 content-single.php:24 -#: content-status.php:49 content.php:42 image.php:98 +#: content-aside.php:39 content-featured.php:26 content-gallery.php:61 +#: content-image.php:33 content-intro.php:21 content-link.php:39 +#: content-page.php:21 content-quote.php:39 content-single.php:27 +#: content-status.php:52 content.php:45 image.php:119 msgid "Pages:" msgstr "" -#: content-aside.php:44 content-gallery.php:85 content-image.php:66 -#: content-link.php:44 content-quote.php:69 content-status.php:57 -#: content.php:79 showcase.php:202 +#: content-aside.php:51 content-gallery.php:103 content-image.php:75 +#: content-link.php:51 content-quote.php:81 content-status.php:64 +#: content.php:91 showcase.php:214 msgid "Leave a reply" msgstr "" -#: content-aside.php:44 content-gallery.php:85 content-image.php:66 -#: content-link.php:44 content-quote.php:69 content-status.php:57 -#: content.php:79 showcase.php:202 +#: content-aside.php:51 content-gallery.php:103 content-image.php:75 +#: content-link.php:51 content-quote.php:81 content-status.php:64 +#: content.php:91 showcase.php:214 msgid "<b>1</b> Reply" msgstr "" -#: content-aside.php:44 content-gallery.php:85 content-image.php:66 -#: content-link.php:44 content-quote.php:69 content-status.php:57 -#: content.php:79 showcase.php:202 +#: content-aside.php:51 content-gallery.php:103 content-image.php:75 +#: content-link.php:51 content-quote.php:81 content-status.php:64 +#: content.php:91 showcase.php:214 msgid "<b>%</b> Replies" msgstr "" -#: content-aside.php:46 content-featured.php:45 content-gallery.php:88 -#: content-image.php:70 content-intro.php:19 content-link.php:46 -#: content-page.php:21 content-quote.php:72 content-single.php:52 -#: content-status.php:59 content.php:82 functions.php:677 functions.php:705 -#: image.php:41 +#: content-aside.php:53 content-featured.php:52 content-gallery.php:106 +#: content-image.php:79 content-intro.php:26 content-link.php:53 +#: content-page.php:28 content-quote.php:84 content-single.php:59 +#: content-status.php:66 content.php:94 functions.php:710 functions.php:741 +#: image.php:45 msgid "Edit" msgstr "" #. translators: used between list items, there is a space after the comma -#: content-featured.php:29 content-featured.php:38 content-gallery.php:60 -#: content-gallery.php:70 content-image.php:49 content-image.php:58 -#: content-quote.php:44 content-quote.php:54 content-single.php:30 -#: content-single.php:33 content.php:51 content.php:63 +#: content-featured.php:36 content-featured.php:45 content-gallery.php:73 +#: content-gallery.php:85 content-image.php:57 content-image.php:66 +#: content-quote.php:51 content-quote.php:63 content-single.php:37 +#: content-single.php:40 content.php:58 content.php:72 msgid ", " msgstr "" -#: content-featured.php:31 +#: content-featured.php:38 msgid "This entry was posted in %1$s and tagged %2$s. Bookmark the <a href=\"%3$s\" title=\"Permalink to %4$s\" rel=\"bookmark\">permalink</a>." msgstr "" -#: content-featured.php:33 +#: content-featured.php:40 msgid "This entry was posted in %1$s. Bookmark the <a href=\"%3$s\" title=\"Permalink to %4$s\" rel=\"bookmark\">permalink</a>." msgstr "" @@ -184,23 +184,23 @@ msgstr "" msgid "Gallery" msgstr "" -#: content-gallery.php:45 +#: content-gallery.php:49 msgid "This gallery contains <a %1$s>%2$s photo</a>." msgid_plural "This gallery contains <a %1$s>%2$s photos</a>." msgstr[0] "" msgstr[1] "" -#: content-gallery.php:46 showcase.php:121 +#: content-gallery.php:50 showcase.php:128 msgid "Permalink to %s" msgstr "" -#: content-gallery.php:64 content-image.php:53 content-quote.php:48 -#: content.php:55 +#: content-gallery.php:78 content-image.php:61 content-quote.php:56 +#: content.php:63 msgid "<span class=\"%1$s\">Posted in</span> %2$s" msgstr "" -#: content-gallery.php:76 content-image.php:61 content-quote.php:60 -#: content.php:69 +#: content-gallery.php:93 content-image.php:70 content-quote.php:71 +#: content.php:80 msgid "<span class=\"%1$s\">Tagged</span> %2$s" msgstr "" @@ -208,11 +208,11 @@ msgstr "" msgid "Image" msgstr "" -#: content-image.php:36 +#: content-image.php:44 msgid "<a href=\"%1$s\" rel=\"bookmark\"><time class=\"entry-date\" datetime=\"%2$s\">%3$s</time></a><span class=\"by-author\"> <span class=\"sep\"> by </span> <span class=\"author vcard\"><a class=\"url fn n\" href=\"%4$s\" title=\"%5$s\" rel=\"author\">%6$s</a></span></span>" msgstr "" -#: content-image.php:41 functions.php:743 +#: content-image.php:49 functions.php:791 msgid "View all posts by %s" msgstr "" @@ -224,19 +224,19 @@ msgstr "" msgid "Quote" msgstr "" -#: content-single.php:35 +#: content-single.php:42 msgid "This entry was posted in %1$s and tagged %2$s by <a href=\"%6$s\">%5$s</a>. Bookmark the <a href=\"%3$s\" title=\"Permalink to %4$s\" rel=\"bookmark\">permalink</a>." msgstr "" -#: content-single.php:37 +#: content-single.php:44 msgid "This entry was posted in %1$s by <a href=\"%6$s\">%5$s</a>. Bookmark the <a href=\"%3$s\" title=\"Permalink to %4$s\" rel=\"bookmark\">permalink</a>." msgstr "" -#: content-single.php:39 +#: content-single.php:46 msgid "This entry was posted by <a href=\"%6$s\">%5$s</a>. Bookmark the <a href=\"%3$s\" title=\"Permalink to %4$s\" rel=\"bookmark\">permalink</a>." msgstr "" -#: content-single.php:67 +#: content-single.php:74 msgid "View all posts by %s <span class=\"meta-nav\">→</span>" msgstr "" @@ -248,199 +248,199 @@ msgstr "" msgid "Featured" msgstr "" -#: footer.php:33 +#: footer.php:34 msgid "https://wordpress.org/" msgstr "" -#: footer.php:33 +#: footer.php:34 msgid "Semantic Personal Publishing Platform" msgstr "" -#: footer.php:34 +#: footer.php:35 msgid "Proudly powered by %s" msgstr "" -#: functions.php:97 +#: functions.php:100 msgid "Blue" msgstr "" -#: functions.php:102 +#: functions.php:105 msgid "Black" msgstr "" -#: functions.php:107 +#: functions.php:110 msgid "Dark Gray" msgstr "" -#: functions.php:112 +#: functions.php:115 msgid "Medium Gray" msgstr "" -#: functions.php:117 +#: functions.php:120 msgid "Light Gray" msgstr "" -#: functions.php:122 +#: functions.php:125 msgid "White" msgstr "" -#: functions.php:138 +#: functions.php:142 msgid "Primary Menu" msgstr "" #. translators: header image description -#: functions.php:227 +#: functions.php:236 msgid "Wheel" msgstr "" #. translators: header image description -#: functions.php:233 +#: functions.php:242 msgid "Shore" msgstr "" #. translators: header image description -#: functions.php:239 +#: functions.php:248 msgid "Trolley" msgstr "" #. translators: header image description -#: functions.php:245 +#: functions.php:254 msgid "Pine Cone" msgstr "" #. translators: header image description -#: functions.php:251 +#: functions.php:260 msgid "Chessboard" msgstr "" #. translators: header image description -#: functions.php:257 +#: functions.php:266 msgid "Lanterns" msgstr "" #. translators: header image description -#: functions.php:263 +#: functions.php:272 msgid "Willow" msgstr "" #. translators: header image description -#: functions.php:269 +#: functions.php:278 msgid "Hanoi Plant" msgstr "" -#: functions.php:514 +#: functions.php:530 msgid "Main Sidebar" msgstr "" -#: functions.php:523 +#: functions.php:541 msgid "Showcase Sidebar" msgstr "" -#: functions.php:525 +#: functions.php:543 msgid "The sidebar for the optional Showcase Template" msgstr "" -#: functions.php:533 +#: functions.php:553 msgid "Footer Area One" msgstr "" -#: functions.php:535 functions.php:545 functions.php:555 +#: functions.php:555 functions.php:567 functions.php:579 msgid "An optional widget area for your site footer" msgstr "" -#: functions.php:543 +#: functions.php:565 msgid "Footer Area Two" msgstr "" -#: functions.php:553 +#: functions.php:577 msgid "Footer Area Three" msgstr "" -#: functions.php:577 single.php:18 +#: functions.php:603 single.php:21 msgid "Post navigation" msgstr "" -#: functions.php:578 +#: functions.php:604 msgid "<span class=\"meta-nav\">←</span> Older posts" msgstr "" -#: functions.php:579 +#: functions.php:605 msgid "Newer posts <span class=\"meta-nav\">→</span>" msgstr "" -#: functions.php:677 +#: functions.php:710 msgid "Pingback:" msgstr "" #. translators: 1: comment author, 2: date and time -#: functions.php:694 +#: functions.php:729 msgid "%1$s on %2$s <span class=\"says\">said:</span>" msgstr "" #. translators: 1: date, 2: time -#: functions.php:700 +#: functions.php:736 msgid "%1$s at %2$s" msgstr "" -#: functions.php:709 +#: functions.php:745 msgid "Your comment is awaiting moderation." msgstr "" -#: functions.php:718 +#: functions.php:759 msgid "Reply <span>↓</span>" msgstr "" -#: functions.php:737 +#: functions.php:785 msgid "<span class=\"sep\">Posted on </span><a href=\"%1$s\" title=\"%2$s\" rel=\"bookmark\"><time class=\"entry-date\" datetime=\"%3$s\">%4$s</time></a><span class=\"by-author\"> <span class=\"sep\"> by </span> <span class=\"author vcard\"><a class=\"url fn n\" href=\"%5$s\" title=\"%6$s\" rel=\"author\">%7$s</a></span></span>" msgstr "" -#: header.php:43 +#: header.php:45 msgid "Page %s" msgstr "" -#: header.php:133 +#: header.php:142 msgid "Main menu" msgstr "" -#: header.php:135 +#: header.php:144 msgid "Skip to primary content" msgstr "" -#: header.php:137 +#: header.php:146 msgid "Skip to secondary content" msgstr "" -#: image.php:18 +#: image.php:21 msgid "Image navigation" msgstr "" -#: image.php:19 +#: image.php:22 msgid "← Previous" msgstr "" -#: image.php:20 +#: image.php:23 msgid "Next →" msgstr "" -#: image.php:30 +#: image.php:34 msgid "<span class=\"meta-prep meta-prep-entry-date\">Published </span> <span class=\"entry-date\"><abbr class=\"published\" title=\"%1$s\">%2$s</abbr></span> at <a href=\"%3$s\" title=\"Link to full-size image\">%4$s × %5$s</a> in <a href=\"%6$s\" title=\"Return to %7$s\" rel=\"gallery\">%8$s</a>" msgstr "" -#: inc/theme-options.php:56 inc/theme-options.php:542 +#: inc/theme-options.php:56 inc/theme-options.php:564 msgid "Color Scheme" msgstr "" -#: inc/theme-options.php:62 inc/theme-options.php:559 +#: inc/theme-options.php:62 inc/theme-options.php:589 msgid "Link Color" msgstr "" @@ -452,107 +452,107 @@ msgstr "" msgid "Theme Options" msgstr "" -#: inc/theme-options.php:111 +#: inc/theme-options.php:112 msgid "Some themes provide customization options that are grouped together on a Theme Options screen. If you change themes, options may change or disappear, as they are theme-specific. Your current theme, Twenty Eleven, provides the following Theme Options:" msgstr "" -#: inc/theme-options.php:113 +#: inc/theme-options.php:114 msgid "<strong>Color Scheme</strong>: You can choose a color palette of \"Light\" (light background with dark text) or \"Dark\" (dark background with light text) for your site." msgstr "" -#: inc/theme-options.php:114 +#: inc/theme-options.php:115 msgid "<strong>Link Color</strong>: You can choose the color used for text links on your site. You can enter the HTML color or hex code, or you can choose visually by clicking the \"Select a Color\" button to pick from a color wheel." msgstr "" -#: inc/theme-options.php:115 +#: inc/theme-options.php:116 msgid "<strong>Default Layout</strong>: You can choose if you want your site’s default layout to have a sidebar on the left, the right, or not at all." msgstr "" -#: inc/theme-options.php:117 +#: inc/theme-options.php:118 msgid "Remember to click \"Save Changes\" to save any changes you have made to the theme options." msgstr "" -#: inc/theme-options.php:119 +#: inc/theme-options.php:120 msgid "For more information:" msgstr "" -#: inc/theme-options.php:120 +#: inc/theme-options.php:121 msgid "<a href=\"https://codex.wordpress.org/Appearance_Theme_Options_Screen\" target=\"_blank\">Documentation on Theme Options</a>" msgstr "" -#: inc/theme-options.php:121 +#: inc/theme-options.php:122 msgid "<a href=\"https://wordpress.org/support/\" target=\"_blank\">Support Forums</a>" msgstr "" -#: inc/theme-options.php:128 +#: inc/theme-options.php:130 msgid "Overview" msgstr "" -#: inc/theme-options.php:150 +#: inc/theme-options.php:152 msgid "Light" msgstr "" -#: inc/theme-options.php:156 +#: inc/theme-options.php:158 msgid "Dark" msgstr "" -#: inc/theme-options.php:181 +#: inc/theme-options.php:183 msgid "Content on left" msgstr "" -#: inc/theme-options.php:186 +#: inc/theme-options.php:188 msgid "Content on right" msgstr "" -#: inc/theme-options.php:191 +#: inc/theme-options.php:193 msgid "One-column, no sidebar" msgstr "" -#: inc/theme-options.php:298 +#: inc/theme-options.php:302 msgid "Select a Color" msgstr "" -#: inc/theme-options.php:301 +#: inc/theme-options.php:305 msgid "Default color: %s" msgstr "" -#: inc/theme-options.php:337 +#: inc/theme-options.php:341 msgid "%s Theme Options" msgstr "" -#: inc/theme-options.php:566 +#: inc/theme-options.php:600 msgid "Layout" msgstr "" -#: inc/widgets.php:21 +#: inc/widgets.php:23 msgid "Twenty Eleven Ephemera" msgstr "" -#: inc/widgets.php:23 +#: inc/widgets.php:26 msgid "Use this widget to list your recent Aside, Status, Quote, and Link posts" msgstr "" -#: inc/widgets.php:68 +#: inc/widgets.php:74 msgid "Ephemera" msgstr "" -#: inc/widgets.php:107 inc/widgets.php:116 +#: inc/widgets.php:118 inc/widgets.php:127 msgid "0 <span class=\"reply\">comments →</span>" msgstr "" -#: inc/widgets.php:107 inc/widgets.php:116 +#: inc/widgets.php:118 inc/widgets.php:127 msgid "1 <span class=\"reply\">comment →</span>" msgstr "" -#: inc/widgets.php:107 inc/widgets.php:116 +#: inc/widgets.php:118 inc/widgets.php:127 msgid "% <span class=\"reply\">comments →</span>" msgstr "" -#: inc/widgets.php:182 +#: inc/widgets.php:194 msgid "Title:" msgstr "" -#: inc/widgets.php:185 +#: inc/widgets.php:197 msgid "Number of posts to show:" msgstr "" @@ -560,7 +560,7 @@ msgstr "" msgid "Search Results for: %s" msgstr "" -#: search.php:48 +#: search.php:51 msgid "Sorry, but nothing matched your search criteria. Please try again with some different keywords." msgstr "" @@ -568,15 +568,15 @@ msgstr "" msgid "Search" msgstr "" -#: showcase.php:78 +#: showcase.php:83 msgid "Featured Post" msgstr "" -#: showcase.php:151 +#: showcase.php:160 msgid "Featuring: %s" msgstr "" -#: showcase.php:161 +#: showcase.php:170 msgid "Recent Posts" msgstr "" @@ -588,15 +588,15 @@ msgstr "" msgid "Meta" msgstr "" -#: single.php:19 +#: single.php:22 msgid "<span class=\"meta-nav\">←</span> Previous" msgstr "" -#: single.php:20 +#: single.php:23 msgid "Next <span class=\"meta-nav\">→</span>" msgstr "" -#: tag.php:19 +#: tag.php:20 msgid "Tag Archives: %s" msgstr "" #. Theme Name of the plugin/theme diff --git a/wp-content/themes/twentyeleven/page.php b/wp-content/themes/twentyeleven/page.php index 349810704a5fa68b52a17e1bd4bf2cea87a0b6ad..4b322e84fa6c5c9374ffdeefc6e10daf15545133 100644 --- a/wp-content/themes/twentyeleven/page.php +++ b/wp-content/themes/twentyeleven/page.php @@ -17,7 +17,10 @@ get_header(); ?> <div id="primary"> <div id="content" role="main"> - <?php while ( have_posts() ) : the_post(); ?> + <?php + while ( have_posts() ) : + the_post(); + ?> <?php get_template_part( 'content', 'page' ); ?> @@ -28,4 +31,4 @@ get_header(); ?> </div><!-- #content --> </div><!-- #primary --> -<?php get_footer(); ?> \ No newline at end of file +<?php get_footer(); ?> diff --git a/wp-content/themes/twentyeleven/readme.txt b/wp-content/themes/twentyeleven/readme.txt index bd88a45dbe858755c1f406dd2769e2e5c5643353..e37ab80fba77fc7081f974d20212f8090812034f 100644 --- a/wp-content/themes/twentyeleven/readme.txt +++ b/wp-content/themes/twentyeleven/readme.txt @@ -2,7 +2,7 @@ Contributors: the WordPress team Requires at least: WordPress 3.2 Tested up to: WordPress 5.0 -Stable tag: 3.0 +Stable tag: 3.1 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: blog, one-column, two-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready @@ -43,12 +43,16 @@ Source: https://github.com/aFarkas/html5shiv == Changelog == += 3.1 = +* Released: January 9, 2019 + +https://codex.wordpress.org/Twenty_Eleven_Theme_Changelog#Version_3.1 + = 3.0 = * Released: December 19, 2018 https://codex.wordpress.org/Twenty_Eleven_Theme_Changelog#Version_3.0 - = 2.9 = * Released: December 6, 2018 diff --git a/wp-content/themes/twentyeleven/search.php b/wp-content/themes/twentyeleven/search.php index 0da1e4e57c51c2de7fb2cad683fb6a3ccf69c2c1..62fbfc2ff839a3789a8633cbb55547d306829476 100644 --- a/wp-content/themes/twentyeleven/search.php +++ b/wp-content/themes/twentyeleven/search.php @@ -21,7 +21,10 @@ get_header(); ?> <?php twentyeleven_content_nav( 'nav-above' ); ?> <?php /* Start the Loop */ ?> - <?php while ( have_posts() ) : the_post(); ?> + <?php + while ( have_posts() ) : + the_post(); + ?> <?php /* @@ -56,4 +59,4 @@ get_header(); ?> </section><!-- #primary --> <?php get_sidebar(); ?> -<?php get_footer(); ?> \ No newline at end of file +<?php get_footer(); ?> diff --git a/wp-content/themes/twentyeleven/showcase.php b/wp-content/themes/twentyeleven/showcase.php index bc9e4c9ac950226797972edf9b1dca1d3edce61f..f0b1da96f1160912bc509f7244c4e822bb0d24f1 100644 --- a/wp-content/themes/twentyeleven/showcase.php +++ b/wp-content/themes/twentyeleven/showcase.php @@ -23,16 +23,20 @@ get_header(); ?> <div id="primary" class="showcase"> <div id="content" role="main"> - <?php while ( have_posts() ) : the_post(); ?> - <?php + while ( have_posts() ) : + the_post(); + ?> + + <?php /* * We are using a heading by rendering the_content * If we have content for this page, let's display it. */ - if ( '' != get_the_content() ) + if ( '' != get_the_content() ) { get_template_part( 'content', 'intro' ); - ?> + } + ?> <?php endwhile; ?> @@ -46,13 +50,13 @@ get_header(); ?> $sticky = get_option( 'sticky_posts' ); // Proceed only if sticky posts exist. - if ( ! empty( $sticky ) ) : + if ( ! empty( $sticky ) ) : $featured_args = array( - 'post__in' => $sticky, - 'post_status' => 'publish', + 'post__in' => $sticky, + 'post_status' => 'publish', 'posts_per_page' => 10, - 'no_found_rows' => true, + 'no_found_rows' => true, ); // The Featured Posts query. @@ -61,100 +65,105 @@ get_header(); ?> // Proceed only if published posts exist if ( $featured->have_posts() ) : - /* - * We will need to count featured posts starting from zero - * to create the slider navigation. - */ - $counter_slider = 0; + /* + * We will need to count featured posts starting from zero + * to create the slider navigation. + */ + $counter_slider = 0; - // Compatibility with versions of WordPress prior to 3.4. - if ( function_exists( 'get_custom_header' ) ) - $header_image_width = get_theme_support( 'custom-header', 'width' ); - else - $header_image_width = HEADER_IMAGE_WIDTH; - ?> + // Compatibility with versions of WordPress prior to 3.4. + if ( function_exists( 'get_custom_header' ) ) { + $header_image_width = get_theme_support( 'custom-header', 'width' ); + } else { + $header_image_width = HEADER_IMAGE_WIDTH; + } + ?> - <div class="featured-posts"> + <div class="featured-posts"> <h1 class="showcase-heading"><?php _e( 'Featured Post', 'twentyeleven' ); ?></h1> - <?php - // Let's roll. - while ( $featured->have_posts() ) : $featured->the_post(); + <?php + // Let's roll. + while ( $featured->have_posts() ) : + $featured->the_post(); - // Increase the counter. - $counter_slider++; + // Increase the counter. + $counter_slider++; - /* - * We're going to add a class to our featured post for featured images - * by default it'll have the feature-text class. - */ - $feature_class = 'feature-text'; + /* + * We're going to add a class to our featured post for featured images + * by default it'll have the feature-text class. + */ + $feature_class = 'feature-text'; - if ( has_post_thumbnail() ) { - // ... but if it has a featured image let's add some class - $feature_class = 'feature-image small'; + if ( has_post_thumbnail() ) { + // ... but if it has a featured image let's add some class + $feature_class = 'feature-image small'; - // Hang on. Let's check this here image out. - $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( $header_image_width, $header_image_width ) ); + // Hang on. Let's check this here image out. + $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( $header_image_width, $header_image_width ) ); - // Is it bigger than or equal to our header? - if ( $image[1] >= $header_image_width ) { - // If bigger, let's add a BIGGER class. It's EXTRA classy now. - $feature_class = 'feature-image large'; - } - } - ?> + // Is it bigger than or equal to our header? + if ( $image[1] >= $header_image_width ) { + // If bigger, let's add a BIGGER class. It's EXTRA classy now. + $feature_class = 'feature-image large'; + } + } + ?> <section class="featured-post <?php echo esc_attr( $feature_class ); ?>" id="featured-post-<?php echo esc_attr( $counter_slider ); ?>"> - <?php - /* - * If the thumbnail is as big as the header image - * make it a large featured post, otherwise render it small - */ + <?php + /* + * If the thumbnail is as big as the header image + * make it a large featured post, otherwise render it small + */ if ( has_post_thumbnail() ) { - if ( $image[1] >= $header_image_width ) + if ( $image[1] >= $header_image_width ) { $thumbnail_size = 'large-feature'; - else + } else { $thumbnail_size = 'small-feature'; + } ?> - <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_post_thumbnail( $thumbnail_size ); ?></a> + <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_post_thumbnail( $thumbnail_size ); ?></a> <?php } - ?> - <?php get_template_part( 'content', 'featured' ); ?> + ?> + <?php get_template_part( 'content', 'featured' ); ?> </section> - <?php endwhile; ?> + <?php endwhile; ?> - <?php - // Show slider only if we have more than one featured post. - if ( $featured->post_count > 1 ) : - ?> - <nav class="feature-slider"> + <?php + // Show slider only if we have more than one featured post. + if ( $featured->post_count > 1 ) : + ?> + <nav class="feature-slider"> <ul> - <?php - - // Reset the counter so that we end up with matching elements - $counter_slider = 0; - - // Begin from zero - rewind_posts(); - - // Let's roll again. - while ( $featured->have_posts() ) : $featured->the_post(); - $counter_slider++; - if ( 1 == $counter_slider ) - $class = ' class="active"'; - else - $class = ''; - ?> - <li><a href="#featured-post-<?php echo esc_attr( $counter_slider ); ?>" title="<?php echo esc_attr( sprintf( __( 'Featuring: %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>"<?php echo $class; ?>></a></li> - <?php endwhile; ?> + <?php + + // Reset the counter so that we end up with matching elements + $counter_slider = 0; + + // Begin from zero + rewind_posts(); + + // Let's roll again. + while ( $featured->have_posts() ) : + $featured->the_post(); + $counter_slider++; + if ( 1 == $counter_slider ) { + $class = ' class="active"'; + } else { + $class = ''; + } + ?> + <li><a href="#featured-post-<?php echo esc_attr( $counter_slider ); ?>" title="<?php echo esc_attr( sprintf( __( 'Featuring: %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>"<?php echo $class; ?>></a></li> + <?php endwhile; ?> </ul> - </nav> - <?php endif; // End check for more than one sticky post. ?> - </div><!-- .featured-posts --> - <?php endif; // End check for published posts. ?> + </nav> + <?php endif; // End check for more than one sticky post. ?> + </div><!-- .featured-posts --> + <?php endif; // End check for published posts. ?> <?php endif; // End check for sticky posts. ?> <section class="recent-posts"> @@ -164,13 +173,13 @@ get_header(); ?> // Display our recent posts, showing full content for the very latest, ignoring Aside posts. $recent_args = array( - 'order' => 'DESC', - 'post__not_in' => get_option( 'sticky_posts' ), - 'tax_query' => array( + 'order' => 'DESC', + 'post__not_in' => get_option( 'sticky_posts' ), + 'tax_query' => array( array( 'taxonomy' => 'post_format', - 'terms' => array( 'post-format-aside', 'post-format-link', 'post-format-quote', 'post-format-status' ), - 'field' => 'slug', + 'terms' => array( 'post-format-aside', 'post-format-link', 'post-format-quote', 'post-format-status' ), + 'field' => 'slug', 'operator' => 'NOT IN', ), ), @@ -181,7 +190,8 @@ get_header(); ?> $recent = new WP_Query( $recent_args ); // The first Recent post is displayed normally - if ( $recent->have_posts() ) : $recent->the_post(); + if ( $recent->have_posts() ) : + $recent->the_post(); // Set $more to 0 in order to only get the first part of the post. global $more; @@ -194,7 +204,9 @@ get_header(); ?> endif; // For all other recent posts, just display the title and comment status. - while ( $recent->have_posts() ) : $recent->the_post(); ?> + while ( $recent->have_posts() ) : + $recent->the_post(); + ?> <li class="entry-title"> <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> @@ -203,12 +215,13 @@ get_header(); ?> </span> </li> - <?php + <?php endwhile; // If we had some posts, close the <ol> - if ( $recent->post_count > 0 ) + if ( $recent->post_count > 0 ) { echo '</ol>'; + } ?> </section><!-- .recent-posts --> @@ -216,7 +229,14 @@ get_header(); ?> <?php if ( ! dynamic_sidebar( 'sidebar-2' ) ) : ?> <?php - the_widget( 'Twenty_Eleven_Ephemera_Widget', '', array( 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>' ) ); + the_widget( + 'Twenty_Eleven_Ephemera_Widget', + '', + array( + 'before_title' => '<h3 class="widget-title">', + 'after_title' => '</h3>', + ) + ); ?> <?php endif; // end sidebar widget area ?> @@ -225,4 +245,4 @@ get_header(); ?> </div><!-- #content --> </div><!-- #primary --> -<?php get_footer(); ?> \ No newline at end of file +<?php get_footer(); ?> diff --git a/wp-content/themes/twentyeleven/sidebar-footer.php b/wp-content/themes/twentyeleven/sidebar-footer.php index 659469e659677b2fd7770b2009dbf655317640fb..d7f0a00f8facb15fdcaee7ffc2a3883d2fdbada4 100644 --- a/wp-content/themes/twentyeleven/sidebar-footer.php +++ b/wp-content/themes/twentyeleven/sidebar-footer.php @@ -15,11 +15,12 @@ * * If none of the sidebars have widgets, then let's bail early. */ - if ( ! is_active_sidebar( 'sidebar-3' ) +if ( ! is_active_sidebar( 'sidebar-3' ) && ! is_active_sidebar( 'sidebar-4' ) - && ! is_active_sidebar( 'sidebar-5' ) - ) - return; + && ! is_active_sidebar( 'sidebar-5' ) + ) { + return; +} // If we get this far, we have widgets. Let do this. ?> <div id="supplementary" <?php twentyeleven_footer_sidebar_class(); ?>> @@ -40,4 +41,4 @@ <?php dynamic_sidebar( 'sidebar-5' ); ?> </div><!-- #third .widget-area --> <?php endif; ?> -</div><!-- #supplementary --> \ No newline at end of file +</div><!-- #supplementary --> diff --git a/wp-content/themes/twentyeleven/sidebar-page.php b/wp-content/themes/twentyeleven/sidebar-page.php index 6fc3b86fed78720cff970bd6b25f6ca27b57f045..a12f1a233f07b1d90e9dfdfa1e18bd7b81f615fb 100644 --- a/wp-content/themes/twentyeleven/sidebar-page.php +++ b/wp-content/themes/twentyeleven/sidebar-page.php @@ -14,7 +14,10 @@ get_header(); ?> <div id="primary"> <div id="content" role="main"> - <?php while ( have_posts() ) : the_post(); ?> + <?php + while ( have_posts() ) : + the_post(); + ?> <?php get_template_part( 'content', 'page' ); ?> @@ -26,4 +29,4 @@ get_header(); ?> </div><!-- #primary --> <?php get_sidebar(); ?> -<?php get_footer(); ?> \ No newline at end of file +<?php get_footer(); ?> diff --git a/wp-content/themes/twentyeleven/sidebar.php b/wp-content/themes/twentyeleven/sidebar.php index c9afedcdfc412d4d78f54d22a3b9de6fc81d9445..67fb7e5f113fc7a79561ad8ab23f5056a488266c 100644 --- a/wp-content/themes/twentyeleven/sidebar.php +++ b/wp-content/themes/twentyeleven/sidebar.php @@ -7,11 +7,11 @@ * @since Twenty Eleven 1.0 */ -$options = twentyeleven_get_theme_options(); +$options = twentyeleven_get_theme_options(); $current_layout = $options['theme_layout']; if ( 'content' != $current_layout ) : -?> + ?> <div id="secondary" class="widget-area" role="complementary"> <?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?> @@ -33,4 +33,4 @@ if ( 'content' != $current_layout ) : <?php endif; // end sidebar widget area ?> </div><!-- #secondary .widget-area --> -<?php endif; ?> \ No newline at end of file +<?php endif; ?> diff --git a/wp-content/themes/twentyeleven/single.php b/wp-content/themes/twentyeleven/single.php index 861c50c43976264d1207ffc510966abc0ce9c1a8..b1ebd8a6742d802e804b0729076ad7bd8809cf21 100644 --- a/wp-content/themes/twentyeleven/single.php +++ b/wp-content/themes/twentyeleven/single.php @@ -12,7 +12,10 @@ get_header(); ?> <div id="primary"> <div id="content" role="main"> - <?php while ( have_posts() ) : the_post(); ?> + <?php + while ( have_posts() ) : + the_post(); + ?> <nav id="nav-single"> <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentyeleven' ); ?></h3> @@ -29,4 +32,4 @@ get_header(); ?> </div><!-- #content --> </div><!-- #primary --> -<?php get_footer(); ?> \ No newline at end of file +<?php get_footer(); ?> diff --git a/wp-content/themes/twentyeleven/style.css b/wp-content/themes/twentyeleven/style.css index 90a98e688c34ad845f165e199676a2e40afa0997..c2b4972435e069be14d0ed36ec976f1bdeb81fa6 100644 --- a/wp-content/themes/twentyeleven/style.css +++ b/wp-content/themes/twentyeleven/style.css @@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentyeleven/ Author: the WordPress team Author URI: https://wordpress.org/ Description: The 2011 theme for WordPress is sophisticated, lightweight, and adaptable. Make it yours with a custom menu, header image, and background -- then go further with available theme options for light or dark color scheme, custom link colors, and three layout choices. Twenty Eleven comes equipped with a Showcase page template that transforms your front page into a showcase to show off your best content, widget support galore (sidebar, three footer areas, and a Showcase page widget area), and a custom "Ephemera" widget to display your Aside, Link, Quote, or Status posts. Included are styles for print and for the admin editor, support for featured images (as custom header images on posts and pages and as large images on featured "sticky" posts), and special styles for six different post formats. -Version: 3.0 +Version: 3.1 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: blog, one-column, two-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready diff --git a/wp-content/themes/twentyeleven/tag.php b/wp-content/themes/twentyeleven/tag.php index 7c2fdf80b2ac10eff08fdb588064b580ef327168..cec93037470554375a0c448ecdb27d15e241ee4b 100644 --- a/wp-content/themes/twentyeleven/tag.php +++ b/wp-content/themes/twentyeleven/tag.php @@ -15,29 +15,34 @@ get_header(); ?> <?php if ( have_posts() ) : ?> <header class="page-header"> - <h1 class="page-title"><?php + <h1 class="page-title"> + <?php printf( __( 'Tag Archives: %s', 'twentyeleven' ), '<span>' . single_tag_title( '', false ) . '</span>' ); - ?></h1> + ?> + </h1> <?php $tag_description = tag_description(); - if ( ! empty( $tag_description ) ) { - /** - * Filter the default Twenty Eleven tag description. - * - * @since Twenty Eleven 1.0 - * - * @param string The default tag description. - */ - echo apply_filters( 'tag_archive_meta', '<div class="tag-archive-meta">' . $tag_description . '</div>' ); - } + if ( ! empty( $tag_description ) ) { + /** + * Filter the default Twenty Eleven tag description. + * + * @since Twenty Eleven 1.0 + * + * @param string The default tag description. + */ + echo apply_filters( 'tag_archive_meta', '<div class="tag-archive-meta">' . $tag_description . '</div>' ); + } ?> </header> <?php twentyeleven_content_nav( 'nav-above' ); ?> <?php /* Start the Loop */ ?> - <?php while ( have_posts() ) : the_post(); ?> + <?php + while ( have_posts() ) : + the_post(); + ?> <?php /*