WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/29/2019 08:11:06 PM (23 months ago)
Author:
desrosj
Message:

Help/About: Update the 5.3 About page for RC3.

Previously [46556], [46572].

Reviewed by azaozz, desrosj.
Merges [46616] to the 5.3 branch.
Props ryelle, SergeyBiryukov, afercia, desrosj, davidbaumwald, azaozz.
See #47708.

Location:
branches/5.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.3

  • branches/5.3/src/wp-admin/credits.php

    r46572 r46617  
    1616
    1717include( ABSPATH . 'wp-admin/admin-header.php' );
     18
     19$credits = wp_credits();
    1820?>
    19 <div class="wrap about-wrap full-width-layout">
     21<div class="wrap about__container">
    2022
    2123    <div class="about__header">
     
    2729        </div>
    2830
    29         <div class="about__header-badge wp-badge">
    30             <?php
    31             printf(
    32                 /* translators: %s: The current WordPress version number. */
    33                 __( 'Version %s' ),
    34                 $display_version
    35             );
    36             ?>
     31        <div class="about__header-badge">
     32            <img src="https://wordpress.org/images/core/5.4/code-is-poetry-rc.svg" alt="<?php _e( 'Code is Poetry' ); ?>" />
    3733        </div>
    3834
     
    5753    </div>
    5854
    59     <div class="about-wrap-content">
     55    <div class="about__section">
     56        <div class="column">
     57            <h2><?php _e( 'WordPress is created by a worldwide team of passionate individuals.' ); ?></h2>
     58
     59            <p>
     60                <?php
     61                if ( ! $credits ) {
     62                    printf(
     63                        /* translators: 1: https://wordpress.org/about/, 2: https://make.wordpress.org/ */
     64                        __( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ),
     65                        __( 'https://wordpress.org/about/' ),
     66                        __( 'https://make.wordpress.org/' )
     67                    );
     68                } else {
     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                ?>
     76            </p>
     77        </div>
     78
     79        <div class="about__image aligncenter">
     80            <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="" />
     81        </div>
     82    </div>
     83
    6084<?php
    61 
    62 $credits = wp_credits();
    63 
    6485if ( ! $credits ) {
    65     echo '<p class="about-description">';
    66     printf(
    67         /* translators: 1: https://wordpress.org/about/, 2: https://make.wordpress.org/ */
    68         __( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ),
    69         __( 'https://wordpress.org/about/' ),
    70         __( 'https://make.wordpress.org/' )
    71     );
    72     echo '</p>';
    73     echo '</div>';
    7486    echo '</div>';
    7587    include( ABSPATH . 'wp-admin/admin-footer.php' );
     
    7789}
    7890
    79 echo '<p class="about-description">' . __( 'WordPress is created by a worldwide team of passionate individuals.' ) . "</p>\n";
     91$previous_type = '';
    8092
    81 echo '<p>' . sprintf(
    82     /* translators: %s: https://make.wordpress.org/ */
    83     __( 'Want to see your name in lights on this page? <a href="%s">Get involved in WordPress</a>.' ),
    84     __( 'https://make.wordpress.org/' )
    85 ) . '</p>';
     93foreach ( $credits['groups'] as $group_slug => $group_data ) :
     94    ?>
     95    <?php
     96    if ( $previous_type !== $group_data['type'] ) {
     97        echo '<hr />';
     98    }
     99    ?>
     100    <div class="about__section">
     101        <div class="column <?php echo 'titles' === $group_data['type'] ? 'has-subtle-background-color' : ''; ?>">
    86102
    87 foreach ( $credits['groups'] as $group_slug => $group_data ) {
     103    <?php
    88104    if ( $group_data['name'] ) {
    89105        if ( 'Translators' == $group_data['name'] ) {
     
    98114        }
    99115
    100         echo '<h2 class="wp-people-group">' . esc_html( $title ) . "</h2>\n";
     116        echo '<h2 class="wp-people-group-title">' . esc_html( $title ) . "</h2>\n";
    101117    }
    102118
     
    121137                echo '<li class="wp-person" id="wp-person-' . esc_attr( $person_data[2] ) . '">' . "\n\t";
    122138                echo '<a href="' . esc_url( sprintf( $credits['data']['profiles'], $person_data[2] ) ) . '" class="web">';
    123                 $size   = 'compact' == $group_data['type'] ? 30 : 60;
     139                $size   = 'compact' == $group_data['type'] ? 40 : 80;
    124140                $data   = get_avatar_data( $person_data[1] . '@md5.gravatar.com', array( 'size' => $size ) );
    125141                $size  *= 2;
     
    136152            break;
    137153    }
    138 }
     154    $previous_type = $group_data['type'];
     155    ?>
    139156
    140 ?>
     157        </div>
    141158    </div>
     159<?php endforeach; ?>
    142160</div>
    143161<?php
Note: See TracChangeset for help on using the changeset viewer.