Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/31/2016 01:21:12 PM (7 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/blogs/index.php

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