Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function bpmag_show_activity_search(){
- ?>
- <div>
- <h2><?php _e("Activity Search","bpmag");?></h2>
- <?php locate_template( array('activity/activity-loop.php' ), true ) ; ?>
- <a href="<?php echo bp_get_root_domain().'/'.BP_ACTIVITY_SLUG.'/?s='.$_REQUEST['search-terms']?>" ><?php _e("View All matched activities","bpmag");?></a>
- </div>
- <?php
- //endif;
- }
- //Hook Groups results to search page
- if(bp_is_active( 'activity' ))
- add_action("advance-search","bpmag_show_activity_search",2);
Add Comment
Please, Sign In to add comment