Making WordPress.org


Ignore:
Timestamp:
04/20/2017 12:48:20 AM (8 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-forums-sidebar.php

    r5141 r5382  
    33 * Template Name: Page with a Forums Sidebar
    44 *
    5  * @package bbPress
    6  * @subpackage Theme
     5 * @package WPBBP
    76 */
    87
    98get_header(); ?>
    109
    11 <main id="main" class="site-main" role="main">
     10    <main id="main" class="site-main page-forums-sidebar" role="main">
    1211
    13     <div class="entry-content">
    14         <?php bbp_breadcrumb(); ?>
     12        <?php
     13        while ( have_posts() ) : the_post();
    1514
    16         <?php while ( have_posts() ) : the_post(); ?>
     15            get_template_part( 'template-parts/content', 'page' );
     16        endwhile; // End of the loop.
     17        ?>
    1718
    18             <header class="page-header">
    19                 <h1 class="page-title"><?php the_title(); ?></h1>
    20             </header><!-- .page-header -->
    21 
    22             <?php the_content(); ?>
    23 
    24         <?php endwhile; ?>
    25     </div>
    26 
    27     <?php get_sidebar(); ?>
    28 </main>
     19        <?php get_sidebar(); ?>
     20    </main>
    2921
    3022<?php get_footer(); ?>
Note: See TracChangeset for help on using the changeset viewer.