WordPress build repository browser

source: trunk/wp-admin/credits.php

Last change on this file was 57216, checked in by ryelle, 5 months ago

Help/About: Update the About page for 6.5.

Introducing the new content & design for the 6.5 About page & related pages. This style is simplified, with no header images, and brings back the illustrations from previous versions for Contribute, Freedoms, and Privacy.

This also includes a fix for heading hierarchy on the Get Involved page.

Props laurlittle, dansoschin, benjamin_zekavica, richtabor, joen, annezazu, swissspidy, marybaum, ryelle, huzaifaalmesbah.
See #60303.

Built from https://develop.svn.wordpress.org/trunk@57715

  • Property svn:eol-style set to native
File size: 3.8 KB
Line 
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
18require_once ABSPATH . 'wp-admin/admin-header.php';
19
20$credits = wp_credits();
21?>
22<div class="wrap about__container">
23
24        <div class="about__header">
25                <div class="about__header-title">
26                        <h1>
27                                <?php _e( 'Contributors' ); ?>
28                        </h1>
29                </div>
30
31                <div class="about__header-text">
32                        <?php _e( 'Created by a worldwide team of passionate individuals' ); ?>
33                </div>
34        </div>
35
36        <nav class="about__header-navigation nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
37                <a href="about.php" class="nav-tab"><?php _e( 'What&#8217;s New' ); ?></a>
38                <a href="credits.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'Credits' ); ?></a>
39                <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
40                <a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
41                <a href="contribute.php" class="nav-tab"><?php _e( 'Get Involved' ); ?></a>
42        </nav>
43
44        <div class="about__section has-1-column has-gutters">
45                <div class="column aligncenter">
46                        <?php if ( ! $credits ) : ?>
47
48                        <p>
49                                <?php
50                                printf(
51                                        /* translators: 1: https://wordpress.org/about/ */
52                                        __( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals.' ),
53                                        __( 'https://wordpress.org/about/' )
54                                );
55                                ?>
56                                <br />
57                                <a href="<?php echo esc_url( __( 'https://make.wordpress.org/contribute/' ) ); ?>"><?php _e( 'Get involved in WordPress.' ); ?></a>
58                        </p>
59
60                        <?php else : ?>
61
62                        <p>
63                                <?php _e( 'Want to see your name in lights on this page?' ); ?>
64                                <br />
65                                <a href="<?php echo esc_url( __( 'https://make.wordpress.org/contribute/' ) ); ?>"><?php _e( 'Get involved in WordPress.' ); ?></a>
66                        </p>
67
68                        <?php endif; ?>
69                </div>
70        </div>
71
72<?php
73if ( ! $credits ) {
74        echo '</div>';
75        require_once ABSPATH . 'wp-admin/admin-footer.php';
76        exit;
77}
78?>
79
80        <hr class="is-large" />
81
82        <div class="about__section">
83                <div class="column is-edge-to-edge">
84                        <?php wp_credits_section_title( $credits['groups']['core-developers'] ); ?>
85                        <?php wp_credits_section_list( $credits, 'core-developers' ); ?>
86                        <?php wp_credits_section_list( $credits, 'contributing-developers' ); ?>
87                </div>
88        </div>
89
90        <hr />
91
92        <div class="about__section">
93                <div class="column">
94                        <?php wp_credits_section_title( $credits['groups']['props'] ); ?>
95                        <?php wp_credits_section_list( $credits, 'props' ); ?>
96                </div>
97        </div>
98
99        <hr />
100
101        <?php if ( isset( $credits['groups']['translators'] ) || isset( $credits['groups']['validators'] ) ) : ?>
102        <div class="about__section">
103                <div class="column">
104                        <?php wp_credits_section_title( $credits['groups']['validators'] ); ?>
105                        <?php wp_credits_section_list( $credits, 'validators' ); ?>
106                        <?php wp_credits_section_list( $credits, 'translators' ); ?>
107                </div>
108        </div>
109
110        <hr />
111        <?php endif; ?>
112
113        <div class="about__section">
114                <div class="column">
115                        <?php wp_credits_section_title( $credits['groups']['libraries'] ); ?>
116                        <?php wp_credits_section_list( $credits, 'libraries' ); ?>
117                </div>
118        </div>
119</div>
120<?php
121
122require_once ABSPATH . 'wp-admin/admin-footer.php';
123
124return;
125
126// These are strings returned by the API that we want to be translatable.
127__( 'Project Leaders' );
128/* translators: %s: The current WordPress version number. */
129__( 'Core Contributors to WordPress %s' );
130__( 'Noteworthy Contributors' );
131__( 'Cofounder, Project Lead' );
132__( 'Lead Developer' );
133__( 'Release Lead' );
134__( 'Release Design Lead' );
135__( 'Release Deputy' );
136__( 'Core Developer' );
137__( 'External Libraries' );
Note: See TracBrowser for help on using the repository browser.