Skip to:
Content

bbPress.org

Changeset 5497


Ignore:
Timestamp:
09/11/2014 01:57:06 PM (7 years ago)
Author:
johnjamesjacoby
Message:

Improve ID and classification in form-topic.php when forum is closed or user cannot create new topics. Props netweb. Fixes #2574.

File:
1 edited

Legend:

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

    r5478 r5497  
    225225<?php elseif ( bbp_is_forum_closed() ) : ?>
    226226
    227     <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic">
     227    <div id="forum-closed-<?php bbp_forum_id(); ?>" class="bbp-forum-closed">
    228228        <div class="bbp-template-notice">
    229229            <p><?php printf( __( 'The forum &#8216;%s&#8217; is closed to new topics and replies.', 'bbpress' ), bbp_get_forum_title() ); ?></p>
     
    233233<?php else : ?>
    234234
    235     <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic">
     235    <div id="no-topic-<?php bbp_forum_id(); ?>" class="bbp-no-topic">
    236236        <div class="bbp-template-notice">
    237237            <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>
Note: See TracChangeset for help on using the changeset viewer.