author | ymh <ymh.work@gmail.com> |
Wed, 21 Sep 2022 18:19:35 +0200 | |
changeset 18 | be944660c56a |
parent 16 | a86126ab1dd4 |
child 19 | 3d72ae0968f4 |
permissions | -rw-r--r-- |
0 | 1 |
<?php |
2 |
/** |
|
3 |
* Credits administration panel. |
|
4 |
* |
|
5 |
* @package WordPress |
|
6 |
* @subpackage Administration |
|
7 |
*/ |
|
8 |
||
9 |
/** WordPress Administration Bootstrap */ |
|
16 | 10 |
require_once __DIR__ . '/admin.php'; |
11 |
require_once __DIR__ . '/includes/credits.php'; |
|
0 | 12 |
|
13 |
$title = __( 'Credits' ); |
|
14 |
||
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
15 |
list( $display_version ) = explode( '-', get_bloginfo( 'version' ) ); |
0 | 16 |
|
16 | 17 |
require_once ABSPATH . 'wp-admin/admin-header.php'; |
0 | 18 |
|
19 |
$credits = wp_credits(); |
|
16 | 20 |
?> |
21 |
<div class="wrap about__container"> |
|
0 | 22 |
|
16 | 23 |
<div class="about__header"> |
18 | 24 |
<div class="about__header-title"> |
25 |
<h1> |
|
26 |
<?php _e( 'Contributors' ); ?> |
|
27 |
</h1> |
|
16 | 28 |
</div> |
29 |
||
18 | 30 |
<div class="about__header-text"> |
31 |
<?php _e( 'WordPress 5.8 was created by a worldwide team of passionate individuals' ); ?> |
|
16 | 32 |
</div> |
33 |
||
34 |
<nav class="about__header-navigation nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>"> |
|
35 |
<a href="about.php" class="nav-tab"><?php _e( 'What’s New' ); ?></a> |
|
36 |
<a href="credits.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'Credits' ); ?></a> |
|
37 |
<a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a> |
|
38 |
<a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a> |
|
39 |
</nav> |
|
40 |
</div> |
|
41 |
||
18 | 42 |
<div class="about__section has-1-column"> |
43 |
<div class="column aligncenter"> |
|
16 | 44 |
<?php if ( ! $credits ) : ?> |
45 |
||
46 |
<p> |
|
47 |
<?php |
|
48 |
printf( |
|
18 | 49 |
/* translators: 1: https://wordpress.org/about/ */ |
50 |
__( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals.' ), |
|
51 |
__( 'https://wordpress.org/about/' ) |
|
16 | 52 |
); |
53 |
?> |
|
18 | 54 |
<br /> |
55 |
<a href="https://make.wordpress.org/"><?php _e( 'Get involved in WordPress.' ); ?></a> |
|
16 | 56 |
</p> |
57 |
||
58 |
<?php else : ?> |
|
59 |
||
60 |
<p> |
|
18 | 61 |
<?php _e( 'Want to see your name in lights on this page?' ); ?> |
62 |
<br /> |
|
63 |
<a href="https://make.wordpress.org/"><?php _e( 'Get involved in WordPress.' ); ?></a> |
|
16 | 64 |
</p> |
65 |
||
66 |
<?php endif; ?> |
|
67 |
</div> |
|
68 |
</div> |
|
69 |
||
70 |
<?php |
|
0 | 71 |
if ( ! $credits ) { |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
72 |
echo '</div>'; |
16 | 73 |
require_once ABSPATH . 'wp-admin/admin-footer.php'; |
0 | 74 |
exit; |
75 |
} |
|
16 | 76 |
?> |
0 | 77 |
|
16 | 78 |
<hr /> |
0 | 79 |
|
16 | 80 |
<div class="about__section"> |
18 | 81 |
<div class="column is-edge-to-edge"> |
16 | 82 |
<?php wp_credits_section_title( $credits['groups']['core-developers'] ); ?> |
83 |
<?php wp_credits_section_list( $credits, 'core-developers' ); ?> |
|
84 |
<?php wp_credits_section_list( $credits, 'contributing-developers' ); ?> |
|
85 |
</div> |
|
86 |
</div> |
|
0 | 87 |
|
16 | 88 |
<hr /> |
0 | 89 |
|
16 | 90 |
<div class="about__section"> |
91 |
<div class="column"> |
|
92 |
<?php wp_credits_section_title( $credits['groups']['props'] ); ?> |
|
93 |
<?php wp_credits_section_list( $credits, 'props' ); ?> |
|
94 |
</div> |
|
95 |
</div> |
|
0 | 96 |
|
16 | 97 |
<hr /> |
0 | 98 |
|
16 | 99 |
<?php if ( isset( $credits['groups']['translators'] ) || isset( $credits['groups']['validators'] ) ) : ?> |
100 |
<div class="about__section"> |
|
101 |
<div class="column"> |
|
102 |
<?php wp_credits_section_title( $credits['groups']['validators'] ); ?> |
|
103 |
<?php wp_credits_section_list( $credits, 'validators' ); ?> |
|
104 |
<?php wp_credits_section_list( $credits, 'translators' ); ?> |
|
105 |
</div> |
|
106 |
</div> |
|
107 |
||
108 |
<hr /> |
|
109 |
<?php endif; ?> |
|
110 |
||
111 |
<div class="about__section"> |
|
112 |
<div class="column"> |
|
113 |
<?php wp_credits_section_title( $credits['groups']['libraries'] ); ?> |
|
114 |
<?php wp_credits_section_list( $credits, 'libraries' ); ?> |
|
115 |
</div> |
|
116 |
</div> |
|
0 | 117 |
</div> |
118 |
<?php |
|
119 |
||
16 | 120 |
require_once ABSPATH . 'wp-admin/admin-footer.php'; |
0 | 121 |
|
122 |
return; |
|
123 |
||
16 | 124 |
// These are strings returned by the API that we want to be translatable. |
0 | 125 |
__( 'Project Leaders' ); |
16 | 126 |
/* translators: %s: The current WordPress version number. */ |
0 | 127 |
__( 'Core Contributors to WordPress %s' ); |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
128 |
__( 'Noteworthy Contributors' ); |
0 | 129 |
__( 'Cofounder, Project Lead' ); |
130 |
__( 'Lead Developer' ); |
|
5 | 131 |
__( 'Release Lead' ); |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
132 |
__( 'Release Design Lead' ); |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
133 |
__( 'Release Deputy' ); |
0 | 134 |
__( 'Core Developer' ); |
135 |
__( 'External Libraries' ); |