Making WordPress.org


Ignore:
Timestamp:
11/27/2016 10:57:20 PM (10 years ago)
Author:
ocean90
Message:

WP i18n teams: Update styles for overview and team pages to play nice with o2.

Fixes #2154.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wp-i18n-teams/views/locale-details.php

    r2200 r4430  
    1919                </li>
    2020                <li>
     21                        <strong><?php _e( 'Team site:', 'wporg' ); ?></strong>
     22                        <?php if ( $locale_data['team_url'] ) : ?>
     23                                <a href="<?php echo esc_url( $locale_data['team_url'] ); ?>"><?php
     24                                        $url = parse_url( $locale_data['team_url'] );
     25                                        printf( '%s%s', $url['host'], $url['path'] );
     26                                ?></a>
     27                        <?php else : ?>
     28                                &mdash;
     29                        <?php endif; ?>
     30                </li>
     31                <li>
     32                        <strong><?php _e( 'Forums:', 'wporg' ); ?></strong>
     33                        <?php if ( $locale_data['forums_url'] ) : ?>
     34                                <a href="<?php echo esc_url( $locale_data['forums_url'] ); ?>"><?php
     35                                        $url = parse_url( $locale_data['forums_url'] );
     36                                        printf( '%s%s', $url['host'], $url['path'] );
     37                                ?></a>
     38                        <?php else : ?>
     39                                &mdash;
     40                        <?php endif; ?>
     41                </li>
     42                <li>
    2143                        <strong><?php _e( 'Latest release:', 'wporg' ); ?></strong>
    2244                        <?php echo $locale_data['latest_release'] ? $locale_data['latest_release'] : '&mdash;'; ?>
     
    2951                        <strong><?php _e( 'GlotPress Locale Code:', 'wporg' ); ?></strong>
    3052                        <?php echo esc_html( $locale->slug ); ?>
     53                </li>
     54                <li>
     55                        <strong><?php _e( 'Translation Projects:', 'wporg' ); ?></strong>
     56                        <a href="https://translate.wordpress.org/locale/<?php echo $locale->slug; ?>">translate.wordpress.org/locale/<?php echo $locale->slug; ?></a>
    3157                </li>
    3258        </ul>
     
    5581
    5682
    57 <h2><?php _e( 'General Translation Editors', 'wporg' ); ?></h2>
     83<h2><?php printf( __( 'General Translation Editors (%s)', 'wporg' ), number_format_i18n( count( $locale_data['validators'] ) ) ); ?></h2>
    5884
    5985<?php if ( empty( $locale_data['validators'] ) ) : ?>
     
    6490                        ?>
    6591                        <li>
    66                                 <a class="user-avatar" href="https://profiles.wordpress.org/<?php echo esc_attr( $validator['nice_name'] ); ?>"><?php
    67                                         echo get_avatar( $validator['email'], 50 );
    68                                 ?></a>
    69                                 <a class="user-name" href="https://profiles.wordpress.org/<?php echo esc_attr( $validator['nice_name'] ); ?>"><?php
     92                                <a class="profile" href="https://profiles.wordpress.org/<?php echo esc_attr( $validator['nice_name'] ); ?>"><?php
     93                                        echo get_avatar( $validator['email'], 60 );
    7094                                        echo esc_html( $validator['display_name'] );
    7195                                ?></a>
     
    82106
    83107<?php if ( ! empty( $locale_data['project_validators'] ) ) : ?>
    84         <h2><?php _e( 'Project Translation Editors', 'wporg' ); ?></h2>
     108        <h2><?php printf( __( 'Project Translation Editors (%s)', 'wporg' ), number_format_i18n( count( $locale_data['project_validators'] ) ) ); ?></h2>
    85109
    86110        <ul class="validators project-validators">
     
    88112                        ?>
    89113                        <li>
    90                                 <a class="user-avatar" href="https://profiles.wordpress.org/<?php echo esc_attr( $validator['nice_name'] ); ?>"><?php
    91                                         echo get_avatar( $validator['email'], 25 );
    92                                 ?></a>
    93                                 <a class="user-name" href="https://profiles.wordpress.org/<?php echo esc_attr( $validator['nice_name'] ); ?>"><?php
     114                                <a class="profile" href="https://profiles.wordpress.org/<?php echo esc_attr( $validator['nice_name'] ); ?>"><?php
     115                                        echo get_avatar( $validator['email'], 40 );
    94116                                        echo esc_html( $validator['display_name'] );
    95117                                ?></a>
     118                                <?php
     119                                if ( $validator['slack'] ) {
     120                                        printf( '<span class="user-slack">@%s on <a href="%s">Slack</a></span>', $validator['slack'], 'https://make.wordpress.org/chat/' );
     121                                }
     122                                ?>
    96123                        </li>
    97124                <?php endforeach; ?>
     
    99126<?php endif; ?>
    100127
    101 
    102 <h2><?php _e( 'Translation Contributors', 'wporg' ); ?></h2>
     128<h2><?php printf( __( 'All Translation Contributors (%s)', 'wporg' ), number_format_i18n( count( $locale_data['translators'] ) ) ); ?></h2>
    103129
    104130<?php if ( empty( $locale_data['translators'] ) ) : ?>
Note: See TracChangeset for help on using the changeset viewer.