credits.php (3637B)
1 <?php 2 /** 3 * Credits administration panel. 4 * 5 * @package WordPress 6 * @subpackage Administration 7 */ 8 9 /** WordPress Administration Bootstrap */ 10 require_once __DIR__ . '/admin.php'; 11 require_once __DIR__ . '/includes/credits.php'; 12 13 $title = __( 'Credits' ); 14 15 list( $display_version ) = explode( '-', get_bloginfo( 'version' ) ); 16 17 require_once ABSPATH . 'wp-admin/admin-header.php'; 18 19 $credits = wp_credits(); 20 ?> 21 <div class="wrap about__container"> 22 23 <div class="about__header"> 24 <div class="about__header-title"> 25 <h1> 26 <?php _e( 'Contributors' ); ?> 27 </h1> 28 </div> 29 30 <div class="about__header-text"> 31 <?php _e( 'WordPress 5.8 was created by a worldwide team of passionate individuals' ); ?> 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 42 <div class="about__section has-1-column"> 43 <div class="column aligncenter"> 44 <?php if ( ! $credits ) : ?> 45 46 <p> 47 <?php 48 printf( 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/' ) 52 ); 53 ?> 54 <br /> 55 <a href="https://make.wordpress.org/"><?php _e( 'Get involved in WordPress.' ); ?></a> 56 </p> 57 58 <?php else : ?> 59 60 <p> 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> 64 </p> 65 66 <?php endif; ?> 67 </div> 68 </div> 69 70 <?php 71 if ( ! $credits ) { 72 echo '</div>'; 73 require_once ABSPATH . 'wp-admin/admin-footer.php'; 74 exit; 75 } 76 ?> 77 78 <hr /> 79 80 <div class="about__section"> 81 <div class="column is-edge-to-edge"> 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> 87 88 <hr /> 89 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> 96 97 <hr /> 98 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> 117 </div> 118 <?php 119 120 require_once ABSPATH . 'wp-admin/admin-footer.php'; 121 122 return; 123 124 // These are strings returned by the API that we want to be translatable. 125 __( 'Project Leaders' ); 126 /* translators: %s: The current WordPress version number. */ 127 __( 'Core Contributors to WordPress %s' ); 128 __( 'Noteworthy Contributors' ); 129 __( 'Cofounder, Project Lead' ); 130 __( 'Lead Developer' ); 131 __( 'Release Lead' ); 132 __( 'Release Design Lead' ); 133 __( 'Release Deputy' ); 134 __( 'Core Developer' ); 135 __( 'External Libraries' );