Making WordPress.org

Ticket #2551: meta-2551.patch

File meta-2551.patch, 4.6 KB (added by SergeyBiryukov, 8 years ago)
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php

     
    8989         * Suppress Gravatars on lists of topics.
    9090         */
    9191        public function get_author_link( $r ) {
    92                 if ( ! bbp_is_single_topic() || bbp_is_topic_edit() ) {
     92                if ( ! bbp_is_single_topic() && ! bbp_is_single_reply() || bbp_is_topic_edit() ) {
    9393                        $r['type'] = 'name';
    9494                }
    9595                return $r;
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/content-single-reply.php

     
     1<?php
     2
     3/**
     4 * Single Reply Content Part
     5 *
     6 * @package bbPress
     7 * @subpackage Theme
     8 */
     9
     10?>
     11
     12<?php bbp_breadcrumb(); ?>
     13
     14<div id="bbpress-forums">
     15
     16        <?php do_action( 'bbp_template_before_single_reply' ); ?>
     17
     18        <?php if ( post_password_required() ) : ?>
     19
     20                <?php bbp_get_template_part( 'form', 'protected' ); ?>
     21
     22        <?php else : ?>
     23
     24                <ul id="topic-<?php bbp_topic_id(); ?>-replies" class="forums bbp-replies">
     25
     26                        <li class="bbp-body">
     27
     28                                <?php bbp_get_template_part( 'loop', 'single-reply' ); ?>
     29
     30                        </li><!-- .bbp-body -->
     31
     32                </ul><!-- #topic-<?php bbp_topic_id(); ?>-replies -->
     33
     34        <?php endif; ?>
     35
     36        <?php do_action( 'bbp_template_after_single_reply' ); ?>
     37
     38</div>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/sass/site/_bbpress.scss

     
    658658/*--------------------------------------------------------------
    659659# Single Topic
    660660--------------------------------------------------------------*/
    661 .single-topic {
     661.single-topic,
     662.single-reply {
    662663        .entry-content {
    663664                #bbpress-forums {
    664665                        overflow: visible;
    665666
    666                         ul.bbp-forums,
    667667                        ul.bbp-lead-topic,
    668668                        ul.bbp-replies,
    669                         ul.bbp-search-results,
    670                         ul.bbp-topics,
    671                         div.bbp-forum-header,
    672                         div.bbp-reply-header,
    673                         div.bbp-topic-header,
    674669                        li.bbp-body div.hentry {
    675670                                overflow: visible;
    676671                        }
     
    687682                                margin-right: 10px;
    688683                                margin-left: -11%;
    689684                        }
     685
    690686                        div.bbp-topic-author img.avatar {
    691687                                margin-left: -19%;
    692688                                margin-top: -6px;
     
    704700                                }
    705701                        }
    706702
    707                         ul.bbp-lead-topic {
    708                                 margin-bottom: 15px;
    709                         }
    710703
    711                         ul.bbp-lead-topic li.bbp-body {
    712                                 border: 1px solid #eee;
    713                                 border-top: none;
    714                         }
    715 
    716                         ul.bbp-lead-topic li.bbp-body div.topic {
    717                                 background: #fbfbfb;
    718                                 padding: 1.5rem 1.5rem 1.5rem 0;
    719                         }
    720 
    721704                        div.bbp-reply-author,
    722705                        div.bbp-topic-author {
    723706                                padding-left: 10%;
    724707                        }
    725708
    726                         div.bbp-forum-content,
    727709                        div.bbp-reply-content,
    728710                        div.bbp-topic-content {
    729711                                padding: 0;
     
    737719                        div.bbp-reply-content {
    738720                                margin-left: 11%;
    739721                        }
     722                }
     723        }
     724}
    740725
     726.single-topic {
     727        .entry-content {
     728                #bbpress-forums {
     729
     730                        ul.bbp-lead-topic {
     731                                margin-bottom: 15px;
     732                        }
     733
     734                        ul.bbp-lead-topic li.bbp-body {
     735                                border: 1px solid #eee;
     736                                border-top: none;
     737                        }
     738
     739                        ul.bbp-lead-topic li.bbp-body div.topic {
     740                                background: #fbfbfb;
     741                                padding: 1.5rem 1.5rem 1.5rem 0;
     742                        }
     743
    741744                        div.even:not(.topic),
    742745                        ul.even,
    743746                        div.odd,
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/sidebar.php

     
    3939
    4040                        <?php do_action( 'wporg_compat_view_sidebar' ); ?>
    4141
    42                 <?php elseif ( bbp_is_single_topic() || bbp_is_topic_edit() || bbp_is_reply_edit() ) : ?>
     42                <?php elseif ( bbp_is_single_topic() || bbp_is_topic_edit() || bbp_is_single_reply() || bbp_is_reply_edit() ) : ?>
    4343
    4444                        <?php do_action( 'wporg_compat_single_topic_sidebar_pre' ); ?>
    4545