Skip to:
Content

bbPress.org


Ignore:
Timestamp:
07/10/2017 04:23:35 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Users: First-pass search forms in profile content pages.

This commit makes it possible to search user profiles for specific topics & replies (styling still needed.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/templates/default/bbpress/user-subscriptions.php

    r6575 r6623  
    1818
    1919        <div id="bbp-user-subscriptions" class="bbp-user-subscriptions">
     20
     21            <?php if ( bbp_allow_search() ) : ?>
     22
     23                <div class="bbp-search-form">
     24
     25                    <?php bbp_get_template_part( 'form', 'topic-search' ); ?>
     26
     27                </div>
     28
     29            <?php endif; ?>
     30
    2031            <h2 class="entry-title"><?php esc_html_e( 'Subscribed Forums', 'bbpress' ); ?></h2>
    2132            <div class="bbp-user-section">
     
    4960                <?php else : ?>
    5061
    51                     <p><?php bbp_is_user_home()
    52                         ? esc_html_e( 'You are not currently subscribed to any topics.',      'bbpress' )
    53                         : esc_html_e( 'This user is not currently subscribed to any topics.', 'bbpress' );
    54                     ?></p>
     62                    <?php bbp_get_template_part( 'feedback', 'no-topics' ); ?>
    5563
    5664                <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.