<?php
get_header();

    locate_template( array( 'leftsidebar.php' ), true )
    ?>

    <div id="content">
        
        <div id="iron-encabezado-container">
            <h2 class="iron-encabezado-seccion"><?php echo __('Miembros','buddypress'); ?></h2>
        </div>
        
        <div class="padder">
        
            <div id="content-top"></div>
            
            <div id="content-middle">
            
                <form action="" method="post" id="members-directory-form" class="dir-form">
                    
                    <?php
                    do_action( 'bp_before_directory_members_content' );
                    ?>
                    
                    <div id="members-dir-search" class="dir-search">
                        <?php
                        bp_directory_members_search_form();
                        ?>
                    </div><!-- #members-dir-search -->
                    
                    <div class="clear"></div>
                    
                    <div class="item-list-tabs">
                        <ul>
                            
                            <?php // ESTO ES NECESARIO PARA QUE FUNCIONE EL PAGINADOR ?>
                            <li class="selected" id="members-all" style="display: none;"></li>
                            
                            <?php
                            do_action( 'bp_members_directory_member_types' );
                            ?>
                            
                            <li id="members-order-select" class="last filter">
                            
                                <?php /* _e( 'Ordenar por:', 'buddypress' ) ?>
                                <select>
                                    <option value="active"><?php _e( 'Last Active', 'buddypress' ) ?></option>
                                    <option value="newest"><?php _e( 'Newest Registered', 'buddypress' ) ?></option>
    
                                    <?php if ( bp_is_active( 'xprofile' ) ) : ?>
                                        <option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ) ?></option>
                                    <?php endif; ?>
    
                                    <?php do_action( 'bp_members_directory_order_options' ) ?>
                                </select>
                                <?php */ ?>
                                
                            </li>
                        </ul>
                    </div><!-- .item-list-tabs -->
                    
                    <div id="members-dir-list" class="members dir-list">
                        <?php
                        locate_template( array( 'members/members-loop.php' ), true );
                        ?>
                    </div><!-- #members-dir-list -->
                    
                    <?php
                    do_action( 'bp_directory_members_content' );
                    
                    wp_nonce_field( 'directory_members', '_wpnonce-member-filter' );
                    
                    do_action( 'bp_after_directory_members_content' );
                    ?>
                    
                </form><!-- #members-directory-form -->
                
            </div> <!-- content-middle -->
            
            <div id="content-bottom"></div>
            
        </div><!-- .padder -->
    </div><!-- #content -->
    
    <?php
    locate_template( array( 'sidebar.php' ), true );
    
get_footer();
?>