Making WordPress.org

Ticket #1407: 1407.diff

File 1407.diff, 1.5 KB (added by netweb, 9 years ago)
  • bbpress/form-topic.php

     
    2626
    2727                                <?php do_action( 'bbp_theme_before_topic_form_notices' ); ?>
    2828
    29                                 <?php if ( ! bbp_is_topic_edit() && ! bbp_is_forum_closed() ) : ?>
     29                                <?php if ( ! bbp_is_topic_edit() && ! bbp_is_forum_closed() && ! in_array( bbp_get_view_id(), array( 'reviews' ) ) ) : ?>
    3030
    3131                                        <div class="bbp-template-notice">
    3232                                                <p><?php _e( 'When posting a new topic, follow these steps:', 'wporg-forums' ); ?></p>
     
    4747
    4848                                <?php endif; ?>
    4949
     50                                <?php if ( ! bbp_is_topic_edit() && ! bbp_is_forum_closed() && in_array( bbp_get_view_id(), array( 'reviews' ) ) ) : ?>
     51                                        <div class="bbp-template-notice">
     52                                                <p><?php _e( 'When posting a review, follow these guidelines:', 'wporg-forums' ); ?></p>
     53                                                <ul>
     54                                                        <li><?php _e( 'If you are reporting an issue with a plugin, please post <a href="%s">HERE</a> instead.', 'wporg-forums' ); ?></li>
     55                                                        <li><?php _e( 'In order to rate a plugin, you <strong>must</strong> also submit a review.', 'wporg-forums' ); ?></li>
     56                                                        <li><?php _e( 'Please provide as much detail as you can to justify your rating and to help others.', 'wporg-forums' ); ?></li>
     57                                                </ul>
     58                                        </div>
     59
     60                                <?php endif; ?>
     61
    5062                                <?php if ( !bbp_is_topic_edit() && bbp_is_forum_closed() ) : ?>
    5163
    5264                                        <div class="bbp-template-notice">