16 |
16 |
17 include( ABSPATH . 'wp-admin/admin-header.php' ); |
17 include( ABSPATH . 'wp-admin/admin-header.php' ); |
18 ?> |
18 ?> |
19 <div class="wrap about-wrap full-width-layout"> |
19 <div class="wrap about-wrap full-width-layout"> |
20 |
20 |
21 <h1><?php printf( __( 'Welcome to WordPress %s' ), $display_version ); ?></h1> |
21 <h1> |
|
22 <?php |
|
23 /* translators: %s: The current WordPress version number */ |
|
24 printf( __( 'Welcome to WordPress %s' ), $display_version ); |
|
25 ?> |
|
26 </h1> |
22 |
27 |
23 <p class="about-text"><?php printf( __( 'Thank you for updating to the latest version! WordPress %s will smooth your design workflow and keep you safe from coding errors.' ), $display_version ); ?></p> |
28 <p class="about-text"> |
|
29 <?php |
|
30 printf( |
|
31 /* translators: %s: The current WordPress version number */ |
|
32 __( 'Congratulations on updating to WordPress %s! This update makes it easier than ever to fix your site if something goes wrong.' ), |
|
33 $display_version |
|
34 ); |
|
35 ?> |
|
36 </p> |
24 |
37 |
25 <div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div> |
38 <div class="wp-badge"> |
|
39 <?php |
|
40 /* translators: %s: The current WordPress version number */ |
|
41 printf( __( 'Version %s' ), $display_version ); |
|
42 ?> |
|
43 </div> |
26 |
44 |
27 <h2 class="nav-tab-wrapper wp-clearfix"> |
45 <nav class="nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>"> |
28 <a href="about.php" class="nav-tab"><?php _e( 'What’s New' ); ?></a> |
46 <a href="about.php" class="nav-tab"><?php _e( 'What’s New' ); ?></a> |
29 <a href="credits.php" class="nav-tab nav-tab-active"><?php _e( 'Credits' ); ?></a> |
47 <a href="credits.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'Credits' ); ?></a> |
30 <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a> |
48 <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a> |
31 <a href="freedoms.php?privacy-notice" class="nav-tab"><?php _e( 'Privacy' ); ?></a> |
49 <a href="freedoms.php?privacy-notice" class="nav-tab"><?php _e( 'Privacy' ); ?></a> |
32 </h2> |
50 </nav> |
33 |
51 |
34 <div class="about-wrap-content"> |
52 <div class="about-wrap-content"> |
35 <?php |
53 <?php |
36 |
54 |
37 $credits = wp_credits(); |
55 $credits = wp_credits(); |
38 |
56 |
39 if ( ! $credits ) { |
57 if ( ! $credits ) { |
40 echo '<p class="about-description">'; |
58 echo '<p class="about-description">'; |
41 /* translators: 1: https://wordpress.org/about/, 2: https://make.wordpress.org/ */ |
59 printf( |
42 printf( __( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ), |
60 /* translators: 1: https://wordpress.org/about/, 2: https://make.wordpress.org/ */ |
|
61 __( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ), |
43 'https://wordpress.org/about/', |
62 'https://wordpress.org/about/', |
44 __( 'https://make.wordpress.org/' ) |
63 __( 'https://make.wordpress.org/' ) |
45 ); |
64 ); |
46 echo '</p>'; |
65 echo '</p>'; |
47 echo '</div>'; |
66 echo '</div>'; |
62 if ( $group_data['name'] ) { |
81 if ( $group_data['name'] ) { |
63 if ( 'Translators' == $group_data['name'] ) { |
82 if ( 'Translators' == $group_data['name'] ) { |
64 // Considered a special slug in the API response. (Also, will never be returned for en_US.) |
83 // Considered a special slug in the API response. (Also, will never be returned for en_US.) |
65 $title = _x( 'Translators', 'Translate this to be the equivalent of English Translators in your language for the credits page Translators section' ); |
84 $title = _x( 'Translators', 'Translate this to be the equivalent of English Translators in your language for the credits page Translators section' ); |
66 } elseif ( isset( $group_data['placeholders'] ) ) { |
85 } elseif ( isset( $group_data['placeholders'] ) ) { |
|
86 // phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText |
67 $title = vsprintf( translate( $group_data['name'] ), $group_data['placeholders'] ); |
87 $title = vsprintf( translate( $group_data['name'] ), $group_data['placeholders'] ); |
68 } else { |
88 } else { |
|
89 // phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText |
69 $title = translate( $group_data['name'] ); |
90 $title = translate( $group_data['name'] ); |
70 } |
91 } |
71 |
92 |
72 echo '<h3 class="wp-people-group">' . esc_html( $title ) . "</h3>\n"; |
93 echo '<h2 class="wp-people-group">' . esc_html( $title ) . "</h2>\n"; |
73 } |
94 } |
74 |
95 |
75 if ( ! empty( $group_data['shuffle'] ) ) |
96 if ( ! empty( $group_data['shuffle'] ) ) { |
76 shuffle( $group_data['data'] ); // We were going to sort by ability to pronounce "hierarchical," but that wouldn't be fair to Matt. |
97 shuffle( $group_data['data'] ); // We were going to sort by ability to pronounce "hierarchical," but that wouldn't be fair to Matt. |
|
98 } |
77 |
99 |
78 switch ( $group_data['type'] ) { |
100 switch ( $group_data['type'] ) { |
79 case 'list' : |
101 case 'list': |
80 array_walk( $group_data['data'], '_wp_credits_add_profile_link', $credits['data']['profiles'] ); |
102 array_walk( $group_data['data'], '_wp_credits_add_profile_link', $credits['data']['profiles'] ); |
81 echo '<p class="wp-credits-list">' . wp_sprintf( '%l.', $group_data['data'] ) . "</p>\n\n"; |
103 echo '<p class="wp-credits-list">' . wp_sprintf( '%l.', $group_data['data'] ) . "</p>\n\n"; |
82 break; |
104 break; |
83 case 'libraries' : |
105 case 'libraries': |
84 array_walk( $group_data['data'], '_wp_credits_build_object_link' ); |
106 array_walk( $group_data['data'], '_wp_credits_build_object_link' ); |
85 echo '<p class="wp-credits-list">' . wp_sprintf( '%l.', $group_data['data'] ) . "</p>\n\n"; |
107 echo '<p class="wp-credits-list">' . wp_sprintf( '%l.', $group_data['data'] ) . "</p>\n\n"; |
86 break; |
108 break; |
87 default: |
109 default: |
88 $compact = 'compact' == $group_data['type']; |
110 $compact = 'compact' == $group_data['type']; |
89 $classes = 'wp-people-group ' . ( $compact ? 'compact' : '' ); |
111 $classes = 'wp-people-group ' . ( $compact ? 'compact' : '' ); |
90 echo '<ul class="' . $classes . '" id="wp-people-group-' . $group_slug . '">' . "\n"; |
112 echo '<ul class="' . $classes . '" id="wp-people-group-' . $group_slug . '">' . "\n"; |
91 foreach ( $group_data['data'] as $person_data ) { |
113 foreach ( $group_data['data'] as $person_data ) { |
92 echo '<li class="wp-person" id="wp-person-' . esc_attr( $person_data[2] ) . '">' . "\n\t"; |
114 echo '<li class="wp-person" id="wp-person-' . esc_attr( $person_data[2] ) . '">' . "\n\t"; |
93 echo '<a href="' . esc_url( sprintf( $credits['data']['profiles'], $person_data[2] ) ) . '" class="web">'; |
115 echo '<a href="' . esc_url( sprintf( $credits['data']['profiles'], $person_data[2] ) ) . '" class="web">'; |
94 $size = 'compact' == $group_data['type'] ? 30 : 60; |
116 $size = 'compact' == $group_data['type'] ? 30 : 60; |
95 $data = get_avatar_data( $person_data[1] . '@md5.gravatar.com', array( 'size' => $size ) ); |
117 $data = get_avatar_data( $person_data[1] . '@md5.gravatar.com', array( 'size' => $size ) ); |
96 $size *= 2; |
118 $size *= 2; |
97 $data2x = get_avatar_data( $person_data[1] . '@md5.gravatar.com', array( 'size' => $size ) ); |
119 $data2x = get_avatar_data( $person_data[1] . '@md5.gravatar.com', array( 'size' => $size ) ); |
98 echo '<img src="' . esc_url( $data['url'] ) . '" srcset="' . esc_url( $data2x['url'] ) . ' 2x" class="gravatar" alt="" />' . "\n"; |
120 echo '<img src="' . esc_url( $data['url'] ) . '" srcset="' . esc_url( $data2x['url'] ) . ' 2x" class="gravatar" alt="" />' . "\n"; |
99 echo esc_html( $person_data[0] ) . "</a>\n\t"; |
121 echo esc_html( $person_data[0] ) . "</a>\n\t"; |
100 if ( ! $compact ) |
122 if ( ! $compact ) { |
|
123 // phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText |
101 echo '<span class="title">' . translate( $person_data[3] ) . "</span>\n"; |
124 echo '<span class="title">' . translate( $person_data[3] ) . "</span>\n"; |
|
125 } |
102 echo "</li>\n"; |
126 echo "</li>\n"; |
103 } |
127 } |
104 echo "</ul>\n"; |
128 echo "</ul>\n"; |
105 break; |
129 break; |
106 } |
130 } |
107 } |
131 } |
108 |
132 |
109 ?> |
133 ?> |
110 </div> |
134 </div> |