<div class="pagination-links" id="member-dir-pag-top">

			<?php 
    bp_members_pagination_links();
    ?>

		</div>

	</div>

	<?php 
    do_action('bp_before_directory_members_list');
    ?>

	<?php 
    cc_get_displaymode('members');
    ?>

	<?php 
    do_action('bp_after_directory_members_list');
    ?>

	<?php 
    bp_member_hidden_fields();
    ?>

	<div id="pag-bottom" class="pagination">

		<div class="pag-count" id="member-dir-count-bottom">

			<?php 
		<div class="pagination-links" id="group-dir-pag-top">

			<?php 
    bp_groups_pagination_links();
    ?>

		</div>

	</div>

	<?php 
    do_action('bp_before_directory_groups_list');
    ?>

	<?php 
    cc_get_displaymode('groups');
    ?>
	
	<?php 
    do_action('bp_after_directory_groups_list');
    ?>

	<div id="pag-bottom" class="pagination">

		<div class="pag-count" id="group-dir-count-bottom">

			<?php 
    bp_groups_pagination_count();
    ?>

		</div>