Ticket #25045: 25045.diff
| File 25045.diff, 6.3 KB (added by , 13 years ago) |
|---|
-
wp-content/themes/twentyfourteen/functions.php
43 43 */ 44 44 add_theme_support( 'automatic-feed-links' ); 45 45 46 add_theme_support( 'html5' ); 47 46 48 /** 47 49 * Enable support for Post Thumbnails 48 50 */ -
wp-content/themes/twentyfourteen/comments.php
40 40 wp_list_comments( array( 41 41 'style' => 'ol', 42 42 'short_ping' => true, 43 44 // TODO: Remove callback and update styles.45 'callback'=>'twentyfourteen_comment',46 43 ) ); 47 44 ?> 48 45 </ol><!-- .comment-list --> -
wp-content/themes/twentyfourteen/inc/template-tags.php
73 73 } 74 74 endif; // twentyfourteen_content_nav 75 75 76 if ( ! function_exists( 'twentyfourteen_comment' ) ) :77 /**78 * Template for comments and pingbacks.79 *80 * Used as a callback by wp_list_comments() for displaying the comments.81 *82 */83 function twentyfourteen_comment( $comment, $args, $depth ) {84 $GLOBALS['comment'] = $comment;85 switch ( $comment->comment_type ) :86 case 'pingback' :87 case 'trackback' :88 ?>89 <li class="post pingback">90 <p><?php _e( 'Pingback:', 'twentyfourteen' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( 'Edit', 'twentyfourteen' ), ' ' ); ?></p>91 <?php92 break;93 default :94 ?>95 <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">96 <article id="comment-<?php comment_ID(); ?>" class="comment">97 <footer>98 <div class="comment-author vcard">99 <span class="comment-author-avatar"><?php echo get_avatar( $comment, 32 ); ?></span>100 <?php printf( __( '%s', 'twentyfourteen' ), sprintf( '<cite class="fn">%s</cite> says:', get_comment_author_link() ) ); ?>101 </div><!-- .comment-author .vcard -->102 </footer>103 104 <div class="comment-content">105 <?php comment_text(); ?>106 <?php if ( $comment->comment_approved == '0' ) : ?>107 <p><em><?php _e( 'Your comment is awaiting moderation.', 'twentyfourteen' ); ?></em></p>108 <?php endif; ?>109 </div>110 111 <div class="comment-meta commentmetadata">112 <a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"><time pubdate datetime="<?php comment_time( 'c' ); ?>">113 <?php114 /* translators: 1: date, 2: time */115 printf( __( '%1$s at %2$s', 'twentyfourteen' ), get_comment_date(), get_comment_time() ); ?>116 </time></a>117 <?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>118 <?php edit_comment_link( __( 'Edit', 'twentyfourteen' ), ' ' );119 ?>120 </div><!-- .comment-meta .commentmetadata -->121 </article><!-- #comment-## -->122 123 <?php124 break;125 endswitch;126 }127 endif; // ends check for twentyfourteen_comment()128 129 76 if ( ! function_exists( 'twentyfourteen_posted_on' ) ) : 130 77 /** 131 78 * Prints HTML with meta information for the current post-date/time and author. -
wp-content/themes/twentyfourteen/style.css
1873 1873 margin: 0 0 48px 0; 1874 1874 margin: 0 0 4.8rem 0; 1875 1875 } 1876 .comment-meta ,1876 .comment-metadata, 1877 1877 .comment-author { 1878 1878 font-size: 14px; 1879 1879 font-size: 1.4rem; 1880 1880 line-height: 1.7142857142; 1881 1881 } 1882 .comment-author cite{1882 .comment-author .fn { 1883 1883 font-weight: 900; 1884 1884 text-transform: uppercase; 1885 1885 } 1886 1886 .comment-author a { 1887 1887 color: #2b2b2b; 1888 1888 } 1889 .comment-meta a,1889 .comment-metadata a, 1890 1890 .comment-list li.trackback a, 1891 1891 .comment-list li.pingback a { 1892 1892 color: #8c8c8c; 1893 1893 } 1894 1894 .comment-author a:hover, 1895 .comment-meta a:hover,1895 .comment-metadata a:hover, 1896 1896 .comment-list li.trackback a:hover, 1897 1897 .comment-list li.pingback a:hover { 1898 1898 color: #41a62a; 1899 1899 text-decoration: none; 1900 1900 } 1901 .comment-edit-link:before, 1902 .comment-reply-link:before { 1901 .comment-edit-link:before { 1903 1902 color: rgba(0, 0, 0, 0.2); 1904 1903 content: '\007c\0020'; 1905 1904 } … … 1919 1918 background: none; 1920 1919 min-height: 48px; 1921 1920 min-height: 4.8rem; 1922 position: relative;1923 1921 } 1924 1922 .comment-author { 1925 1923 padding-left: 36px; 1926 1924 padding-left: 3.6rem; 1927 1925 position: relative; 1928 1926 } 1929 .comment-author . comment-author-avatar {1927 .comment-author .avatar { 1930 1928 border: 1px solid rgba(0, 0, 0, 0.1); 1931 1929 padding: 2px; 1932 1930 padding: 0.2rem; … … 1939 1937 height: 22px; 1940 1938 height: 2.2rem; 1941 1939 } 1942 .bypostauthor > article .comment-author .comment-author-avatar {1940 .bypostauthor .avatar { 1943 1941 background-color: #41a62a; 1944 1942 } 1945 .comment-author cite{1943 .comment-author .fn { 1946 1944 font-style: normal; 1947 1945 } 1948 1946 .comment-author .avatar { … … 1956 1954 height: 22px; 1957 1955 height: 2.2rem; 1958 1956 } 1959 .comment-meta ,1957 .comment-metadata, 1960 1958 .comment-content { 1961 1959 padding-left: 36px; 1962 1960 padding-left: 3.6rem; … … 2706 2704 #primary span.entry-date a:before, 2707 2705 #primary .byline a:before, 2708 2706 #primary .comments-link a:before, 2709 #primary.edit-link a:before,2707 .entry-content .edit-link a:before, 2710 2708 .attachment span.entry-date:before, 2711 2709 #primary .full-size-link a:before, 2712 2710 #primary .parent-post-link a:before { … … 2769 2767 margin: -1px 2px 0 0; 2770 2768 margin: -0.1rem 0.2rem 0 0; 2771 2769 } 2772 #primary.edit-link a:before {2770 .entry-content .edit-link a:before { 2773 2771 content: '\F411'; 2774 2772 margin: -1px 2px 0 0; 2775 2773 margin: -0.1rem 0.2rem 0 0; … … 2780 2778 #primary .parent-post-link a:before { 2781 2779 content: '\F301'; 2782 2780 } 2783 .page #primary.edit-link a:before {2781 .page .entry-content .edit-link a:before { 2784 2782 margin: 5px 2px 0 0; 2785 2783 margin: 0.5rem 0.2rem 0 0; 2786 2784 } … … 2910 2908 padding-top: 36px; 2911 2909 padding-top: 3.6rem; 2912 2910 } 2913 .comment-author {2914 padding-left: 60px;2915 padding-left: 6.0rem;2916 }2917 .comment-author .comment-author-avatar,2918 2911 .comment-author .avatar { 2919 2912 width: 32px; 2920 2913 width: 3.2rem; 2921 2914 height: 32px; 2922 2915 height: 3.2rem; 2923 2916 } 2924 .comment-meta, 2917 .comment-author, 2918 .comment-metadata, 2925 2919 .comment-content { 2926 2920 padding-left: 60px; 2927 2921 padding-left: 6.0rem;
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)