Changeset 3668
- Timestamp:
- 07/12/2016 12:06:42 AM (9 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/reference/template-changelog.php
r3660 r3668 15 15 <section class="changelog"> 16 16 <h3><?php _e( 'Changelog', 'wporg' ); ?></h3> 17 <ul> 18 <?php foreach ( $changelog_data as $version => $data ) : ?> 19 <li> 20 <strong><?php _e( 'Since:', 'wporg' ); ?></strong> 21 <?php printf( 22 /* translators: %s: WordPress version */ 23 __( 'WordPress %s', 'wporg' ), 24 sprintf( '<a href="%1$s">%2$s</a>', esc_url( $data['since_url'] ), esc_html( $version ) ) 25 ); ?> 26 <?php echo $data['description']; // escaped in get_changelog_data() ?> 27 </li> 28 <?php endforeach; ?> 29 </ul> 17 18 <table> 19 <caption class="screen-reader-text"><?php _e( 'Changelog', 'wporg' ); ?></caption> 20 <thead> 21 <tr> 22 <th class="changelog-version"><?php _e( 'Version', 'wporg' ); ?></th> 23 <th class="changelog-desc"><?php _e( 'Description', 'wporg' ); ?></th> 24 </tr> 25 </thead> 26 27 <tbody> 28 <?php 29 $count = count( $changelog_data ); 30 $i = 0; 31 32 $changelog_data = array_reverse( $changelog_data ); 33 34 foreach ( $changelog_data as $version => $data ) : ?> 35 <?php 36 // Add "Introduced." for the initial version description, last since the array is reversed. 37 $data['description'] = ( $i == ( $count - 1 ) ) ? __( 'Introduced.', 'wporg' ) : $data['description']; 38 39 $version_link = sprintf( '<a href="%1$s" alt="%2$s">%3$s</a>', 40 esc_url( $data['since_url'] ), 41 esc_attr( "WordPress {$version}" ), 42 esc_html( $version ) 43 ); 44 45 $i++; 46 ?> 47 48 <tr> 49 <td><?php echo $version_link; ?></td> 50 <td><?php echo $data['description']; ?></td> 51 </tr> 52 <?php endforeach; ?> 53 </tbody> 54 </table> 30 55 </section> 31 56 <?php endif; ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/scss/main.scss
r3649 r3668 1150 1150 } 1151 1151 1152 /* Changelog */ 1153 table { 1154 .changelog-version { 1155 width: 10%; 1156 } 1157 .changelog-desc { 1158 width: 90%; 1159 } 1160 1161 } 1162 1152 1163 .loop-pagination { 1153 1164 text-align: center; -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/stylesheets/main.css
r3663 r3668 302 302 /* = Usage 303 303 ----------------------------------------------- */ 304 /* Changelog */ 304 305 /* Comments */ 305 306 /* … … 1329 1330 display: none; 1330 1331 } 1332 .devhub-wrap table .changelog-version { 1333 width: 10%; 1334 } 1335 .devhub-wrap table .changelog-desc { 1336 width: 90%; 1337 } 1331 1338 .devhub-wrap .loop-pagination { 1332 1339 text-align: center;
Note: See TracChangeset
for help on using the changeset viewer.