Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/11/2014 05:25:09 PM (12 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-reply.php

    r5561 r5563  
    3434
    3535                                        <div class="bbp-template-notice">
    36                                                 <p><?php _e( 'This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.', 'bbpress' ); ?></p>
     36                                                <ul>
     37                                                        <li><?php _e( 'This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.', 'bbpress' ); ?></li>
     38                                                </ul>
    3739                                        </div>
    3840
    … …  
    4244
    4345                                        <div class="bbp-template-notice">
    44                                                 <p><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></p>
     46                                                <ul>
     47                                                        <li><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></li>
     48                                                </ul>
    4549                                        </div>
    4650
    … …  
    182186        <div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply">
    183187                <div class="bbp-template-notice">
    184                         <p><?php printf( __( 'The topic &#8216;%s&#8217; is closed to new replies.', 'bbpress' ), bbp_get_topic_title() ); ?></p>
     188                        <ul>
     189                                <li><?php printf( __( 'The topic &#8216;%s&#8217; is closed to new replies.', 'bbpress' ), bbp_get_topic_title() ); ?></li>
     190                        </ul>
    185191                </div>
    186192        </div>
    … …  
    190196        <div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply">
    191197                <div class="bbp-template-notice">
    192                         <p><?php printf( __( 'The forum &#8216;%s&#8217; is closed to new topics and replies.', 'bbpress' ), bbp_get_forum_title( bbp_get_topic_forum_id() ) ); ?></p>
     198                        <ul>
     199                                <li><?php printf( __( 'The forum &#8216;%s&#8217; is closed to new topics and replies.', 'bbpress' ), bbp_get_forum_title( bbp_get_topic_forum_id() ) ); ?></li>
     200                        </ul>
    193201                </div>
    194202        </div>
    … …  
    198206        <div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply">
    199207                <div class="bbp-template-notice">
    200                         <p><?php is_user_logged_in() ? _e( 'You cannot reply to this topic.', 'bbpress' ) : _e( 'You must be logged in to reply to this topic.', 'bbpress' ); ?></p>
     208                        <ul>
     209                                <li><?php is_user_logged_in() ? _e( 'You cannot reply to this topic.', 'bbpress' ) : _e( 'You must be logged in to reply to this topic.', 'bbpress' ); ?></li>
     210                        </ul>
    201211                </div>
    202212        </div>
    … …  
    208218</div>
    209219
    210 <?php endif; ?>
     220<?php endif;
Note: See TracChangeset for help on using the changeset viewer.