Changeset 554 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/index.php
- Timestamp:
- 04/24/2014 10:19:39 PM (13 years ago)
- 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 */ 2 13 3 <div class="pagebody"> 4 <div class="wrapper"> 5 <?php // get_template_part( 'breadcrumbs' ); ?> 14 get_header(); ?> 6 15 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"> 8 18 9 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>19 <?php if ( have_posts() ) : ?> 10 20 11 <h1><?php the_title(); ?></h1> 21 <?php /* Start the Loop */ ?> 22 <?php while ( have_posts() ) : the_post(); ?> 12 23 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 ?> 16 31 17 <?php // comments_template( '/examples.php' ); ?>32 <?php endwhile; ?> 18 33 19 < /article>20 34 <?php wporg_developer_paging_nav(); ?> 35 21 36 <?php else : ?> 22 23 < h1><?php _e('Not Found'); ?></h1>24 37 38 <?php get_template_part( 'content', 'none' ); ?> 39 25 40 <?php endif; ?> 26 41 27 </div><!-- /wrapper --> 28 </div><!-- /pagebody --> 42 <?php loop_pagination(); ?> 29 43 44 </main><!-- #main --> 45 <?php get_sidebar(); ?> 46 </div><!-- #primary --> 30 47 <?php get_footer(); ?>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)