Ticket #17748: 17748.4.diff
File 17748.4.diff, 14.2 KB (added by , 13 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 .entry-meta .edit-link a:hover, 839 .commentlist .edit-link a:hover { 837 840 background: #888; 838 841 color: #fff; 839 842 } … … 890 893 } 891 894 .wp-caption .wp-caption-text { 892 895 margin-bottom: 0.6em; 893 padding: 10px 0 px5px 40px;896 padding: 10px 0 5px 40px; 894 897 position: relative; 895 898 } 896 899 .wp-caption .wp-caption-text:before { … … 908 911 margin: 0 auto 1.625em; 909 912 } 910 913 #content .gallery a img { 911 914 border: none; 912 915 } 913 916 img#wpstats { 914 915 917 display: block; 918 margin: 0 auto 1.625em; 916 919 } 917 920 #content .gallery-columns-4 .gallery-item { 918 width: 23%;919 padding-right: 2%;921 width: 23%; 922 padding-right: 2%; 920 923 } 921 924 #content .gallery-columns-4 .gallery-item img { 922 width: 100%;923 height: auto;925 width: 100%; 926 height: auto; 924 927 } 925 928 926 929 /* Image borders */ 927 930 img[class*="align"], 928 931 img[class*="wp-image-"], 929 #content .gallery .gallery-icon img { 932 #content .gallery .gallery-icon img {/* Add fancy borders to all WordPress-added images but not things like badges and icons and the like */ 930 933 border: 1px solid #ddd; 931 934 padding: 6px; 932 935 } … … 941 944 a:active img[class*="wp-image-"], 942 945 #content .gallery .gallery-icon a:focus img, 943 946 #content .gallery .gallery-icon a:hover img, 944 #content .gallery .gallery-icon a:active img { 947 #content .gallery .gallery-icon a:active img {/* Add some useful style to those fancy borders for linked images ... */ 945 948 background: #eee; 946 949 border-color: #bbb; 947 950 } 948 951 .wp-caption a:focus img, 949 952 .wp-caption a:active img, 950 .wp-caption a:hover img { /* ... including captioned images!*/953 .wp-caption a:hover img {/* ... including captioned images! */ 951 954 background: #fff; 952 955 border-color: #ddd; 953 956 } … … 1029 1032 color: rgba(255,255,255,0.8); 1030 1033 } 1031 1034 .entry-header .comments-link .leave-reply { 1032 1035 visibility: hidden; 1033 1036 } 1034 1037 1035 1038 /* 1036 1037 1038 1039 Post Formats Headings 1040 To hide the headings, display: none the ".entry-header .entry-format" selector, 1041 and remove the padding rules below. 1039 1042 */ 1040 1043 .entry-header .entry-format { 1041 1044 color: #666; … … 1223 1226 margin-bottom: 0; 1224 1227 } 1225 1228 .indexed.format-image footer.entry-meta { 1226 background: # e0e6e8;1229 background: #ddd; 1227 1230 margin-top: -7px; 1228 1231 padding: 20px 30px; 1229 1232 overflow: hidden; … … 1245 1248 .indexed.format-image footer.entry-meta a { 1246 1249 color: #444; 1247 1250 } 1251 .indexed.format-image footer.entry-meta a:hover { 1252 color: #fff; 1253 } 1248 1254 #content .indexed.format-image img { 1249 1255 border: none; 1250 1256 max-width: 100%; … … 1328 1334 article.intro .entry-content { 1329 1335 color: #111; 1330 1336 font-size: 16px; 1331 padding: 1.625em 0 px0.625em;1337 padding: 1.625em 0 0.625em; 1332 1338 } 1333 1339 article.intro .edit-link a { 1334 1340 background: #aaa; … … 1336 1342 border-radius: 3px; 1337 1343 color: #fff; 1338 1344 font-size: 12px; 1339 padding: 0 px8px;1345 padding: 0 8px; 1340 1346 position: absolute; 1341 1347 top: 30px; 1342 1348 right: 20px; … … 1511 1517 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */ 1512 1518 background: linear-gradient(top, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* W3C */ 1513 1519 width: 100%; 1514 1515 1520 height: 45px; 1521 position: absolute; 1516 1522 top: 230px; 1517 1523 } 1518 1524 .featured-post .feature-image.small:after { … … 1966 1972 color: #666; 1967 1973 display: inline-block; 1968 1974 font-size: 12px; 1969 padding: 0 px8px;1975 padding: 0 8px; 1970 1976 text-decoration: none; 1971 1977 } 1972 1978 a.comment-reply-link:hover, … … 2104 2110 color: #eee; 2105 2111 cursor: pointer; 2106 2112 font-size: 15px; 2107 left: 30px;2108 2113 margin: 20px 0; 2109 2114 padding: 5px 42px 5px 22px; 2110 2115 position: relative; 2116 left: 30px; 2111 2117 text-shadow: 0 -1px 0 rgba(0,0,0,0.3); 2112 2118 } 2113 2119 #respond input#submit:active { … … 2308 2314 margin: 0 0 0 1.625em; 2309 2315 } 2310 2316 .singular .entry-meta .edit-link a { 2311 left: 0 px;2317 left: 0; 2312 2318 position: absolute; 2313 2319 top: 40px; 2314 2320 } 2315 2321 .singular #author-info { 2316 margin: 2.2em -8.8% 0 px;2322 margin: 2.2em -8.8% 0; 2317 2323 padding: 20px 8.8%; 2318 2324 } 2319 2325 /* Make sure we have room for our comment avatars */ … … 2410 2416 padding: 1.625em 0 0; 2411 2417 } 2412 2418 .singular.page .hentry { 2413 2419 padding: 1.625em 0 0; 2414 2420 } 2415 2421 /* Talking avatars take up too much room at this size */ 2416 2422 .commentlist > li.comment, … … 2432 2438 } 2433 2439 /* Use the available space in the smaller comment form */ 2434 2440 #respond input[type="text"] { 2435 2441 width: 95%; 2436 2442 } 2437 2443 #respond .comment-form-author .required, 2438 2444 #respond .comment-form-email .required { 2439 2445 left: 95%; 2440 2446 } 2441 2447 #content .gallery-columns-3 .gallery-item { 2442 width: 31%;2443 padding-right: 2%;2448 width: 31%; 2449 padding-right: 2%; 2444 2450 } 2445 2451 #content .gallery-columns-3 .gallery-item img { 2446 width: 100%;2447 height: auto;2452 width: 100%; 2453 height: auto; 2448 2454 } 2449 2455 } 2450 2456 @media (max-width: 450px) { 2451 2457 #content .gallery-columns-2 .gallery-item { 2452 width: 45%;2453 padding-right: 4%;2458 width: 45%; 2459 padding-right: 4%; 2454 2460 } 2455 2461 #content .gallery-columns-2 .gallery-item img { 2456 width: 100%;2457 height: auto;2462 width: 100%; 2463 height: auto; 2458 2464 } 2459 2465 } 2460 2466 @media only screen and (min-device-width: 320px) and (max-device-width: 480px) { … … 2480 2486 } 2481 2487 footer.entry-meta a[rel=bookmark]:link:after, 2482 2488 footer.entry-meta a[rel=bookmark]:visited:after { 2483 content: " [" attr(href) "] "; /* Show URLs */2489 content: " [" attr(href) "] "; /* Show URLs */ 2484 2490 } 2485 2491 #page { 2486 2492 clear: both !important; … … 2494 2500 padding: 0; 2495 2501 } 2496 2502 #branding hgroup { 2497 2503 margin: 0; 2498 2504 } 2499 2505 #site-title a { 2500 2506 font-size: 21pt; … … 2516 2522 box-shadow: none; 2517 2523 } 2518 2524 #primary { 2519 2520 2521 2525 float: left; 2526 margin: 0; 2527 width: 100%; 2522 2528 } 2523 2529 #content { 2524 2525 2530 margin: 0; 2531 width: auto; 2526 2532 } 2527 2533 .singular #content { 2528 2534 margin: 0; 2529 2535 width: 100%; 2530 2536 } 2531 2537 .singular .entry-header .entry-meta { 2532 2538 position: static; 2533 2539 } 2534 2540 .entry-meta .edit-link a { 2535 2541 display: none; … … 2542 2548 .singular footer.entry-meta, 2543 2549 .singular #comments-title { 2544 2550 margin: 0; 2545 2551 width: 100%; 2546 2552 } 2547 2553 .singular .hentry { 2548 2554 padding: 0; … … 2561 2567 display: none; 2562 2568 } 2563 2569 .singular #author-info { 2564 2565 2566 2567 2568 2570 background: none; 2571 border-bottom: none; 2572 border-top: none; 2573 margin: 2.2em 0 0; 2574 padding: 0; 2569 2575 } 2570 2576 #respond { 2571 2577 display: none; … … 2579 2585 2580 2586 /* Comments */ 2581 2587 .commentlist > li.comment { 2582 2583 2584 2585 2586 2587 2588 2589 2588 background: none; 2589 border: 1px solid #ddd; 2590 -moz-border-radius: 3px 3px 3px 3px; 2591 border-radius: 3px 3px 3px 3px; 2592 margin: 0 auto 1.625em; 2593 padding: 1.625em; 2594 position: relative; 2595 width: auto; 2590 2596 } 2591 2597 .commentlist .avatar { 2592 2598 height: 39px; 2593 2594 2599 left: 2.2em; 2600 top: 2.2em; 2595 2601 width: 39px; 2596 2602 } 2597 2603 .commentlist li.comment .comment-meta { 2598 2599 2604 line-height: 1.625em; 2605 margin-left: 50px; 2600 2606 } 2601 2607 .commentlist li.comment .fn { 2602 2608 display: block; 2603 2609 } 2604 2610 .commentlist li.comment .comment-content { 2605 2611 margin: 1.625em 0 0; 2606 2612 } 2607 2613 .commentlist .comment-edit-link { 2608 2614 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 );