Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/31/2016 01:21:12 PM (3 years ago)
Author:
boonebgorges
Message:

Templates: Move component directory search markup to 'common' template.

The new 'common' directory in the bp-legacy template pack will be a
storehouse for template parts that are shared between components. The
directory search form is the first implementation of this idea.

Props hnla, mercime.
See #6844.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/index.php

    r10487 r11048  
    3434    do_action( 'bp_before_directory_groups_content' ); ?>
    3535
    36     <div id="group-dir-search" class="dir-search" role="search">
    37         <?php bp_directory_groups_search_form(); ?>
    38     </div><!-- #group-dir-search -->
     36    <?php /* Backward compatibility for inline search form. Use template part instead. */ ?>
     37    <?php if ( has_filter( 'bp_directory_groups_search_form' ) ) : ?>
     38
     39        <div id="group-dir-search" class="dir-search" role="search">
     40            <?php bp_directory_groups_search_form(); ?>
     41        </div><!-- #group-dir-search -->
     42
     43    <?php else: ?>
     44
     45        <?php bp_get_template_part( 'common/search/dir-search-form' ); ?>
     46
     47    <?php endif; ?>
    3948
    4049    <form action="" method="post" id="groups-directory-form" class="dir-form">
Note: See TracChangeset for help on using the changeset viewer.