diff --git a/wp-content/themes/twentytwelve/404.php b/wp-content/themes/twentytwelve/404.php index db3ef811b27eff6f185333e91eda9a2f91e768d4..8b039ecee4f620f71b2ed5491bfbb199e7d76cda 100644 --- a/wp-content/themes/twentytwelve/404.php +++ b/wp-content/themes/twentytwelve/404.php @@ -26,4 +26,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/twentytwelve/archive.php b/wp-content/themes/twentytwelve/archive.php index 78314cfb8f63dd1235eb52b4ba5aaa8412673caf..cf0611c458d68e3997deac8c5809871a092fb541 100644 --- a/wp-content/themes/twentytwelve/archive.php +++ b/wp-content/themes/twentytwelve/archive.php @@ -24,9 +24,10 @@ get_header(); ?> <?php if ( have_posts() ) : ?> <header class="archive-header"> - <h1 class="archive-title"><?php - if ( is_day() ) : - printf( __( 'Daily Archives: %s', 'twentytwelve' ), '<span>' . get_the_date() . '</span>' ); + <h1 class="archive-title"> + <?php + if ( is_day() ) : + printf( __( 'Daily Archives: %s', 'twentytwelve' ), '<span>' . get_the_date() . '</span>' ); elseif ( is_month() ) : printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '</span>' ); elseif ( is_year() ) : @@ -34,12 +35,14 @@ get_header(); ?> else : _e( 'Archives', 'twentytwelve' ); endif; - ?></h1> + ?> + </h1> </header><!-- .archive-header --> <?php /* Start the Loop */ - while ( have_posts() ) : the_post(); + while ( have_posts() ) : + the_post(); /* Include the post format-specific template for the content. If you want to * this in a child theme then include a file called content-___.php diff --git a/wp-content/themes/twentytwelve/author.php b/wp-content/themes/twentytwelve/author.php index 9a55c341998805bc6ef426d61f19264a46f9cb33..ace43e7bd8e19aa16d3d1f911a118fe74a899748 100644 --- a/wp-content/themes/twentytwelve/author.php +++ b/wp-content/themes/twentytwelve/author.php @@ -44,7 +44,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 class="author-info"> <div class="author-avatar"> <?php @@ -67,7 +68,10 @@ get_header(); ?> <?php endif; ?> <?php /* Start the Loop */ ?> - <?php while ( have_posts() ) : the_post(); ?> + <?php + while ( have_posts() ) : + the_post(); +?> <?php get_template_part( 'content', get_post_format() ); ?> <?php endwhile; ?> diff --git a/wp-content/themes/twentytwelve/category.php b/wp-content/themes/twentytwelve/category.php index 458063066d365ebd24cfefea53c41829c309449b..0625a7d6c2201fe9db74c551329e592588e91f1a 100644 --- a/wp-content/themes/twentytwelve/category.php +++ b/wp-content/themes/twentytwelve/category.php @@ -27,7 +27,8 @@ get_header(); ?> <?php /* Start the Loop */ - while ( have_posts() ) : the_post(); + while ( have_posts() ) : + the_post(); /* Include the post format-specific template for the content. If you want to * this in a child theme then include a file called content-___.php diff --git a/wp-content/themes/twentytwelve/comments.php b/wp-content/themes/twentytwelve/comments.php index d6a733efe4b7ae1619b0e354c34b8f891f02dfc5..19f5941dade590bbb6b2373db4a1d668c543230d 100644 --- a/wp-content/themes/twentytwelve/comments.php +++ b/wp-content/themes/twentytwelve/comments.php @@ -17,8 +17,9 @@ * the visitor has not yet entered the password we will * return early without loading the comments. */ -if ( post_password_required() ) +if ( post_password_required() ) { return; +} ?> <div id="comments" class="comments-area"> @@ -28,13 +29,22 @@ if ( post_password_required() ) <?php if ( have_comments() ) : ?> <h2 class="comments-title"> <?php - printf( _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentytwelve' ), - 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(), 'twentytwelve' ), + number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' + ); ?> </h2> <ol class="commentlist"> - <?php wp_list_comments( array( 'callback' => 'twentytwelve_comment', 'style' => 'ol' ) ); ?> + <?php + wp_list_comments( + array( + 'callback' => 'twentytwelve_comment', + 'style' => 'ol', + ) + ); +?> </ol><!-- .commentlist --> <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> @@ -49,12 +59,13 @@ if ( post_password_required() ) /* If there are no comments and comments are closed, let's leave a note. * 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.' , 'twentytwelve' ); ?></p> + if ( ! comments_open() && get_comments_number() ) : + ?> + <p class="nocomments"><?php _e( 'Comments are closed.', 'twentytwelve' ); ?></p> <?php endif; ?> <?php endif; // have_comments() ?> <?php comment_form(); ?> -</div><!-- #comments .comments-area --> \ No newline at end of file +</div><!-- #comments .comments-area --> diff --git a/wp-content/themes/twentytwelve/content-page.php b/wp-content/themes/twentytwelve/content-page.php index 0abcbf79112ead52c65fe0dc2d43b0e5fc50e5de..d1553444bb99c20b5968e44e90f40d7fa6cf3755 100644 --- a/wp-content/themes/twentytwelve/content-page.php +++ b/wp-content/themes/twentytwelve/content-page.php @@ -18,7 +18,14 @@ <div class="entry-content"> <?php the_content(); ?> - <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?> + <?php + wp_link_pages( + array( + 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), + 'after' => '</div>', + ) + ); +?> </div><!-- .entry-content --> <footer class="entry-meta"> <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?> diff --git a/wp-content/themes/twentytwelve/content.php b/wp-content/themes/twentytwelve/content.php index 56493ed0bdf6026b2e7a18c1089cf95f82f948fa..901b9bd873f3688905e9eb5e155d4b02c6316568 100644 --- a/wp-content/themes/twentytwelve/content.php +++ b/wp-content/themes/twentytwelve/content.php @@ -17,9 +17,11 @@ </div> <?php endif; ?> <header class="entry-header"> - <?php if ( ! post_password_required() && ! is_attachment() ) : + <?php + if ( ! post_password_required() && ! is_attachment() ) : the_post_thumbnail(); - endif; ?> + endif; + ?> <?php if ( is_single() ) : ?> <h1 class="entry-title"><?php the_title(); ?></h1> @@ -42,7 +44,14 @@ <?php else : ?> <div class="entry-content"> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?> - <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?> + <?php + wp_link_pages( + array( + 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), + 'after' => '</div>', + ) + ); +?> </div><!-- .entry-content --> <?php endif; ?> diff --git a/wp-content/themes/twentytwelve/footer.php b/wp-content/themes/twentytwelve/footer.php index fe31e596d9233b9f0353fd095cfc187bdc0b4e04..05e52e2bd86ae046059def50959d09ba84b8ca01 100644 --- a/wp-content/themes/twentytwelve/footer.php +++ b/wp-content/themes/twentytwelve/footer.php @@ -13,11 +13,18 @@ <footer id="colophon" role="contentinfo"> <div class="site-info"> <?php do_action( 'twentytwelve_credits' ); ?> - <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentytwelve' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentytwelve' ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentytwelve' ), 'WordPress' ); ?></a> + <?php + if ( function_exists( 'the_privacy_policy_link' ) ) { + the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' ); + } + ?> + <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentytwelve' ) ); ?>" class="imprint" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentytwelve' ); ?>"> + <?php printf( __( 'Proudly powered by %s', 'twentytwelve' ), 'WordPress' ); ?> + </a> </div><!-- .site-info --> </footer><!-- #colophon --> </div><!-- #page --> <?php wp_footer(); ?> </body> -</html> \ No newline at end of file +</html> diff --git a/wp-content/themes/twentytwelve/functions.php b/wp-content/themes/twentytwelve/functions.php index 68d44aaed02ff9c53c3da6a5b55c37e072efd61e..31fc2820431dd9ad10ec5621a40b165ed57fd6ff 100644 --- a/wp-content/themes/twentytwelve/functions.php +++ b/wp-content/themes/twentytwelve/functions.php @@ -23,8 +23,9 @@ */ // Set up the content width value based on the theme's design and stylesheet. -if ( ! isset( $content_width ) ) +if ( ! isset( $content_width ) ) { $content_width = 625; +} /** * Twenty Twelve setup. @@ -35,7 +36,7 @@ if ( ! isset( $content_width ) ) * @uses load_theme_textdomain() For translation/localization support. * @uses add_editor_style() To add a Visual Editor stylesheet. * @uses add_theme_support() To add support for post thumbnails, automatic feed links, - * custom background, and post formats. + * custom background, and post formats. * @uses register_nav_menu() To add support for navigation menus. * @uses set_post_thumbnail_size() To set a custom post thumbnail size. * @@ -67,9 +68,11 @@ function twentytwelve_setup() { * This theme supports custom background color and image, * and here we also set up the default background color. */ - add_theme_support( 'custom-background', array( - 'default-color' => 'e6e6e6', - ) ); + add_theme_support( + 'custom-background', array( + 'default-color' => 'e6e6e6', + ) + ); // This theme uses a custom image size for featured images, displayed on "standard" posts. add_theme_support( 'post-thumbnails' ); @@ -109,18 +112,19 @@ function twentytwelve_get_font_url() { */ $subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'twentytwelve' ); - if ( 'cyrillic' == $subset ) + if ( 'cyrillic' == $subset ) { $subsets .= ',cyrillic,cyrillic-ext'; - elseif ( 'greek' == $subset ) + } elseif ( 'greek' == $subset ) { $subsets .= ',greek,greek-ext'; - elseif ( 'vietnamese' == $subset ) + } elseif ( 'vietnamese' == $subset ) { $subsets .= ',vietnamese'; + } $query_args = array( 'family' => 'Open+Sans:400italic,700italic,400,700', 'subset' => $subsets, ); - $font_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' ); + $font_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' ); } return $font_url; @@ -138,15 +142,17 @@ function twentytwelve_scripts_styles() { * Adds JavaScript to pages with the comment form to support * sites with threaded comments (when in use). */ - if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) + if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); + } // Adds JavaScript for handling the navigation menu hide-and-show behavior. wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/navigation.js', array( 'jquery' ), '20140711', true ); $font_url = twentytwelve_get_font_url(); - if ( ! empty( $font_url ) ) + if ( ! empty( $font_url ) ) { wp_enqueue_style( 'twentytwelve-fonts', esc_url_raw( $font_url ), array(), null ); + } // Loads our main stylesheet. wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri() ); @@ -197,11 +203,13 @@ add_filter( 'wp_resource_hints', 'twentytwelve_resource_hints', 10, 2 ); function twentytwelve_mce_css( $mce_css ) { $font_url = twentytwelve_get_font_url(); - if ( empty( $font_url ) ) + if ( empty( $font_url ) ) { return $mce_css; + } - if ( ! empty( $mce_css ) ) + if ( ! empty( $mce_css ) ) { $mce_css .= ','; + } $mce_css .= esc_url_raw( str_replace( ',', '%2C', $font_url ) ); @@ -224,20 +232,23 @@ add_filter( 'mce_css', 'twentytwelve_mce_css' ); function twentytwelve_wp_title( $title, $sep ) { global $paged, $page; - if ( is_feed() ) + if ( is_feed() ) { return $title; + } // Add the site name. $title .= get_bloginfo( 'name', 'display' ); // Add the site description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); - if ( $site_description && ( is_home() || is_front_page() ) ) + if ( $site_description && ( is_home() || is_front_page() ) ) { $title = "$title $sep $site_description"; + } // Add a page number if necessary. - if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) + if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) { $title = "$title $sep " . sprintf( __( 'Page %s', 'twentytwelve' ), max( $paged, $page ) ); + } return $title; } @@ -251,8 +262,9 @@ add_filter( 'wp_title', 'twentytwelve_wp_title', 10, 2 ); * @since Twenty Twelve 1.0 */ function twentytwelve_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', 'twentytwelve_page_menu_args' ); @@ -265,168 +277,190 @@ add_filter( 'wp_page_menu_args', 'twentytwelve_page_menu_args' ); * @since Twenty Twelve 1.0 */ function twentytwelve_widgets_init() { - register_sidebar( array( - 'name' => __( 'Main Sidebar', 'twentytwelve' ), - 'id' => 'sidebar-1', - 'description' => __( 'Appears on posts and pages except the optional Front Page template, which has its own widgets', 'twentytwelve' ), - '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' => __( 'First Front Page Widget Area', 'twentytwelve' ), - 'id' => 'sidebar-2', - 'description' => __( 'Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve' ), - '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' => __( 'Second Front Page Widget Area', 'twentytwelve' ), - 'id' => 'sidebar-3', - 'description' => __( 'Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve' ), - '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', 'twentytwelve' ), + 'id' => 'sidebar-1', + 'description' => __( 'Appears on posts and pages except the optional Front Page template, which has its own widgets', 'twentytwelve' ), + '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' => __( 'First Front Page Widget Area', 'twentytwelve' ), + 'id' => 'sidebar-2', + 'description' => __( 'Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve' ), + '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' => __( 'Second Front Page Widget Area', 'twentytwelve' ), + 'id' => 'sidebar-3', + 'description' => __( 'Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve' ), + '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', 'twentytwelve_widgets_init' ); if ( ! function_exists( 'twentytwelve_content_nav' ) ) : -/** - * Displays navigation to next/previous pages when applicable. - * - * @since Twenty Twelve 1.0 - */ -function twentytwelve_content_nav( $html_id ) { - global $wp_query; - - if ( $wp_query->max_num_pages > 1 ) : ?> - <nav id="<?php echo esc_attr( $html_id ); ?>" class="navigation" role="navigation"> - <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3> - <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentytwelve' ) ); ?></div> - <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?></div> - </nav><!-- .navigation --> - <?php endif; -} + /** + * Displays navigation to next/previous pages when applicable. + * + * @since Twenty Twelve 1.0 + */ + function twentytwelve_content_nav( $html_id ) { + global $wp_query; + + if ( $wp_query->max_num_pages > 1 ) : ?> + <nav id="<?php echo esc_attr( $html_id ); ?>" class="navigation" role="navigation"> + <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3> + <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentytwelve' ) ); ?></div> + <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?></div> + </nav><!-- .navigation --> + <?php + endif; + } endif; if ( ! function_exists( 'twentytwelve_comment' ) ) : -/** - * Template for comments and pingbacks. - * - * To override this walker in a child theme without modifying the comments template - * simply create your own twentytwelve_comment(), and that function will be used instead. - * - * Used as a callback by wp_list_comments() for displaying the comments. - * - * @since Twenty Twelve 1.0 - */ -function twentytwelve_comment( $comment, $args, $depth ) { - $GLOBALS['comment'] = $comment; - switch ( $comment->comment_type ) : - case 'pingback' : - case 'trackback' : - // Display trackbacks differently than normal comments. - ?> - <li <?php comment_class(); ?> id="comment-<?php comment_ID(); ?>"> + /** + * Template for comments and pingbacks. + * + * To override this walker in a child theme without modifying the comments template + * simply create your own twentytwelve_comment(), and that function will be used instead. + * + * Used as a callback by wp_list_comments() for displaying the comments. + * + * @since Twenty Twelve 1.0 + */ + function twentytwelve_comment( $comment, $args, $depth ) { + $GLOBALS['comment'] = $comment; + switch ( $comment->comment_type ) : + case 'pingback': + case 'trackback': + // Display trackbacks differently than normal comments. + ?> + <li <?php comment_class(); ?> id="comment-<?php comment_ID(); ?>"> <p><?php _e( 'Pingback:', 'twentytwelve' ); ?> <?php comment_author_link(); ?> <?php edit_comment_link( __( '(Edit)', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?></p> <?php - break; - default : - // Proceed with normal comments. - global $post; - ?> - <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>"> + break; + default: + // Proceed with normal comments. + global $post; + ?> + <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>"> <article id="comment-<?php comment_ID(); ?>" class="comment"> <header class="comment-meta comment-author vcard"> <?php echo get_avatar( $comment, 44 ); - printf( '<cite><b class="fn">%1$s</b> %2$s</cite>', + printf( + '<cite><b class="fn">%1$s</b> %2$s</cite>', get_comment_author_link(), // If current post author is also comment author, make it known visually. ( $comment->user_id === $post->post_author ) ? '<span>' . __( 'Post author', 'twentytwelve' ) . '</span>' : '' ); - printf( '<a href="%1$s"><time datetime="%2$s">%3$s</time></a>', + printf( + '<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 */ sprintf( __( '%1$s at %2$s', 'twentytwelve' ), get_comment_date(), get_comment_time() ) ); - ?> - </header><!-- .comment-meta --> + ?> + </header><!-- .comment-meta --> - <?php if ( '0' == $comment->comment_approved ) : ?> + <?php if ( '0' == $comment->comment_approved ) : ?> <p class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'twentytwelve' ); ?></p> <?php endif; ?> - <section class="comment-content comment"> + <section class="comment-content comment"> <?php comment_text(); ?> <?php edit_comment_link( __( 'Edit', 'twentytwelve' ), '<p class="edit-link">', '</p>' ); ?> - </section><!-- .comment-content --> + </section><!-- .comment-content --> - <div class="reply"> - <?php comment_reply_link( array_merge( $args, array( 'reply_text' => __( 'Reply', 'twentytwelve' ), 'after' => ' <span>↓</span>', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> - </div><!-- .reply --> - </article><!-- #comment-## --> - <?php - break; - endswitch; // end comment_type check -} + <div class="reply"> + <?php + comment_reply_link( + array_merge( + $args, array( + 'reply_text' => __( 'Reply', 'twentytwelve' ), + 'after' => ' <span>↓</span>', + 'depth' => $depth, + 'max_depth' => $args['max_depth'], + ) + ) + ); +?> + </div><!-- .reply --> + </article><!-- #comment-## --> + <?php + break; + endswitch; // end comment_type check + } endif; if ( ! function_exists( 'twentytwelve_entry_meta' ) ) : -/** - * Set up post entry meta. - * - * Prints HTML with meta information for current post: categories, tags, permalink, author, and date. - * - * Create your own twentytwelve_entry_meta() to override in a child theme. - * - * @since Twenty Twelve 1.0 - */ -function twentytwelve_entry_meta() { - // Translators: used between list items, there is a space after the comma. - $categories_list = get_the_category_list( __( ', ', 'twentytwelve' ) ); - - // Translators: used between list items, there is a space after the comma. - $tag_list = get_the_tag_list( '', __( ', ', 'twentytwelve' ) ); - - $date = sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>', - esc_url( get_permalink() ), - esc_attr( get_the_time() ), - esc_attr( get_the_date( 'c' ) ), - esc_html( get_the_date() ) - ); + /** + * Set up post entry meta. + * + * Prints HTML with meta information for current post: categories, tags, permalink, author, and date. + * + * Create your own twentytwelve_entry_meta() to override in a child theme. + * + * @since Twenty Twelve 1.0 + */ + function twentytwelve_entry_meta() { + // Translators: used between list items, there is a space after the comma. + $categories_list = get_the_category_list( __( ', ', 'twentytwelve' ) ); + + // Translators: used between list items, there is a space after the comma. + $tag_list = get_the_tag_list( '', __( ', ', 'twentytwelve' ) ); + + $date = sprintf( + '<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>', + esc_url( get_permalink() ), + esc_attr( get_the_time() ), + esc_attr( get_the_date( 'c' ) ), + esc_html( get_the_date() ) + ); - $author = sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>', - esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), - esc_attr( sprintf( __( 'View all posts by %s', 'twentytwelve' ), get_the_author() ) ), - get_the_author() - ); + $author = sprintf( + '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>', + esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), + esc_attr( sprintf( __( 'View all posts by %s', 'twentytwelve' ), get_the_author() ) ), + get_the_author() + ); - // Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name. - if ( $tag_list ) { - $utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' ); - } elseif ( $categories_list ) { - $utility_text = __( 'This entry was posted in %1$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' ); - } else { - $utility_text = __( 'This entry was posted on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' ); - } + // Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name. + if ( $tag_list ) { + $utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' ); + } elseif ( $categories_list ) { + $utility_text = __( 'This entry was posted in %1$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' ); + } else { + $utility_text = __( 'This entry was posted on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' ); + } - printf( - $utility_text, - $categories_list, - $tag_list, - $date, - $author - ); -} + printf( + $utility_text, + $categories_list, + $tag_list, + $date, + $author + ); + } endif; /** @@ -450,30 +484,36 @@ function twentytwelve_body_class( $classes ) { $background_color = get_background_color(); $background_image = get_background_image(); - if ( ! is_active_sidebar( 'sidebar-1' ) || is_page_template( 'page-templates/full-width.php' ) ) + if ( ! is_active_sidebar( 'sidebar-1' ) || is_page_template( 'page-templates/full-width.php' ) ) { $classes[] = 'full-width'; + } if ( is_page_template( 'page-templates/front-page.php' ) ) { $classes[] = 'template-front-page'; - if ( has_post_thumbnail() ) + if ( has_post_thumbnail() ) { $classes[] = 'has-post-thumbnail'; - if ( is_active_sidebar( 'sidebar-2' ) && is_active_sidebar( 'sidebar-3' ) ) + } + if ( is_active_sidebar( 'sidebar-2' ) && is_active_sidebar( 'sidebar-3' ) ) { $classes[] = 'two-sidebars'; + } } if ( empty( $background_image ) ) { - if ( empty( $background_color ) ) + if ( empty( $background_color ) ) { $classes[] = 'custom-background-empty'; - elseif ( in_array( $background_color, array( 'fff', 'ffffff' ) ) ) + } elseif ( in_array( $background_color, array( 'fff', 'ffffff' ) ) ) { $classes[] = 'custom-background-white'; + } } // Enable custom font class only if the font CSS is queued to load. - if ( wp_style_is( 'twentytwelve-fonts', 'queue' ) ) + if ( wp_style_is( 'twentytwelve-fonts', 'queue' ) ) { $classes[] = 'custom-font-enabled'; + } - if ( ! is_multi_author() ) + if ( ! is_multi_author() ) { $classes[] = 'single-author'; + } return $classes; } @@ -510,16 +550,20 @@ function twentytwelve_customize_register( $wp_customize ) { $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' => 'twentytwelve_customize_partial_blogname', - ) ); - $wp_customize->selective_refresh->add_partial( 'blogdescription', array( - 'selector' => '.site-description', - 'container_inclusive' => false, - 'render_callback' => 'twentytwelve_customize_partial_blogdescription', - ) ); + $wp_customize->selective_refresh->add_partial( + 'blogname', array( + 'selector' => '.site-title > a', + 'container_inclusive' => false, + 'render_callback' => 'twentytwelve_customize_partial_blogname', + ) + ); + $wp_customize->selective_refresh->add_partial( + 'blogdescription', array( + 'selector' => '.site-description', + 'container_inclusive' => false, + 'render_callback' => 'twentytwelve_customize_partial_blogdescription', + ) + ); } } add_action( 'customize_register', 'twentytwelve_customize_register' ); diff --git a/wp-content/themes/twentytwelve/header.php b/wp-content/themes/twentytwelve/header.php index c3b99d6f3d730087a2effa5fd6acbc78fe6d64e0..2b95b498e5951a505e8e1ba5eb55a2953baeee36 100644 --- a/wp-content/themes/twentytwelve/header.php +++ b/wp-content/themes/twentytwelve/header.php @@ -42,7 +42,14 @@ <nav id="site-navigation" class="main-navigation" role="navigation"> <button class="menu-toggle"><?php _e( 'Menu', 'twentytwelve' ); ?></button> <a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentytwelve' ); ?>"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a> - <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?> + <?php + wp_nav_menu( + array( + 'theme_location' => 'primary', + 'menu_class' => 'nav-menu', + ) + ); +?> </nav><!-- #site-navigation --> <?php if ( get_header_image() ) : ?> @@ -50,4 +57,4 @@ <?php endif; ?> </header><!-- #masthead --> - <div id="main" class="wrapper"> \ No newline at end of file + <div id="main" class="wrapper"> diff --git a/wp-content/themes/twentytwelve/image.php b/wp-content/themes/twentytwelve/image.php index 976e017d50a3f532db275faffe929c5ee77ba782..d2d228ba65b9d211c849fb0202335373fdc548fb 100644 --- a/wp-content/themes/twentytwelve/image.php +++ b/wp-content/themes/twentytwelve/image.php @@ -14,7 +14,10 @@ get_header(); ?> <div id="primary" class="site-content"> <div id="content" role="main"> - <?php while ( have_posts() ) : the_post(); ?> + <?php + while ( have_posts() ) : + the_post(); +?> <article id="post-<?php the_ID(); ?>" <?php post_class( 'image-attachment' ); ?>> <header class="entry-header"> @@ -23,7 +26,8 @@ get_header(); ?> <footer class="entry-meta"> <?php $metadata = wp_get_attachment_metadata(); - printf( __( '<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><time class="entry-date" datetime="%1$s">%2$s</time></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>.', 'twentytwelve' ), + printf( + __( '<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><time class="entry-date" datetime="%1$s">%2$s</time></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>.', 'twentytwelve' ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_url( wp_get_attachment_url() ), @@ -52,10 +56,22 @@ get_header(); ?> * 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' ) ) ); +$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 ) + if ( $attachment->ID == $post->ID ) { break; + } endforeach; // If there is more than 1 attachment in a gallery @@ -73,20 +89,22 @@ else : $next_attachment_url = wp_get_attachment_url(); endif; ?> - <a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php - /** - * Filter the image attachment size to use. - * - * @since Twenty Twelve 1.0 - * - * @param array $size { - * @type int The attachment height in pixels. - * @type int The attachment width in pixels. - * } - */ - $attachment_size = apply_filters( 'twentytwelve_attachment_size', array( 960, 960 ) ); - echo wp_get_attachment_image( $post->ID, $attachment_size ); - ?></a> + <a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"> + <?php + /** + * Filter the image attachment size to use. + * + * @since Twenty Twelve 1.0 + * + * @param array $size { + * @type int The attachment height in pixels. + * @type int The attachment width in pixels. + * } + */ + $attachment_size = apply_filters( 'twentytwelve_attachment_size', array( 960, 960 ) ); + echo wp_get_attachment_image( $post->ID, $attachment_size ); + ?> + </a> <?php if ( ! empty( $post->post_excerpt ) ) : ?> <div class="entry-caption"> @@ -99,7 +117,14 @@ endif; <div class="entry-description"> <?php the_content(); ?> - <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?> + <?php + wp_link_pages( + array( + 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), + 'after' => '</div>', + ) + ); +?> </div><!-- .entry-description --> </div><!-- .entry-content --> diff --git a/wp-content/themes/twentytwelve/inc/custom-header.php b/wp-content/themes/twentytwelve/inc/custom-header.php index baedf18b5ed1c079aa96c3a84d1429677472533c..c243dc65a95337d17d86bf1b46a98e9410ad6f85 100644 --- a/wp-content/themes/twentytwelve/inc/custom-header.php +++ b/wp-content/themes/twentytwelve/inc/custom-header.php @@ -54,8 +54,9 @@ add_action( 'after_setup_theme', 'twentytwelve_custom_header_setup' ); */ function twentytwelve_custom_header_fonts() { $font_url = twentytwelve_get_font_url(); - if ( ! empty( $font_url ) ) + if ( ! empty( $font_url ) ) { wp_enqueue_style( 'twentytwelve-fonts', esc_url_raw( $font_url ), array(), null ); + } } add_action( 'admin_print_styles-appearance_page_custom-header', 'twentytwelve_custom_header_fonts' ); @@ -70,24 +71,25 @@ function twentytwelve_header_style() { $text_color = get_header_textcolor(); // If no custom options for text are set, let's bail - if ( $text_color == get_theme_support( 'custom-header', 'default-text-color' ) ) + if ( $text_color == get_theme_support( 'custom-header', 'default-text-color' ) ) { return; + } // If we get this far, we have custom styles. ?> <style type="text/css" id="twentytwelve-header-css"> <?php // Has the text been hidden? - if ( ! display_header_text() ) : + if ( ! display_header_text() ) : ?> - .site-title, - .site-description { - position: absolute; - clip: rect(1px 1px 1px 1px); /* IE7 */ - clip: rect(1px, 1px, 1px, 1px); - } + .site-title, + .site-description { + position: absolute; + clip: rect(1px 1px 1px 1px); /* IE7 */ + clip: rect(1px, 1px, 1px, 1px); + } <?php - // If the user has set a custom color for the text, use that. + // If the user has set a custom color for the text, use that. else : ?> .site-header h1 a, @@ -155,9 +157,12 @@ function twentytwelve_admin_header_image() { <div id="headimg"> <h1 class="displaying-header-text"><a id="name" style="<?php echo esc_attr( $style ); ?>" onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1> <h2 id="desc" class="displaying-header-text" style="<?php echo esc_attr( $style ); ?>"><?php bloginfo( 'description' ); ?></h2> - <?php $header_image = get_header_image(); - if ( ! empty( $header_image ) ) : ?> + <?php + $header_image = get_header_image(); + if ( ! empty( $header_image ) ) : + ?> <img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo esc_attr( get_custom_header()->width ); ?>" height="<?php echo esc_attr( get_custom_header()->height ); ?>" alt="" /> <?php endif; ?> </div> -<?php } +<?php +} diff --git a/wp-content/themes/twentytwelve/index.php b/wp-content/themes/twentytwelve/index.php index 7420be53e4beaa7f295e9df3c85d8215e660be11..47e5c6424ae884a8d1852fb2a8a956f1ae8a49b5 100644 --- a/wp-content/themes/twentytwelve/index.php +++ b/wp-content/themes/twentytwelve/index.php @@ -21,7 +21,10 @@ get_header(); ?> <?php if ( have_posts() ) : ?> <?php /* Start the Loop */ ?> - <?php while ( have_posts() ) : the_post(); ?> + <?php + while ( have_posts() ) : + the_post(); +?> <?php get_template_part( 'content', get_post_format() ); ?> <?php endwhile; ?> @@ -31,7 +34,8 @@ get_header(); ?> <article id="post-0" class="post no-results not-found"> - <?php if ( current_user_can( 'edit_posts' ) ) : + <?php + if ( current_user_can( 'edit_posts' ) ) : // Show a different message to a logged-in user who can add posts. ?> <header class="entry-header"> @@ -42,7 +46,8 @@ get_header(); ?> <p><?php printf( __( 'Ready to publish your first post? <a href="%s">Get started here</a>.', 'twentytwelve' ), admin_url( 'post-new.php' ) ); ?></p> </div><!-- .entry-content --> - <?php else : + <?php + else : // Show the default message to everyone else. ?> <header class="entry-header"> diff --git a/wp-content/themes/twentytwelve/page-templates/front-page.php b/wp-content/themes/twentytwelve/page-templates/front-page.php index 9ae4f27ddea5e815570787cfe29439b172a25074..9561179a29df5abb7486d11e433bacf8a29fa05f 100644 --- a/wp-content/themes/twentytwelve/page-templates/front-page.php +++ b/wp-content/themes/twentytwelve/page-templates/front-page.php @@ -17,7 +17,10 @@ get_header(); ?> <div id="primary" class="site-content"> <div id="content" role="main"> - <?php while ( have_posts() ) : the_post(); ?> + <?php + while ( have_posts() ) : + the_post(); +?> <?php if ( has_post_thumbnail() ) : ?> <div class="entry-page-image"> <?php the_post_thumbnail(); ?> @@ -32,4 +35,4 @@ get_header(); ?> </div><!-- #primary --> <?php get_sidebar( 'front' ); ?> -<?php get_footer(); ?> \ No newline at end of file +<?php get_footer(); ?> diff --git a/wp-content/themes/twentytwelve/page-templates/full-width.php b/wp-content/themes/twentytwelve/page-templates/full-width.php index b0ce333c2db934c9b95e521d4b902a8b3aeef7a6..463d923d3157f0b81ce56b0b5715f54a3caa5deb 100644 --- a/wp-content/themes/twentytwelve/page-templates/full-width.php +++ b/wp-content/themes/twentytwelve/page-templates/full-width.php @@ -19,7 +19,10 @@ get_header(); ?> <div id="primary" class="site-content"> <div id="content" role="main"> - <?php while ( have_posts() ) : the_post(); ?> + <?php + while ( have_posts() ) : + the_post(); +?> <?php get_template_part( 'content', 'page' ); ?> <?php comments_template( '', true ); ?> <?php endwhile; // end of the loop. ?> @@ -27,4 +30,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/twentytwelve/page.php b/wp-content/themes/twentytwelve/page.php index b06cd1f206f9bdbb448e6a7bd1308562516f490c..32934195d0e6ed423e4081607c0be30f4a4aaa23 100644 --- a/wp-content/themes/twentytwelve/page.php +++ b/wp-content/themes/twentytwelve/page.php @@ -17,7 +17,10 @@ get_header(); ?> <div id="primary" class="site-content"> <div id="content" role="main"> - <?php while ( have_posts() ) : the_post(); ?> + <?php + while ( have_posts() ) : + the_post(); +?> <?php get_template_part( 'content', 'page' ); ?> <?php comments_template( '', true ); ?> <?php endwhile; // end of the loop. ?> @@ -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/twentytwelve/readme.txt b/wp-content/themes/twentytwelve/readme.txt index a21e87057a09a0532e6675784cf5873a74865a65..a6b1e6b87bb3eafb3652bac4cf418b8153cfb7a8 100644 --- a/wp-content/themes/twentytwelve/readme.txt +++ b/wp-content/themes/twentytwelve/readme.txt @@ -2,7 +2,7 @@ Contributors: the WordPress team Requires at least: WordPress 3.5 Tested up to: WordPress 5.0-trunk -Stable tag: 2.4 +Stable tag: 2.5 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: blog, one-column, two-columns, right-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready @@ -22,7 +22,7 @@ For more information about Twenty Twelve please go to https://codex.wordpress.or == Copyright == -Twenty Twelve WordPress Theme, Copyright 2012-2017 WordPress.org & Automattic.com +Twenty Twelve WordPress Theme, Copyright 2012-2018 WordPress.org & Automattic.com Twenty Twelve is Distributed under the terms of the GNU GPL This program is free software: you can redistribute it and/or modify @@ -43,6 +43,11 @@ Source: https://github.com/aFarkas/html5shiv == Changelog == += 2.5 = +* Released: May 17, 2018 + +https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_2.5 + = 2.4 = * Released: November 14, 2017 diff --git a/wp-content/themes/twentytwelve/rtl.css b/wp-content/themes/twentytwelve/rtl.css index 45740f2d598af152e54f89d29fbbb94518c49e95..e43fca3baff4b9674f6d52837be5290d3f220d9b 100644 --- a/wp-content/themes/twentytwelve/rtl.css +++ b/wp-content/themes/twentytwelve/rtl.css @@ -134,6 +134,9 @@ label ~ span.required { margin: -18px -16px 0 0; margin: -1.285714286rem -1.142857143rem 0 0; } +#respond #wp-comment-cookies-consent { + margin: 0 0 0 10px; +} /* =Front page template styling diff --git a/wp-content/themes/twentytwelve/search.php b/wp-content/themes/twentytwelve/search.php index 97a309b12c9b265cf28dacd08047f7f6de75110f..9f40217061ef89e5300440693a8d3c81aa8e99b7 100644 --- a/wp-content/themes/twentytwelve/search.php +++ b/wp-content/themes/twentytwelve/search.php @@ -21,7 +21,10 @@ get_header(); ?> <?php twentytwelve_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() ); ?> <?php endwhile; ?> @@ -46,4 +49,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/twentytwelve/sidebar-front.php b/wp-content/themes/twentytwelve/sidebar-front.php index 990a09fec372644e23dbf34d5545345e2c99b6e4..5f1193537d9d8d69db574c04cd4605874890e6fc 100644 --- a/wp-content/themes/twentytwelve/sidebar-front.php +++ b/wp-content/themes/twentytwelve/sidebar-front.php @@ -15,8 +15,9 @@ * * If none of the sidebars have widgets, then let's bail early. */ -if ( ! is_active_sidebar( 'sidebar-2' ) && ! is_active_sidebar( 'sidebar-3' ) ) +if ( ! is_active_sidebar( 'sidebar-2' ) && ! is_active_sidebar( 'sidebar-3' ) ) { return; +} // If we get this far, we have widgets. Let do this. ?> @@ -32,4 +33,4 @@ if ( ! is_active_sidebar( 'sidebar-2' ) && ! is_active_sidebar( 'sidebar-3' ) ) <?php dynamic_sidebar( 'sidebar-3' ); ?> </div><!-- .second --> <?php endif; ?> -</div><!-- #secondary --> \ No newline at end of file +</div><!-- #secondary --> diff --git a/wp-content/themes/twentytwelve/sidebar.php b/wp-content/themes/twentytwelve/sidebar.php index a59dcc49b0a59a91def213ade2bea882dd68abc3..ca9dbddb7a037239f5659b41a1d89b944bad0426 100644 --- a/wp-content/themes/twentytwelve/sidebar.php +++ b/wp-content/themes/twentytwelve/sidebar.php @@ -14,4 +14,4 @@ <div id="secondary" class="widget-area" role="complementary"> <?php dynamic_sidebar( 'sidebar-1' ); ?> </div><!-- #secondary --> - <?php endif; ?> \ No newline at end of file + <?php endif; ?> diff --git a/wp-content/themes/twentytwelve/single.php b/wp-content/themes/twentytwelve/single.php index 38175246f11a559c46922a92a5a597370207f7d0..17a900c38becb1992e47524b70ee83cb48787cd0 100644 --- a/wp-content/themes/twentytwelve/single.php +++ b/wp-content/themes/twentytwelve/single.php @@ -12,7 +12,10 @@ get_header(); ?> <div id="primary" class="site-content"> <div id="content" role="main"> - <?php while ( have_posts() ) : the_post(); ?> + <?php + while ( have_posts() ) : + the_post(); +?> <?php get_template_part( 'content', get_post_format() ); ?> @@ -30,4 +33,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/twentytwelve/style.css b/wp-content/themes/twentytwelve/style.css index 9c4dce365b717ca9a81405e095f3c0df41623ec2..c5df75f4213dd1d029cb386b5f160763652754d9 100644 --- a/wp-content/themes/twentytwelve/style.css +++ b/wp-content/themes/twentytwelve/style.css @@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentytwelve/ Author: the WordPress team Author URI: https://wordpress.org/ Description: The 2012 theme for WordPress is a fully responsive theme that looks great on any device. Features include a front page template with its own widgets, an optional display font, styling for post formats on both index and single views, and an optional no-sidebar page template. Make it yours with a custom menu, header image, and background. -Version: 2.4 +Version: 2.5 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, right-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready @@ -694,6 +694,12 @@ footer[role="contentinfo"] a { footer[role="contentinfo"] a:hover { color: #21759b; } +.site-info span[role=separator] { + padding: 0 0.3em 0 0.6em; +} +.site-info span[role=separator]::before { + content: '\002f'; +} /* =Main content and comment content @@ -1354,6 +1360,12 @@ a.comment-edit-link:hover { line-height: 2; color: #5e5e5e; } +#respond #wp-comment-cookies-consent { + margin: 0 10px 0 0; +} +#respond .comment-form-cookies-consent label { + display: inline; +} .required { color: red; } diff --git a/wp-content/themes/twentytwelve/tag.php b/wp-content/themes/twentytwelve/tag.php index 7715302ca16fe9304747164977a85743851179c6..515521c789c74153d40125553d7e94211cdf3404 100644 --- a/wp-content/themes/twentytwelve/tag.php +++ b/wp-content/themes/twentytwelve/tag.php @@ -27,7 +27,8 @@ get_header(); ?> <?php /* Start the Loop */ - while ( have_posts() ) : the_post(); + while ( have_posts() ) : + the_post(); /* * Include the post format-specific template for the content. If you want to