Skip to:
Content

bbPress.org

Changeset 5836


Ignore:
Timestamp:
07/15/2015 05:22:47 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Moderators: Add forum moderators field to form-forum.php template part. See #459.

File:
1 edited

Legend:

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

    r5829 r5836  
    8888                            <code><?php bbp_allowed_tags(); ?></code>
    8989                        </p>
     90
     91                    <?php endif; ?>
     92
     93                    <?php if ( bbp_allow_forum_mods() && current_user_can( 'assign_forum_mods' ) ) : ?>
     94
     95                        <?php do_action( 'bbp_theme_before_forum_form_mods' ); ?>
     96
     97                        <p>
     98                            <label for="bbp_forum_mods"><?php esc_html_e( 'Forum Moderators:', 'bbpress' ); ?></label><br />
     99                            <input type="text" value="<?php bbp_form_topic_tags(); ?>" size="40" name="bbp_forum_mods" id="bbp_forum_mods" />
     100                        </p>
     101
     102                        <?php do_action( 'bbp_theme_after_forum_form_mods' ); ?>
    90103
    91104                    <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.