Making WordPress.org


Ignore:
Timestamp:
04/24/2014 10:19:39 PM (13 years ago)
Author:
coffee2code
Message:

Update theme for developer.wordpress.org to the version being developed on GitHub.

File:
1 edited

Legend:

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

    r69 r554  
    1 <?php get_header(); ?>
     1<?php
     2/**
     3 * The main template file.
     4 *
     5 * This is the most generic template file in a WordPress theme
     6 * and one of the two required files for a theme (the other being style.css).
     7 * It is used to display a page when nothing more specific matches a query.
     8 * E.g., it puts together the home page when no home.php file exists.
     9 * Learn more: http://codex.wordpress.org/Template_Hierarchy
     10 *
     11 * @package wporg-developer
     12 */
    213
    3 <div class="pagebody">
    4         <div class="wrapper">
    5                 <?php // get_template_part( 'breadcrumbs' ); ?>
     14get_header(); ?>
    615
    7                 <?php if ( have_posts() ) : the_post(); ?>
     16        <div id="primary" class="content-area has-sidebar">
     17                <main id="main" class="site-main" role="main">
    818
    9                         <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
     19                <?php if ( have_posts() ) : ?>
    1020
    11                                 <h1><?php the_title(); ?></h1>
     21                        <?php /* Start the Loop */ ?>
     22                        <?php while ( have_posts() ) : the_post(); ?>
    1223
    13                                 <section class="content">
    14                                         <?php the_content(); ?>
    15                                 </section>
     24                                <?php
     25                                        /* Include the Post-Format-specific template for the content.
     26                                         * If you want to override this in a child theme, then include a file
     27                                         * called content-___.php (where ___ is the Post Format name) and that will be used instead.
     28                                         */
     29                                        get_template_part( 'content', get_post_format() );
     30                                ?>
    1631
    17                                 <?php // comments_template( '/examples.php' ); ?>
     32                        <?php endwhile; ?>
    1833
    19                         </article>
    20                
     34                        <?php wporg_developer_paging_nav(); ?>
     35
    2136                <?php else : ?>
    22                
    23                         <h1><?php _e('Not Found'); ?></h1>
    24                
     37
     38                        <?php get_template_part( 'content', 'none' ); ?>
     39
    2540                <?php endif; ?>
    2641
    27         </div><!-- /wrapper -->
    28 </div><!-- /pagebody -->
     42                <?php loop_pagination(); ?>
    2943
     44                </main><!-- #main -->
     45                <?php get_sidebar(); ?>
     46        </div><!-- #primary -->
    3047<?php get_footer(); ?>
Note: See TracChangeset for help on using the changeset viewer.