Making WordPress.org


Ignore:
Timestamp:
03/04/2017 03:56:40 AM (9 years ago)
Author:
SergeyBiryukov
Message:

Support Theme: For closed forums, add a notice to privileged users indicating that though the reply form is available, the forum is closed.

The code is relocated from the support-forums plugin.

See #2353, #bb3076.

File:
1 edited

Legend:

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

    r4779 r5081  
    3939                <?php endif; ?>
    4040
     41                <?php if ( bbp_is_forum_closed() && ! bbp_is_reply_edit() ) : ?>
     42
     43                    <div class="bbp-template-notice">
     44                        <ul>
     45                            <li><?php
     46                                printf(
     47                                    /* translators: %s: forum title */
     48                                    esc_html__( 'The forum &#8216;%s&#8217; is closed to new topics and replies, however your posting capabilities still allow you to do so.', 'wporg-forums' ),
     49                                    bbp_get_forum_title( bbp_get_topic_forum_id() )
     50                                );
     51                            ?></li>
     52                        </ul>
     53                    </div>
     54
     55                <?php endif; ?>
     56
    4157                <?php if ( current_user_can( 'unfiltered_html' ) ) : ?>
    4258
Note: See TracChangeset for help on using the changeset viewer.