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

    r5561 r5563  
    5454
    5555                    <div class="bbp-template-notice">
    56                         <p><?php _e( 'This forum is marked as closed to new topics, however your posting capabilities still allow you to do so.', 'bbpress' ); ?></p>
     56                        <ul>
     57                            <li><?php _e( 'This forum is marked as closed to new topics, however your posting capabilities still allow you to do so.', 'bbpress' ); ?></li>
     58                        </ul>
    5759                    </div>
    5860
     
    6264
    6365                    <div class="bbp-template-notice">
    64                         <p><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></p>
     66                        <ul>
     67                            <li><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></li>
     68                        </ul>
    6569                    </div>
    6670
     
    227231    <div id="forum-closed-<?php bbp_forum_id(); ?>" class="bbp-forum-closed">
    228232        <div class="bbp-template-notice">
    229             <p><?php printf( __( 'The forum &#8216;%s&#8217; is closed to new topics and replies.', 'bbpress' ), bbp_get_forum_title() ); ?></p>
     233            <ul>
     234                <li><?php printf( __( 'The forum &#8216;%s&#8217; is closed to new topics and replies.', 'bbpress' ), bbp_get_forum_title() ); ?></li>
     235            </ul>
    230236        </div>
    231237    </div>
     
    235241    <div id="no-topic-<?php bbp_forum_id(); ?>" class="bbp-no-topic">
    236242        <div class="bbp-template-notice">
    237             <p><?php is_user_logged_in() ? _e( 'You cannot create new topics.', 'bbpress' ) : _e( 'You must be logged in to create new topics.', 'bbpress' ); ?></p>
     243            <ul>
     244                <li><?php is_user_logged_in() ? _e( 'You cannot create new topics.', 'bbpress' ) : _e( 'You must be logged in to create new topics.', 'bbpress' ); ?></li>
     245            </ul>
    238246        </div>
    239247    </div>
     
    245253</div>
    246254
    247 <?php endif; ?>
     255<?php endif;
Note: See TracChangeset for help on using the changeset viewer.