Making WordPress.org

Changeset 1900


Ignore:
Timestamp:
09/21/2015 02:20:23 PM (9 years ago)
Author:
obenland
Message:

WP.org Themes: Add a translation section.

This is supposed to encourage users to get involved and help translate themes
and hopefully more into their languages.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php

    r1776 r1900  
    4545        $stylesheet = str_replace( '.css', '-rtl.css', $stylesheet );
    4646    }
    47     wp_enqueue_style( 'wporg-themes', $stylesheet, array(), 3 );
     47    wp_enqueue_style( 'wporg-themes', $stylesheet, array(), 4 );
    4848
    4949    if ( ! is_singular( 'page' ) ) {
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/style.css

    r1775 r1900  
    547547.theme-wrap .theme-devs,
    548548.theme-wrap .theme-support,
     549.theme-wrap .theme-translations,
    549550.theme-wrap .theme-meta-info {
    550551    font-size: 1.4em;
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/theme-single.php

    r1771 r1900  
    6666                        );
    6767                    }
    68                     echo implode( ', ', $tag_links );                       
     68                    echo implode( ', ', $tag_links );
    6969                    ?>
    7070                </div><!-- .theme-tags -->
     
    123123                </div><!-- .theme-support -->
    124124
     125                <div class="theme-translations">
     126                    <h4><?php _e( 'Translations', 'wporg-themes' ); ?></h4>
     127                    <p>
     128                        <a href="<?php echo esc_url( "https://translate.wordpress.org/projects/wp-themes/{$theme->slug}" ); ?>">
     129                            <?php printf( __( 'Translate %s', 'wporg-themes' ), $theme->name ); ?>
     130                        </a>
     131                    </p>
     132                </div><!-- .theme-translations -->
     133
    125134                <div class="theme-devs">
    126135                    <h4><?php _e( 'Development', 'wporg-themes' ); ?></h4>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/view-templates/theme-single.php

    r1771 r1900  
    113113                </div><!-- .theme-support -->
    114114
     115                <div class="theme-translations">
     116                    <h4><?php _e( 'Translations', 'wporg-themes' ); ?></h4>
     117                    <p>
     118                        <a href="https://translate.wordpress.org/projects/wp-themes/{{ data.slug }}">
     119                            <?php printf( __( 'Translate %s', 'wporg-themes' ), '{{ data.name }}' ); ?>
     120                        </a>
     121                    </p>
     122                </div><!-- .theme-translations -->
     123
    115124                <div class="theme-devs">
    116125                    <h4><?php _e( 'Development', 'wporg-themes' ); ?></h4>
Note: See TracChangeset for help on using the changeset viewer.