Making WordPress.org


Ignore:
Timestamp:
07/02/2018 11:21:31 PM (7 years ago)
Author:
obenland
Message:

Main: Make releases page work with w.org

See #3673.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/inc/template-tags.php

    r7349 r7357  
    1616 */
    1717function release_row( $release ) {
     18    $is_rosetta = defined( 'IS_ROSETTA_NETWORK' ) && IS_ROSETTA_NETWORK;
    1819    ?>
    1920    <tr>
     
    2122        <td><?php echo esc_html( date_i18n( get_option( 'date_format' ), $release['builton'] ) ); ?></td>
    2223        <td><a href="<?php echo esc_url( $release['zip_url'] ); ?>">zip</a>
    23             <small>(<a href="<?php echo esc_url( $release['zip_url'] . '.md5' ); ?>">md5</a>)</small>
     24            <small>(<a href="<?php echo esc_url( $release['zip_url'] . '.md5' ); ?>">md5</a><?php if ( ! $is_rosetta ) : ?> | <a href="<?php echo esc_url( $release['zip_url'] . '.sha1' ); ?>">sha1</a><?php endif; ?>)</small>
    2425        </td>
    2526        <td><a href="<?php echo esc_url( $release['targz_url'] ); ?>">tar.gz</a>
    26             <small>(<a href="<?php echo esc_url( $release['targz_url'] . '.md5' ); ?>">md5</a>)</small>
     27            <small>(<a href="<?php echo esc_url( $release['targz_url'] . '.md5' ); ?>">md5</a><?php if ( ! $is_rosetta ) : ?> | <a href="<?php echo esc_url( $release['targz_url'] . '.sha1' ); ?>">sha1</a><?php endif; ?>)</small>
    2728        </td>
     29        <?php if ( ! $is_rosetta ) : ?>
     30            <td>
     31                <?php if ( ! empty( $release['iis_url'] ) ) : ?>
     32                    <a href="<?php echo esc_url( $release['iis_url'] ); ?>">IIS zip</a>
     33                    <small>(<a href="<?php echo esc_url( $release['iis_url'] . '.md5' ); ?>">md5</a> | <a href="<?php echo esc_url( $release['iis_url'] . '.sha1' ); ?>">sha1</a>)</small>
     34                <?php endif; ?>
     35            </td>
     36        <?php endif; ?>
    2837    </tr>
    2938    <?php
Note: See TracChangeset for help on using the changeset viewer.