Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/11/2014 05:25:09 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Convert template notices from paragraph tags to unordered lists.

Improves accessibility by hinting there may be several notices on the page.

Props Karl Groves, netweb. FIxes #2637.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/templates/default/bbpress/form-forum.php

    r5561 r5563  
    4545
    4646                    <div class="bbp-template-notice">
    47                         <p><?php _e( 'This forum is closed to new content, however your account still allows you to do so.', 'bbpress' ); ?></p>
     47                        <ul>
     48                            <li><?php _e( 'This forum is closed to new content, however your account still allows you to do so.', 'bbpress' ); ?></li>
     49                        </ul>
    4850                    </div>
    4951
     
    5355
    5456                    <div class="bbp-template-notice">
    55                         <p><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></p>
     57                        <ul>
     58                            <li><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></li>
     59                        </ul>
    5660                    </div>
    5761
     
    159163    <div id="no-forum-<?php bbp_forum_id(); ?>" class="bbp-no-forum">
    160164        <div class="bbp-template-notice">
    161             <p><?php printf( __( 'The forum &#8216;%s&#8217; is closed to new content.', 'bbpress' ), bbp_get_forum_title() ); ?></p>
     165            <ul>
     166                <li><?php printf( __( 'The forum &#8216;%s&#8217; is closed to new content.', 'bbpress' ), bbp_get_forum_title() ); ?></li>
     167            </ul>
    162168        </div>
    163169    </div>
     
    167173    <div id="no-forum-<?php bbp_forum_id(); ?>" class="bbp-no-forum">
    168174        <div class="bbp-template-notice">
    169             <p><?php is_user_logged_in() ? _e( 'You cannot create new forums.', 'bbpress' ) : _e( 'You must be logged in to create new forums.', 'bbpress' ); ?></p>
     175            <ul>
     176                <li><?php is_user_logged_in() ? _e( 'You cannot create new forums.', 'bbpress' ) : _e( 'You must be logged in to create new forums.', 'bbpress' ); ?></li>
     177            </ul>
    170178        </div>
    171179    </div>
     
    177185</div>
    178186
    179 <?php endif; ?>
     187<?php endif;
Note: See TracChangeset for help on using the changeset viewer.