Changeset 46616 for trunk/src/wp-admin/credits.php
- Timestamp:
- 10/29/2019 08:08:32 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/credits.php
r46572 r46616 16 16 17 17 include( ABSPATH . 'wp-admin/admin-header.php' ); 18 19 $credits = wp_credits(); 18 20 ?> 19 <div class="wrap about -wrap full-width-layout">21 <div class="wrap about__container"> 20 22 21 23 <div class="about__header"> … … 27 29 </div> 28 30 29 <div class="about__header-badge wp-badge"> 30 <?php 31 printf( 32 /* translators: %s: The current WordPress version number. */ 33 __( 'Version %s' ), 34 $display_version 35 ); 36 ?> 31 <div class="about__header-badge"> 32 <img src="https://wordpress.org/images/core/5.4/code-is-poetry-rc.svg" alt="<?php _e( 'Code is Poetry' ); ?>" /> 37 33 </div> 38 34 … … 57 53 </div> 58 54 59 <div class="about-wrap-content"> 55 <div class="about__section"> 56 <div class="column"> 57 <h2><?php _e( 'WordPress is created by a worldwide team of passionate individuals.' ); ?></h2> 58 59 <p> 60 <?php 61 if ( ! $credits ) { 62 printf( 63 /* translators: 1: https://wordpress.org/about/, 2: https://make.wordpress.org/ */ 64 __( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ), 65 __( 'https://wordpress.org/about/' ), 66 __( 'https://make.wordpress.org/' ) 67 ); 68 } else { 69 printf( 70 /* translators: %s: https://make.wordpress.org/ */ 71 __( 'Want to see your name in lights on this page? <a href="%s">Get involved in WordPress</a>.' ), 72 __( 'https://make.wordpress.org/' ) 73 ); 74 } 75 ?> 76 </p> 77 </div> 78 79 <div class="about__image aligncenter"> 80 <img src="data:image/svg+xml;charset=utf8,%3Csvg width='1320' height='350' viewbox='0 0 1320 350' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='72' height='220' transform='matrix(1 0 0 -1 61 220)' fill='%23321017'/%3E%3Crect width='72' height='250' transform='matrix(1 0 0 -1 166 300)' fill='%23BD3854'/%3E%3Crect width='72' height='220' transform='matrix(1 0 0 -1 272 220)' fill='%23321017'/%3E%3Crect width='71' height='220' transform='matrix(1 0 0 -1 378 220)' fill='%235F1B29'/%3E%3Crect width='71' height='220' transform='matrix(1 0 0 -1 483 220)' fill='%23321017'/%3E%3Crect width='71' height='220' transform='matrix(1 0 0 -1 587 220)' fill='%235F1B29'/%3E%3Crect width='71.28' height='250' transform='matrix(1 0 0 -1 689 300)' fill='%23BD3854'/%3E%3Crect width='72' height='220' transform='matrix(1 0 0 -1 884 220)' fill='%235F1B29'/%3E%3Crect width='72' height='220' transform='matrix(1 0 0 -1 789 220)' fill='%23321017'/%3E%3Crect width='71' height='220' transform='matrix(1 0 0 -1 985 220)' fill='%23321017'/%3E%3Crect width='72' height='220' transform='matrix(1 0 0 -1 1084 220)' fill='%235F1B29'/%3E%3Crect width='72' height='220' transform='matrix(1 0 0 -1 1179 220)' fill='%233D0F19'/%3E%3C/svg%3E%0A" alt="" /> 81 </div> 82 </div> 83 60 84 <?php 61 62 $credits = wp_credits();63 64 85 if ( ! $credits ) { 65 echo '<p class="about-description">';66 printf(67 /* translators: 1: https://wordpress.org/about/, 2: https://make.wordpress.org/ */68 __( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ),69 __( 'https://wordpress.org/about/' ),70 __( 'https://make.wordpress.org/' )71 );72 echo '</p>';73 echo '</div>';74 86 echo '</div>'; 75 87 include( ABSPATH . 'wp-admin/admin-footer.php' ); … … 77 89 } 78 90 79 echo '<p class="about-description">' . __( 'WordPress is created by a worldwide team of passionate individuals.' ) . "</p>\n";91 $previous_type = ''; 80 92 81 echo '<p>' . sprintf( 82 /* translators: %s: https://make.wordpress.org/ */ 83 __( 'Want to see your name in lights on this page? <a href="%s">Get involved in WordPress</a>.' ), 84 __( 'https://make.wordpress.org/' ) 85 ) . '</p>'; 93 foreach ( $credits['groups'] as $group_slug => $group_data ) : 94 ?> 95 <?php 96 if ( $previous_type !== $group_data['type'] ) { 97 echo '<hr />'; 98 } 99 ?> 100 <div class="about__section"> 101 <div class="column <?php echo 'titles' === $group_data['type'] ? 'has-subtle-background-color' : ''; ?>"> 86 102 87 foreach ( $credits['groups'] as $group_slug => $group_data ) { 103 <?php 88 104 if ( $group_data['name'] ) { 89 105 if ( 'Translators' == $group_data['name'] ) { … … 98 114 } 99 115 100 echo '<h2 class="wp-people-group ">' . esc_html( $title ) . "</h2>\n";116 echo '<h2 class="wp-people-group-title">' . esc_html( $title ) . "</h2>\n"; 101 117 } 102 118 … … 121 137 echo '<li class="wp-person" id="wp-person-' . esc_attr( $person_data[2] ) . '">' . "\n\t"; 122 138 echo '<a href="' . esc_url( sprintf( $credits['data']['profiles'], $person_data[2] ) ) . '" class="web">'; 123 $size = 'compact' == $group_data['type'] ? 30 : 60;139 $size = 'compact' == $group_data['type'] ? 40 : 80; 124 140 $data = get_avatar_data( $person_data[1] . '@md5.gravatar.com', array( 'size' => $size ) ); 125 141 $size *= 2; … … 136 152 break; 137 153 } 138 } 154 $previous_type = $group_data['type']; 155 ?> 139 156 140 ?>157 </div> 141 158 </div> 159 <?php endforeach; ?> 142 160 </div> 143 161 <?php
Note: See TracChangeset
for help on using the changeset viewer.