WordPress.org

Making WordPress.org

Changeset 4956


Ignore:
Timestamp:
02/20/2017 09:58:02 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Support Theme: Remove unused code in sidebar.php.

There is no sidebar on the front page or on non-bbPress pages. There are no blog categories or tags either.

File:
1 edited

Legend:

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

    r4955 r4956  
    140140        <?php endif; ?>
    141141
    142     <?php elseif ( is_front_page() ) : ?>
    143 
    144         <div class="feature">
    145             <h4><?php _e( 'WordPress', 'wporg-forums' ); ?></h4>
    146             <p><a href="https://wordpress.org"><img width="78" height="58" alt="" src="<?php echo get_template_directory_uri(); ?>/images/wordpress.gif"/></a>The world&#8217;s most powerful web publishing software.</p>
    147         </div>
    148         <div class="feature">
    149             <h4><?php _e( 'bbPress', 'wporg-forums' ); ?></h4>
    150             <p><a href="https://bbpress.org"><img width="78" height="58" alt="" src="<?php echo get_template_directory_uri(); ?>/images/bbpress.gif"/></a>Simple and elegant forum software from the creators of WordPress.</p>
    151         </div>
    152         <div style="margin-right: 0pt;" class="feature">
    153             <h4><?php _e( 'BuddyPress', 'wporg-forums' ); ?></h4>
    154             <p><a href="https://buddypress.org"><img width="78" height="58" alt="" src="<?php echo get_template_directory_uri(); ?>/images/buddypress.gif"/></a>Create a fully featured niche social-network with a few easy clicks.</p>
    155         </div>
    156 
    157     <?php elseif ( ( ! is_page( 'login' ) && ! is_page( 'register' ) && ! is_page( 'lost-password' ) ) || is_home() || is_singular( 'post' ) || is_archive() ) : ?>
    158 
    159         <div>
    160             <h4><?php _e( 'Categories', 'wporg-forums' ); ?></h4>
    161             <ul class="blog-categories">
    162                 <?php wp_list_categories( array( 'title_li' => false ) ); ?>
    163             </ul>
    164         </div>
    165 
    166         <div>
    167             <h4><?php _e( 'Tags', 'wporg-forums' ); ?></h4>
    168             <?php wp_tag_cloud(); ?>
    169         </div>
    170 
    171142    <?php endif; ?>
    172143
Note: See TracChangeset for help on using the changeset viewer.