Making WordPress.org

Changeset 3466


Ignore:
Timestamp:
06/19/2016 11:53:35 AM (8 years ago)
Author:
obenland
Message:

Plugin Directory: Move banner so it receives the header's padding.

See #1719.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-single.php

    r3464 r3466  
    2020
    2121?><article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    22     <?php if ( time() - get_post_modified_time() > 2 * YEAR_IN_SECONDS ) : ?>
    23         <div class="plugin-notice notice notice-warning notice-alt">
    24             <p><?php _e( 'This plugin <strong>hasn&#8217;t been updated in over 2 years</strong>. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.', 'wporg-plugins' ); ?></p>
    25         </div><!-- .plugin-notice -->
    26     <?php endif; ?>
    27 
    2822    <?php echo Template::get_plugin_banner( get_post(), 'html' ); ?>
    2923
    3024    <header class="plugin-header">
     25        <?php if ( time() - get_post_modified_time() > 2 * YEAR_IN_SECONDS ) : ?>
     26            <div class="plugin-notice notice notice-warning notice-alt">
     27                <p><?php _e( 'This plugin <strong>hasn&#146;t been updated in over 2 years</strong>. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.', 'wporg-plugins' ); ?></p>
     28            </div><!-- .plugin-notice -->
     29        <?php endif; ?>
     30
    3131        <div class="plugin-thumbnail">
    3232            <?php echo Template::get_plugin_icon( get_post(), 'html' ); ?>
Note: See TracChangeset for help on using the changeset viewer.