Changeset 25023
- Timestamp:
- 08/15/2013 12:24:27 AM (11 years ago)
- Location:
- trunk/src/wp-content/themes/twentyfourteen
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/archive.php
r25021 r25023 50 50 twentyfourteen_get_template_part(); 51 51 endwhile; 52 twentyfourteen_ content_nav( 'nav-below');52 twentyfourteen_paging_nav(); 53 53 54 54 else : -
trunk/src/wp-content/themes/twentyfourteen/comments.php
r25021 r25023 57 57 58 58 <?php if ( ! comments_open() ) : ?> 59 <p class="no comments"><?php _e( 'Comments are closed.', 'twentyfourteen' ); ?></p>59 <p class="no-comments"><?php _e( 'Comments are closed.', 'twentyfourteen' ); ?></p> 60 60 <?php endif; ?> 61 61 -
trunk/src/wp-content/themes/twentyfourteen/content-post-format.php
r25021 r25023 4 4 * @subpackage Twenty_Fourteen 5 5 */ 6 $format = get_post_format();7 6 ?> 8 7 9 <article id="post-<?php the_ID(); ?>" <?php post_class( 'clearfix'); ?>>8 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 10 9 <?php 11 if ( 'gallery' == $format) :12 $images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC' ) );10 if ( has_post_format( 'gallery' ) ) : 11 $images = get_children( array( 'post_parent' => get_the_ID(), 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC' ) ); 13 12 if ( $images ) : 14 $image = array_shift( $images ); ?> 13 $image = array_shift( $images ); 14 ?> 15 15 <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentyfourteen' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="<?php the_ID(); ?>" class="attachment-featured-thumbnail"> 16 16 <?php echo wp_get_attachment_image( $image->ID, 'featured-thumbnail-large' ); ?> 17 </a><?php 17 </a> 18 <?php 18 19 endif; 19 20 endif; … … 21 22 22 23 <header class="entry-header"> 23 <?php 24 /* translators: used between list items, there is a space after the comma */ 25 $categories_list = get_the_category_list( __( ', ', 'twentyfourteen' ) ); 26 if ( $categories_list && twentyfourteen_categorized_blog() && 'post' == get_post_type() ) : 27 ?> 24 <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> 28 25 <div class="entry-meta"> 29 <span class="cat-links"><?php echo $categories_list; ?></span>30 </div> 26 <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span> 27 </div><!-- .entry-meta --> 31 28 <?php endif; ?> 32 29 33 <?php 34 /* Show title only if it exists */ 35 the_title( '<h1 class="entry-title"><a href="' . get_permalink() . '" rel="bookmark">', '</a></h1>' ); 36 ?> 30 <?php the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); ?> 37 31 38 32 <div class="entry-meta"> -
trunk/src/wp-content/themes/twentyfourteen/content-single.php
r25021 r25023 4 4 * @subpackage Twenty_Fourteen 5 5 */ 6 has_post_format()7 6 ?> 8 7 … … 28 27 29 28 <div class="entry-meta"> 30 <?php if ( has_post_format( ) ) : ?>29 <?php if ( has_post_format( array( 'status', 'chat', 'aside', 'link', 'quote', 'audio' ) ) ) : ?> 31 30 <span class="post-format"> 32 31 <a class="entry-format" href="<?php echo esc_url( get_post_format_link( get_post_format() ) ); ?>" title="<?php echo esc_attr( sprintf( __( 'All %s posts', 'twentyfourteen' ), get_post_format_string( get_post_format() ) ) ); ?>"><?php echo get_post_format_string( get_post_format() ); ?></a> -
trunk/src/wp-content/themes/twentyfourteen/featured-content.php
r25021 r25023 1 <?php 2 /** 3 * The template for displaying featured content. 4 * 5 * @todo: Add support for featured content. 6 * 7 * @package WordPress 8 * @subpackage Twenty_Fourteen 9 */ 10 ?> 11 1 12 <div class="featured-content-wrapper"> 2 13 <div id="featured-content" class="featured-content"> -
trunk/src/wp-content/themes/twentyfourteen/front-page.php
r25021 r25023 29 29 comments_template(); 30 30 endwhile; 31 32 twentyfourteen_content_nav( 'nav-below' ); 31 twentyfourteen_paging_nav(); 33 32 34 33 else : -
trunk/src/wp-content/themes/twentyfourteen/functions.php
r25021 r25023 1 1 <?php 2 2 /** 3 * Twenty Fourteen functions and definitions 3 * Twenty Fourteen functions and definitions. 4 * 5 * Sets up the theme and provides some helper functions, which are used in the 6 * theme as custom template tags. Others are attached to action and filter 7 * hooks in WordPress to change core functionality. 8 * 9 * When using a child theme (see http://codex.wordpress.org/Theme_Development 10 * and http://codex.wordpress.org/Child_Themes), you can override certain 11 * functions (those wrapped in a function_exists() call) by defining them first 12 * in your child theme's functions.php file. The child theme's functions.php 13 * file is included before the parent theme's file, so the child theme 14 * functions would be used. 15 * 16 * Functions that are not pluggable (not wrapped in function_exists()) are 17 * instead attached to a filter or action hook. 18 * 19 * For more information on hooks, actions, and filters, 20 * see http://codex.wordpress.org/Plugin_API 4 21 * 5 22 * @package WordPress … … 8 25 9 26 /** 10 * Set the content width based on the theme's design and stylesheet.11 * 27 * Sets up the content width value based on the theme's design. 28 * @see twentyfourteen_content_width() for template-specific adjustments. 12 29 */ 13 30 if ( ! isset( $content_width ) ) 14 $content_width = 474; /* pixels */ 15 16 function twentyfourteen_set_content_width() { 17 global $content_width; 18 if ( is_page_template( 'full-width-page.php' ) || is_attachment() ) 19 $content_width = 895; 20 } 21 add_action( 'template_redirect', 'twentyfourteen_set_content_width' ); 31 $content_width = 474; 22 32 23 33 if ( ! function_exists( 'twentyfourteen_setup' ) ) : … … 25 35 * Sets up theme defaults and registers support for various WordPress features. 26 36 * 27 * Note that this function is hooked into the after_setup_theme hook, which runs28 * before the init hook. The init hook is too late for some features, such as indicating29 * support post thumbnails.37 * Note that this function is hooked into the after_setup_theme hook, which 38 * runs before the init hook. The init hook is too late for some features, such 39 * as indicating support post thumbnails. 30 40 */ 31 41 function twentyfourteen_setup() { 32 42 33 /** 34 * Make theme available for translation 35 * Translations can be filed in the /languages/ directory 36 * If you're building a theme based on Twenty Fourteen, use a find and replace 37 * to change 'twentyfourteen' to the name of your theme in all the template files 43 /* 44 * Makes Twenty Fourteen available for translation. 45 * 46 * Translations can be added to the /languages/ directory. 47 * If you're building a theme based on Twenty Fourteen, use a find and 48 * replace to change 'twentyfourteen' to the name of your theme in all 49 * template files. 38 50 */ 39 51 load_theme_textdomain( 'twentyfourteen', get_template_directory() . '/languages' ); 40 52 41 /** 42 * Add default posts and comments RSS feed links to head 43 */ 53 // Adds RSS feed links to <head> for posts and comments. 44 54 add_theme_support( 'automatic-feed-links' ); 45 55 46 /** 47 * Enable support for Post Thumbnails 48 */ 56 // Enable support for Post Thumbnails. 49 57 add_theme_support( 'post-thumbnails', array( 'post' ) ); 50 58 51 /** 52 * Adding several sizes for Post Thumbnails 53 */ 59 // Adding several sizes for Post Thumbnails. 54 60 add_image_size( 'featured-thumbnail-large', 672, 0 ); 55 61 add_image_size( 'featured-thumbnail-featured', 672, 336, true ); 56 62 add_image_size( 'featured-thumbnail-formatted', 306, 0 ); 57 63 58 /** 59 * This theme uses wp_nav_menu() in one location. 64 // This theme uses wp_nav_menu() in two locations. 65 register_nav_menus( array( 66 'primary' => __( 'Top primary menu', 'twentyfourteen' ), 67 'secondary' => __( 'Secondary menu in left sidebar', 'twentyfourteen' ), 68 ) ); 69 70 /* 71 * Enable support for Post Formats. 72 * See http://codex.wordpress.org/Post_Formats 60 73 */ 61 register_nav_menus( array( 62 'primary' => __( 'Top primary menu', 'twentyfourteen' ), 63 'secondary' => __( 'Secondary menu in left sidebar', 'twentyfourteen' ) 64 ) ); 65 66 /** 67 * Enable support for Post Formats 68 */ 69 add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', 'gallery' ) ); 70 71 /** 74 add_theme_support( 'post-formats', array( 75 'aside', 'image', 'video', 'quote', 'link', 'gallery' 76 ) ); 77 78 /* 72 79 * This theme allows users to set a custom background. 73 80 */ … … 80 87 81 88 /** 89 * Adjusts content_width value for full width and attachment templates. 90 * 91 * @return void 92 */ 93 function twentyfourteen_content_width() { 94 if ( is_page_template( 'full-width-page.php' ) || is_attachment() ) 95 $GLOBALS['content_width'] = 895; 96 } 97 add_action( 'template_redirect', 'twentyfourteen_content_width' ); 98 99 /** 82 100 * Getter function for Featured Content Plugin. 83 *84 101 */ 85 102 function twentyfourteen_get_featured_posts() { … … 91 108 * So that we can use a condition like 92 109 * if ( twentyfourteen_has_featured_posts( 1 ) ) 93 *94 110 */ 95 111 function twentyfourteen_has_featured_posts( $minimum = 1 ) { … … 97 113 return false; 98 114 99 $featured_posts = apply_filters( 'twentyfourteen_get_featured_posts', array() );115 $featured_posts = apply_filters( 'twentyfourteen_get_featured_posts', array() ); 100 116 101 117 return is_array( $featured_posts ) && count( $featured_posts ) > absint( $minimum ); … … 103 119 104 120 /** 105 * Register widgetized area and update sidebar with default widgets 106 * 121 * Registers two widget areas. 122 * 123 * @return void 107 124 */ 108 125 function twentyfourteen_widgets_init() { … … 171 188 * Register Google fonts for Twenty Fourteen. 172 189 * 190 * @return void 173 191 */ 174 192 function twentyfourteen_fonts() { … … 181 199 182 200 /** 183 * Enqueue scripts and styles 184 * 201 * Enqueues scripts and styles for front end. 202 * 203 * @return void 185 204 */ 186 205 function twentyfourteen_scripts() { … … 202 221 * Enqueue Google fonts style to admin screen for custom header display. 203 222 * 223 * @return void 204 224 */ 205 225 function twentyfourteen_admin_fonts() { … … 209 229 210 230 /** 211 * Implement the Custom Header feature212 *213 */214 require( get_template_directory() . '/inc/custom-header.php' );215 216 /**217 231 * Sets the post excerpt length to 40 words. 218 232 * 233 * @param int $length 234 * @return int 219 235 */ 220 236 function twentyfourteen_excerpt_length( $length ) { … … 226 242 * Returns a "Continue Reading" link for excerpts 227 243 * 244 * @return string 228 245 */ 229 246 function twentyfourteen_continue_reading_link() { … … 232 249 233 250 /** 234 * Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and twentyeleven_continue_reading_link(). 251 * Replaces "[...]" (appended to automatically generated excerpts) with an 252 * ellipsis and twentyeleven_continue_reading_link(). 253 * 254 * @param string $more 255 * @return string 235 256 */ 236 257 function twentyfourteen_auto_excerpt_more( $more ) { … … 245 266 * function tied to the get_the_excerpt filter hook. 246 267 * 268 * @param string $output 269 * @return string 247 270 */ 248 271 function twentyfourteen_custom_excerpt_more( $output ) { … … 257 280 /** 258 281 * Prints the attached image with a link to the next attached image. 259 *260 * @since Twenty Thirteen 1.0261 282 * 262 283 * @return void … … 281 302 'post_mime_type' => 'image', 282 303 'order' => 'ASC', 283 'orderby' => 'menu_order ID' 304 'orderby' => 'menu_order ID', 284 305 ) ); 285 306 … … 428 449 429 450 /** 430 * Adds custom classes to the array of body classes. 431 * 451 * Extends the default WordPress body classes. 452 * 453 * Adds body classes to denote: 454 * 1. Single or multiple authors. 455 * 2. Index views. 456 * 457 * @param array $classes A list of existing body class values. 458 * @return array The filtered body class list. 432 459 */ 433 460 function twentyfourteen_body_classes( $classes ) { … … 445 472 446 473 /** 447 * Filters wp_title to print a neat <title> tag based on what is being viewed. 448 * 474 * Creates a nicely formatted and more specific title element text for output 475 * in head of document, based on current view. 476 * 477 * @param string $title Default title text for current view. 478 * @param string $sep Optional separator. 479 * @return string The filtered title. 449 480 */ 450 481 function twentyfourteen_wp_title( $title, $sep ) { 451 global $page , $paged;482 global $paged, $page; 452 483 453 484 if ( is_feed() ) 454 485 return $title; 455 486 456 // Add the blog name487 // Add the site name. 457 488 $title .= get_bloginfo( 'name' ); 458 489 459 // Add the blogdescription for the home/front page.490 // Add the site description for the home/front page. 460 491 $site_description = get_bloginfo( 'description', 'display' ); 461 492 if ( $site_description && ( is_home() || is_front_page() ) ) 462 $title .= "$sep $site_description";463 464 // Add a page number if necessary :493 $title = "$title $sep $site_description"; 494 495 // Add a page number if necessary. 465 496 if ( $paged >= 2 || $page >= 2 ) 466 $title .= "$sep " . sprintf( __( 'Page %s', 'twentyfourteen' ), max( $paged, $page ) );497 $title = "$title $sep " . sprintf( __( 'Page %s', 'twentyfourteen' ), max( $paged, $page ) ); 467 498 468 499 return $title; … … 471 502 472 503 /** 504 * Implement the Custom Header feature 505 * 506 */ 507 require get_template_directory() . '/inc/custom-header.php'; 508 509 /** 473 510 * Custom template tags for this theme. 474 511 */ -
trunk/src/wp-content/themes/twentyfourteen/image.php
r25021 r25023 70 70 </article><!-- #post-## --> 71 71 72 <nav id="image-navigation" class=" site-navigation">72 <nav id="image-navigation" class="navigation image-navigation"> 73 73 <?php previous_image_link( false, __( '<div class="previous-image">Previous Image</div>', 'twentyfourteen' ) ); ?> 74 74 <?php next_image_link( false, __( '<div class="next-image">Next Image</div>', 'twentyfourteen' ) ); ?> -
trunk/src/wp-content/themes/twentyfourteen/inc/template-tags.php
r25021 r25023 2 2 /** 3 3 * Custom template tags for this theme. 4 *5 * Eventually, some of the functionality here could be replaced by core features6 4 * 7 5 * @package WordPress … … 9 7 */ 10 8 11 if ( ! function_exists( 'twentyfourteen_content_nav' ) ) : 12 /** 13 * Display navigation to next/previous pages when applicable 14 * 15 */ 16 function twentyfourteen_content_nav( $nav_id ) { 17 global $wp_query, $post; 18 19 // Don't print empty markup on single pages if there's nowhere to navigate. 20 if ( is_single() ) { 21 $previous = ( is_attachment() ) ? get_post( $post->post_parent ) : get_adjacent_post( false, '', true ); 22 $next = get_adjacent_post( false, '', false ); 23 24 if ( ! $next && ! $previous ) 25 return; 26 } 27 28 // Don't print empty markup in archives if there's only one page. 29 if ( $wp_query->max_num_pages < 2 && ( is_home() || is_archive() || is_search() ) ) 9 if ( ! function_exists( 'twentyfourteen_paging_nav' ) ) : 10 /** 11 * Displays navigation to next/previous set of posts when applicable. 12 * 13 * @return void 14 */ 15 function twentyfourteen_paging_nav() { 16 // Don't print empty markup if there's only one page. 17 if ( $GLOBALS['wp_query']->max_num_pages < 2 ) 30 18 return; 31 19 32 $nav_class = 'site-navigation paging-navigation'; 33 if ( is_single() ) 34 $nav_class = 'site-navigation post-navigation'; 35 36 ?> 37 <nav role="navigation" id="<?php echo $nav_id; ?>" class="<?php echo $nav_class; ?>"> 20 $paged = get_query_var( 'paged' ) ? intval( get_query_var( 'paged' ) ) : 1; 21 $pagenum_link = html_entity_decode( get_pagenum_link() ); 22 $query_args = array(); 23 $url_parts = explode( '?', $pagenum_link ); 24 25 if ( isset( $url_parts[1] ) ) 26 wp_parse_str( $url_parts[1], $query_args ); 27 28 $pagenum_link = remove_query_arg( array_keys( $query_args ), $pagenum_link ); 29 $pagenum_link = trailingslashit( $pagenum_link ) . '%_%'; 30 31 $format = $GLOBALS['wp_rewrite']->using_index_permalinks() && ! strpos( $pagenum_link, 'index.php' ) ? 'index.php/' : ''; 32 $format .= $GLOBALS['wp_rewrite']->using_permalinks() ? user_trailingslashit( 'page/%#%', 'paged' ) : '?paged=%#%'; 33 34 $links = paginate_links( array( 35 'base' => $pagenum_link, 36 'format' => $format, 37 'total' => $GLOBALS['wp_query']->max_num_pages, 38 'current' => $paged, 39 'mid_size' => 1, 40 'add_args' => array_map( 'urlencode', $query_args ), 41 'prev_text' => __( '← Previous', 'twentyfourteen' ), 42 'next_text' => __( 'Next →', 'twentyfourteen' ), 43 ) ); 44 45 if ( $links ) : 46 47 ?> 48 <nav class="navigation paging-navigation" role="navigation"> 49 <h1 class="screen-reader-text"><?php _e( 'Posts navigation', 'twentyfourteen' ); ?></h1> 50 <div class="pagination loop-pagination"> 51 <?php echo $links; ?> 52 </div><!-- .pagination --> 53 </nav><!-- .navigation --> 54 <?php 55 endif; 56 } 57 endif; 58 59 if ( ! function_exists( 'twentyfourteen_post_nav' ) ) : 60 /** 61 * Displays navigation to next/previous post when applicable. 62 * 63 * @return void 64 */ 65 function twentyfourteen_post_nav() { 66 // Don't print empty markup if there's nowhere to navigate. 67 $previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : get_adjacent_post( false, '', true ); 68 $next = get_adjacent_post( false, '', false ); 69 70 if ( ! $next && ! $previous ) 71 return; 72 73 ?> 74 <nav class="navigation post-navigation" role="navigation"> 38 75 <h1 class="screen-reader-text"><?php _e( 'Post navigation', 'twentyfourteen' ); ?></h1> 39 40 <?php if ( is_single() ) : // navigation links for single posts ?> 41 42 <?php previous_post_link( '%link', __( '<div class="nav-previous"><span class="meta-nav">Previous Post</span>%title</div>', 'twentyfourteen' ) ); ?> 43 <?php next_post_link( '%link', __( '<div class="nav-next"><span class="meta-nav">Next Post</span>%title</div>', 'twentyfourteen' ) ); ?> 44 45 <?php elseif ( $wp_query->max_num_pages > 1 && ( is_home() || is_archive() || is_search() ) ) : // navigation links for home, archive, and search pages ?> 46 47 <div class="pagination loop-pagination"> 48 <?php 49 /* Get the current page. */ 50 $current = ( get_query_var( 'paged' ) ? absint( get_query_var( 'paged' ) ) : 1 ); 51 52 /* Get the max number of pages. */ 53 $max_num_pages = intval( $wp_query->max_num_pages ); 54 55 /* Set up arguments for the paginate_links() function. */ 56 $args = array( 57 'base' => add_query_arg( 'paged', '%#%' ), 58 'format' => '', 59 'total' => $max_num_pages, 60 'current' => $current, 61 'prev_text' => __( '← Previous', 'twentyfourteen' ), 62 'next_text' => __( 'Next →', 'twentyfourteen' ), 63 'mid_size' => 1 64 ); 65 66 echo paginate_links( $args ) 67 ?> 68 </div> 69 <?php endif; ?> 70 71 </nav><!-- #<?php echo $nav_id; ?> --> 72 <?php 73 } 74 endif; // twentyfourteen_content_nav 76 <div class="nav-links"> 77 <?php 78 previous_post_link( '%link', __( '<span class="meta-nav">Previous Post</span>%title', 'twentyfourteen' ) ); 79 next_post_link( '%link', __( '<span class="meta-nav">Next Post</span>%title', 'twentyfourteen' ) ); 80 ?> 81 </div><!-- .nav-links --> 82 </nav><!-- .navigation --> 83 <?php 84 } 85 endif; 75 86 76 87 if ( ! function_exists( 'twentyfourteen_comment' ) ) : … … 131 142 * Prints HTML with meta information for the current post-date/time and author. 132 143 * 144 * @return void 133 145 */ 134 146 function twentyfourteen_posted_on() { … … 151 163 * Returns true if a blog has more than 1 category 152 164 * 165 * @return boolean 153 166 */ 154 167 function twentyfourteen_categorized_blog() { -
trunk/src/wp-content/themes/twentyfourteen/index.php
r25021 r25023 25 25 twentyfourteen_get_template_part(); 26 26 endwhile; 27 twentyfourteen_ content_nav( 'nav-below');27 twentyfourteen_paging_nav(); 28 28 29 29 else : -
trunk/src/wp-content/themes/twentyfourteen/page.php
r25021 r25023 29 29 ?> 30 30 31 </div><!-- #content .site-content-->32 </div><!-- #primary .content-area-->31 </div><!-- #content --> 32 </div><!-- #primary --> 33 33 34 34 <?php -
trunk/src/wp-content/themes/twentyfourteen/rtl.css
r24832 r25023 26 26 } 27 27 28 ul ul, ol ol, ul ol, ol ul { 28 li > ul, 29 li > ol { 29 30 margin-right: 20px; 30 31 margin-right: 2.0rem; … … 296 297 } 297 298 298 .comment-meta ,299 .comment-metadata, 299 300 .comment-content { 300 301 padding-right: 36px; … … 309 310 } 310 311 311 .comment list .children {312 .comment-list .children { 312 313 margin-right: 20px; 313 314 margin-right: 2.0rem; … … 325 326 ----------------------------------------------- */ 326 327 327 .widget ul ul, 328 .widget ol ol, 329 .widget ul ol, 330 .widget ol ul { 328 .widget li > ul, 329 .widget li > ol { 331 330 margin: 0 10px 0 0; 332 331 margin: 0 1.0rem 0 0; … … 338 337 margin-right: 0.1rem; 339 338 margin-left: auto; 340 }341 342 /* Authors Widget */343 .widget_authors img {344 margin: 0 0 9px 5px;345 margin: 0 0 0.9rem 0.5rem;346 339 } 347 340 … … 401 394 #primary .byline a:before, 402 395 #primary .comments-link a:before, 403 #primary.edit-link a:before,396 .entry-comment .edit-link a:before, 404 397 .attachment span.entry-date:before, 405 398 #primary .full-size-link a:before, … … 447 440 } 448 441 449 #primary.edit-link a:before {442 .entry-comment .edit-link a:before { 450 443 margin: -1px 0 0 2px; 451 444 margin: -0.1rem 0 0 0.2rem; 452 445 } 453 446 454 .page #primary.edit-link a:before {447 .page .entry-comment .edit-link a:before { 455 448 margin: 5px 0 0 2px; 456 449 margin: 0.5rem 0 0 0.2rem; … … 504 497 #comments #respond, 505 498 .comments-area article, 506 .comment list li.trackback,507 .comment list li.pingback,508 .post-navigation .nav-previous,509 .post-navigation .nav-next{499 .comment-list li.trackback, 500 .comment-list li.pingback, 501 .post-navigation [rel="prev"], 502 .post-navigation [rel="next"] { 510 503 padding-left: 9.12778904%; 511 504 padding-right: 9.12778904%; … … 523 516 .full-width #comments #respond, 524 517 .full-width .comments-area article, 525 .full-width .comment list li.trackback,526 .full-width .comment list li.pingback {518 .full-width .comment-list li.trackback, 519 .full-width .comment-list li.pingback { 527 520 padding-left: 6.04307432%; 528 521 padding-right: 6.04307432%; … … 568 561 #comments #respond, 569 562 .comments-area article, 570 .comment list li.trackback,571 .comment list li.pingback,572 .post-navigation .nav-previous,573 .post-navigation .nav-next{563 .comment-list li.trackback, 564 .comment-list li.pingback, 565 .post-navigation [rel="prev"], 566 .post-navigation [rel="next"] { 574 567 padding-left: 12.39493534%; 575 568 padding-right: 17.06896551%; … … 580 573 } 581 574 582 .comment list,583 .full-width .comment list {575 .comment-list, 576 .full-width .comment-list { 584 577 margin-right: -70px; 585 578 margin-right: -7.0rem; … … 603 596 .full-width #comments #respond, 604 597 .full-width .comments-area article, 605 .full-width .comment list li.trackback,606 .full-width .comment list li.pingback {598 .full-width .comment-list li.trackback, 599 .full-width .comment-list li.pingback { 607 600 padding-left: 11.30926724%; 608 601 padding-right: 11.30926724%; … … 701 694 #comments #respond, 702 695 .comments-area article, 703 .comment list li.trackback,704 .comment list li.pingback,705 .post-navigation .nav-previous,706 .post-navigation .nav-next{696 .comment-list li.trackback, 697 .comment-list li.pingback, 698 .post-navigation [rel="prev"], 699 .post-navigation [rel="next"] { 707 700 padding-left: 9.87001616%; 708 701 padding-right: 9.19765166%; 709 702 } 710 703 711 .comment list,712 .full-width .comment list {704 .comment-list, 705 .full-width .comment-list { 713 706 margin-right: 0; 714 707 margin-left: auto; … … 726 719 .full-width #comments #respond, 727 720 .full-width .comments-area article, 728 .full-width .comment list li.trackback,729 .full-width .comment list li.pingback {721 .full-width .comment-list li.trackback, 722 .full-width .comment-list li.pingback { 730 723 padding-left: 5.882236%; 731 724 padding-right: 5.882236%; … … 772 765 #comments #respond, 773 766 .comments-area article, 774 .comment list li.trackback,775 .comment list li.pingback,776 .post-navigation .nav-previous,777 .post-navigation .nav-next{767 .comment-list li.trackback, 768 .comment-list li.pingback, 769 .post-navigation [rel="prev"], 770 .post-navigation [rel="next"] { 778 771 padding-left: 12.44146986%; 779 772 padding-right: 16.77524429%; … … 784 777 } 785 778 786 .comment list,787 .full-width .comment list {779 .comment-list, 780 .full-width .comment-list { 788 781 margin-right: -70px; 789 782 margin-right: -7.0rem; … … 812 805 .full-width #comments #respond, 813 806 .full-width .comments-area article, 814 .full-width .comment list li.trackback,815 .full-width .comment list li.pingback {807 .full-width .comment-list li.trackback, 808 .full-width .comment-list li.pingback { 816 809 padding-left: 11.21868265%; 817 810 padding-right: 11.21868265%; … … 853 846 .full-width #comments #respond, 854 847 .full-width .comments-area article, 855 .full-width .comment list li.trackback,856 .full-width .comment list li.pingback {857 padding-left: 0; 858 } 859 } 848 .full-width .comment-list li.trackback, 849 .full-width .comment-list li.pingback { 850 padding-left: 0; 851 } 852 } -
trunk/src/wp-content/themes/twentyfourteen/search.php
r25021 r25023 24 24 twentyfourteen_get_template_part(); 25 25 endwhile; 26 27 twentyfourteen_content_nav( 'nav-below' ); 26 twentyfourteen_paging_nav(); 28 27 29 28 else : -
trunk/src/wp-content/themes/twentyfourteen/sidebar-content.php
r24832 r25023 31 31 </aside> 32 32 <?php endif; // end sidebar widget area ?> 33 </div><!-- #content-sidebar .widget-area-->33 </div><!-- #content-sidebar --> -
trunk/src/wp-content/themes/twentyfourteen/sidebar.php
r25021 r25023 1 1 <?php 2 2 /** 3 * The Sidebar containing the main widget area s.3 * The Sidebar containing the main widget area. 4 4 * 5 5 * @package WordPress … … 21 21 </nav> 22 22 <?php endif; ?> 23 </div> 23 </div><!-- #secondary-top --> 24 24 25 25 <div id="secondary-bottom" class="widget-area" role="complementary"> … … 28 28 dynamic_sidebar( 'sidebar-1' ); 29 29 ?> 30 </div><!-- .widget-area-->30 </div><!-- #secondary-bottom --> 31 31 </div><!-- #secondary --> -
trunk/src/wp-content/themes/twentyfourteen/single.php
r25021 r25023 17 17 get_template_part( 'content', 'single' ); 18 18 19 twentyfourteen_ content_nav( 'nav-below');19 twentyfourteen_post_nav(); 20 20 21 21 // If comments are open or we have at least one comment, load up the comment template. -
trunk/src/wp-content/themes/twentyfourteen/style.css
r25021 r25023 1781 1781 margin: 2.4rem 0 0; 1782 1782 } 1783 .post-navigation .nav-previous,1784 .post-navigation .nav-next,1783 .post-navigation [rel="prev"], 1784 .post-navigation [rel="next"], 1785 1785 #image-navigation .previous-image, 1786 1786 #image-navigation .next-image { … … 1794 1794 width: 100%; 1795 1795 } 1796 .post-navigation .nav-next{1796 .post-navigation [rel="next"] { 1797 1797 margin: 0; 1798 1798 } … … 1864 1864 text-transform: uppercase; 1865 1865 } 1866 # respond #commentform {1866 #commentform { 1867 1867 background: #fff; 1868 1868 padding: 0 10px; … … 1966 1966 } 1967 1967 .comment-content ul, 1968 .comment-content ol 1968 .comment-content ol { 1969 1969 margin: 0 0 24px 22px; 1970 1970 margin: 0 0 2.4rem 2.2rem; 1971 1971 } 1972 .comment-content ul ul, 1973 .comment-content ol ol, 1974 .comment-content ul ol, 1975 .comment-content ol ul { 1972 .comment-content li > ul, 1973 .comment-content li > ol { 1976 1974 margin-bottom: 0; 1977 1975 } … … 1998 1996 margin-bottom: 2.4rem; 1999 1997 } 2000 .no comments {1998 .no-comments { 2001 1999 color: #8c8c8c; 2002 2000 font-size: 16px; … … 2077 2075 margin: 0; 2078 2076 } 2079 .widget ul ul, 2080 .widget ol ol, 2081 .widget ul ol, 2082 .widget ol ul { 2077 .widget li > ul, 2078 .widget li > ol { 2083 2079 margin: 0 0 0 10px; 2084 2080 margin: 0 0 0 1.0rem; … … 2090 2086 font-weight: 900; 2091 2087 line-height: 1.7142857142; 2088 margin: 0 0 24px 0; 2092 2089 margin: 0 0 2.4rem 0; 2093 margin: 0 0 24px 0;2094 2090 text-transform: uppercase; 2095 2091 } … … 2146 2142 } 2147 2143 2148 /* Authors Widget */2149 .widget_authors > ul > li {2150 list-style: none;2151 margin-bottom: 18px;2152 margin-bottom: 1.8rem;2153 }2154 .widget_authors > ul > li:last-child {2155 margin-bottom: 0;2156 }2157 .widget_authors img {2158 border-radius: 2;2159 margin: 0 5px 9px 0;2160 margin: 0 0.5rem 0.9rem 0;2161 vertical-align: middle;2162 }2163 .widget_authors ul ul {2164 margin: 0;2165 }2166 2167 /* Author Grid Widget */2168 .widget_author_grid .avatar {2169 max-width: none;2170 }2171 2172 /* Blog Subscription */2173 .widget_blog_subscription input[type="text"] {2174 padding: 4px !important;2175 padding: 0.4rem !important;2176 }2177 2178 2144 /* Caledar widget*/ 2179 2145 .widget_calendar #wp-calendar a { … … 2226 2192 } 2227 2193 2228 /* Contact Info Widget */2229 .widget_contact_info #contact-map {2230 margin-bottom: 18px;2231 margin-bottom: 1.8rem;2232 }2233 .widget_contact_info #contact-info-map-canvas {2234 height: 168px;2235 height: 16.8rem;2236 }2237 2238 /* Flickr Widget (WP.com) */2239 .widget_flickr #flickr_badge_uber_wrapper {2240 margin-top: 4px;2241 margin-top: 0.4rem;2242 }2243 .widget_flickr #flickr_badge_uber_wrapper a:link,2244 .widget_flickr #flickr_badge_uber_wrapper a:active,2245 .widget_flickr #flickr_badge_uber_wrapper a:visited {2246 color: #fff;2247 }2248 .widget_flickr #flickr_badge_uber_wrapper a:hover {2249 color: #5FF23D;2250 }2251 .widget_flickr #flickr_badge_wrapper {2252 background-color: transparent;2253 border: none;2254 }2255 2256 /* Gravatar Profile widget */2257 .widget-area .widget-grofile h4 {2258 color: rgba(255, 255, 255, 0.75);2259 font-size: 11px;2260 font-size: 1.1rem;2261 line-height: 1.6363636363;2262 margin: 18px 0 0;2263 margin: 1.8rem 0 0;2264 text-transform: uppercase;2265 }2266 .widget-grofile .grofile-accounts {2267 margin-top: 4px;2268 margin-top: 0.4rem;2269 }2270 2271 /* Milestone Widget */2272 .widget-area .milestone-widget .milestone-content {2273 max-width: 100%;2274 }2275 .widget-area .milestone-countdown,2276 .widget-area .milestone-message {2277 border-color: rgba(255, 255, 255, 0.1);2278 border-top: 0;2279 }2280 .widget-area .milestone-header,2281 .widget-area .milestone-countdown,2282 .widget-area .milestone-message {2283 background-color: rgba(255, 255, 255, 0.1);2284 border: 1px solid rgba(255, 255, 255, 0.15);2285 color: rgba(255, 255, 255, 0.75);2286 }2287 .widget-area .milestone-countdown {2288 background-color: rgba(255, 255, 255, 0.1);2289 }2290 .widget-area .milestone-widget {2291 margin-bottom: 48px;2292 margin-bottom: 4.8rem;2293 }2294 .widget-area .milestone-content {2295 margin-top: 0;2296 }2297 2298 2194 /* RSS Widget */ 2299 2195 .widget_rss li { … … 2335 2231 .search-submit { 2336 2232 display: none; 2337 }2338 2339 /* Twitter Widget */2340 .widget_twitter li {2341 margin-bottom: 18px;2342 margin-bottom: 1.8rem;2343 }2344 .widget_twitter li:last-child {2345 margin-bottom: 0;2346 }2347 .widget_twitter li a {2348 word-wrap: break-word;2349 }2350 .widget_twitter iframe {2351 margin: 18px 0 0;2352 margin: 1.8rem 0 0;2353 2233 } 2354 2234 … … 2453 2333 background-color: rgba(0, 0, 0, 0.02); 2454 2334 } 2455 #content-sidebar .widget_flickr #flickr_badge_uber_wrapper a:link, 2456 #content-sidebar .widget_flickr #flickr_badge_uber_wrapper a:active, 2457 #content-sidebar .widget_flickr #flickr_badge_uber_wrapper a:visited { 2458 color: #2b2b2b; 2459 } 2460 #content-sidebar .widget_flickr #flickr_badge_uber_wrapper a:hover { 2461 color: #41a62a; 2462 } 2463 #content-sidebar .widget-grofile h4 { 2464 color: #2b2b2b; 2465 font-size: 14px; 2466 font-size: 1.4rem; 2467 font-weight: 900; 2468 line-height: 1.2857142857; 2469 } 2470 #content-sidebar .milestone-countdown, 2471 #content-sidebar .milestone-message { 2472 border-color: rgba(255, 255, 255, 0.1); 2473 border-top: 0; 2474 } 2475 #content-sidebar .milestone-header, 2476 #content-sidebar .milestone-countdown, 2477 #content-sidebar .milestone-message { 2478 background-color: #000; 2479 border: 1px solid rgba(0, 0, 0, 0.1); 2480 color: #fff; 2481 } 2482 #content-sidebar .milestone-countdown { 2483 background-color: #fff; 2484 color: #2b2b2b; 2485 } 2486 #content-sidebar .widget_rss li, 2487 #content-sidebar .widget_twitter li { 2335 #content-sidebar .widget_rss li { 2488 2336 margin-bottom: 0; 2489 }2490 #content-sidebar .widget .widgets-multi-column-grid li {2491 border-top: none;2492 padding: 0 8px 6px 0;2493 padding: 0 0.8rem 0.6rem 0;2494 2337 } 2495 2338 … … 2502 2345 box-sizing: border-box; 2503 2346 } 2504 2505 2506 /* =Jetpack2507 ----------------------------------------------- */2508 2509 /* Infinite Scroll */2510 2511 /* Hide elements when IS is in use */2512 .infinite-scroll #nav-below,2513 .infinite-scroll.neverending #colophon {2514 display: none;2515 }2516 .infinite-scroll #content {2517 margin-bottom: 48px;2518 margin-bottom: 4.8rem;2519 }2520 #infinite-handle {2521 margin-top: 48px;2522 margin-top: 4.8rem;2523 text-align: center;2524 }2525 #infinite-handle span {2526 background-color: #000;2527 border: 0;2528 border-radius: 2px;2529 color: #fff;2530 font-weight: 700;2531 font-size: 12px;2532 font-size: 1.2rem;2533 line-height: 1;2534 padding: 11px 35px 10px;2535 padding: 1.1rem 3.5rem 1.0rem;2536 text-transform: uppercase;2537 }2538 #infinite-handle span:before {2539 color: #fff;2540 }2541 #infinite-handle span:hover {2542 background-color: #41a62a;2543 }2544 .infinite-loader {2545 margin: 48px auto;2546 margin: 4.8rem auto;2547 width: 25px;2548 width: 2.5rem;2549 height: 24px;2550 height: 2.4rem;2551 }2552 #infinite-footer {2553 z-index: 10;2554 }2555 #infinite-footer .container {2556 border-width: 1px 1px 0 0;2557 margin: 0;2558 }2559 /* Reset when IS is finished */2560 .infinite-scroll.infinity-end #content {2561 margin-bottom: 0;2562 }2563 .infinite-end.neverending #colophon {2564 display: block;2565 }2566 2567 2568 /* Sharing */2569 #main div.sharedaddy div.sd-block {2570 border-top: 1px dotted rgba(0, 0, 0, 0.1);2571 }2572 #main div.sharedaddy h3.sd-title {2573 font-size: 11px;2574 font-size: 1.1rem;2575 font-family: lato, sans-serif;2576 text-transform: uppercase;2577 }2578 #main div.sharedaddy .sd-like h3.sd-title {2579 width: 17.875%;2580 }2581 .entry-content > .pd-rating .rating-msg {2582 font-size: 12px;2583 font-size: 1.2rem;2584 }2585 2586 /* Stats image */2587 img#wpstats {2588 margin-top: -5px;2589 margin-top: -0.5rem;2590 position: absolute;2591 }2592 2593 /* Subscription */2594 .jetpack_subscription_widget input[type="text"] {2595 padding: 4px !important;2596 width: 100% !important;2597 }2598 .comment-subscription-form {2599 margin-bottom: 0;2600 }2601 2602 2603 /* =WP.com2604 ----------------------------------------------- */2605 2606 /* Prevent stats images to break the layout */2607 img[src^="http://botd"] {2608 position: absolute;2609 }2610 2611 /* Corrects line number misalignemnt in GitHub Gist embeds */2612 .gist .gist-file .gist-data .line-numbers span {2613 line-height: 1.7142857142;2614 }2615 .entry-content .gist table {2616 margin-bottom: 0;2617 }2618 2619 2347 2620 2348 /* =Media Queries … … 2928 2656 } 2929 2657 .comments-title, 2930 .no comments,2658 .no-comments, 2931 2659 #comments #respond, 2932 2660 .comments-area article, 2933 2661 .comment-list li.trackback, 2934 2662 .comment-list li.pingback, 2935 .post-navigation .nav-previous,2936 .post-navigation .nav-next{2663 .post-navigation [rel="prev"], 2664 .post-navigation [rel="next"] { 2937 2665 padding-right: 9.12778904%; 2938 2666 padding-left: 9.12778904%; … … 3031 2759 } 3032 2760 .comments-title, 3033 .no comments,2761 .no-comments, 3034 2762 #comments #respond, 3035 2763 .comments-area article, 3036 2764 .comment-list li.trackback, 3037 2765 .comment-list li.pingback, 3038 .post-navigation .nav-previous,3039 .post-navigation .nav-next{2766 .post-navigation [rel="prev"], 2767 .post-navigation [rel="next"] { 3040 2768 padding-right: 12.39493534%; 3041 2769 padding-left: 17.06896551%; … … 3226 2954 } 3227 2955 .comments-title, 3228 .no comments,2956 .no-comments, 3229 2957 #comments #respond, 3230 2958 .comments-area article, 3231 2959 .comment-list li.trackback, 3232 2960 .comment-list li.pingback, 3233 .post-navigation .nav-previous,3234 .post-navigation .nav-next{2961 .post-navigation [rel="prev"], 2962 .post-navigation [rel="next"] { 3235 2963 padding-right: 9.87001616%; 3236 2964 padding-left: 9.19765166%; … … 3319 3047 } 3320 3048 .comments-title, 3321 .no comments,3049 .no-comments, 3322 3050 #comments #respond, 3323 3051 .comments-area article, 3324 3052 .comment-list li.trackback, 3325 3053 .comment-list li.pingback, 3326 .post-navigation .nav-previous,3327 .post-navigation .nav-next{3054 .post-navigation [rel="prev"], 3055 .post-navigation [rel="next"] { 3328 3056 padding-right: 12.44146986%; 3329 3057 padding-left: 16.77524429%;
Note: See TracChangeset
for help on using the changeset viewer.