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/form-topic.php

    r13498 r13506  
    1515            <?php do_action( 'bbp_theme_before_topic_form' ); ?>
    1616
     17            <?php if ( bbp_is_topic_edit() ) { ?>
     18
     19                <h1>
     20                    <?php printf( __( 'Now Editing &ldquo;%s&rdquo;', 'wporg-forums' ), bbp_get_topic_title() ); ?>
     21                </h1>
     22
     23            <?php } else { ?>
     24
     25                <h2>
     26                    <?php if ( bbp_is_single_forum() ) {
     27                        _e( 'Create a new topic in this forum', 'wporg-forums' );
     28                    } elseif ( bbp_is_single_view() && 'reviews' === bbp_get_view_id() ) {
     29                        _e( 'Create a new review', 'wporg-forums' );
     30                    } else {
     31                        _e( 'Create a new topic', 'wporg-forums' );
     32                    } ?>
     33                </h2>
     34
     35            <?php } ?>
     36
    1737            <fieldset class="bbp-form">
    18                 <legend>
    19 
    20                     <?php
    21                         if ( bbp_is_topic_edit() ) {
    22                             printf( __( 'Now Editing &ldquo;%s&rdquo;', 'wporg-forums' ), bbp_get_topic_title() );
    23                         } else {
    24                             if ( bbp_is_single_forum() ) {
    25                                 _e( 'Create a new topic in this forum', 'wporg-forums' );
    26                             } elseif ( bbp_is_single_view() && 'reviews' === bbp_get_view_id() ) {
    27                                 _e( 'Create a new review', 'wporg-forums' );
    28                             } else {
    29                                 _e( 'Create a new topic', 'wporg-forums' );
    30                             }
    31                         }
    32                     ?>
    33 
    34                 </legend>
    3538
    3639                <?php do_action( 'bbp_theme_before_topic_form_notices' ); ?>
Note: See TracChangeset for help on using the changeset viewer.