git-svn-id: https://192.168.0.254/svn/Proyectos.ASong2U_Web/trunk@179 cd1a4ea2-8c7f-e448-aada-19d1fee9e1d6
100 lines
3.6 KiB
PHP
100 lines
3.6 KiB
PHP
<?php
|
||
|
||
/**
|
||
* BuddyPress - Groups Directory
|
||
*
|
||
* @package BuddyPress
|
||
* @subpackage bp-default
|
||
*/
|
||
|
||
?>
|
||
|
||
<?php get_header( 'buddypress' ); ?>
|
||
|
||
<?php do_action( 'bp_before_directory_groups_page' ); ?>
|
||
|
||
<div id="content fullwidth">
|
||
<div class="padder">
|
||
|
||
<?php do_action( 'bp_before_directory_groups' ); ?>
|
||
|
||
<form action="" method="post" id="groups-directory-form" class="dir-form">
|
||
|
||
<h3><?php _e( 'Groups Directory', 'buddypress' ); ?></h3>
|
||
<p>Join your favorite bands and make comments with other fans all around the world!!<br/>
|
||
If you don´t find your favorite band, you can create one yourself!!
|
||
</p>
|
||
<?php if ( is_user_logged_in() && bp_user_can_create_groups() ) : ?><a class="button" href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_groups_root_slug() . '/create' ); ?>"><?php _e( 'Create a Group', 'buddypress' ); ?></a><?php endif; ?>
|
||
<?php do_action( 'bp_before_directory_groups_content' ); ?>
|
||
|
||
<?php if (0) : ?>
|
||
<div id="group-dir-search" class="dir-search" role="search">
|
||
|
||
<?php bp_directory_groups_search_form() ?>
|
||
|
||
</div><!-- #group-dir-search -->
|
||
<?php endif; ?>
|
||
|
||
<?php do_action( 'template_notices' ); ?>
|
||
|
||
<div class="item-list-tabs" role="navigation">
|
||
<ul>
|
||
<?php if ( is_user_logged_in() && bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?>
|
||
|
||
<li class="selected" id="groups-personal"><a href="<?php echo trailingslashit( bp_loggedin_user_domain() . bp_get_groups_slug() . '/my-groups' ); ?>"><?php printf( __( 'My favorite bands <span>%s</span>', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ); ?></a></li>
|
||
|
||
<?php endif; ?>
|
||
|
||
<li id="groups-all"><a href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_groups_root_slug() ); ?>"><?php printf( __( 'All groups <span>%s</span>', 'buddypress' ), bp_get_total_group_count() ); ?></a></li>
|
||
|
||
<?php do_action( 'bp_groups_directory_group_filter' ); ?>
|
||
|
||
</ul>
|
||
</div><!-- .item-list-tabs -->
|
||
|
||
<div class="item-list-tabs" id="subnav" role="navigation">
|
||
<ul>
|
||
|
||
<?php do_action( 'bp_groups_directory_group_types' ); ?>
|
||
|
||
<li id="groups-order-select" class="last filter">
|
||
|
||
<label for="groups-order-by"><?php _e( 'Order By:', 'buddypress' ); ?></label>
|
||
<select id="groups-order-by">
|
||
<option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option>
|
||
<option value="popular"><?php _e( 'Most Members', 'buddypress' ); ?></option>
|
||
<option value="newest"><?php _e( 'Newly Created', 'buddypress' ); ?></option>
|
||
<option value="alphabetical"><?php _e( 'Alphabetical', 'buddypress' ); ?></option>
|
||
|
||
<?php do_action( 'bp_groups_directory_order_options' ); ?>
|
||
|
||
</select>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
|
||
<div id="groups-dir-list" class="groups dir-list">
|
||
|
||
<?php locate_template( array( 'groups/groups-loop.php' ), true ); ?>
|
||
|
||
</div><!-- #groups-dir-list -->
|
||
|
||
<?php do_action( 'bp_directory_groups_content' ); ?>
|
||
|
||
<?php wp_nonce_field( 'directory_groups', '_wpnonce-groups-filter' ); ?>
|
||
|
||
<?php do_action( 'bp_after_directory_groups_content' ); ?>
|
||
|
||
</form><!-- #groups-directory-form -->
|
||
|
||
<?php do_action( 'bp_after_directory_groups' ); ?>
|
||
|
||
</div><!-- .padder -->
|
||
</div><!-- #content -->
|
||
|
||
<?php do_action( 'bp_after_directory_groups_page' ); ?>
|
||
|
||
<?php get_sidebar( 'buddypress' ); ?>
|
||
<?php get_footer( 'buddypress' ); ?>
|
||
|