[ 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-title">
  25              <p>
  26                  <?php _e( 'WordPress' ); ?>
  27                  <span><?php echo $display_version; ?></span>
  28              </p>
  29          </div>
  30  
  31          <div class="about__header-text">
  32              <p>
  33                  <?php _e( 'Building more with blocks, faster and easier.' ); ?>
  34              </p>
  35          </div>
  36  
  37          <nav class="about__header-navigation nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
  38              <a href="about.php" class="nav-tab"><?php _e( 'What&#8217;s New' ); ?></a>
  39              <a href="credits.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'Credits' ); ?></a>
  40              <a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
  41              <a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
  42          </nav>
  43      </div>
  44  
  45      <div class="about__section is-feature">
  46          <div class="column">
  47              <h1><?php _e( 'Credits' ); ?></h1>
  48  
  49              <?php if ( ! $credits ) : ?>
  50  
  51              <p>
  52                  <?php
  53                  printf(
  54                      /* translators: 1: https://wordpress.org/about/, 2: https://make.wordpress.org/ */
  55                      __( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ),
  56                      __( 'https://wordpress.org/about/' ),
  57                      __( 'https://make.wordpress.org/' )
  58                  );
  59                  ?>
  60              </p>
  61  
  62              <?php else : ?>
  63  
  64              <p>
  65                  <?php _e( 'WordPress is created by a worldwide team of passionate individuals.' ); ?>
  66              </p>
  67              <p>
  68                  <?php
  69                  printf(
  70                      /* translators: %s: https://make.wordpress.org/ */
  71                      __( 'Want to see your name in lights on this page? <a href="%s">Get involved in WordPress</a>.' ),
  72                      __( 'https://make.wordpress.org/' )
  73                  );
  74                  ?>
  75              </p>
  76  
  77              <?php endif; ?>
  78          </div>
  79  
  80          <div class="about__image aligncenter">
  81              <img src="data:image/svg+xml;charset=utf8,%3Csvg width='1000' height='300' viewbox='0 0 1000 300' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23F3F4F5' d='M0 0h1000v300H0z'/%3E%3Cpath style='mix-blend-mode:multiply' d='M39.6 140.22l931.1 3.36.8 76.5-929.5 6.6-2.4-86.46z' fill='%23216DD2'/%3E%3Cpath style='mix-blend-mode:multiply' d='M963.7 275.14s-.9-59.58-1-64.14c-.1-4.2-932.3 1.74-932.3 1.74L29 268.48v8.4' fill='%237FCDE6'/%3E%3Cpath style='mix-blend-mode:multiply' d='M958 73.32L47.8 70.26l1.2 78.66 907.3 4.26 1.7-79.86z' fill='%23072CF0'/%3E%3Cpath style='mix-blend-mode:multiply' d='M34 91.32l910.4-2.16L939.2 21 33.3 23.82l.7 67.5z' fill='%230188D9'/%3E%3C/svg%3E" alt="" />
  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: Thu Apr 2 01:00:03 2020 Cross-referenced by PHPXref 0.7.1