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