[buddypress-trac] [BuddyPress] #3297: bp_before_directory_groups_content hook

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Fri Jun 24 14:44:42 UTC 2011


#3297: bp_before_directory_groups_content hook
--------------------+-----------------------------
 Reporter:  tarion  |      Owner:
     Type:  defect  |     Status:  new
 Priority:  normal  |  Milestone:  Awaiting Review
Component:  Theme   |    Version:  1.2.8
 Keywords:          |
--------------------+-----------------------------
 Thats how it is:

 {{{

 <h3><?php _e( 'Groups Directory', 'buddypress' ) ?><?php if (
 is_user_logged_in() ) : ?> &nbsp;<a class="button" href="<?php echo
 bp_get_root_domain() . '/' . BP_GROUPS_SLUG . '/create/' ?>"><?php _e(
 'Create a Group', 'buddypress' ) ?></a><?php endif; ?></h3>

 <?php do_action( 'bp_before_directory_groups_content' ) ?>

                         <div id="group-dir-search" class="dir-search">
                                 <?php bp_directory_groups_search_form() ?>
                         </div><!-- #group-dir-search -->
 }}}



 But the do_action should be after the search box. Because the default
 layout has the searchbox right floating of the the heading. Adding content
 in between will destroy the layout.

 '''File:'''
 bp-themes\bp-default\groups\index.php

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3297>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list