credits.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <?php
  2. /**
  3. * Credits administration panel.
  4. *
  5. * @package WordPress
  6. * @subpackage Administration
  7. */
  8. /** WordPress Administration Bootstrap */
  9. require_once __DIR__ . '/admin.php';
  10. require_once __DIR__ . '/includes/credits.php';
  11. // Used in the HTML title tag.
  12. $title = __( 'Credits' );
  13. list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
  14. require_once ABSPATH . 'wp-admin/admin-header.php';
  15. $credits = wp_credits();
  16. ?>
  17. <div class="wrap about__container">
  18. <div class="about__header">
  19. <div class="about__header-title">
  20. <h1>
  21. <?php _e( 'Contributors' ); ?>
  22. </h1>
  23. </div>
  24. <div class="about__header-text">
  25. <?php
  26. printf(
  27. /* translators: %s: Version number. */
  28. __( 'WordPress %s was created by a worldwide team of passionate individuals' ),
  29. $display_version
  30. );
  31. ?>
  32. </div>
  33. <nav class="about__header-navigation nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
  34. <a href="about.php" class="nav-tab"><?php _e( 'What&#8217;s New' ); ?></a>
  35. <a href="credits.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'Credits' ); ?></a>
  36. <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
  37. <a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
  38. </nav>
  39. </div>
  40. <div class="about__section has-1-column has-gutters">
  41. <div class="column aligncenter">
  42. <?php if ( ! $credits ) : ?>
  43. <p>
  44. <?php
  45. printf(
  46. /* translators: 1: https://wordpress.org/about/ */
  47. __( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals.' ),
  48. __( 'https://wordpress.org/about/' )
  49. );
  50. ?>
  51. <br />
  52. <a href="https://make.wordpress.org/"><?php _e( 'Get involved in WordPress.' ); ?></a>
  53. </p>
  54. <?php else : ?>
  55. <p>
  56. <?php _e( 'Want to see your name in lights on this page?' ); ?>
  57. <br />
  58. <a href="https://make.wordpress.org/"><?php _e( 'Get involved in WordPress.' ); ?></a>
  59. </p>
  60. <?php endif; ?>
  61. </div>
  62. </div>
  63. <?php
  64. if ( ! $credits ) {
  65. echo '</div>';
  66. require_once ABSPATH . 'wp-admin/admin-footer.php';
  67. exit;
  68. }
  69. ?>
  70. <hr class="is-large" />
  71. <div class="about__section">
  72. <div class="column is-edge-to-edge">
  73. <?php wp_credits_section_title( $credits['groups']['core-developers'] ); ?>
  74. <?php wp_credits_section_list( $credits, 'core-developers' ); ?>
  75. <?php wp_credits_section_list( $credits, 'contributing-developers' ); ?>
  76. </div>
  77. </div>
  78. <hr />
  79. <div class="about__section">
  80. <div class="column">
  81. <?php wp_credits_section_title( $credits['groups']['props'] ); ?>
  82. <?php wp_credits_section_list( $credits, 'props' ); ?>
  83. </div>
  84. </div>
  85. <hr />
  86. <?php if ( isset( $credits['groups']['translators'] ) || isset( $credits['groups']['validators'] ) ) : ?>
  87. <div class="about__section">
  88. <div class="column">
  89. <?php wp_credits_section_title( $credits['groups']['validators'] ); ?>
  90. <?php wp_credits_section_list( $credits, 'validators' ); ?>
  91. <?php wp_credits_section_list( $credits, 'translators' ); ?>
  92. </div>
  93. </div>
  94. <hr />
  95. <?php endif; ?>
  96. <div class="about__section">
  97. <div class="column">
  98. <?php wp_credits_section_title( $credits['groups']['libraries'] ); ?>
  99. <?php wp_credits_section_list( $credits, 'libraries' ); ?>
  100. </div>
  101. </div>
  102. </div>
  103. <?php
  104. require_once ABSPATH . 'wp-admin/admin-footer.php';
  105. return;
  106. // These are strings returned by the API that we want to be translatable.
  107. __( 'Project Leaders' );
  108. /* translators: %s: The current WordPress version number. */
  109. __( 'Core Contributors to WordPress %s' );
  110. __( 'Noteworthy Contributors' );
  111. __( 'Cofounder, Project Lead' );
  112. __( 'Lead Developer' );
  113. __( 'Release Lead' );
  114. __( 'Release Design Lead' );
  115. __( 'Release Deputy' );
  116. __( 'Core Developer' );
  117. __( 'External Libraries' );