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/activity/activity-loop.php

    r3771 r3810  
    1 <?php /* Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_activity_loop() */ ?>
     1<?php
    22
    3 <?php do_action( 'bp_before_activity_loop' ) ?>
     3/**
     4 * BuddyPress - Activity 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_activity_loop' ); ?>
    415
    516<?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?>
     
    819    <noscript>
    920        <div class="pagination">
    10             <div class="pag-count"><?php bp_activity_pagination_count() ?></div>
    11             <div class="pagination-links"><?php bp_activity_pagination_links() ?></div>
     21            <div class="pag-count"><?php bp_activity_pagination_count(); ?></div>
     22            <div class="pagination-links"><?php bp_activity_pagination_links(); ?></div>
    1223        </div>
    1324    </noscript>
    1425
    1526    <?php if ( empty( $_POST['page'] ) ) : ?>
     27
    1628        <ul id="activity-stream" class="activity-list item-list">
     29
    1730    <?php endif; ?>
    1831
    1932    <?php while ( bp_activities() ) : bp_the_activity(); ?>
    2033
    21         <?php include( locate_template( array( 'activity/entry.php' ), false ) ) ?>
     34        <?php include( locate_template( array( 'activity/entry.php' ), false ) ); ?>
    2235
    2336    <?php endwhile; ?>
    2437
    2538    <?php if ( bp_activity_has_more_items() ) : ?>
     39
    2640        <li class="load-more">
    27             <a href="#more"><?php _e( 'Load More', 'buddypress' ) ?></a> &nbsp; <span class="ajax-loader"></span>
     41            <a href="#more"><?php _e( 'Load More', 'buddypress' ); ?></a> &nbsp; <span class="ajax-loader"></span>
    2842        </li>
     43
    2944    <?php endif; ?>
    3045
    3146    <?php if ( empty( $_POST['page'] ) ) : ?>
     47
    3248        </ul>
     49
    3350    <?php endif; ?>
    3451
    3552<?php else : ?>
     53
    3654    <div id="message" class="info">
    37         <p><?php _e( 'Sorry, there was no activity found. Please try a different filter.', 'buddypress' ) ?></p>
     55        <p><?php _e( 'Sorry, there was no activity found. Please try a different filter.', 'buddypress' ); ?></p>
    3856    </div>
     57
    3958<?php endif; ?>
    4059
    41 <?php do_action( 'bp_after_activity_loop' ) ?>
     60<?php do_action( 'bp_after_activity_loop' ); ?>
    4261
    4362<form action="" name="activity-loop-form" id="activity-loop-form" method="post">
    44     <?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ) ?>
     63
     64    <?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ); ?>
     65
    4566</form>
Note: See TracChangeset for help on using the changeset viewer.