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/archive.php

    r571 r591  
    1111get_header(); ?>
    1212
    13 <div class="<?php body_class( 'pagebody' ) ?>">
    14     <div class="site-main">
    15         <header class="page-header">
    16             <?php breadcrumb_trail(); ?>
    17         </header><!-- .page-header -->
     13    <div id="content-area">
    1814
    19         <?php if ( have_posts() ) : ?>
     15        <?php breadcrumb_trail(); ?>
     16
     17        <main id="main" class="site-main" role="main">
     18
     19            <?php if ( have_posts() ) : ?>
    2020
    2121
    22             <?php /* Start the Loop */ ?>
    23             <?php while ( have_posts() ) : the_post(); ?>
     22                <?php /* Start the Loop */ ?>
     23                <?php while ( have_posts() ) : the_post(); ?>
    2424
    25                 <?php
    26                     /* Include the Post-Format-specific template for the content.
    27                     * If you want to override this in a child theme, then include a file
    28                     * called content-___.php (where ___ is the Post Format name) and that will be used instead.
    29                     */
    30                     get_template_part( 'content', get_template_part_name() );
    31                 ?>
     25                    <?php
     26                        /* Include the Post-Format-specific template for the content.
     27                        * If you want to override this in a child theme, then include a file
     28                        * called content-___.php (where ___ is the Post Format name) and that will be used instead.
     29                        */
     30                        get_template_part( 'content', 'reference' );
     31                    ?>
    3232
    33             <?php endwhile; ?>
     33                <?php endwhile; ?>
    3434
    35             <?php //wporg_developer_paging_nav(); ?>
     35                <?php //wporg_developer_paging_nav(); ?>
    3636
    37         <?php else : ?>
     37            <?php else : ?>
    3838
    39             <?php get_template_part( 'content', 'none' ); ?>
     39                <?php get_template_part( 'content', 'none' ); ?>
    4040
    41         <?php endif; ?>
    42         <?php loop_pagination(); ?>
    43 
    44     </div>
    45     <!-- /site-main -->
    46 </div><!-- /pagebody -->
     41            <?php endif; ?>
     42            <?php loop_pagination(); ?>
     43        </main>
     44        <!-- /wrapper -->
     45    </div><!-- /pagebody -->
    4746
    4847<?php get_footer(); ?>
Note: See TracChangeset for help on using the changeset viewer.