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