Changeset 24391
- Timestamp:
- 05/31/2013 05:45:00 PM (11 years ago)
- Location:
- trunk/wp-content/themes/twentythirteen
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentythirteen/content-audio.php
r24131 r24391 20 20 </header><!-- .entry-header --> 21 21 22 <div class="entry- media">22 <div class="entry-content"> 23 23 <div class="audio-content"> 24 <?php the_post_format_audio(); ?> 24 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentythirteen' ) ); ?> 25 <?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?> 25 26 </div><!-- .audio-content --> 26 </div><!-- .entry-media -->27 28 <div class="entry-content">29 <?php the_remaining_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentythirteen' ) ); ?>30 <?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>31 27 </div><!-- .entry-content --> 32 28 -
trunk/wp-content/themes/twentythirteen/content-chat.php
r24167 r24391 21 21 22 22 <div class="entry-content"> 23 <?php the_ post_format_chat(); ?>23 <?php the_content(); ?> 24 24 <?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?> 25 25 </div><!-- .entry-content --> -
trunk/wp-content/themes/twentythirteen/content-gallery.php
r24331 r24391 25 25 <?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?> 26 26 <?php else : ?> 27 <?php the_post_format_gallery(); ?>27 <?php echo get_post_gallery(); ?> 28 28 <?php endif; // is_single() ?> 29 29 </div><!-- .entry-content --> -
trunk/wp-content/themes/twentythirteen/content-image.php
r24131 r24391 10 10 11 11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 12 <div class="entry-media">13 <?php the_post_format_image( 'twentythirteen-image-post' ); ?>14 </div><!-- .entry-media -->15 16 12 <header class="entry-header"> 17 13 <?php if ( is_single() ) : ?> … … 25 21 26 22 <div class="entry-content"> 27 <?php the_ remaining_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentythirteen' ) ); ?>23 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentythirteen' ) ); ?> 28 24 <?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?> 29 25 </div><!-- .entry-content --> -
trunk/wp-content/themes/twentythirteen/content-video.php
r24131 r24391 10 10 11 11 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 12 <div class="entry-media">13 <?php the_post_format_video(); ?>14 </div><!-- .entry-media -->15 16 12 <header class="entry-header"> 17 13 <?php if ( is_single() ) : ?> … … 25 21 26 22 <div class="entry-content"> 27 <?php the_ remaining_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentythirteen' ) ); ?>23 <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentythirteen' ) ); ?> 28 24 <?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?> 29 25 </div><!-- .entry-content --> -
trunk/wp-content/themes/twentythirteen/css/editor-style.css
r24347 r24391 15 15 * 6.0 - Tables 16 16 * 7.0 - Images 17 * 8.0 - Post Formats 18 * 9.0 - RTL 17 * 8.0 - RTL 19 18 * ---------------------------------------------------------------------------- 20 19 */ … … 366 365 } 367 366 368 /** 369 * 8.0 Post Formats 370 * ---------------------------------------------------------------------------- 371 */ 372 373 /* Aside */ 374 .post-format-aside { 375 background-color: #f7f5e7; 376 } 377 378 .post-format-aside blockquote { 379 font-size: 100%; 380 font-weight: normal; 381 } 382 383 .post-format-aside cite { 384 font-size: 100%; 385 text-transform: none; 386 } 387 388 .post-format-aside cite:before { 389 content: "\2014"; 390 margin-right: 5px; 391 } 392 393 /* Audio */ 394 .post-format-audio { 395 background-color: #db572f; 396 } 397 398 .post-format-audio a { 399 color: #fbfaf3; 400 } 401 402 /* Chat */ 403 .post-format-chat { 404 background-color: #eadaa6; 405 } 406 407 .post-format-chat a { 408 color: #722d19; 409 } 410 411 /* Gallery */ 412 .post-format-gallery { 413 background-color: #fbca3c; 414 } 415 416 .post-format-gallery a { 417 color: #722d19; 418 } 419 420 /* Image: same as Standard/Defaults */ 421 422 /* Link */ 423 .post-format-link { 424 background-color: #f7f5e7; 425 } 426 427 /* Quote */ 428 .post-format-quote { 429 background-color: #210d10; 430 color: #f7f5e7; 431 } 432 433 .post-format-quote blockquote { 434 font-size: 28px; 435 font-style: italic; 436 font-weight: 300; 437 margin: 0; 438 padding-left: 75px; 439 position: relative; 440 } 441 442 .post-format-quote blockquote:before { 443 content: '\201C'; 444 font-size: 140px; 445 font-weight: 400; 446 line-height: .8; 447 padding-right: 25px; 448 position: absolute; 449 left: -15px; 450 top: -3px; 451 } 452 453 .post-format-quote a { 454 color: #e63f2a; 455 } 456 457 .post-format-quote .quote-caption, 458 .post-format-quote blockquote small, 459 .post-format-quote blockquote cite { 460 display: block; 461 font-size: 16px; 462 } 463 464 /* Status */ 465 .post-format-status { 466 background-color: #722d19; 467 color: #f7f5e7; 468 font-style: italic; 469 font-weight: 300; 470 padding: 0; 471 padding-left: 35px; 472 } 473 474 .post-format-status.mceContentBody { 475 font-size: 24px; 476 } 477 478 .post-format-status:before { 479 background-size: 4px 4px; 480 background: url(../images/dotted-line.png) repeat-y left bottom; 481 content: ""; 482 display: block; 483 height: 100%; 484 position: absolute; 485 left: 15px; 486 top: 0; 487 width: 1px; 488 } 489 490 .post-format-status p:first-child:before { 491 background-color: rgba(0, 0, 0, 0.65); 492 content: ""; 493 height: 3px; 494 width: 13px; 495 margin-top: 13px; 496 position: absolute; 497 left: 9px; 498 } 499 500 .post-format-status a { 501 color: #eadaa6; 502 } 503 504 /* Video */ 505 .post-format-video { 506 background-color: #db572f; 507 } 508 509 .post-format-video a { 510 color: #fbfaf3; 511 } 512 513 514 /** 515 * 9.0 RTL 367 368 /** 369 * 8.0 RTL 516 370 * ---------------------------------------------------------------------------- 517 371 */ -
trunk/wp-content/themes/twentythirteen/css/ie.css
r24239 r24391 11 11 .date a:before:hover, 12 12 .entry-meta .author a:before:hover, 13 .format-audio .entry- media:before:hover,13 .format-audio .entry-content:before:hover, 14 14 .comments-link a:before:hover, 15 15 .tags-links a:first-child:before:hover, … … 281 281 } 282 282 283 .ie7 .format-quote .quote {284 padding: 0;285 }286 287 283 /* RTL for Internet Explorer 7 & 8 */ 288 .rtl .format-audio .entry- media:before,284 .rtl .format-audio .entry-content:before, 289 285 .rtl .comment-reply-link:before, 290 286 .rtl .comment-reply-login:before { -
trunk/wp-content/themes/twentythirteen/functions.php
r24390 r24391 95 95 add_theme_support( 'post-thumbnails' ); 96 96 set_post_thumbnail_size( 604, 270, true ); 97 98 // Register custom image size for image post formats.99 add_image_size( 'twentythirteen-image-post', 724, 1288 );100 97 101 98 // This theme uses its own gallery styles. … … 437 434 */ 438 435 function twentythirteen_get_link_url() { 439 $has_url = get_the_post_format_url(); 436 $content = get_the_content(); 437 $has_url = get_content_url( $content ); 440 438 441 439 return ( $has_url ) ? $has_url : apply_filters( 'the_permalink', get_permalink() ); … … 493 491 */ 494 492 function twentythirteen_content_width() { 495 if ( has_post_format( 'video' ) || is_attachment() ) { 496 global $content_width; 493 global $content_width; 494 495 if ( is_attachment() ) 497 496 $content_width = 724; 498 } 497 elseif ( has_post_format( 'audio' ) ) 498 $content_width = 484; 499 499 } 500 500 add_action( 'template_redirect', 'twentythirteen_content_width' ); 501 502 /**503 * Adjusts content_width value for video shortcodes in video post formats.504 *505 * @since Twenty Thirteen 1.0506 *507 * @param array $atts The attribute list.508 * @return array The filtered attribute list.509 */510 function twentythirteen_video_width( $atts ) {511 if ( ! is_admin() && has_post_format( 'video' ) ) {512 $new_width = 724;513 $atts['height'] = round( ( $atts['height'] * $new_width ) / $atts['width'] );514 $atts['width'] = $new_width;515 }516 517 return $atts;518 }519 add_action( 'embed_defaults', 'twentythirteen_video_width' );520 add_action( 'shortcode_atts_video', 'twentythirteen_video_width' );521 501 522 502 /** -
trunk/wp-content/themes/twentythirteen/js/functions.js
r24172 r24391 9 9 body = $( 'body' ), 10 10 _window = $( window ), 11 captions = $( '.quote-caption' ),12 11 adjustFooter, 13 12 … … 72 71 } ); 73 72 74 /** Better styles for Quote post formats with a linked source.75 *76 */77 if ( captions )78 captions.has( 'a' ).addClass( 'linked' );79 80 73 /** 81 74 * Arranges footer widgets vertically. -
trunk/wp-content/themes/twentythirteen/rtl.css
r24239 r24391 152 152 */ 153 153 154 .sidebar .entry-media {155 padding-left: 316px;156 padding-right: 0;157 }158 159 154 .sidebar .entry-header, 160 155 .sidebar .entry-content, … … 246 241 */ 247 242 248 .entry-media a,249 243 .entry-content a { 250 244 display: inline; … … 261 255 } 262 256 263 .format-audio .entry- media:before {257 .format-audio .entry-content:before { 264 258 float: right; 265 259 -webkit-transform: scaleX(-1); … … 270 264 } 271 265 272 .format-audio .entry-media,273 .sidebar .format-audio .entry-media {274 padding-left: 374px;275 padding-right: 60px;276 }277 278 266 .format-audio .audio-content { 279 267 background-position: right top; … … 344 332 } 345 333 346 .format-quote .quote {334 .format-quote blockquote { 347 335 padding-left: 0; 348 336 padding-right: 75px; 349 337 } 350 338 351 .format-quote .quote:before {339 .format-quote blockquote:before { 352 340 content: '\201D'; 353 341 padding-left: 25px; … … 609 597 610 598 @media (max-width: 1069px) { 611 .sidebar .entry-media,612 .format-audio .entry-media,613 .sidebar .format-audio .entry-media {614 padding-left: 376px;615 padding-right: 60px;616 }617 618 599 ul.nav-menu, 619 600 div.nav-menu > ul { … … 657 638 } 658 639 659 .sidebar .entry-media,660 .format-audio .entry-media,661 .sidebar .format-audio .entry-media {662 padding-left: 0;663 padding-right: 0;664 }665 666 640 .site-main .widget-area { 667 641 float: none; -
trunk/wp-content/themes/twentythirteen/style.css
r24389 r24391 258 258 259 259 blockquote cite, 260 blockquote small, 261 .quote-caption { 260 blockquote small { 262 261 font-size: 14px; 263 262 font-weight: normal; … … 481 480 .date a:before, 482 481 .entry-meta .author a:before, 483 .format-audio .entry- media:before,482 .format-audio .entry-content:before, 484 483 .comments-link a:before, 485 484 .tags-links a:first-child:before, … … 503 502 /* Clearing floats */ 504 503 .clear:after, 505 .entry-media:after,506 504 .attachment .entry-header:after, 507 505 .site-footer .widget-area:after, … … 517 515 .clear:before, 518 516 .clear:after, 519 .entry-media:before,520 .entry-media:after,521 517 .attachment .entry-header:before, 522 518 .attachment .entry-header:after, … … 677 673 } 678 674 679 .entry-media img,680 675 img.size-full, 681 676 img.size-large, … … 1127 1122 1128 1123 .entry-content blockquote cite, 1129 .entry-content blockquote small, 1130 .entry-content .quote-caption { 1124 .entry-content blockquote small { 1131 1125 font-size: 16px; 1132 1126 } … … 1366 1360 */ 1367 1361 1368 .entry-media {1369 margin: 0 auto 24px;1370 max-width: 724px;1371 width: 100%;1372 }1373 1374 .sidebar .entry-media {1375 max-width: 1040px;1376 padding: 0 316px 0 0;1377 }1378 1379 .entry-media .wp-caption,1380 .entry-media .wp-caption-text,1381 .entry-media [class*="align"] {1382 margin: 0 auto;1383 }1384 1385 1362 /* Aside */ 1386 1363 .format-aside { … … 1425 1402 } 1426 1403 1427 .format-audio .entry-media { 1428 max-width: 604px; 1429 } 1430 1431 .sidebar .format-audio .entry-media { 1432 max-width: 1040px; 1433 padding: 0 374px 0 60px; 1434 } 1435 1436 .format-audio .entry-media:before { 1404 .format-audio .entry-content:before { 1437 1405 content: "\f109"; 1438 1406 float: left; … … 1683 1651 } 1684 1652 1685 .format-quote .quote-caption,1686 1653 .format-quote blockquote small, 1687 1654 .format-quote blockquote cite { … … 1690 1657 } 1691 1658 1692 .format-quote .quote {1659 .format-quote blockquote { 1693 1660 font-style: italic; 1694 1661 font-weight: 300; … … 1697 1664 } 1698 1665 1699 .format-quote .quote:before {1666 .format-quote blockquote:before { 1700 1667 content: '\201C'; 1701 1668 font-size: 140px; … … 2712 2679 2713 2680 @media (max-width: 1069px) { 2714 .sidebar .entry-media {2715 padding: 0 376px 0 60px;2716 }2717 2718 2681 .sidebar img.alignleft, 2719 2682 .sidebar .wp-caption.alignleft { … … 2782 2745 .sidebar .featured-gallery, 2783 2746 .sidebar .post-navigation .nav-links, 2784 .author.sidebar .author-info, 2785 .format-audio .entry-media, 2786 .sidebar .format-audio .entry-media { 2747 .author.sidebar .author-info { 2787 2748 max-width: 604px; 2788 2749 padding-left: 0; … … 2802 2763 } 2803 2764 2804 .sidebar .entry-media {2805 max-width: 724px;2806 }2807 2808 .sidebar .entry-media,2809 2765 .sidebar .archive-meta, 2810 2766 .attachment .entry-header, … … 2887 2843 } 2888 2844 2889 .entry-media,2890 .sidebar .entry-media {2891 max-width: 604px;2892 }2893 2894 2845 .attachment .image-navigation, 2895 2846 .attachment .entry-attachment .attachment { … … 2909 2860 } 2910 2861 2911 #content .entry-media,2912 2862 #content .entry-header, 2913 2863 #content .entry-content, … … 3025 2975 3026 2976 .format-quote blockquote small, 3027 .format-quote blockquote cite, 3028 .format-quote .quote-caption { 2977 .format-quote blockquote cite { 3029 2978 font-size: 13px; 3030 2979 } … … 3067 3016 3068 3017 /* Audio */ 3018 .format-audio .entry-content:before { 3019 display: none; 3020 } 3021 3069 3022 .format-audio .audio-content { 3070 3023 background-image: none; … … 3072 3025 padding-left: 0; 3073 3026 width: auto; 3074 }3075 3076 .format-audio .entry-media:before {3077 display: none;3078 3027 } 3079 3028 }
Note: See TracChangeset
for help on using the changeset viewer.