credits.php 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <?php
  2. /**
  3. * Credits administration panel.
  4. *
  5. * @package WordPress
  6. * @subpackage Administration
  7. */
  8. /** WordPress Administration Bootstrap */
  9. require_once( dirname( __FILE__ ) . '/admin.php' );
  10. require_once( dirname( __FILE__ ) . '/includes/credits.php' );
  11. $title = __( 'Credits' );
  12. list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
  13. include( 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. <span><?php echo $display_version; ?></span>
  21. <?php _e( 'WordPress' ); ?>
  22. </h1>
  23. </div>
  24. <div class="about__header-badge"></div>
  25. <div class="about__header-text">
  26. <p>
  27. <?php
  28. printf(
  29. /* translators: %s: The current WordPress version number. */
  30. __( 'Introducing our most refined user experience with the improved block editor in WordPress %s!' ),
  31. $display_version
  32. );
  33. ?>
  34. </p>
  35. </div>
  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. </nav>
  42. </div>
  43. <div class="about__section">
  44. <div class="column">
  45. <h2><?php _e( 'WordPress is created by a worldwide team of passionate individuals.' ); ?></h2>
  46. <p>
  47. <?php
  48. if ( ! $credits ) {
  49. printf(
  50. /* translators: 1: https://wordpress.org/about/, 2: https://make.wordpress.org/ */
  51. __( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ),
  52. __( 'https://wordpress.org/about/' ),
  53. __( 'https://make.wordpress.org/' )
  54. );
  55. } else {
  56. printf(
  57. /* translators: %s: https://make.wordpress.org/ */
  58. __( 'Want to see your name in lights on this page? <a href="%s">Get involved in WordPress</a>.' ),
  59. __( 'https://make.wordpress.org/' )
  60. );
  61. }
  62. ?>
  63. </p>
  64. </div>
  65. <div class="about__image aligncenter">
  66. <img src="data:image/svg+xml;charset=utf8,%3Csvg width='1320' height='350' viewbox='0 0 1320 350' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='72' height='220' transform='matrix(1 0 0 -1 61 220)' fill='%23321017'/%3E%3Crect width='72' height='250' transform='matrix(1 0 0 -1 166 300)' fill='%23BD3854'/%3E%3Crect width='72' height='220' transform='matrix(1 0 0 -1 272 220)' fill='%23321017'/%3E%3Crect width='71' height='220' transform='matrix(1 0 0 -1 378 220)' fill='%235F1B29'/%3E%3Crect width='71' height='220' transform='matrix(1 0 0 -1 483 220)' fill='%23321017'/%3E%3Crect width='71' height='220' transform='matrix(1 0 0 -1 587 220)' fill='%235F1B29'/%3E%3Crect width='71.28' height='250' transform='matrix(1 0 0 -1 689 300)' fill='%23BD3854'/%3E%3Crect width='72' height='220' transform='matrix(1 0 0 -1 884 220)' fill='%235F1B29'/%3E%3Crect width='72' height='220' transform='matrix(1 0 0 -1 789 220)' fill='%23321017'/%3E%3Crect width='71' height='220' transform='matrix(1 0 0 -1 985 220)' fill='%23321017'/%3E%3Crect width='72' height='220' transform='matrix(1 0 0 -1 1084 220)' fill='%235F1B29'/%3E%3Crect width='72' height='220' transform='matrix(1 0 0 -1 1179 220)' fill='%233D0F19'/%3E%3C/svg%3E%0A" alt="" />
  67. </div>
  68. </div>
  69. <?php
  70. if ( ! $credits ) {
  71. echo '</div>';
  72. include( ABSPATH . 'wp-admin/admin-footer.php' );
  73. exit;
  74. }
  75. ?>
  76. <hr />
  77. <div class="about__section">
  78. <div class="column has-subtle-background-color">
  79. <?php wp_credits_section_title( $credits['groups']['core-developers'] ); ?>
  80. <?php wp_credits_section_list( $credits, 'core-developers' ); ?>
  81. <?php wp_credits_section_list( $credits, 'contributing-developers' ); ?>
  82. </div>
  83. </div>
  84. <hr />
  85. <div class="about__section">
  86. <div class="column">
  87. <?php wp_credits_section_title( $credits['groups']['props'] ); ?>
  88. <?php wp_credits_section_list( $credits, 'props' ); ?>
  89. </div>
  90. </div>
  91. <hr />
  92. <?php if ( isset( $credits['groups']['translators'] ) || isset( $credits['groups']['validators'] ) ) : ?>
  93. <div class="about__section">
  94. <div class="column">
  95. <?php wp_credits_section_title( $credits['groups']['validators'] ); ?>
  96. <?php wp_credits_section_list( $credits, 'validators' ); ?>
  97. <?php wp_credits_section_list( $credits, 'translators' ); ?>
  98. </div>
  99. </div>
  100. <hr />
  101. <?php endif; ?>
  102. <div class="about__section">
  103. <div class="column">
  104. <?php wp_credits_section_title( $credits['groups']['libraries'] ); ?>
  105. <?php wp_credits_section_list( $credits, 'libraries' ); ?>
  106. </div>
  107. </div>
  108. </div>
  109. <?php
  110. include( ABSPATH . 'wp-admin/admin-footer.php' );
  111. return;
  112. // These are strings returned by the API that we want to be translatable
  113. __( 'Project Leaders' );
  114. /* translators: %s: The current WordPress version number. */
  115. __( 'Core Contributors to WordPress %s' );
  116. __( 'Noteworthy Contributors' );
  117. __( 'Cofounder, Project Lead' );
  118. __( 'Lead Developer' );
  119. __( 'Release Lead' );
  120. __( 'Release Design Lead' );
  121. __( 'Release Deputy' );
  122. __( 'Core Developer' );
  123. __( 'External Libraries' );