Example #1
0
function buddyboss_global_search_buffer_template_part($template, $variation = '', $echo = true)
{
    ob_start();
    buddyboss_global_search_load_template($template, $variation);
    // Get the output buffer contents
    $output = ob_get_clean();
    // Echo or return the output buffer contents
    if (true === $echo) {
        echo $output;
    } else {
        return $output;
    }
}
Example #2
0
<?php

/**
 * the template file to display search result page having buddypress container 
 * dont make changes to this file,
 * instead create a folder 'buddyboss-global-search' inside your theme, copy this file over there, and make changes there
 */
?>

<div id="buddypress">

	<?php 
buddyboss_global_search_load_template("results-page-content");
?>

</div>