- Timestamp:
- 07/07/2018 09:44:24 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/src/bp-templates/bp-nouveau/includes/template-tags.php
r12157 r12183 1846 1846 */ 1847 1847 function bp_nouveau_search_form() { 1848 bp_get_template_part( 'common/search/search-form');1848 $search_form_html = bp_buffer_template_part( 'common/search/search-form', null, false ); 1849 1849 1850 1850 $objects = bp_nouveau_get_search_objects(); 1851 1851 if ( empty( $objects['primary'] ) || empty( $objects['secondary'] ) ) { 1852 echo $search_form_html; 1852 1853 return; 1853 1854 } 1854 1855 1855 1856 if ( 'dir' === $objects['primary'] ) { 1857 /** 1858 * Filter here to edit the HTML output of the directory search form. 1859 * 1860 * NB: This will take in charge the following BP Core Components filters 1861 * - bp_directory_members_search_form 1862 * - bp_directory_blogs_search_form 1863 * - bp_directory_groups_search_form 1864 * 1865 * @since 1.9.0 1866 * 1867 * @param string $search_form_html The HTML output for the directory search form. 1868 */ 1869 echo apply_filters( "bp_directory_{$objects['secondary']}_search_form", $search_form_html ); 1870 1856 1871 if ( 'activity' === $objects['secondary'] ) { 1857 1872 /**
Note:
See TracChangeset
for help on using the changeset viewer.