Making WordPress.org


Ignore:
Timestamp:
05/02/2014 09:43:28 PM (12 years ago)
Author:
coffee2code
Message:

Code Reference: Various template and style improvements. props nicolealleyinteractivecom

  • Add plugin and theme handbook templates
  • Refactor templates
  • Refactor SCSS/CSS
  • SCSS/CSS cleanups
File:
1 edited

Legend:

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

    r554 r591  
    66 */
    77?>
    8     <div id="secondary" class="widget-area sidebar section" role="complementary">
     8<?php if ( is_active_sidebar( get_post_type() ) ) : ?>
     9    <div id="sidebar" class="widget-area sidebar section" role="complementary">
    910        <?php do_action( 'before_sidebar' ); ?>
    10         <?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?>
    11 
    12             <aside id="search" class="box gray widget widget_search">
    13                 <?php get_search_form(); ?>
    14             </aside>
    15 
    16             <aside id="archives" class="box gray widget">
    17                 <h1 class="widget-title"><?php _e( 'Archives', 'wporg' ); ?></h1>
    18                 <ul>
    19                     <?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
    20                 </ul>
    21             </aside>
    22 
    23             <aside id="meta" class="box gray widget">
    24                 <h1 class="widget-title"><?php _e( 'Meta', 'wporg' ); ?></h1>
    25                 <ul>
    26                     <?php wp_register(); ?>
    27                     <li><?php wp_loginout(); ?></li>
    28                     <?php wp_meta(); ?>
    29                 </ul>
    30             </aside>
    31 
     11        <?php if ( ! dynamic_sidebar( get_post_type() ) ) : ?>
    3212        <?php endif; // end sidebar widget area ?>
    3313    </div><!-- #secondary -->
     14<?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.