Making WordPress.org


Ignore:
Timestamp:
03/01/2016 10:46:06 PM (11 years ago)
Author:
ocean90
Message:

Translate: Display contributors and editors on project pages of a locale.

See #1388.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/translate.wordpress.org/public_html/gp-templates-new/locale-project.php

    r2285 r2663  
    179179</div>
    180180
     181<div class="locale-project-contributors">
     182        <div class="locale-project-contributors-group locale-project-contributors-contributors">
     183                <h3>Translation Contributors</h3>
     184                <?php if ( $locale_contributors['contributors'] ) : ?>
     185                <ul>
     186                        <?php
     187                        foreach ( $locale_contributors['contributors'] as $contributor ) {
     188                                printf(
     189                                        '<li><a href="https://profiles.wordpress.org/%s/">%s %s</a></li>',
     190                                        $contributor->nicename,
     191                                        get_avatar( $contributor->email, 30 ),
     192                                        $contributor->display_name ? $contributor->display_name : $contributor->nicename
     193                                );
     194                        }
     195                        ?>
     196                </ul>
     197                <?php else : ?>
     198                        <p>None, be the first?</p>
     199                <?php endif; ?>
     200        </div>
     201        <div class="locale-project-contributors-group locale-project-contributors-editors">
     202                <h3>Translation Editors</h3>
     203                <?php if ( $locale_contributors['editors'] ) : ?>
     204                <ul>
     205                        <?php
     206                        foreach ( $locale_contributors['editors'] as $editor ) {
     207                                printf(
     208                                        '<li><a href="https://profiles.wordpress.org/%s/">%s %s</a></li>',
     209                                        $editor->nicename,
     210                                        get_avatar( $editor->email, 40 ),
     211                                        $editor->display_name ? $editor->display_name : $editor->nicename
     212                                );
     213                        }
     214                        ?>
     215                </ul>
     216                <?php else : ?>
     217                        <p>None, be the first?</p>
     218                <?php endif; ?>
     219        </div>
     220</div>
     221
    181222<script>
    182223        jQuery( document ).ready( function( $ ) {
Note: See TracChangeset for help on using the changeset viewer.