Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/22/2011 10:13:25 AM (14 years ago)
Author:
johnjamesjacoby
Message:

First pass at normalizing bp-default template files. This includes:

A ton of code cleanup
Using new functions found in BP 1.3
Template header documentation
Improve pagination style and position on root component templates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/groups/groups-loop.php

    r3771 r3810  
    1 <?php /* Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_object_filter() */ ?>
     1<?php
    22
    3 <?php do_action( 'bp_before_groups_loop' ) ?>
     3/**
     4 * BuddyPress - Groups Loop
     5 *
     6 * Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_object_filter()
     7 *
     8 * @package BuddyPress
     9 * @subpackage bp-default
     10 */
     11
     12?>
     13
     14<?php do_action( 'bp_before_groups_loop' ); ?>
    415
    516<?php if ( bp_has_groups( bp_ajax_querystring( 'groups' ) ) ) : ?>
     
    819
    920        <div class="pag-count" id="group-dir-count-top">
    10             <?php bp_groups_pagination_count() ?>
     21
     22            <?php bp_groups_pagination_count(); ?>
     23
    1124        </div>
    1225
    1326        <div class="pagination-links" id="group-dir-pag-top">
    14             <?php bp_groups_pagination_links() ?>
     27
     28            <?php bp_groups_pagination_links(); ?>
     29
    1530        </div>
    1631
    1732    </div>
    1833
    19     <?php do_action( 'bp_before_directory_groups_list' ) ?>
     34    <?php do_action( 'bp_before_directory_groups_list' ); ?>
    2035
    2136    <ul id="groups-list" class="item-list" role="main">
     37
    2238    <?php while ( bp_groups() ) : bp_the_group(); ?>
    2339
    2440        <li>
    2541            <div class="item-avatar">
    26                 <a href="<?php bp_group_permalink() ?>"><?php bp_group_avatar( 'type=thumb&width=50&height=50' ) ?></a>
     42                <a href="<?php bp_group_permalink(); ?>"><?php bp_group_avatar( 'type=thumb&width=50&height=50' ); ?></a>
    2743            </div>
    2844
    2945            <div class="item">
    30                 <div class="item-title"><a href="<?php bp_group_permalink() ?>"><?php bp_group_name() ?></a></div>
    31                 <div class="item-meta"><span class="activity"><?php printf( __( 'active %s ago', 'buddypress' ), bp_get_group_last_active() ) ?></span></div>
     46                <div class="item-title"><a href="<?php bp_group_permalink(); ?>"><?php bp_group_name(); ?></a></div>
     47                <div class="item-meta"><span class="activity"><?php printf( __( 'active %s ago', 'buddypress' ), bp_get_group_last_active() ); ?></span></div>
    3248
    33                 <div class="item-desc"><?php bp_group_description_excerpt() ?></div>
     49                <div class="item-desc"><?php bp_group_description_excerpt(); ?></div>
    3450
    35                 <?php do_action( 'bp_directory_groups_item' ) ?>
     51                <?php do_action( 'bp_directory_groups_item' ); ?>
    3652
    3753            </div>
     
    3955            <div class="action">
    4056
    41                 <?php do_action( 'bp_directory_groups_actions' ) ?>
     57                <?php do_action( 'bp_directory_groups_actions' ); ?>
    4258
    4359                <div class="meta">
    4460
    45                     <?php bp_group_type() ?> / <?php bp_group_member_count() ?>
     61                    <?php bp_group_type(); ?> / <?php bp_group_member_count(); ?>
    4662
    4763                </div>
     
    5369
    5470    <?php endwhile; ?>
     71
    5572    </ul>
    5673
    57     <?php do_action( 'bp_after_directory_groups_list' ) ?>
     74    <?php do_action( 'bp_after_directory_groups_list' ); ?>
    5875
    5976    <div id="pag-bottom" class="pagination">
    6077
    6178        <div class="pag-count" id="group-dir-count-bottom">
    62             <?php bp_groups_pagination_count() ?>
     79
     80            <?php bp_groups_pagination_count(); ?>
     81
    6382        </div>
    6483
    6584        <div class="pagination-links" id="group-dir-pag-bottom">
    66             <?php bp_groups_pagination_links() ?>
     85
     86            <?php bp_groups_pagination_links(); ?>
     87
    6788        </div>
    6889
     
    7293
    7394    <div id="message" class="info">
    74         <p><?php _e( 'There were no groups found.', 'buddypress' ) ?></p>
     95        <p><?php _e( 'There were no groups found.', 'buddypress' ); ?></p>
    7596    </div>
    7697
    7798<?php endif; ?>
    7899
    79 <?php do_action( 'bp_after_groups_loop' ) ?>
     100<?php do_action( 'bp_after_groups_loop' ); ?>
Note: See TracChangeset for help on using the changeset viewer.