[ 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  $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-image">
  25              <img alt="<?php _e( 'Code is Poetry' ); ?>" src="images/about-badge.svg" />
  26          </div>
  27  
  28          <div class="about__header-container">
  29              <div class="about__header-title">
  30                  <p>
  31                      <?php _e( 'WordPress' ); ?>
  32                      <?php echo $display_version; ?>
  33                  </p>
  34              </div>
  35  
  36              <div class="about__header-text">
  37                  <?php _e( 'Jazz up your stories in an editor that’s cleaner, crisper, and does more to get out of your way.' ); ?>
  38              </div>
  39          </div>
  40  
  41          <nav class="about__header-navigation nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
  42              <a href="about.php" class="nav-tab"><?php _e( 'What&#8217;s New' ); ?></a>
  43              <a href="credits.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'Credits' ); ?></a>
  44              <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
  45              <a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
  46          </nav>
  47      </div>
  48  
  49      <div class="about__section is-feature">
  50          <div class="column">
  51              <h1><?php _e( 'Credits' ); ?></h1>
  52  
  53              <?php if ( ! $credits ) : ?>
  54  
  55              <p>
  56                  <?php
  57                  printf(
  58                      /* translators: 1: https://wordpress.org/about/, 2: https://make.wordpress.org/ */
  59                      __( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ),
  60                      __( 'https://wordpress.org/about/' ),
  61                      __( 'https://make.wordpress.org/' )
  62                  );
  63                  ?>
  64              </p>
  65  
  66              <?php else : ?>
  67  
  68              <p>
  69                  <?php _e( 'WordPress is created by a worldwide team of passionate individuals.' ); ?>
  70              </p>
  71              <p>
  72                  <?php
  73                  printf(
  74                      /* translators: %s: https://make.wordpress.org/ */
  75                      __( 'Want to see your name in lights on this page? <a href="%s">Get involved in WordPress</a>.' ),
  76                      __( 'https://make.wordpress.org/' )
  77                  );
  78                  ?>
  79              </p>
  80  
  81              <?php endif; ?>
  82          </div>
  83      </div>
  84  
  85  <?php
  86  if ( ! $credits ) {
  87      echo '</div>';
  88      require_once ABSPATH . 'wp-admin/admin-footer.php';
  89      exit;
  90  }
  91  ?>
  92  
  93      <hr />
  94  
  95      <div class="about__section">
  96          <div class="column has-subtle-background-color">
  97              <?php wp_credits_section_title( $credits['groups']['core-developers'] ); ?>
  98              <?php wp_credits_section_list( $credits, 'core-developers' ); ?>
  99              <?php wp_credits_section_list( $credits, 'contributing-developers' ); ?>
 100          </div>
 101      </div>
 102  
 103      <hr />
 104  
 105      <div class="about__section">
 106          <div class="column">
 107              <?php wp_credits_section_title( $credits['groups']['props'] ); ?>
 108              <?php wp_credits_section_list( $credits, 'props' ); ?>
 109          </div>
 110      </div>
 111  
 112      <hr />
 113  
 114      <?php if ( isset( $credits['groups']['translators'] ) || isset( $credits['groups']['validators'] ) ) : ?>
 115      <div class="about__section">
 116          <div class="column">
 117              <?php wp_credits_section_title( $credits['groups']['validators'] ); ?>
 118              <?php wp_credits_section_list( $credits, 'validators' ); ?>
 119              <?php wp_credits_section_list( $credits, 'translators' ); ?>
 120          </div>
 121      </div>
 122  
 123      <hr />
 124      <?php endif; ?>
 125  
 126      <div class="about__section">
 127          <div class="column">
 128              <?php wp_credits_section_title( $credits['groups']['libraries'] ); ?>
 129              <?php wp_credits_section_list( $credits, 'libraries' ); ?>
 130          </div>
 131      </div>
 132  </div>
 133  <?php
 134  
 135  require_once ABSPATH . 'wp-admin/admin-footer.php';
 136  
 137  return;
 138  
 139  // These are strings returned by the API that we want to be translatable.
 140  __( 'Project Leaders' );
 141  /* translators: %s: The current WordPress version number. */
 142  __( 'Core Contributors to WordPress %s' );
 143  __( 'Noteworthy Contributors' );
 144  __( 'Cofounder, Project Lead' );
 145  __( 'Lead Developer' );
 146  __( 'Release Lead' );
 147  __( 'Release Design Lead' );
 148  __( 'Release Deputy' );
 149  __( 'Core Developer' );
 150  __( 'External Libraries' );


Generated: Sun Feb 28 01:00:03 2021 Cross-referenced by PHPXref 0.7.1