1<?php
2/**
3 * Credits administration panel.
4 *
5 * @package WordPress
6 * @subpackage Administration
7 */
8
9/** WordPress Administration Bootstrap */
10require_once __DIR__ . '/admin.php';
11require_once __DIR__ . '/includes/credits.php';
12
13// Used in the HTML title tag.
14$title = __( 'Credits' );
15
16list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
17$header_alt_text = sprintf(
18 /* translators: %s: Version number. */
19 __( 'WordPress %s' ),
20 $display_version
21);
22
23require_once ABSPATH . 'wp-admin/admin-header.php';
24
25$credits = wp_credits();
26?>
27<div class="wrap about__container">
28
29 <div class="about__header">
30 <div class="about__header-image">
31 <img src="images/about-release-logo.svg?ver=6.9" alt="<?php echo esc_attr( $header_alt_text ); ?>" />
32 </div>
33
34 <div class="about__header-title">
35 <h1>
36 <?php _e( 'Contributors' ); ?>
37 </h1>
38 </div>
39
40 <div class="about__header-text">
41 <?php _e( 'Created by a worldwide team of passionate individuals' ); ?>
42 </div>
43 </div>
44
45 <nav class="about__header-navigation nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
46 <a href="about.php" class="nav-tab"><?php _e( 'What’s New' ); ?></a>
47 <a href="credits.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'Credits' ); ?></a>
48 <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
49 <a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
50 <a href="contribute.php" class="nav-tab"><?php _e( 'Get Involved' ); ?></a>
51 </nav>
52
53 <div class="about__section has-1-column has-gutters">
54 <div class="column aligncenter">
55 <?php if ( ! $credits ) : ?>
56
57 <p>
58 <?php
59 printf(
60 /* translators: 1: https://wordpress.org/about/ */
61 __( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals.' ),
62 __( 'https://wordpress.org/about/' )
63 );
64 ?>
65 <br />
66 <a href="<?php echo esc_url( __( 'https://make.wordpress.org/contribute/' ) ); ?>"><?php _e( 'Get involved in WordPress.' ); ?></a>
67 </p>
68
69 <?php else : ?>
70
71 <p>
72 <?php _e( 'Want to see your name in lights on this page?' ); ?>
73 <br />
74 <a href="<?php echo esc_url( __( 'https://make.wordpress.org/contribute/' ) ); ?>"><?php _e( 'Get involved in WordPress.' ); ?></a>
75 </p>
76
77 <?php endif; ?>
78 </div>
79 </div>
80
81<?php
82if ( ! $credits ) {
83 echo '</div>';
84 require_once ABSPATH . 'wp-admin/admin-footer.php';
85 exit;
86}
87?>
88
89 <hr class="is-large" />
90
91 <div class="about__section">
92 <div class="column is-edge-to-edge">
93 <?php wp_credits_section_title( $credits['groups']['core-developers'] ); ?>
94 <?php wp_credits_section_list( $credits, 'core-developers' ); ?>
95 <?php wp_credits_section_list( $credits, 'contributing-developers' ); ?>
96 </div>
97 </div>
98
99 <hr />
100
101 <div class="about__section">
102 <div class="column">
103 <?php wp_credits_section_title( $credits['groups']['props'] ); ?>
104 <?php wp_credits_section_list( $credits, 'props' ); ?>
105 </div>
106 </div>
107
108 <hr />
109
110 <?php if ( isset( $credits['groups']['translators'] ) || isset( $credits['groups']['validators'] ) ) : ?>
111 <div class="about__section">
112 <div class="column">
113 <?php wp_credits_section_title( $credits['groups']['validators'] ); ?>
114 <?php wp_credits_section_list( $credits, 'validators' ); ?>
115 <?php wp_credits_section_list( $credits, 'translators' ); ?>
116 </div>
117 </div>
118
119 <hr />
120 <?php endif; ?>
121
122 <div class="about__section">
123 <div class="column">
124 <?php wp_credits_section_title( $credits['groups']['libraries'] ); ?>
125 <?php wp_credits_section_list( $credits, 'libraries' ); ?>
126 </div>
127 </div>
128</div>
129<?php
130
131require_once ABSPATH . 'wp-admin/admin-footer.php';
132
133return;
134
135// These are strings returned by the API that we want to be translatable.
136__( 'Project Leaders' );
137/* translators: %s: The current WordPress version number. */
138__( 'Core Contributors to WordPress %s' );
139__( 'Noteworthy Contributors' );
140__( 'Cofounder, Project Lead' );
141__( 'Lead Developer' );
142__( 'Release Lead' );
143__( 'Release Design Lead' );
144__( 'Release Deputy' );
145__( 'Release Coordination' );
146__( 'Minor Release Lead' );
147__( 'Core Developer' );
148__( 'Core Tech Lead' );
149__( 'Core Triage Lead' );
150__( 'Editor Tech Lead' );
151__( 'Editor Triage Lead' );
152__( 'Documentation Lead' );
153__( 'Test Lead' );
154__( 'Design Lead' );
155__( 'Performance Lead' );
156__( 'Default Theme Design Lead' );
157__( 'Default Theme Development Lead' );
158__( 'Tech Lead' );
159__( 'Triage Lead' );
160__( 'External Libraries' );
161