[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-admin/ -> credits.php (source)

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


Generated: Wed Dec 1 01:00:03 2021 Cross-referenced by PHPXref 0.7.1