Ticket #17748: 17748.3.diff
File 17748.3.diff, 14.0 KB (added by , 14 years ago) |
---|
-
wp-content/themes/twentyeleven/content-single.php
27 27 <footer class="entry-meta"> 28 28 <?php 29 29 /* translators: used between list items, there is a space after the comma */ 30 $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) ); 31 32 /* translators: used between list items, there is a space after the comma */ 30 33 $tag_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) ); 31 34 if ( '' != $tag_list ) { 32 35 $utility_text = __( 'This entry was posted in %1$s and tagged %2$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' ); 36 } elseif ( '' != $categories_list ) { 37 $utility_text = __( 'This entry was posted in %1$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' ); 33 38 } else { 34 $utility_text = __( 'This entry was posted in %1$sby <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );39 $utility_text = __( 'This entry was posted by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' ); 35 40 } 41 36 42 printf( 37 43 $utility_text, 38 /* translators: used between list items, there is a space after the comma */ 39 get_the_category_list( __( ', ', 'twentyeleven' ) ), 44 $categories_list, 40 45 $tag_list, 41 46 esc_url( get_permalink() ), 42 47 the_title_attribute( 'echo=0' ), -
wp-content/themes/twentyeleven/style.css
42 42 list-style: none; 43 43 } 44 44 table {/* tables still need 'cellspacing="0"' in the markup */ 45 46 45 border-collapse: separate; 46 border-spacing: 0; 47 47 } 48 48 caption, th, td { 49 49 font-weight: normal; … … 265 265 } 266 266 .one-column.singular .entry-meta .edit-link a { 267 267 position: absolute; 268 left: 0 px;268 left: 0; 269 269 top: 40px; 270 270 } 271 271 .one-column.singular #author-info { 272 margin: 2.2em -8.8% 0 px;272 margin: 2.2em -8.8% 0; 273 273 padding: 20px 8.8%; 274 274 } 275 275 /* Make sure we have room for our comment avatars */ … … 822 822 .page-link span { 823 823 margin-right: 6px; 824 824 } 825 .entry-meta .edit-link a { 825 .entry-meta .edit-link a, 826 .commentlist .edit-link a { 826 827 background: #eee; 827 828 -moz-border-radius: 3px; 828 829 border-radius: 3px; 829 830 color: #666; 830 831 float: right; 831 832 font-size: 12px; 833 line-height: 1.5em; 832 834 font-weight: 300; 833 835 text-decoration: none; 834 padding: 0 px8px;836 padding: 0 8px; 835 837 } 836 .entry-meta .edit-link a:hover { 838 839 .entry-meta .edit-link a:hover, 840 .commentlist .edit-link a:hover { 837 841 background: #888; 838 842 color: #fff; 839 843 } … … 890 894 } 891 895 .wp-caption .wp-caption-text { 892 896 margin-bottom: 0.6em; 893 padding: 10px 0 px5px 40px;897 padding: 10px 0 5px 40px; 894 898 position: relative; 895 899 } 896 900 .wp-caption .wp-caption-text:before { … … 908 912 margin: 0 auto 1.625em; 909 913 } 910 914 #content .gallery a img { 911 915 border: none; 912 916 } 913 917 img#wpstats { 914 915 918 display: block; 919 margin: 0 auto 1.625em; 916 920 } 917 921 #content .gallery-columns-4 .gallery-item { 918 width: 23%;919 padding-right: 2%;922 width: 23%; 923 padding-right: 2%; 920 924 } 921 925 #content .gallery-columns-4 .gallery-item img { 922 width: 100%;923 height: auto;926 width: 100%; 927 height: auto; 924 928 } 925 929 926 930 /* Image borders */ 927 931 img[class*="align"], 928 932 img[class*="wp-image-"], 929 #content .gallery .gallery-icon img { 933 #content .gallery .gallery-icon img {/* Add fancy borders to all WordPress-added images but not things like badges and icons and the like */ 930 934 border: 1px solid #ddd; 931 935 padding: 6px; 932 936 } … … 941 945 a:active img[class*="wp-image-"], 942 946 #content .gallery .gallery-icon a:focus img, 943 947 #content .gallery .gallery-icon a:hover img, 944 #content .gallery .gallery-icon a:active img { 948 #content .gallery .gallery-icon a:active img {/* Add some useful style to those fancy borders for linked images ... */ 945 949 background: #eee; 946 950 border-color: #bbb; 947 951 } 948 952 .wp-caption a:focus img, 949 953 .wp-caption a:active img, 950 .wp-caption a:hover img { /* ... including captioned images!*/954 .wp-caption a:hover img {/* ... including captioned images! */ 951 955 background: #fff; 952 956 border-color: #ddd; 953 957 } … … 1029 1033 color: rgba(255,255,255,0.8); 1030 1034 } 1031 1035 .entry-header .comments-link .leave-reply { 1032 1036 visibility: hidden; 1033 1037 } 1034 1038 1035 1039 /* 1036 1037 1038 1040 Post Formats Headings 1041 To hide the headings, display: none the ".entry-header .entry-format" selector, 1042 and remove the padding rules below. 1039 1043 */ 1040 1044 .entry-header .entry-format { 1041 1045 color: #666; … … 1223 1227 margin-bottom: 0; 1224 1228 } 1225 1229 .indexed.format-image footer.entry-meta { 1226 background: # e0e6e8;1230 background: #ddd; 1227 1231 margin-top: -7px; 1228 1232 padding: 20px 30px; 1229 1233 overflow: hidden; … … 1328 1332 article.intro .entry-content { 1329 1333 color: #111; 1330 1334 font-size: 16px; 1331 padding: 1.625em 0 px0.625em;1335 padding: 1.625em 0 0.625em; 1332 1336 } 1333 1337 article.intro .edit-link a { 1334 1338 background: #aaa; … … 1336 1340 border-radius: 3px; 1337 1341 color: #fff; 1338 1342 font-size: 12px; 1339 padding: 0 px8px;1343 padding: 0 8px; 1340 1344 position: absolute; 1341 1345 top: 30px; 1342 1346 right: 20px; … … 1511 1515 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */ 1512 1516 background: linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* W3C */ 1513 1517 width: 100%; 1514 1515 1518 height: 45px; 1519 position: absolute; 1516 1520 top: 230px; 1517 1521 } 1518 1522 .featured-post .feature-image.small:after { … … 1966 1970 color: #666; 1967 1971 display: inline-block; 1968 1972 font-size: 12px; 1969 padding: 0 px8px;1973 padding: 0 8px; 1970 1974 text-decoration: none; 1971 1975 } 1972 1976 a.comment-reply-link:hover, … … 2104 2108 color: #eee; 2105 2109 cursor: pointer; 2106 2110 font-size: 15px; 2107 left: 30px;2108 2111 margin: 20px 0; 2109 2112 padding: 5px 42px 5px 22px; 2110 2113 position: relative; 2114 left: 30px; 2111 2115 text-shadow: 0 -1px 0 rgba(0,0,0,0.3); 2112 2116 } 2113 2117 #respond input#submit:active { … … 2308 2312 margin: 0 0 0 1.625em; 2309 2313 } 2310 2314 .singular .entry-meta .edit-link a { 2311 left: 0 px;2315 left: 0; 2312 2316 position: absolute; 2313 2317 top: 40px; 2314 2318 } 2315 2319 .singular #author-info { 2316 margin: 2.2em -8.8% 0 px;2320 margin: 2.2em -8.8% 0; 2317 2321 padding: 20px 8.8%; 2318 2322 } 2319 2323 /* Make sure we have room for our comment avatars */ … … 2410 2414 padding: 1.625em 0 0; 2411 2415 } 2412 2416 .singular.page .hentry { 2413 2417 padding: 1.625em 0 0; 2414 2418 } 2415 2419 /* Talking avatars take up too much room at this size */ 2416 2420 .commentlist > li.comment, … … 2432 2436 } 2433 2437 /* Use the available space in the smaller comment form */ 2434 2438 #respond input[type="text"] { 2435 2439 width: 95%; 2436 2440 } 2437 2441 #respond .comment-form-author .required, 2438 2442 #respond .comment-form-email .required { 2439 2443 left: 95%; 2440 2444 } 2441 2445 #content .gallery-columns-3 .gallery-item { 2442 width: 31%;2443 padding-right: 2%;2446 width: 31%; 2447 padding-right: 2%; 2444 2448 } 2445 2449 #content .gallery-columns-3 .gallery-item img { 2446 width: 100%;2447 height: auto;2450 width: 100%; 2451 height: auto; 2448 2452 } 2449 2453 } 2450 2454 @media (max-width: 450px) { 2451 2455 #content .gallery-columns-2 .gallery-item { 2452 width: 45%;2453 padding-right: 4%;2456 width: 45%; 2457 padding-right: 4%; 2454 2458 } 2455 2459 #content .gallery-columns-2 .gallery-item img { 2456 width: 100%;2457 height: auto;2460 width: 100%; 2461 height: auto; 2458 2462 } 2459 2463 } 2460 2464 @media only screen and (min-device-width: 320px) and (max-device-width: 480px) { … … 2480 2484 } 2481 2485 footer.entry-meta a[rel=bookmark]:link:after, 2482 2486 footer.entry-meta a[rel=bookmark]:visited:after { 2483 content: " [" attr(href) "] "; /* Show URLs */2487 content: " [" attr(href) "] "; /* Show URLs */ 2484 2488 } 2485 2489 #page { 2486 2490 clear: both !important; … … 2494 2498 padding: 0; 2495 2499 } 2496 2500 #branding hgroup { 2497 2501 margin: 0; 2498 2502 } 2499 2503 #site-title a { 2500 2504 font-size: 21pt; … … 2516 2520 box-shadow: none; 2517 2521 } 2518 2522 #primary { 2519 2520 2521 2523 float: left; 2524 margin: 0; 2525 width: 100%; 2522 2526 } 2523 2527 #content { 2524 2525 2528 margin: 0; 2529 width: auto; 2526 2530 } 2527 2531 .singular #content { 2528 2532 margin: 0; 2529 2533 width: 100%; 2530 2534 } 2531 2535 .singular .entry-header .entry-meta { 2532 2536 position: static; 2533 2537 } 2534 2538 .entry-meta .edit-link a { 2535 2539 display: none; … … 2542 2546 .singular footer.entry-meta, 2543 2547 .singular #comments-title { 2544 2548 margin: 0; 2545 2549 width: 100%; 2546 2550 } 2547 2551 .singular .hentry { 2548 2552 padding: 0; … … 2561 2565 display: none; 2562 2566 } 2563 2567 .singular #author-info { 2564 2565 2566 2567 2568 2568 background: none; 2569 border-bottom: none; 2570 border-top: none; 2571 margin: 2.2em 0 0; 2572 padding: 0; 2569 2573 } 2570 2574 #respond { 2571 2575 display: none; … … 2579 2583 2580 2584 /* Comments */ 2581 2585 .commentlist > li.comment { 2582 2583 2584 2585 2586 2587 2588 2589 2586 background: none; 2587 border: 1px solid #ddd; 2588 -moz-border-radius: 3px 3px 3px 3px; 2589 border-radius: 3px 3px 3px 3px; 2590 margin: 0 auto 1.625em; 2591 padding: 1.625em; 2592 position: relative; 2593 width: auto; 2590 2594 } 2591 2595 .commentlist .avatar { 2592 2596 height: 39px; 2593 2594 2597 left: 2.2em; 2598 top: 2.2em; 2595 2599 width: 39px; 2596 2600 } 2597 2601 .commentlist li.comment .comment-meta { 2598 2599 2602 line-height: 1.625em; 2603 margin-left: 50px; 2600 2604 } 2601 2605 .commentlist li.comment .fn { 2602 2606 display: block; 2603 2607 } 2604 2608 .commentlist li.comment .comment-content { 2605 2609 margin: 1.625em 0 0; 2606 2610 } 2607 2611 .commentlist .comment-edit-link { 2608 2612 display: none; -
wp-content/themes/twentyeleven/editor-style-rtl.css
4 4 /* 5 5 Used to style the TinyMCE editor. 6 6 */ 7 html .mceContentBody {8 direction: rtl;9 unicode-bidi: embed;10 float: right;7 html .mceContentBody { 8 direction: rtl; 9 unicode-bidi: embed; 10 float: right; 11 11 max-width: 584px; 12 12 } 13 13 * { -
wp-content/themes/twentyeleven/content-page.php
16 16 <div class="entry-content"> 17 17 <?php the_content(); ?> 18 18 <?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?> 19 </div><!-- .entry-content --> 20 <footer class="entry-meta"> 19 21 <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?> 20 </ div><!-- .entry-content-->22 </footer><!-- .entry-meta --> 21 23 </article><!-- #post-<?php the_ID(); ?> --> -
wp-content/themes/twentyeleven/rtl.css
85 85 margin: 0 2.5em 1.625em 0; 86 86 } 87 87 .ltr ul, ol { 88 margin: 0 0 1.625em 2.5em; 88 margin: 0 0 1.625em 2.5em; 89 89 } 90 90 blockquote { 91 91 font-family: Arial, sans-serif; -
wp-content/themes/twentyeleven/functions.php
500 500 case 'trackback' : 501 501 ?> 502 502 <li class="post pingback"> 503 <p><?php _e( 'Pingback:', 'twentyeleven' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( ' (Edit)', 'twentyeleven' ), '' ); ?></p>503 <p><?php _e( 'Pingback:', 'twentyeleven' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?></p> 504 504 <?php 505 505 break; 506 506 default : … … 528 528 ); 529 529 ?> 530 530 531 <?php edit_comment_link( __( ' [Edit]', 'twentyeleven' ), '' ); ?>531 <?php edit_comment_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?> 532 532 </div><!-- .comment-author .vcard --> 533 533 534 534 <?php if ( $comment->comment_approved == '0' ) : ?> -
wp-content/themes/twentyeleven/colors/dark.css
322 322 323 323 /* Featured Slider */ 324 324 .featured-posts { 325 border-color: #222; 325 border-color: #222; 326 326 } 327 327 .featured-posts section.featured-post { 328 328 background: #000; … … 594 594 /* Comments */ 595 595 .commentlist > li.comment { 596 596 } 597 597 598 598 /* Post author highlighting */ 599 599 .commentlist > li.bypostauthor { 600 600 color: #333; -
wp-content/themes/twentyeleven/inc/theme-options.php
165 165 'theme_layout' => 'content-sidebar', 166 166 ); 167 167 168 if ( is_rtl() ) 168 if ( is_rtl() ) 169 169 $default_theme_options['theme_layout'] = 'sidebar-content'; 170 170 171 171 return apply_filters( 'twentyeleven_default_theme_options', $default_theme_options );