Making WordPress.org


Ignore:
Timestamp:
04/20/2017 12:48:20 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Support Theme: Provide more flexibility in page templates:

  • Use default page.php template for simple one-column content.
  • Keep page-forums-sidebar.php template for forum-related pages.
  • Add page-full-width.php template for wider content with in-page navigation.

Fixes #2574.

File:
1 edited

Legend:

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

    r5141 r5382  
    55 * This is the template that displays all pages by default.
    66 * Please note that this is the WordPress construct of pages
    7  * and that other 'pages' on your WordPress site will use a
     7 * and that other 'pages' on your WordPress site may use a
    88 * different template.
    99 *
     10 * @package WPBBP
    1011 */
    1112
    1213get_header(); ?>
    1314
    14 <main id="main" class="site-main" role="main">
     15    <main id="main" class="site-main" role="main">
    1516
    16     <div class="entry-content">
    17         <?php bbp_breadcrumb(); ?>
     17        <?php
     18        while ( have_posts() ) : the_post();
    1819
    19         <?php while ( have_posts() ) : the_post(); ?>
     20            get_template_part( 'template-parts/content', 'page' );
     21        endwhile; // End of the loop.
     22        ?>
    2023
    21             <header class="page-header">
    22                 <h1 class="page-title"><?php the_title(); ?></h1>
    23             </header><!-- .page-header -->
     24    </main><!-- #main -->
    2425
    25             <?php the_content(); ?>
    26 
    27         <?php endwhile; ?>
    28     </div>
    29 
    30 </main>
    31 
    32 <?php get_footer(); ?>
     26<?php
     27get_footer();
Note: See TracChangeset for help on using the changeset viewer.