Making WordPress.org


Ignore:
Timestamp:
04/12/2024 03:44:43 AM (13 months ago)
Author:
adamwood
Message:

wporg-support-2024: Fix heading hierarchy

Adds h1 headings to many pages and adjusts styles

Fixes #4117

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/bbpress/loop-topics.php

    r13496 r13506  
    1111defined( 'ABSPATH' ) || exit;
    1212
    13 do_action( 'bbp_template_before_topics_loop' ); ?>
     13do_action( 'bbp_template_before_topics_loop' );
    1414
    15 <ul id="bbp-forum-<?php bbp_forum_id(); ?>" class="bbp-topics<?php if (bbp_get_view_title() === 'All Replies') { echo ' full-posts'; } ?>">
    16     <li class="bbp-header">
    17         <ul class="forum-titles">
    18             <li class="bbp-topic-title"><?php esc_html_e( 'Topic', 'bbpress' ); ?></li>
    19             <li class="bbp-topic-voice-count"><?php esc_html_e( 'Voices', 'bbpress' ); ?></li>
    20             <li class="bbp-topic-reply-count"><?php bbp_show_lead_topic()
    21                 ? esc_html_e( 'Replies', 'bbpress' )
    22                 : esc_html_e( 'Posts',   'bbpress' );
    23             ?></li>
    24             <li class="bbp-topic-freshness"><?php esc_html_e( 'Last Post', 'bbpress' ); ?></li>
    25         </ul>
    26     </li>
     15$is_all_replies_view = bbp_get_view_id() === 'all-replies';
     16
     17?>
     18
     19<ul id="bbp-forum-<?php bbp_forum_id(); ?>" class="bbp-topics<?php if ( $is_all_replies_view ) { echo ' full-posts'; } ?>">
     20
     21    <?php if ( ! $is_all_replies_view ) { ?>
     22        <li class="bbp-header">
     23            <ul class="forum-titles">
     24                <li class="bbp-topic-title"><?php esc_html_e( 'Topic', 'bbpress' ); ?></li>
     25                <li class="bbp-topic-voice-count"><?php esc_html_e( 'Voices', 'bbpress' ); ?></li>
     26                <li class="bbp-topic-reply-count"><?php bbp_show_lead_topic()
     27                    ? esc_html_e( 'Replies', 'bbpress' )
     28                    : esc_html_e( 'Posts',   'bbpress' );
     29                ?></li>
     30                <li class="bbp-topic-freshness"><?php esc_html_e( 'Last Post', 'bbpress' ); ?></li>
     31            </ul>
     32        </li>
     33    <?php } ?>
    2734
    2835    <li class="bbp-body">
Note: See TracChangeset for help on using the changeset viewer.