Ticket #2574: 2574.one-template.patch
File 2574.one-template.patch, 15.8 KB (added by , 8 years ago) |
---|
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php
31 31 'forum-wp4-style', 32 32 get_template_directory_uri() . '/style.css', 33 33 array( 'bb-base' ), 34 '20170310 b'34 '20170310c' 35 35 ); 36 36 37 37 wp_style_add_data( 'forum-wp4-style', 'rtl', 'replace' ); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/page-forums-sidebar.php
1 <?php2 /**3 * Template Name: Page with a Forums Sidebar4 *5 * @package bbPress6 * @subpackage Theme7 */8 9 get_header(); ?>10 11 <main id="main" class="site-main" role="main">12 13 <div class="entry-content">14 <?php bbp_breadcrumb(); ?>15 16 <?php while ( have_posts() ) : the_post(); ?>17 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>29 30 <?php get_footer(); ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/page.php
Property changes on: sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/page-forums-sidebar.php ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property
4 4 * 5 5 * This is the template that displays all pages by default. 6 6 * Please note that this is the WordPress construct of pages 7 * and that other 'pages' on your WordPress site willuse a7 * and that other 'pages' on your WordPress site may use a 8 8 * different template. 9 9 * 10 * @package WPBBP 10 11 */ 11 12 12 13 get_header(); ?> 13 14 14 <main id="main" class="site-main" role="main">15 <main id="main" class="site-main" role="main"> 15 16 16 <div class="entry-content">17 <?php bbp_breadcrumb(); ?>17 <?php 18 while ( have_posts() ) : the_post(); 18 19 19 <?php while ( have_posts() ) : the_post(); ?> 20 get_template_part( 'template-parts/content', 'page' ); 21 endwhile; // End of the loop. 22 ?> 20 23 21 <header class="page-header"> 22 <h1 class="page-title"><?php the_title(); ?></h1> 23 </header><!-- .page-header --> 24 </main><!-- #main --> 24 25 25 <?php the_content(); ?> 26 27 <?php endwhile; ?> 28 </div> 29 30 </main> 31 32 <?php get_footer(); ?> 26 <?php 27 get_footer(); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/sass/site/_bbpress.scss
73 73 74 74 75 75 .bbpress { 76 main#main { 77 margin-top: 2rem; 78 padding: 0 10px 10px; 79 80 @extend .clear; 81 82 .entry-content, 83 .entry-meta { 84 padding: 0; 85 86 @media(min-width:568px) { 87 padding: 0 ms(4); 88 } 89 } 90 91 > .entry-content { 92 max-width: 48rem; 93 94 @media screen and ( min-width: $ms-breakpoint ) { 95 float: left; 96 padding: 0; 97 width: 65%; 98 } 99 } 100 101 @media screen and ( min-width: $ms-breakpoint ) { 102 .entry-content, 103 .entry-meta { 104 padding-left: 0; 105 padding-right: 0; 106 } 107 108 .entry-meta { 109 float: right; 110 width: 30%; 111 } 112 } 113 } 114 76 115 #bbpress-forums { 77 116 78 117 div.bbp-template-notice { -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/sass/site/_site.scss
5 5 font-size: ms(0); 6 6 } 7 7 8 main#main {9 margin-top: 2rem;10 padding: 0 10px 10px;11 font-size: ms(-2);12 13 @extend .clear;14 }15 16 .bbpress main#main,17 .page-template-page-forums-sidebar main#main {18 19 .entry-content,20 .entry-meta {21 padding: 0;22 23 @media(min-width:568px) {24 padding: 0 ms(4);25 }26 }27 28 > .entry-content {29 max-width: 48rem;30 31 @media screen and ( min-width: $ms-breakpoint ) {32 float: left;33 padding: 0;34 width: 65%;35 }36 }37 38 @media screen and ( min-width: $ms-breakpoint ) {39 .entry-content,40 .entry-meta {41 padding-left: 0;42 padding-right: 0;43 }44 45 .entry-meta {46 float: right;47 width: 30%;48 }49 }50 }51 52 8 /*-------------------------------------------------------------- 53 9 # .site-header 54 10 --------------------------------------------------------------*/ … … 307 263 } 308 264 } 309 265 310 .page & {311 padding -top: 0;266 #page & { 267 padding: 0 10px ms(10); 312 268 } 313 269 314 270 .page-header { … … 539 495 } 540 496 } 541 497 } 498 499 .submenu { 500 margin-left: 0; 501 } 502 503 .submenu li { 504 border-bottom: 1px solid #dedede; 505 font-size: 12px; 506 line-height: 18px; 507 padding: 5px 0; 508 } 509 510 .submenu li.current { 511 font-weight: bold; 512 } 513 514 .submenu li:last-child { 515 border-bottom: 0; 516 } 517 518 .submenu li ul { 519 margin-left: 16px; 520 } 521 522 .submenu li ul li { 523 border: none; 524 line-height: 1.4em; 525 padding-bottom: 2px; 526 } 542 527 } 543 528 544 529 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/style-rtl.css
1911 1911 /*-------------------------------------------------------------- 1912 1912 # Clearings 1913 1913 --------------------------------------------------------------*/ 1914 .clear:before, main#main:before, .three-up:before, .bbp-view .review-ratings:before,1914 .clear:before, .three-up:before, .bbpress main#main:before, .bbp-view .review-ratings:before, 1915 1915 .clear:after, 1916 main#main:after,1917 1916 .three-up:after, 1917 .bbpress main#main:after, 1918 1918 .bbp-view .review-ratings:after, 1919 1919 .entry-content:before, 1920 1920 .entry-content:after, … … 1931 1931 table-layout: fixed; 1932 1932 } 1933 1933 1934 .clear:after, main#main:after, .three-up:after, .bbp-view .review-ratings:after,1934 .clear:after, .three-up:after, .bbpress main#main:after, .bbp-view .review-ratings:after, 1935 1935 .entry-content:after, 1936 1936 .comment-content:after, 1937 1937 .site-header:after, … … 2003 2003 font-size: 1rem; 2004 2004 } 2005 2005 2006 main#main {2007 margin-top: 2rem;2008 padding: 0 10px 10px;2009 font-size: 0.8rem;2010 }2011 2012 .bbpress main#main .entry-content,2013 .bbpress main#main .entry-meta,2014 .page-template-page-forums-sidebar main#main .entry-content,2015 .page-template-page-forums-sidebar main#main .entry-meta {2016 padding: 0;2017 }2018 2019 @media (min-width: 568px) {2020 .bbpress main#main .entry-content,2021 .bbpress main#main .entry-meta,2022 .page-template-page-forums-sidebar main#main .entry-content,2023 .page-template-page-forums-sidebar main#main .entry-meta {2024 padding: 0 1.5625rem;2025 }2026 }2027 2028 .bbpress main#main > .entry-content,2029 .page-template-page-forums-sidebar main#main > .entry-content {2030 max-width: 48rem;2031 }2032 2033 @media screen and (min-width: 48em) {2034 .bbpress main#main > .entry-content,2035 .page-template-page-forums-sidebar main#main > .entry-content {2036 float: right;2037 padding: 0;2038 width: 65%;2039 }2040 }2041 2042 @media screen and (min-width: 48em) {2043 .bbpress main#main .entry-content,2044 .bbpress main#main .entry-meta,2045 .page-template-page-forums-sidebar main#main .entry-content,2046 .page-template-page-forums-sidebar main#main .entry-meta {2047 padding-right: 0;2048 padding-left: 0;2049 }2050 .bbpress main#main .entry-meta,2051 .page-template-page-forums-sidebar main#main .entry-meta {2052 float: left;2053 width: 30%;2054 }2055 }2056 2057 2006 /*-------------------------------------------------------------- 2058 2007 # .site-header 2059 2008 --------------------------------------------------------------*/ … … 2296 2245 } 2297 2246 } 2298 2247 2299 .page .site-main {2300 padding -top: 0;2248 #page .site-main { 2249 padding: 0 10px 3.0517578125rem; 2301 2250 } 2302 2251 2303 2252 .site-main .page-header h1 { … … 2516 2465 border-top: 2px solid #eee; 2517 2466 } 2518 2467 2468 .page .submenu { 2469 margin-right: 0; 2470 } 2471 2472 .page .submenu li { 2473 border-bottom: 1px solid #dedede; 2474 font-size: 12px; 2475 line-height: 18px; 2476 padding: 5px 0; 2477 } 2478 2479 .page .submenu li.current { 2480 font-weight: bold; 2481 } 2482 2483 .page .submenu li:last-child { 2484 border-bottom: 0; 2485 } 2486 2487 .page .submenu li ul { 2488 margin-right: 16px; 2489 } 2490 2491 .page .submenu li ul li { 2492 border: none; 2493 line-height: 1.4em; 2494 padding-bottom: 2px; 2495 } 2496 2519 2497 /*-------------------------------------------------------------- 2520 2498 # 404 Error page 2521 2499 --------------------------------------------------------------*/ … … 2590 2568 } 2591 2569 } 2592 2570 2571 .bbpress main#main { 2572 margin-top: 2rem; 2573 padding: 0 10px 10px; 2574 } 2575 2576 .bbpress main#main .entry-content, 2577 .bbpress main#main .entry-meta { 2578 padding: 0; 2579 } 2580 2581 @media (min-width: 568px) { 2582 .bbpress main#main .entry-content, 2583 .bbpress main#main .entry-meta { 2584 padding: 0 1.5625rem; 2585 } 2586 } 2587 2588 .bbpress main#main > .entry-content { 2589 max-width: 48rem; 2590 } 2591 2592 @media screen and (min-width: 48em) { 2593 .bbpress main#main > .entry-content { 2594 float: right; 2595 padding: 0; 2596 width: 65%; 2597 } 2598 } 2599 2600 @media screen and (min-width: 48em) { 2601 .bbpress main#main .entry-content, 2602 .bbpress main#main .entry-meta { 2603 padding-right: 0; 2604 padding-left: 0; 2605 } 2606 .bbpress main#main .entry-meta { 2607 float: left; 2608 width: 30%; 2609 } 2610 } 2611 2593 2612 .bbpress #bbpress-forums div.bbp-template-notice { 2594 2613 padding: .5rem; 2595 2614 border: none; -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/style.css
1913 1913 /*-------------------------------------------------------------- 1914 1914 # Clearings 1915 1915 --------------------------------------------------------------*/ 1916 .clear:before, main#main:before, .three-up:before, .bbp-view .review-ratings:before,1916 .clear:before, .three-up:before, .bbpress main#main:before, .bbp-view .review-ratings:before, 1917 1917 .clear:after, 1918 main#main:after,1919 1918 .three-up:after, 1919 .bbpress main#main:after, 1920 1920 .bbp-view .review-ratings:after, 1921 1921 .entry-content:before, 1922 1922 .entry-content:after, … … 1933 1933 table-layout: fixed; 1934 1934 } 1935 1935 1936 .clear:after, main#main:after, .three-up:after, .bbp-view .review-ratings:after,1936 .clear:after, .three-up:after, .bbpress main#main:after, .bbp-view .review-ratings:after, 1937 1937 .entry-content:after, 1938 1938 .comment-content:after, 1939 1939 .site-header:after, … … 2005 2005 font-size: 1rem; 2006 2006 } 2007 2007 2008 main#main {2009 margin-top: 2rem;2010 padding: 0 10px 10px;2011 font-size: 0.8rem;2012 }2013 2014 .bbpress main#main .entry-content,2015 .bbpress main#main .entry-meta,2016 .page-template-page-forums-sidebar main#main .entry-content,2017 .page-template-page-forums-sidebar main#main .entry-meta {2018 padding: 0;2019 }2020 2021 @media (min-width: 568px) {2022 .bbpress main#main .entry-content,2023 .bbpress main#main .entry-meta,2024 .page-template-page-forums-sidebar main#main .entry-content,2025 .page-template-page-forums-sidebar main#main .entry-meta {2026 padding: 0 1.5625rem;2027 }2028 }2029 2030 .bbpress main#main > .entry-content,2031 .page-template-page-forums-sidebar main#main > .entry-content {2032 max-width: 48rem;2033 }2034 2035 @media screen and (min-width: 48em) {2036 .bbpress main#main > .entry-content,2037 .page-template-page-forums-sidebar main#main > .entry-content {2038 float: left;2039 padding: 0;2040 width: 65%;2041 }2042 }2043 2044 @media screen and (min-width: 48em) {2045 .bbpress main#main .entry-content,2046 .bbpress main#main .entry-meta,2047 .page-template-page-forums-sidebar main#main .entry-content,2048 .page-template-page-forums-sidebar main#main .entry-meta {2049 padding-left: 0;2050 padding-right: 0;2051 }2052 .bbpress main#main .entry-meta,2053 .page-template-page-forums-sidebar main#main .entry-meta {2054 float: right;2055 width: 30%;2056 }2057 }2058 2059 2008 /*-------------------------------------------------------------- 2060 2009 # .site-header 2061 2010 --------------------------------------------------------------*/ … … 2298 2247 } 2299 2248 } 2300 2249 2301 .page .site-main {2302 padding -top: 0;2250 #page .site-main { 2251 padding: 0 10px 3.0517578125rem; 2303 2252 } 2304 2253 2305 2254 .site-main .page-header h1 { … … 2518 2467 border-top: 2px solid #eee; 2519 2468 } 2520 2469 2470 .page .submenu { 2471 margin-left: 0; 2472 } 2473 2474 .page .submenu li { 2475 border-bottom: 1px solid #dedede; 2476 font-size: 12px; 2477 line-height: 18px; 2478 padding: 5px 0; 2479 } 2480 2481 .page .submenu li.current { 2482 font-weight: bold; 2483 } 2484 2485 .page .submenu li:last-child { 2486 border-bottom: 0; 2487 } 2488 2489 .page .submenu li ul { 2490 margin-left: 16px; 2491 } 2492 2493 .page .submenu li ul li { 2494 border: none; 2495 line-height: 1.4em; 2496 padding-bottom: 2px; 2497 } 2498 2521 2499 /*-------------------------------------------------------------- 2522 2500 # 404 Error page 2523 2501 --------------------------------------------------------------*/ … … 2592 2570 } 2593 2571 } 2594 2572 2573 .bbpress main#main { 2574 margin-top: 2rem; 2575 padding: 0 10px 10px; 2576 } 2577 2578 .bbpress main#main .entry-content, 2579 .bbpress main#main .entry-meta { 2580 padding: 0; 2581 } 2582 2583 @media (min-width: 568px) { 2584 .bbpress main#main .entry-content, 2585 .bbpress main#main .entry-meta { 2586 padding: 0 1.5625rem; 2587 } 2588 } 2589 2590 .bbpress main#main > .entry-content { 2591 max-width: 48rem; 2592 } 2593 2594 @media screen and (min-width: 48em) { 2595 .bbpress main#main > .entry-content { 2596 float: left; 2597 padding: 0; 2598 width: 65%; 2599 } 2600 } 2601 2602 @media screen and (min-width: 48em) { 2603 .bbpress main#main .entry-content, 2604 .bbpress main#main .entry-meta { 2605 padding-left: 0; 2606 padding-right: 0; 2607 } 2608 .bbpress main#main .entry-meta { 2609 float: right; 2610 width: 30%; 2611 } 2612 } 2613 2595 2614 .bbpress #bbpress-forums div.bbp-template-notice { 2596 2615 padding: .5rem; 2597 2616 border: none; -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/template-parts/content-page.php
1 <?php 2 /** 3 * Template part for displaying page content in page.php. 4 * 5 * @link https://codex.wordpress.org/Template_Hierarchy 6 * 7 * @package WPBBP 8 */ 9 10 ?> 11 12 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 13 <header class="entry-header"> 14 <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> 15 </header><!-- .entry-header --> 16 17 <div class="entry-content"> 18 <section> 19 <div class="container"> 20 <?php 21 the_content(); 22 23 wp_link_pages( array( 24 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'wporg-plugins' ), 25 'after' => '</div>', 26 ) ); 27 ?> 28 </div> 29 </section> 30 </div><!-- .entry-content --> 31 32 <footer class="entry-footer"> 33 <?php 34 edit_post_link( 35 sprintf( 36 /* translators: %s: Name of current post */ 37 esc_html__( 'Edit %s', 'wporg-plugins' ), 38 the_title( '<span class="screen-reader-text">"', '"</span>', false ) 39 ), 40 '<span class="edit-link">', 41 '</span>' 42 ); 43 ?> 44 </footer><!-- .entry-footer --> 45 </article><!-- #post-## --> 46 No newline at end of file