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


Generated: Wed Dec 11 01:00:03 2019 Cross-referenced by PHPXref 0.7.1