Keine Beschreibung

credits.php 3.6KB

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