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/members/members-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_members_loop' ) ?>
     3/**
     4 * BuddyPress - Members 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_members_loop' ); ?>
    415
    516<?php if ( bp_has_members( bp_ajax_querystring( 'members' ) ) ) : ?>
     
    819
    920        <div class="pag-count" id="member-dir-count-top">
    10             <?php bp_members_pagination_count() ?>
     21
     22            <?php bp_members_pagination_count(); ?>
     23
    1124        </div>
    1225
    1326        <div class="pagination-links" id="member-dir-pag-top">
    14             <?php bp_members_pagination_links() ?>
     27
     28            <?php bp_members_pagination_links(); ?>
     29
    1530        </div>
    1631
    1732    </div>
    1833
    19     <?php do_action( 'bp_before_directory_members_list' ) ?>
     34    <?php do_action( 'bp_before_directory_members_list' ); ?>
    2035
    2136    <ul id="members-list" class="item-list" role="main">
     37
    2238    <?php while ( bp_members() ) : bp_the_member(); ?>
    2339
    2440        <li>
    2541            <div class="item-avatar">
    26                 <a href="<?php bp_member_permalink() ?>"><?php bp_member_avatar() ?></a>
     42                <a href="<?php bp_member_permalink(); ?>"><?php bp_member_avatar(); ?></a>
    2743            </div>
    2844
    2945            <div class="item">
    3046                <div class="item-title">
    31                     <a href="<?php bp_member_permalink() ?>"><?php bp_member_name() ?></a>
     47                    <a href="<?php bp_member_permalink(); ?>"><?php bp_member_name(); ?></a>
    3248
    3349                    <?php if ( bp_get_member_latest_update() ) : ?>
    3450
    35                         <span class="update"> - <?php bp_member_latest_update( 'length=10' ) ?></span>
     51                        <span class="update"> - <?php bp_member_latest_update( 'length=10' ); ?></span>
    3652
    3753                    <?php endif; ?>
     
    3955                </div>
    4056
    41                 <div class="item-meta"><span class="activity"><?php bp_member_last_active() ?></span></div>
     57                <div class="item-meta"><span class="activity"><?php bp_member_last_active(); ?></span></div>
    4258
    43                 <?php do_action( 'bp_directory_members_item' ) ?>
     59                <?php do_action( 'bp_directory_members_item' ); ?>
    4460
    4561                <?php
     
    6480
    6581    <?php endwhile; ?>
     82
    6683    </ul>
    6784
    68     <?php do_action( 'bp_after_directory_members_list' ) ?>
     85    <?php do_action( 'bp_after_directory_members_list' ); ?>
    6986
    70     <?php bp_member_hidden_fields() ?>
     87    <?php bp_member_hidden_fields(); ?>
    7188
    7289    <div id="pag-bottom" class="pagination">
    7390
    7491        <div class="pag-count" id="member-dir-count-bottom">
    75             <?php bp_members_pagination_count() ?>
     92
     93            <?php bp_members_pagination_count(); ?>
     94
    7695        </div>
    7796
    7897        <div class="pagination-links" id="member-dir-pag-bottom">
    79             <?php bp_members_pagination_links() ?>
     98
     99            <?php bp_members_pagination_links(); ?>
     100
    80101        </div>
    81102
     
    85106
    86107    <div id="message" class="info">
    87         <p><?php _e( "Sorry, no members were found.", 'buddypress' ) ?></p>
     108        <p><?php _e( "Sorry, no members were found.", 'buddypress' ); ?></p>
    88109    </div>
    89110
    90111<?php endif; ?>
    91112
    92 <?php do_action( 'bp_after_members_loop' ) ?>
     113<?php do_action( 'bp_after_members_loop' ); ?>
Note: See TracChangeset for help on using the changeset viewer.